From 8ecd4d3aab5e57c83f9881ec48c42341a58f4e2d Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 6 Mar 2025 12:35:25 -0700 Subject: [PATCH 01/10] fix: TODOs --- .github/workflows/ci.yml | 5 ++--- easypost/util.py | 2 +- setup.py | 25 ++++++++++++------------- tests/test_address.py | 3 +-- 4 files changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23b06c2a..54c787aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,11 +19,10 @@ jobs: - name: Lint run: make lint run-tests: - # TODO: Use `latest` once we drop support for Python 3.7 - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: matrix: - pythonversion: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/easypost/util.py b/easypost/util.py index 31a81ea4..da1a9f35 100644 --- a/easypost/util.py +++ b/easypost/util.py @@ -102,7 +102,7 @@ def get_lowest_stateless_rate( ): continue - if lowest_rate is None or float(rate.rate) < float(lowest_rate.rate): + if lowest_rate is None or float(rate["rate"]) < float(lowest_rate["rate"]): lowest_rate = rate if lowest_rate is None: diff --git a/setup.py b/setup.py index 5a602267..990dd968 100644 --- a/setup.py +++ b/setup.py @@ -9,18 +9,17 @@ ] DEV_REQUIREMENTS = [ - "bandit==1.7.5", - "black==23.*", - "build==1.0.*;python_version>='3.8'", # TODO: remove python pin when 3.7 is dropped - "urllib3==1.*", # TODO: Pinned because vcrpy did a dumb and didn't pin urllib3 - "flake8==5.*", # TODO: flake8 v6 requires Python 3.8.1+ - "isort==5.*", - "mypy==1.4.*", # TODO: mypy v1.5 requires Python 3.8+ - "pdoc==13.*", # TODO: pdoc v14 requires Python 3.8+ - "pytest-cov==4.*", + "bandit==1.8.*", + "black==25.*", + "build==1.2.*", + "flake8==6.*", + "isort==6.*", + "mypy==1.15.*", + "pdoc==14.*", # v15 requires Python 3.9 + "pytest-cov==5.*", # v6 requires Python 3.9 "pytest-vcr==1.*", - "pytest==7.*", - "vcrpy==4.*", # TODO: vcrpy v5 requires Python 3.8+ + "pytest==8.*", + "vcrpy==6.*", # v7 requires Python 3.9 ] with open("README.md", encoding="utf-8") as f: @@ -55,17 +54,17 @@ "Tracker": "https://github.com/EasyPost/easypost-python/issues", "Source": "https://github.com/EasyPost/easypost-python", }, - python_requires=">=3.7, <4", + python_requires=">=3.8, <4", classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Programming Language :: Python", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Intended Audience :: Developers", "Operating System :: OS Independent", "License :: OSI Approved :: MIT License", diff --git a/tests/test_address.py b/tests/test_address.py index a1ab54ed..b05f640e 100644 --- a/tests/test_address.py +++ b/tests/test_address.py @@ -36,8 +36,7 @@ def test_address_create_verify(incorrect_address, test_client): # Delivery verification assertions assert address.verifications.delivery.success is False - # TODO: details is not deserializing correctly, related to the larger "double EasyPostObject" wrapping issue - # assert address.verifications.delivery.details == {} + assert address.verifications.delivery.details.to_dict() == {} assert address.verifications.delivery.errors[0].code == "E.ADDRESS.NOT_FOUND" assert address.verifications.delivery.errors[0].field == "address" assert address.verifications.delivery.errors[0].suggestion is None From d8211dde8f356f5fa053aa7e4c3843a7cae39f68 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 6 Mar 2025 12:37:51 -0700 Subject: [PATCH 02/10] chore: remove deprecated functions --- CHANGELOG.md | 3 ++ easypost/services/user_service.py | 46 +------------------------------ 2 files changed, 4 insertions(+), 45 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26a37fa9..dbf079b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,10 @@ ## Next Release +- Drops support for Python 3.7 - Fixes the payload wrapping for updating a webhook +- Removes deprecated `user.all_api_keys` and `user.api_keys`, use `api_key.all` and `api_key.retrieve_api_keys_for_user` respectively +- Bumps all dev dependencies ## v9.5.0 (2024-10-24) diff --git a/easypost/services/user_service.py b/easypost/services/user_service.py index 684a34fb..1ad9b932 100644 --- a/easypost/services/user_service.py +++ b/easypost/services/user_service.py @@ -1,16 +1,11 @@ from typing import ( Any, Dict, - List, Optional, ) -from warnings import warn from easypost.easypost_object import convert_to_easypost_object -from easypost.models import ( - ApiKey, - User, -) +from easypost.models import User from easypost.requestor import ( RequestMethod, Requestor, @@ -67,45 +62,6 @@ def retrieve_me(self) -> User: return convert_to_easypost_object(response=response) - def all_api_keys(self) -> Dict[str, Any]: - """Retrieve a list of all API keys.""" - warn( - 'This method is deprecated, use the "all" function of "api_keys" on the client instead.', - DeprecationWarning, - stacklevel=2, - ) - - url = "/api_keys" - - response = Requestor(self._client).request(method=RequestMethod.GET, url=url) - - return convert_to_easypost_object(response=response) - - def api_keys(self, id: str) -> List[ApiKey]: - """Retrieve a list of API keys (works for the authenticated User or a child User).""" - warn( - 'This method is deprecated, use the "retrieve_api_keys_for_user" function ' - 'of "api_keys" on the client instead.', - DeprecationWarning, - stacklevel=2, - ) - - api_keys = self.all_api_keys() - my_api_keys = [] - - if api_keys["id"] == id: - # This function was called on the authenticated user - my_api_keys = api_keys["keys"] - else: - # This function was called on a child user (authenticated as parent, only return - # this child user's details). - for child in api_keys["children"]: - if child.id == id: - my_api_keys = child.keys - break - - return my_api_keys - def update_brand(self, id: str, **params) -> User: """Update a User's Brand.""" url = self._instance_url(self._model_class, id) + "/brand" From 0f9a6407c3ab734ceec06009f528a4ce6a19aa96 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 6 Mar 2025 12:40:26 -0700 Subject: [PATCH 03/10] fix: bandit pin --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 990dd968..4871d4ab 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ ] DEV_REQUIREMENTS = [ - "bandit==1.8.*", + "bandit==1.7.*", # v1.8 requires Python 3.9 "black==25.*", "build==1.2.*", "flake8==6.*", From 8ed0e93052260723e7e112b3dd345b8b81a27bb3 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 6 Mar 2025 12:41:51 -0700 Subject: [PATCH 04/10] fix: black pin --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4871d4ab..e00343dc 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ DEV_REQUIREMENTS = [ "bandit==1.7.*", # v1.8 requires Python 3.9 - "black==25.*", + "black==23.*", "build==1.2.*", "flake8==6.*", "isort==6.*", From b28a8656650edd16891a1430c6946ba6d3551f8c Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 6 Mar 2025 12:43:48 -0700 Subject: [PATCH 05/10] fix: flake8 pin --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e00343dc..c8ddbbd1 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ "bandit==1.7.*", # v1.8 requires Python 3.9 "black==23.*", "build==1.2.*", - "flake8==6.*", + "flake8==5.*", # v6 requires Python 3.9 "isort==6.*", "mypy==1.15.*", "pdoc==14.*", # v15 requires Python 3.9 From 2087d682108cbab648188733b8a7a3046c0f1aa4 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 6 Mar 2025 12:45:01 -0700 Subject: [PATCH 06/10] fix: remaining pins --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c8ddbbd1..f9d0f70d 100644 --- a/setup.py +++ b/setup.py @@ -13,8 +13,8 @@ "black==23.*", "build==1.2.*", "flake8==5.*", # v6 requires Python 3.9 - "isort==6.*", - "mypy==1.15.*", + "isort==5.*", # v6 requires Python 3.9 + "mypy==1.14.*", # v1.15 requires Python 3.9 "pdoc==14.*", # v15 requires Python 3.9 "pytest-cov==5.*", # v6 requires Python 3.9 "pytest-vcr==1.*", From 8ced35b351002baea96275941fbffb60113b7624 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Fri, 7 Mar 2025 10:11:51 -0700 Subject: [PATCH 07/10] chore: re-record all cassettes --- tests/cassettes/test_address_all.yaml | 38 +- tests/cassettes/test_address_create.yaml | 18 +- .../test_address_create_and_verify.yaml | 18 +- .../cassettes/test_address_create_verify.yaml | 38 +- .../test_address_create_verify_array.yaml | 36 +- .../test_address_create_verify_strict.yaml | 18 +- .../cassettes/test_address_get_next_page.yaml | 78 +- tests/cassettes/test_address_retrieve.yaml | 36 +- tests/cassettes/test_address_verify.yaml | 40 +- .../test_address_verify_invalid_address.yaml | 32 +- tests/cassettes/test_all_api_keys.yaml | 14 +- .../test_authenticated_user_api_keys.yaml | 24 +- .../test_batch_add_remove_shipment.yaml | 192 +- tests/cassettes/test_batch_all.yaml | 26 +- tests/cassettes/test_batch_buy.yaml | 38 +- tests/cassettes/test_batch_create.yaml | 16 +- .../cassettes/test_batch_create_scanform.yaml | 64 +- tests/cassettes/test_batch_label.yaml | 58 +- tests/cassettes/test_batch_retrieve.yaml | 45 +- .../test_beta_get_lowest_stateless_rate.yaml | 54 +- ..._referral_customer_add_payment_method.yaml | 10 +- ...ta_referral_customer_refund_by_amount.yaml | 12 +- ...ferral_customer_refund_by_payment_log.yaml | 10 +- .../test_beta_retrieve_stateless_rates.yaml | 56 +- tests/cassettes/test_carrier_account_all.yaml | 76 +- .../test_carrier_account_create.yaml | 39 +- .../test_carrier_account_create_ups.yaml | 34 +- ...r_account_create_with_custom_workflow.yaml | 10 +- .../test_carrier_account_delete.yaml | 39 +- .../test_carrier_account_retrieve.yaml | 70 +- .../cassettes/test_carrier_account_type.yaml | 109 +- .../test_carrier_account_update.yaml | 90 +- .../test_carrier_account_update_ups.yaml | 82 +- tests/cassettes/test_child_user_api_keys.yaml | 76 +- tests/cassettes/test_claim_all.yaml | 103 +- tests/cassettes/test_claim_cancel.yaml | 491 +++--- tests/cassettes/test_claim_create.yaml | 459 +++-- tests/cassettes/test_claim_get_next_page.yaml | 228 +-- tests/cassettes/test_claim_retrieve.yaml | 487 +++--- tests/cassettes/test_customs_info_create.yaml | 24 +- .../cassettes/test_customs_info_retrieve.yaml | 46 +- tests/cassettes/test_customs_item_create.yaml | 20 +- .../cassettes/test_customs_item_retrieve.yaml | 38 +- tests/cassettes/test_endshipper_all.yaml | 12 +- tests/cassettes/test_endshipper_create.yaml | 16 +- tests/cassettes/test_endshipper_retrieve.yaml | 36 +- tests/cassettes/test_endshipper_update.yaml | 36 +- tests/cassettes/test_error.yaml | 10 +- .../test_error_alternative_format.yaml | 8 +- tests/cassettes/test_event_all.yaml | 36 +- tests/cassettes/test_event_get_next_page.yaml | 70 +- tests/cassettes/test_event_retrieve.yaml | 36 +- .../test_event_retrieve_all_payloads.yaml | 100 +- .../test_event_retrieve_payload.yaml | 100 +- tests/cassettes/test_insurance_all.yaml | 158 +- tests/cassettes/test_insurance_create.yaml | 180 +- .../test_insurance_get_next_page.yaml | 502 ++---- tests/cassettes/test_insurance_refund.yaml | 88 +- tests/cassettes/test_insurance_retrieve.yaml | 228 ++- tests/cassettes/test_order_buy.yaml | 619 +++---- tests/cassettes/test_order_create.yaml | 287 ++- tests/cassettes/test_order_get_rates.yaml | 527 +++--- tests/cassettes/test_order_lowest_rate.yaml | 287 ++- tests/cassettes/test_order_retrieve.yaml | 553 +++--- tests/cassettes/test_parcel_create.yaml | 18 +- tests/cassettes/test_parcel_retrieve.yaml | 36 +- tests/cassettes/test_pickup_all.yaml | 78 +- tests/cassettes/test_pickup_buy.yaml | 196 +-- tests/cassettes/test_pickup_cancel.yaml | 230 +-- tests/cassettes/test_pickup_create.yaml | 166 +- .../cassettes/test_pickup_get_next_page.yaml | 176 +- tests/cassettes/test_pickup_lowest_rate.yaml | 166 +- tests/cassettes/test_pickup_retrieve.yaml | 198 ++- tests/cassettes/test_rate_retrieve.yaml | 146 +- ...est_referral_customer_add_credit_card.yaml | 84 +- .../cassettes/test_referral_customer_all.yaml | 12 +- .../test_referral_customer_create.yaml | 20 +- .../test_referral_customer_update.yaml | 28 +- .../test_referral_get_next_page.yaml | 24 +- tests/cassettes/test_refund_all.yaml | 20 +- tests/cassettes/test_refund_create.yaml | 286 +-- .../cassettes/test_refund_get_next_page.yaml | 20 +- tests/cassettes/test_refund_retrieve.yaml | 44 +- tests/cassettes/test_report_all.yaml | 39 +- .../cassettes/test_report_create_report.yaml | 23 +- ...report_create_with_additional_columns.yaml | 23 +- .../test_report_create_with_columns.yaml | 23 +- .../cassettes/test_report_get_next_page.yaml | 123 +- .../test_report_retrieve_shipment_report.yaml | 50 +- tests/cassettes/test_request_hooks.yaml | 18 +- tests/cassettes/test_response_hooks.yaml | 18 +- .../test_retrieve_carrier_metadata.yaml | 1274 ++++++++++---- ...etrieve_carrier_metadata_with_filters.yaml | 14 +- ...test_retrieve_estimated_delivery_date.yaml | 240 --- tests/cassettes/test_scanform_all.yaml | 60 +- tests/cassettes/test_scanform_create.yaml | 160 +- .../test_scanform_get_next_page.yaml | 60 +- tests/cassettes/test_scanform_retrieve.yaml | 190 +- tests/cassettes/test_shipment_all.yaml | 612 ++++--- tests/cassettes/test_shipment_buy.yaml | 264 ++- ...test_shipment_buy_with_end_shipper_id.yaml | 275 ++- .../test_shipment_convert_label.yaml | 416 ++--- tests/cassettes/test_shipment_create.yaml | 118 +- .../test_shipment_create_empty_objects.yaml | 114 +- .../test_shipment_create_tax_identifier.yaml | 118 +- .../test_shipment_create_with_ids.yaml | 174 +- .../test_shipment_generate_form.yaml | 273 +-- .../test_shipment_get_lowest_smart_rate.yaml | 172 +- .../test_shipment_get_next_page.yaml | 1541 +++++++++-------- tests/cassettes/test_shipment_insure.yaml | 266 ++- .../cassettes/test_shipment_lowest_rate.yaml | 116 +- .../test_shipment_lowest_smart_rate.yaml | 302 ++-- .../test_shipment_recommend_ship_date.yaml | 186 +- tests/cassettes/test_shipment_refund.yaml | 270 +-- .../test_shipment_regenerate_rates.yaml | 168 +- tests/cassettes/test_shipment_retrieve.yaml | 232 +-- ...ment_retrieve_estimated_delivery_date.yaml | 220 +++ tests/cassettes/test_shipment_smart_rate.yaml | 176 +- ...test_smartrate_estimate_delivery_date.yaml | 52 +- .../test_smartrate_recommend_ship_date.yaml | 54 +- tests/cassettes/test_tracker_all.yaml | 92 +- tests/cassettes/test_tracker_create.yaml | 28 +- .../cassettes/test_tracker_get_next_page.yaml | 197 +-- tests/cassettes/test_tracker_retrieve.yaml | 54 +- tests/cassettes/test_unsubscribe_hooks.yaml | 20 +- tests/cassettes/test_user_all_children.yaml | 14 +- .../test_user_children_get_next_page.yaml | 12 +- tests/cassettes/test_user_create.yaml | 38 +- tests/cassettes/test_user_delete.yaml | 38 +- tests/cassettes/test_user_retrieve.yaml | 24 +- tests/cassettes/test_user_retrieve_me.yaml | 12 +- tests/cassettes/test_user_retrieve_no_id.yaml | 12 +- tests/cassettes/test_user_update.yaml | 24 +- tests/cassettes/test_user_update_brand.yaml | 24 +- tests/cassettes/test_webhook_all.yaml | 12 +- tests/cassettes/test_webhook_create.yaml | 28 +- tests/cassettes/test_webhook_delete.yaml | 38 +- tests/cassettes/test_webhook_retrieve.yaml | 56 +- tests/cassettes/test_webhook_update.yaml | 48 +- tests/conftest.py | 6 +- tests/test_order.py | 4 +- tests/test_referral_customer.py | 1 + tests/test_shipment.py | 10 +- 143 files changed, 8781 insertions(+), 9774 deletions(-) delete mode 100644 tests/cassettes/test_retrieve_estimated_delivery_date.yaml create mode 100644 tests/cassettes/test_shipment_retrieve_estimated_delivery_date.yaml diff --git a/tests/cassettes/test_address_all.yaml b/tests/cassettes/test_address_all.yaml index ac9f5173..57d2257d 100644 --- a/tests/cassettes/test_address_all.yaml +++ b/tests/cassettes/test_address_all.yaml @@ -16,23 +16,23 @@ interactions: uri: https://api.easypost.com/v2/addresses?page_size=5 response: body: - string: '{"addresses": [{"id": "adr_cdba15145b3f11ef936dac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", + string: '{"addresses": [{"id": "adr_d128ff74fac311efa7a7ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:47:20+00:00", "updated_at": "2025-03-06T19:47:20+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_cd8fcb275b3f11ef9363ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", "name": + {}}, {"id": "adr_d10f7a27fac311efa796ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:47:20+00:00", "updated_at": "2025-03-06T19:47:20+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, - "time_zone": "America/Los_Angeles"}}}}, {"id": "adr_cd5f77af5b3f11efb4baac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": - "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": + "time_zone": "America/Los_Angeles"}}}}, {"id": "adr_d0f2ba11fac311ef9cfd3cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:47:20+00:00", "updated_at": + "2025-03-06T19:47:20+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": @@ -40,15 +40,15 @@ interactions: [{"code": "E.ADDRESS.NOT_FOUND", "field": "address", "message": "Address not found", "suggestion": null}], "details": null}, "delivery": {"success": false, "errors": [{"code": "E.ADDRESS.NOT_FOUND", "field": "address", "message": - "Address not found", "suggestion": null}], "details": {}}}}, {"id": "adr_cd4cd5d85b3f11ef9344ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": - "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": + "Address not found", "suggestion": null}], "details": {}}}}, {"id": "adr_d0e54933fac311ef8140ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:47:20+00:00", "updated_at": + "2025-03-06T19:47:20+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, {"id": "adr_cd23a5615b3f11efa4bcac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": - "2024-08-15T19:51:45+00:00", "name": "JACK SPARROW", "company": null, "street1": + null, "state_tax_id": null, "verifications": {}}, {"id": "adr_d0ce4939fac311ef9ce63cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:47:20+00:00", "updated_at": + "2025-03-06T19:47:20+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, @@ -80,20 +80,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c52e7885da80016da29 + - 4a484c0a67c9fbc8e2b9771300188c57 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb2nuq 99aac35317 x-runtime: - - '0.039762' + - '0.033610' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create.yaml b/tests/cassettes/test_address_create.yaml index 0fc11f7c..3dc1d623 100644 --- a/tests/cassettes/test_address_create.yaml +++ b/tests/cassettes/test_address_create.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_ccb994c35b3f11efa49cac1f6bc539ae", "object": "Address", - "created_at": "2024-08-15T19:51:44+00:00", "updated_at": "2024-08-15T19:51:44+00:00", + string: '{"id": "adr_d08a1a4afac311ef9cc23cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:47:19+00:00", "updated_at": "2025-03-06T19:47:19+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -39,7 +39,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_ccb994c35b3f11efa49cac1f6bc539ae + - /api/v2/addresses/adr_d08a1a4afac311ef9cc23cecef1b359e pragma: - no-cache referrer-policy: @@ -55,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c50e7885da20016d855 + - 8e8eb62767c9fbc7e2b976f600184a4b x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.044200' + - '0.028104' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_and_verify.yaml b/tests/cassettes/test_address_create_and_verify.yaml index 7032640a..bd87afa2 100644 --- a/tests/cassettes/test_address_create_and_verify.yaml +++ b/tests/cassettes/test_address_create_and_verify.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses/create_and_verify response: body: - string: '{"address": {"id": "adr_cd8fcb275b3f11ef9363ac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", + string: '{"address": {"id": "adr_d10f7a27fac311efa796ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:47:20+00:00", "updated_at": "2025-03-06T19:47:20+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -41,7 +41,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_cd8fcb275b3f11ef9363ac1f6bc53342 + - /api/v2/addresses/adr_d10f7a27fac311efa796ac1f6bc539ae pragma: - no-cache referrer-policy: @@ -57,20 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c52e7885da60016d98e + - 8e8eb62767c9fbc8e2b9771100184b2d x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.061653' + - '0.054163' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_verify.yaml b/tests/cassettes/test_address_create_verify.yaml index 5b7c98af..85246177 100644 --- a/tests/cassettes/test_address_create_verify.yaml +++ b/tests/cassettes/test_address_create_verify.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_cce4bfd75b3f11efb492ac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", + string: '{"id": "adr_d0a11741fac311ef811eac1f6bc53342", "object": "Address", + "created_at": "2025-03-06T19:47:19+00:00", "updated_at": "2025-03-06T19:47:19+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -39,7 +39,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_cce4bfd75b3f11efb492ac1f6bc539aa + - /api/v2/addresses/adr_d0a11741fac311ef811eac1f6bc53342 pragma: - no-cache referrer-policy: @@ -55,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c51e7885da30016d89d + - 8e8eb62567c9fbc7e2b976f700184a79 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.038457' + - '0.034875' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -97,8 +97,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_ccf83e735b3f11ef932bac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", + string: '{"id": "adr_d0af7486fac311efa766ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-06T19:47:19+00:00", "updated_at": "2025-03-06T19:47:19+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -118,7 +118,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_ccf83e735b3f11ef932bac1f6bc53342 + - /api/v2/addresses/adr_d0af7486fac311efa766ac1f6bc539ae pragma: - no-cache referrer-policy: @@ -129,27 +129,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c51e7885da30016d8b7 + - 8e8eb62567c9fbc7e2b976f700184a8f x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.051776' + - '0.050675' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_verify_array.yaml b/tests/cassettes/test_address_create_verify_array.yaml index 8e6ff7ba..9ea9fa82 100644 --- a/tests/cassettes/test_address_create_verify_array.yaml +++ b/tests/cassettes/test_address_create_verify_array.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_cd4cd5d85b3f11ef9344ac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", + string: '{"id": "adr_d0e54933fac311ef8140ac1f6bc53342", "object": "Address", + "created_at": "2025-03-06T19:47:20+00:00", "updated_at": "2025-03-06T19:47:20+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -39,7 +39,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_cd4cd5d85b3f11ef9344ac1f6bc53342 + - /api/v2/addresses/adr_d0e54933fac311ef8140ac1f6bc53342 pragma: - no-cache referrer-policy: @@ -55,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c51e7885da50016d926 + - 8e8eb62767c9fbc8e2b9771000184af0 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.034182' + - '0.032329' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -97,8 +97,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_cd5f77af5b3f11efb4baac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", + string: '{"id": "adr_d0f2ba11fac311ef9cfd3cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:47:20+00:00", "updated_at": "2025-03-06T19:47:20+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -118,7 +118,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_cd5f77af5b3f11efb4baac1f6bc539aa + - /api/v2/addresses/adr_d0f2ba11fac311ef9cfd3cecef1b359e pragma: - no-cache referrer-policy: @@ -134,20 +134,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c51e7885da50016d93b + - 8e8eb62767c9fbc8e2b9771000184b02 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.068775' + - '0.049655' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_verify_strict.yaml b/tests/cassettes/test_address_create_verify_strict.yaml index bf6e836a..3b4e4009 100644 --- a/tests/cassettes/test_address_create_verify_strict.yaml +++ b/tests/cassettes/test_address_create_verify_strict.yaml @@ -23,8 +23,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_cd23a5615b3f11efa4bcac1f6bc539ae", "object": "Address", - "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", + string: '{"id": "adr_d0ce4939fac311ef9ce63cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:47:20+00:00", "updated_at": "2025-03-06T19:47:20+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -42,7 +42,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_cd23a5615b3f11efa4bcac1f6bc539ae + - /api/v2/addresses/adr_d0ce4939fac311ef9ce63cecef1b359e pragma: - no-cache referrer-policy: @@ -58,20 +58,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c51e7885da40016d8eb + - 8e8eb62967c9fbc7e2b976f800184ac4 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.076057' + - '0.064436' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_get_next_page.yaml b/tests/cassettes/test_address_get_next_page.yaml index b00dad44..f08bb832 100644 --- a/tests/cassettes/test_address_get_next_page.yaml +++ b/tests/cassettes/test_address_get_next_page.yaml @@ -16,23 +16,23 @@ interactions: uri: https://api.easypost.com/v2/addresses?page_size=5 response: body: - string: '{"addresses": [{"id": "adr_cdba15145b3f11ef936dac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", + string: '{"addresses": [{"id": "adr_d128ff74fac311efa7a7ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:47:20+00:00", "updated_at": "2025-03-06T19:47:20+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_cd8fcb275b3f11ef9363ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", "name": + {}}, {"id": "adr_d10f7a27fac311efa796ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:47:20+00:00", "updated_at": "2025-03-06T19:47:20+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, - "time_zone": "America/Los_Angeles"}}}}, {"id": "adr_cd5f77af5b3f11efb4baac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": - "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": + "time_zone": "America/Los_Angeles"}}}}, {"id": "adr_d0f2ba11fac311ef9cfd3cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:47:20+00:00", "updated_at": + "2025-03-06T19:47:20+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": @@ -40,15 +40,15 @@ interactions: [{"code": "E.ADDRESS.NOT_FOUND", "field": "address", "message": "Address not found", "suggestion": null}], "details": null}, "delivery": {"success": false, "errors": [{"code": "E.ADDRESS.NOT_FOUND", "field": "address", "message": - "Address not found", "suggestion": null}], "details": {}}}}, {"id": "adr_cd4cd5d85b3f11ef9344ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": - "2024-08-15T19:51:45+00:00", "name": null, "company": "EasyPost", "street1": + "Address not found", "suggestion": null}], "details": {}}}}, {"id": "adr_d0e54933fac311ef8140ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:47:20+00:00", "updated_at": + "2025-03-06T19:47:20+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, {"id": "adr_cd23a5615b3f11efa4bcac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": - "2024-08-15T19:51:45+00:00", "name": "JACK SPARROW", "company": null, "street1": + null, "state_tax_id": null, "verifications": {}}, {"id": "adr_d0ce4939fac311ef9ce63cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:47:20+00:00", "updated_at": + "2025-03-06T19:47:20+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": true, @@ -80,7 +80,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5c53e7885dc00016da5b + - 4a484c0c67c9fbc8e2b9771400188c7c x-frame-options: - SAMEORIGIN x-node: @@ -88,12 +88,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb2nuq 99aac35317 x-runtime: - - '0.036892' + - '0.039677' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -113,11 +113,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/addresses?before_id=adr_cd23a5615b3f11efa4bcac1f6bc539ae&page_size=5 + uri: https://api.easypost.com/v2/addresses?before_id=adr_d0ce4939fac311ef9ce63cecef1b359e&page_size=5 response: body: - string: '{"addresses": [{"id": "adr_ccf83e735b3f11ef932bac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", + string: '{"addresses": [{"id": "adr_d0af7486fac311efa766ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:47:19+00:00", "updated_at": "2025-03-06T19:47:19+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -126,27 +126,27 @@ interactions: "address", "message": "Address not found", "suggestion": null}], "details": null}, "delivery": {"success": false, "errors": [{"code": "E.ADDRESS.NOT_FOUND", "field": "address", "message": "Address not found", "suggestion": null}], - "details": {}}}}, {"id": "adr_cce4bfd75b3f11efb492ac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:51:45+00:00", "updated_at": "2024-08-15T19:51:45+00:00", + "details": {}}}}, {"id": "adr_d0a11741fac311ef811eac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:47:19+00:00", "updated_at": "2025-03-06T19:47:19+00:00", "name": null, "company": "EasyPost", "street1": "000 unknown street", "street2": null, "city": "Not A City", "state": "ZZ", "zip": "00001", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_ccb994c35b3f11efa49cac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:51:44+00:00", "updated_at": "2024-08-15T19:51:44+00:00", "name": + {}}, {"id": "adr_d08a1a4afac311ef9cc23cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:47:19+00:00", "updated_at": "2025-03-06T19:47:19+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_c59928c24ad411efbbdfac1f6bc53342", "object": "Address", "created_at": - "2024-07-25T22:25:18+00:00", "updated_at": "2024-07-25T22:25:18+00:00", "name": - "EasyPost", "company": null, "street1": "417 Montgomery Street", "street2": - "5th Floor", "city": "San Francisco", "state": "CA", "zip": "94104", "country": + {}}, {"id": "adr_fabb4013f08111efacb8ac1f6bc53342", "object": "Address", "created_at": + "2025-02-21T18:30:51+00:00", "updated_at": "2025-02-21T18:30:51+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, {"id": "adr_c5968bd74ad411efbbddac1f6bc53342", "object": "Address", "created_at": - "2024-07-25T22:25:18+00:00", "updated_at": "2024-07-25T22:26:11+00:00", "name": - "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", "street2": + {}}, {"id": "adr_fab8798ef08111ef8ca73cecef1b359e", "object": "Address", "created_at": + "2025-02-21T18:30:51+00:00", "updated_at": "2025-02-21T18:30:52+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, @@ -158,7 +158,7 @@ interactions: cache-control: - private, no-cache, no-store content-length: - - '2822' + - '2804' content-type: - application/json; charset=utf-8 expires: @@ -178,20 +178,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5c53e7885dc00016da7a + - 4a484c0c67c9fbc9e2b9771400188c94 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb2nuq 99aac35317 x-runtime: - - '0.060739' + - '0.035805' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_retrieve.yaml b/tests/cassettes/test_address_retrieve.yaml index 45fa0fe5..7a641c77 100644 --- a/tests/cassettes/test_address_retrieve.yaml +++ b/tests/cassettes/test_address_retrieve.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_cdba15145b3f11ef936dac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", + string: '{"id": "adr_d128ff74fac311efa7a7ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-06T19:47:20+00:00", "updated_at": "2025-03-06T19:47:20+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -39,7 +39,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_cdba15145b3f11ef936dac1f6bc53342 + - /api/v2/addresses/adr_d128ff74fac311efa7a7ac1f6bc539ae pragma: - no-cache referrer-policy: @@ -55,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c52e7885da70016d9cc + - 4a484c0a67c9fbc8e2b9771200188bfc x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb2nuq 99aac35317 x-runtime: - - '0.040570' + - '0.037012' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -88,11 +88,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/addresses/adr_cdba15145b3f11ef936dac1f6bc53342 + uri: https://api.easypost.com/v2/addresses/adr_d128ff74fac311efa7a7ac1f6bc539ae response: body: - string: '{"id": "adr_cdba15145b3f11ef936dac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:51:46+00:00", "updated_at": "2024-08-15T19:51:46+00:00", + string: '{"id": "adr_d128ff74fac311efa7a7ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-06T19:47:20+00:00", "updated_at": "2025-03-06T19:47:20+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -122,20 +122,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c52e7885da70016d9ec + - 4a484c0a67c9fbc8e2b9771200188c22 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb2nuq 99aac35317 x-runtime: - - '0.038448' + - '0.027362' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_verify.yaml b/tests/cassettes/test_address_verify.yaml index 33c35dee..baef9af2 100644 --- a/tests/cassettes/test_address_verify.yaml +++ b/tests/cassettes/test_address_verify.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_ce5993385b3f11ef83673cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:51:47+00:00", "updated_at": "2024-08-15T19:51:47+00:00", + string: '{"id": "adr_d188b93cfac311efbc54ac1f6bc539aa", "object": "Address", + "created_at": "2025-03-06T19:47:21+00:00", "updated_at": "2025-03-06T19:47:21+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -39,7 +39,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_ce5993385b3f11ef83673cecef1b359e + - /api/v2/addresses/adr_d188b93cfac311efbc54ac1f6bc539aa pragma: - no-cache referrer-policy: @@ -55,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c53e7885dc10016dab8 + - 4a484c1067c9fbc9e2b9771500188cc6 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb2nuq 99aac35317 x-runtime: - - '0.048450' + - '0.033082' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -88,11 +88,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/addresses/adr_ce5993385b3f11ef83673cecef1b359e/verify + uri: https://api.easypost.com/v2/addresses/adr_d188b93cfac311efbc54ac1f6bc539aa/verify response: body: - string: '{"address": {"id": "adr_ce6f49295b3f11ef83713cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:51:47+00:00", "updated_at": "2024-08-15T19:51:47+00:00", + string: '{"address": {"id": "adr_d1989bbffac311efbc56ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:47:21+00:00", "updated_at": "2025-03-06T19:47:21+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -110,7 +110,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_ce6f49295b3f11ef83713cecef1b359e + - /api/v2/addresses/adr_d1989bbffac311efbc56ac1f6bc539aa pragma: - no-cache referrer-policy: @@ -121,27 +121,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c53e7885dc10016dad2 + - 4a484c1067c9fbc9e2b9771500188ce2 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb2nuq 99aac35317 x-runtime: - - '0.067688' + - '0.056957' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_verify_invalid_address.yaml b/tests/cassettes/test_address_verify_invalid_address.yaml index a61981b5..ee621111 100644 --- a/tests/cassettes/test_address_verify_invalid_address.yaml +++ b/tests/cassettes/test_address_verify_invalid_address.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_ce9728675b3f11efb53aac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:51:47+00:00", "updated_at": "2024-08-15T19:51:47+00:00", + string: '{"id": "adr_d1b02f48fac311efa7f0ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-06T19:47:21+00:00", "updated_at": "2025-03-06T19:47:21+00:00", "name": null, "company": null, "street1": "invalid", "street2": null, "city": null, "state": null, "zip": null, "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": @@ -36,7 +36,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_ce9728675b3f11efb53aac1f6bc539aa + - /api/v2/addresses/adr_d1b02f48fac311efa7f0ac1f6bc539ae pragma: - no-cache referrer-policy: @@ -52,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c53e7885dc20016db18 + - 4a484c0a67c9fbc9e2b9771600188d17 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb2nuq 99aac35317 x-runtime: - - '0.041345' + - '0.038483' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -85,7 +85,7 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/addresses/adr_ce9728675b3f11efb53aac1f6bc539aa/verify + uri: https://api.easypost.com/v2/addresses/adr_d1b02f48fac311efa7f0ac1f6bc539ae/verify response: body: string: '{"error": {"code": "ADDRESS.VERIFY.FAILURE", "message": "Unable to @@ -116,20 +116,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c53e7885dc20016db34 + - 4a484c0a67c9fbc9e2b9771600188d2d x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb56nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb2nuq 99aac35317 x-runtime: - - '0.039869' + - '0.043378' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_all_api_keys.yaml b/tests/cassettes/test_all_api_keys.yaml index da7e143e..ef3dd0a9 100644 --- a/tests/cassettes/test_all_api_keys.yaml +++ b/tests/cassettes/test_all_api_keys.yaml @@ -64,25 +64,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c54e7885dc30016db76 + - 8e8eb62967c9fbc9e2b9771700184c80 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.119564' + - '0.075092' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_authenticated_user_api_keys.yaml b/tests/cassettes/test_authenticated_user_api_keys.yaml index eb06a4d3..7c9f3001 100644 --- a/tests/cassettes/test_authenticated_user_api_keys.yaml +++ b/tests/cassettes/test_authenticated_user_api_keys.yaml @@ -66,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c54e7885dc40016dbd6 + - 8e8eb62567c9fbc9e2b9771800184cb0 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.162949' + - '0.156923' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -155,20 +155,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c54e7885dc40016dc20 + - 8e8eb62567c9fbcae2b9771800184ced x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.083890' + - '0.084904' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_add_remove_shipment.yaml b/tests/cassettes/test_batch_add_remove_shipment.yaml index b17e6ced..f479284b 100644 --- a/tests/cassettes/test_batch_add_remove_shipment.yaml +++ b/tests/cassettes/test_batch_add_remove_shipment.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:52:07Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742114", "updated_at": "2024-08-15T19:52:08Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_da4514ed5b3f11ef89c63cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:07+00:00", "updated_at": "2024-08-15T19:52:07+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_8665a281929e486ebeb9c74de10f8474", - "object": "Parcel", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", + string: '{"id": "shp_243d43abc8d0484cbe01b684e76d20d5", "created_at": "2025-03-06T19:47:39Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109500645", "updated_at": + "2025-03-06T19:47:40Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_dca13f48fac311ef81f9ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-06T19:47:39+00:00", "updated_at": + "2025-03-06T19:47:39+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_011650c305ca44308b92d7cc35f30426", "object": + "Parcel", "created_at": "2025-03-06T19:47:39Z", "updated_at": "2025-03-06T19:47:39Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_8d6519b58dbf439593f4bbd43045a954", - "created_at": "2024-08-15T19:52:08Z", "updated_at": "2024-08-15T19:52:08Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:08Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d3a08d7159604f76b4356face3f3fd19", + "created_at": "2025-03-06T19:47:40Z", "updated_at": "2025-03-06T19:47:40Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:47:40Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e82d40dff9993e4969bc0c36487fcbe485.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e8c546c95c7af94bcab23bc8aae8819c07.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_d5fd664315504194a6837694698e6752", "object": - "Rate", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_502b242d978d402ca45ceb485dc7ae6e", "object": + "Rate", "created_at": "2025-03-06T19:47:40Z", "updated_at": "2025-03-06T19:47:40Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_10bd13e7770b4160a81718f52d75592a", - "object": "Rate", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_472e4a8870764eee818b35cf41646223", - "object": "Rate", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_243d43abc8d0484cbe01b684e76d20d5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_36fcb1e13dd54924bbadb3396b3762cc", + "object": "Rate", "created_at": "2025-03-06T19:47:40Z", "updated_at": "2025-03-06T19:47:40Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_243d43abc8d0484cbe01b684e76d20d5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1b8743bad96a42f99fbb090396865a69", + "object": "Rate", "created_at": "2025-03-06T19:47:40Z", "updated_at": "2025-03-06T19:47:40Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "carrier_account_id": + 3, "shipment_id": "shp_243d43abc8d0484cbe01b684e76d20d5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_472e4a8870764eee818b35cf41646223", "object": - "Rate", "created_at": "2024-08-15T19:52:08Z", "updated_at": "2024-08-15T19:52:08Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_1b8743bad96a42f99fbb090396865a69", "object": + "Rate", "created_at": "2025-03-06T19:47:40Z", "updated_at": "2025-03-06T19:47:40Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_3527128107a849f295312537db57b508", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742114", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:52:08Z", - "updated_at": "2024-08-15T19:52:08Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "carrier": "USPS", + 3, "shipment_id": "shp_243d43abc8d0484cbe01b684e76d20d5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_2d529ff81346463598d28ca891bce7b2", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500645", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-06T19:47:40Z", + "updated_at": "2025-03-06T19:47:40Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_243d43abc8d0484cbe01b684e76d20d5", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzM1MjcxMjgxMDdhODQ5ZjI5NTMxMjUzN2RiNTdiNTA4"}, - "to_address": {"id": "adr_da426bb15b3f11ef89c33cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:52:07+00:00", "updated_at": "2024-08-15T19:52:07+00:00", + "https://track.easypost.com/djE6dHJrXzJkNTI5ZmY4MTM0NjQ2MzU5OGQyOGNhODkxYmNlN2Iy"}, + "to_address": {"id": "adr_dc9d24b6fac311efa3153cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:47:39+00:00", "updated_at": "2025-03-06T19:47:40+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_da4514ed5b3f11ef89c63cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:52:07+00:00", "updated_at": - "2024-08-15T19:52:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_dca13f48fac311ef81f9ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-06T19:47:39+00:00", "updated_at": + "2025-03-06T19:47:39+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_da426bb15b3f11ef89c33cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:07+00:00", "updated_at": "2024-08-15T19:52:07+00:00", "name": + "adr_dc9d24b6fac311efa3153cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:47:39+00:00", "updated_at": "2025-03-06T19:47:40+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_ee945f94de8e409bb1aa5047ba4362b7", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_ee945f94de8e409bb1aa5047ba4362b7 + - /api/v2/shipments/shp_243d43abc8d0484cbe01b684e76d20d5 pragma: - no-cache referrer-policy: @@ -138,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c67e7885de30016ef23 + - 8e8eb62b67c9fbdbe2b9773600186193 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.955729' + - '0.999460' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -178,9 +178,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_65930b77e40b421c840ef7898d342583", "object": "Batch", + string: '{"id": "batch_25eeafb7c1d8478bbf67cf6c0a095b20", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 0, "reference": null, - "created_at": "2024-08-15T19:52:08Z", "updated_at": "2024-08-15T19:52:08Z", + "created_at": "2025-03-06T19:47:40Z", "updated_at": "2025-03-06T19:47:40Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -208,27 +208,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c68e7885de30016f01e + - 8e8eb62b67c9fbdce2b97736001862c9 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.036061' + - '0.034967' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"shipments": [{"id": "shp_ee945f94de8e409bb1aa5047ba4362b7"}]}' + body: '{"shipments": [{"id": "shp_243d43abc8d0484cbe01b684e76d20d5"}]}' headers: Accept: - '*/*' @@ -245,15 +245,15 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_65930b77e40b421c840ef7898d342583/add_shipments + uri: https://api.easypost.com/v2/batches/batch_25eeafb7c1d8478bbf67cf6c0a095b20/add_shipments response: body: - string: '{"id": "batch_65930b77e40b421c840ef7898d342583", "object": "Batch", + string: '{"id": "batch_25eeafb7c1d8478bbf67cf6c0a095b20", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:52:08Z", "updated_at": "2024-08-15T19:52:08Z", + "created_at": "2025-03-06T19:47:40Z", "updated_at": "2025-03-06T19:47:40Z", "scan_form": null, "shipments": [{"batch_status": "postage_purchased", "batch_message": - null, "reference": null, "tracking_code": "9400100105807075742114", "id": - "shp_ee945f94de8e409bb1aa5047ba4362b7"}], "status": {"created": 0, "queued_for_purchase": + null, "reference": null, "tracking_code": "9400100208303109500645", "id": + "shp_243d43abc8d0484cbe01b684e76d20d5"}], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 1, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -275,34 +275,32 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c68e7885de30016f03d + - 8e8eb62b67c9fbdce2b97736001862e5 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.061301' + - '0.050961' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"shipments": [{"id": "shp_ee945f94de8e409bb1aa5047ba4362b7"}]}' + body: '{"shipments": [{"id": "shp_243d43abc8d0484cbe01b684e76d20d5"}]}' headers: Accept: - '*/*' @@ -319,12 +317,12 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_65930b77e40b421c840ef7898d342583/remove_shipments + uri: https://api.easypost.com/v2/batches/batch_25eeafb7c1d8478bbf67cf6c0a095b20/remove_shipments response: body: - string: '{"id": "batch_65930b77e40b421c840ef7898d342583", "object": "Batch", + string: '{"id": "batch_25eeafb7c1d8478bbf67cf6c0a095b20", "object": "Batch", "mode": "test", "state": "purchased", "num_shipments": 0, "reference": null, - "created_at": "2024-08-15T19:52:08Z", "updated_at": "2024-08-15T19:52:08Z", + "created_at": "2025-03-06T19:47:40Z", "updated_at": "2025-03-06T19:47:41Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -352,20 +350,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c68e7885de30016f061 + - 8e8eb62b67c9fbdde2b9773600186330 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.048042' + - '0.036024' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_all.yaml b/tests/cassettes/test_batch_all.yaml index 520642f8..7d026910 100644 --- a/tests/cassettes/test_batch_all.yaml +++ b/tests/cassettes/test_batch_all.yaml @@ -16,18 +16,18 @@ interactions: uri: https://api.easypost.com/v2/batches?page_size=5 response: body: - string: '{"batches": [{"id": "batch_9625876b0898464d836e558515b16740", "object": + string: '{"batches": [{"id": "batch_714d7667a73f450eb169b20c1425c6a2", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": - null, "created_at": "2024-08-15T19:51:50Z", "updated_at": "2024-08-15T19:51:50Z", + null, "created_at": "2025-03-06T19:47:23Z", "updated_at": "2025-03-06T19:47:23Z", "scan_form": null, "shipments": [{"batch_status": "created", "batch_message": - null, "reference": null, "tracking_code": null, "id": "shp_91ac92eaf06f41b4b2132204da2eb503"}], + null, "reference": null, "tracking_code": null, "id": "shp_18722621622046f48c2314f4624c5746"}], "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}, {"id": - "batch_32691a0c325b45238d1db58966e2278d", "object": "Batch", "mode": "test", - "state": "created", "num_shipments": 1, "reference": null, "created_at": "2024-08-15T19:51:50Z", - "updated_at": "2024-08-15T19:51:50Z", "scan_form": null, "shipments": [{"batch_status": + "batch_af1a8a3cfc1f444d961e620e2ade0f7a", "object": "Batch", "mode": "test", + "state": "created", "num_shipments": 1, "reference": null, "created_at": "2025-03-06T19:47:23Z", + "updated_at": "2025-03-06T19:47:23Z", "scan_form": null, "shipments": [{"batch_status": "created", "batch_message": null, "reference": null, "tracking_code": null, - "id": "shp_2b8babfdb1db4aa0b1a317b07dc7a75b"}], "status": {"created": 1, "queued_for_purchase": + "id": "shp_60e1b0b799e74382b16366ba261282f3"}], "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}], "has_more": false}' headers: @@ -54,20 +54,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5c56e7885dc80016de68 + - 8e8eb62967c9fbcbe2b9773300184edf x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.162436' + - '0.156418' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_buy.yaml b/tests/cassettes/test_batch_buy.yaml index bef167c0..7e891085 100644 --- a/tests/cassettes/test_batch_buy.yaml +++ b/tests/cassettes/test_batch_buy.yaml @@ -27,9 +27,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_2444a8b73c5c4c029a866026e9fc572f", "object": "Batch", + string: '{"id": "batch_a3e18200e5104896874b4af64a3dde38", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:51:51Z", "updated_at": "2024-08-15T19:51:51Z", + "created_at": "2025-03-06T19:47:24Z", "updated_at": "2025-03-06T19:47:24Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -52,25 +52,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c57e7885dc90016dee9 + - 8e8eb62667c9fbcce2b9773400184f42 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.044247' + - '0.048992' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -94,14 +96,14 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_2444a8b73c5c4c029a866026e9fc572f/buy + uri: https://api.easypost.com/v2/batches/batch_a3e18200e5104896874b4af64a3dde38/buy response: body: - string: '{"id": "batch_2444a8b73c5c4c029a866026e9fc572f", "object": "Batch", + string: '{"id": "batch_a3e18200e5104896874b4af64a3dde38", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:51:51Z", "updated_at": "2024-08-15T19:51:51Z", + "created_at": "2025-03-06T19:47:24Z", "updated_at": "2025-03-06T19:47:24Z", "scan_form": null, "shipments": [{"batch_status": "queued_for_purchase", "batch_message": - null, "reference": null, "tracking_code": null, "id": "shp_41845d2896cf40748c634c22f09cc99a"}], + null, "reference": null, "tracking_code": null, "id": "shp_fd3accc750604a3c9fa45e16b61af49b"}], "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -128,20 +130,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c5ce7885dc90016e3ac + - 8e8eb62667c9fbd1e2b97734001855c5 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.052116' + - '0.050381' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_create.yaml b/tests/cassettes/test_batch_create.yaml index a78b40d7..8a83a47e 100644 --- a/tests/cassettes/test_batch_create.yaml +++ b/tests/cassettes/test_batch_create.yaml @@ -27,9 +27,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_9625876b0898464d836e558515b16740", "object": "Batch", + string: '{"id": "batch_714d7667a73f450eb169b20c1425c6a2", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:51:50Z", "updated_at": "2024-08-15T19:51:50Z", + "created_at": "2025-03-06T19:47:23Z", "updated_at": "2025-03-06T19:47:23Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -57,20 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5c56e7885dc60016dda8 + - 8e8eb62a67c9fbcbe2b9773100184e69 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.049022' + - '0.040101' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_create_scanform.yaml b/tests/cassettes/test_batch_create_scanform.yaml index 6b87b3d9..01394a69 100644 --- a/tests/cassettes/test_batch_create_scanform.yaml +++ b/tests/cassettes/test_batch_create_scanform.yaml @@ -27,9 +27,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_180b18530ca245ab824169b73b26ae6f", "object": "Batch", + string: '{"id": "batch_79b95699e2644f198db68d1824c11497", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:51:56Z", "updated_at": "2024-08-15T19:51:56Z", + "created_at": "2025-03-06T19:47:29Z", "updated_at": "2025-03-06T19:47:29Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -57,20 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c5ce7885de20016e3f8 + - 8e8eb62967c9fbd1e2b97735001855fc x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.046928' + - '0.038535' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -94,14 +94,14 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_180b18530ca245ab824169b73b26ae6f/buy + uri: https://api.easypost.com/v2/batches/batch_79b95699e2644f198db68d1824c11497/buy response: body: - string: '{"id": "batch_180b18530ca245ab824169b73b26ae6f", "object": "Batch", + string: '{"id": "batch_79b95699e2644f198db68d1824c11497", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:51:56Z", "updated_at": "2024-08-15T19:51:56Z", + "created_at": "2025-03-06T19:47:29Z", "updated_at": "2025-03-06T19:47:29Z", "scan_form": null, "shipments": [{"batch_status": "queued_for_purchase", "batch_message": - null, "reference": null, "tracking_code": null, "id": "shp_7b5d36f7235a42e99bdb23f099fd2aa6"}], + null, "reference": null, "tracking_code": null, "id": "shp_042b8633dd58412899313410cd5ad5a7"}], "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -128,20 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c61e7885de20016e929 + - 8e8eb62967c9fbd6e2b9773500185b86 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.056810' + - '0.051630' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -165,19 +165,19 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_180b18530ca245ab824169b73b26ae6f/scan_form + uri: https://api.easypost.com/v2/batches/batch_79b95699e2644f198db68d1824c11497/scan_form response: body: - string: '{"id": "batch_180b18530ca245ab824169b73b26ae6f", "object": "Batch", + string: '{"id": "batch_79b95699e2644f198db68d1824c11497", "object": "Batch", "mode": "test", "state": "purchased", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:51:56Z", "updated_at": "2024-08-15T19:52:07Z", - "scan_form": {"id": "sf_096c54c7ff404b06b6bab4b1087f3f52", "object": "ScanForm", - "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", + "created_at": "2025-03-06T19:47:29Z", "updated_at": "2025-03-06T19:47:39Z", + "scan_form": {"id": "sf_a1082a2498034042a96617a8d79ff0c4", "object": "ScanForm", + "created_at": "2025-03-06T19:47:39Z", "updated_at": "2025-03-06T19:47:39Z", "tracking_codes": [], "address": null, "status": "creating", "message": null, - "form_url": null, "form_file_type": null, "batch_id": "batch_180b18530ca245ab824169b73b26ae6f", + "form_url": null, "form_file_type": null, "batch_id": "batch_79b95699e2644f198db68d1824c11497", "confirmation": null}, "shipments": [{"batch_status": "postage_purchased", - "batch_message": null, "reference": null, "tracking_code": "9400100105807075742053", - "id": "shp_7b5d36f7235a42e99bdb23f099fd2aa6"}], "status": {"created": 0, "queued_for_purchase": + "batch_message": null, "reference": null, "tracking_code": "9400100208303109500638", + "id": "shp_042b8633dd58412899313410cd5ad5a7"}], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 1, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -204,20 +204,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c67e7885de20016eebc + - 8e8eb62967c9fbdbe2b9773500186158 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb56nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.102529' + - '0.072810' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_label.yaml b/tests/cassettes/test_batch_label.yaml index 2e1d67cd..13ffcda8 100644 --- a/tests/cassettes/test_batch_label.yaml +++ b/tests/cassettes/test_batch_label.yaml @@ -27,9 +27,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_001d59925fc04776b0279ab6f4ef6774", "object": "Batch", + string: '{"id": "batch_b09f402edaf0429491cc25c2d0c3238a", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:52:09Z", "updated_at": "2024-08-15T19:52:09Z", + "created_at": "2025-03-06T19:47:41Z", "updated_at": "2025-03-06T19:47:41Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -57,20 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c68e7885de40016f0a9 + - 8e8eb62b67c9fbdde2b977370018636c x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.044697' + - '0.043385' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -94,14 +94,14 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_001d59925fc04776b0279ab6f4ef6774/buy + uri: https://api.easypost.com/v2/batches/batch_b09f402edaf0429491cc25c2d0c3238a/buy response: body: - string: '{"id": "batch_001d59925fc04776b0279ab6f4ef6774", "object": "Batch", + string: '{"id": "batch_b09f402edaf0429491cc25c2d0c3238a", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:52:09Z", "updated_at": "2024-08-15T19:52:09Z", + "created_at": "2025-03-06T19:47:41Z", "updated_at": "2025-03-06T19:47:41Z", "scan_form": null, "shipments": [{"batch_status": "queued_for_purchase", "batch_message": - null, "reference": null, "tracking_code": null, "id": "shp_717bd6cd1eaa4d078b4978a6d9457eda"}], + null, "reference": null, "tracking_code": null, "id": "shp_597cb548f2fc49a59bcb5f735e518718"}], "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -128,20 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c6ee7885de40016f5fb + - 8e8eb62b67c9fbe2e2b9773700186893 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.057053' + - '0.054727' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -165,15 +165,15 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_001d59925fc04776b0279ab6f4ef6774/label + uri: https://api.easypost.com/v2/batches/batch_b09f402edaf0429491cc25c2d0c3238a/label response: body: - string: '{"id": "batch_001d59925fc04776b0279ab6f4ef6774", "object": "Batch", + string: '{"id": "batch_b09f402edaf0429491cc25c2d0c3238a", "object": "Batch", "mode": "test", "state": "label_generating", "num_shipments": 1, "reference": - null, "created_at": "2024-08-15T19:52:09Z", "updated_at": "2024-08-15T19:52:19Z", + null, "created_at": "2025-03-06T19:47:41Z", "updated_at": "2025-03-06T19:47:51Z", "scan_form": null, "shipments": [{"batch_status": "postage_purchased", "batch_message": - null, "reference": null, "tracking_code": "9400100105807075742206", "id": - "shp_717bd6cd1eaa4d078b4978a6d9457eda"}], "status": {"created": 0, "queued_for_purchase": + null, "reference": null, "tracking_code": "9400100208303109500652", "id": + "shp_597cb548f2fc49a59bcb5f735e518718"}], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 1, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -200,20 +200,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c73e7885de40016fb0f + - 8e8eb62b67c9fbe7e2b9773700186dc6 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.040979' + - '0.035757' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_retrieve.yaml b/tests/cassettes/test_batch_retrieve.yaml index cf969ab5..b8b83d08 100644 --- a/tests/cassettes/test_batch_retrieve.yaml +++ b/tests/cassettes/test_batch_retrieve.yaml @@ -27,9 +27,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_32691a0c325b45238d1db58966e2278d", "object": "Batch", + string: '{"id": "batch_af1a8a3cfc1f444d961e620e2ade0f7a", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:51:50Z", "updated_at": "2024-08-15T19:51:50Z", + "created_at": "2025-03-06T19:47:23Z", "updated_at": "2025-03-06T19:47:23Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -57,20 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c56e7885dc70016de0a + - 8e8eb62667c9fbcbe2b9773200184e8d x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.052864' + - '0.042310' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -90,21 +90,20 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/batches/batch_32691a0c325b45238d1db58966e2278d + uri: https://api.easypost.com/v2/batches/batch_af1a8a3cfc1f444d961e620e2ade0f7a response: body: - string: '{"id": "batch_32691a0c325b45238d1db58966e2278d", "object": "Batch", + string: '{"id": "batch_af1a8a3cfc1f444d961e620e2ade0f7a", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:51:50Z", "updated_at": "2024-08-15T19:51:50Z", - "scan_form": null, "shipments": [{"batch_status": "created", "batch_message": - null, "reference": null, "tracking_code": null, "id": "shp_2b8babfdb1db4aa0b1a317b07dc7a75b"}], - "status": {"created": 1, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": - 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' + "created_at": "2025-03-06T19:47:23Z", "updated_at": "2025-03-06T19:47:23Z", + "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": + 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": + 0}, "pickup": null, "label_url": null}' headers: cache-control: - private, no-cache, no-store content-length: - - '513' + - '384' content-type: - application/json; charset=utf-8 expires: @@ -119,25 +118,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c56e7885dc70016de2d + - 8e8eb62667c9fbcbe2b9773200184ea8 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.027417' + - '0.023351' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_beta_get_lowest_stateless_rate.yaml b/tests/cassettes/test_beta_get_lowest_stateless_rate.yaml index 5f674615..62fcd32a 100644 --- a/tests/cassettes/test_beta_get_lowest_stateless_rate.yaml +++ b/tests/cassettes/test_beta_get_lowest_stateless_rate.yaml @@ -32,47 +32,29 @@ interactions: "to_address": {"object": "Address", "name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": ""}, "rates": [{"object": - "Rate", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": - "5.93", "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", - "list_rate": "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": - "Rate", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "Rate", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": "Rate", "mode": "test", "service": "Priority", "carrier": "USPS", "rate": - "6.90", "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", - "list_rate": "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "7.42", "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", + "list_rate": "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "options": + 2, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": + "Rate", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": + "6.07", "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", + "list_rate": "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "parcel": {"object": "Parcel", "length": 10.0, "width": 8.0, "height": 4.0, "weight": - 15.4}, "messages": [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "Invalid credentials"}]}' + 15.4}, "messages": []}' headers: cache-control: - private, no-cache, no-store content-length: - - '3184' + - '1705' content-type: - application/json; charset=utf-8 expires: @@ -94,7 +76,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c74e7885e030016fcc2 + - 8e8eb62a67c9fbe8e2b9777600186e36 x-frame-options: - SAMEORIGIN x-node: @@ -102,12 +84,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.651300' + - '0.116136' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_beta_referral_customer_add_payment_method.yaml b/tests/cassettes/test_beta_referral_customer_add_payment_method.yaml index b8bc704c..fb9a31a3 100644 --- a/tests/cassettes/test_beta_referral_customer_add_payment_method.yaml +++ b/tests/cassettes/test_beta_referral_customer_add_payment_method.yaml @@ -49,7 +49,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c75e7885e040016fda7 + - 8e8eb62967c9fbe8e2b9777700186e76 x-frame-options: - SAMEORIGIN x-node: @@ -57,12 +57,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.045661' + - '0.036253' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_beta_referral_customer_refund_by_amount.yaml b/tests/cassettes/test_beta_referral_customer_refund_by_amount.yaml index 59ad4d35..c1c307a2 100644 --- a/tests/cassettes/test_beta_referral_customer_refund_by_amount.yaml +++ b/tests/cassettes/test_beta_referral_customer_refund_by_amount.yaml @@ -49,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c76e7885e050016fdf8 + - 8e8eb62b67c9fbe8e2b9777800186e8e x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.429417' + - '0.492218' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_beta_referral_customer_refund_by_payment_log.yaml b/tests/cassettes/test_beta_referral_customer_refund_by_payment_log.yaml index d1621158..b45aa98f 100644 --- a/tests/cassettes/test_beta_referral_customer_refund_by_payment_log.yaml +++ b/tests/cassettes/test_beta_referral_customer_refund_by_payment_log.yaml @@ -48,7 +48,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c76e7885e060016fe97 + - 8e8eb62667c9fbe9e2b9777900186f3c x-frame-options: - SAMEORIGIN x-node: @@ -56,12 +56,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.027168' + - '0.029665' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_beta_retrieve_stateless_rates.yaml b/tests/cassettes/test_beta_retrieve_stateless_rates.yaml index 109312ea..e8cdc8ba 100644 --- a/tests/cassettes/test_beta_retrieve_stateless_rates.yaml +++ b/tests/cassettes/test_beta_retrieve_stateless_rates.yaml @@ -32,47 +32,29 @@ interactions: "to_address": {"object": "Address", "name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": ""}, "rates": [{"object": + "Rate", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": "Rate", "mode": "test", "service": "Priority", "carrier": "USPS", "rate": - "6.90", "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", - "list_rate": "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "7.42", "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", + "list_rate": "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": "Rate", "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": - "5.93", "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", - "list_rate": "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "6.07", "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", + "list_rate": "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"object": - "Rate", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "options": + 3, "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "parcel": {"object": "Parcel", "length": 10.0, "width": 8.0, "height": 4.0, "weight": - 15.4}, "messages": [{"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}]}' + 15.4}, "messages": []}' headers: cache-control: - private, no-cache, no-store content-length: - - '3184' + - '1705' content-type: - application/json; charset=utf-8 expires: @@ -89,27 +71,25 @@ interactions: - Origin x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c73e7885e020016fb4f + - 8e8eb62767c9fbe7e2b9777500186df3 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '1.168649' + - '0.109833' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_all.yaml b/tests/cassettes/test_carrier_account_all.yaml index efb77b90..74b57ac9 100644 --- a/tests/cassettes/test_carrier_account_all.yaml +++ b/tests/cassettes/test_carrier_account_all.yaml @@ -20,72 +20,12 @@ interactions: "type": "UspsAccount", "clone": false, "created_at": "2017-03-01T03:01:34Z", "updated_at": "2018-08-09T02:45:22Z", "description": "USPS Account", "reference": null, "billing_type": "easypost", "readable": "USPS", "logo": null, "fields": - [], "credentials": {}, "test_credentials": {}}, {"id": "ca_05ab5a0345634187b52daaf787aa4cd0", - "object": "CarrierAccount", "type": "LsoDefaultAccount", "clone": false, "created_at": - "2022-04-26T16:58:59Z", "updated_at": "2022-04-26T16:58:59Z", "description": - "LSO Account", "reference": null, "billing_type": "easypost", "readable": - "LSO", "logo": null, "fields": [], "credentials": {}, "test_credentials": - {}}, {"id": "ca_d38ae88b6edb48ed93c0a16ed068215b", "object": "CarrierAccount", - "type": "DhlExpressDefaultAccount", "clone": false, "created_at": "2022-04-26T16:59:02Z", - "updated_at": "2022-04-26T16:59:02Z", "description": "DHL Express Account", - "reference": null, "billing_type": "easypost", "readable": "DHL Express", - "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "object": "CarrierAccount", "type": - "DhlEcsAccount", "clone": false, "created_at": "2022-08-15T18:51:36Z", "updated_at": - "2022-08-15T18:51:36Z", "description": "DHL eCommerce Solutions Account", - "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", - "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "object": "CarrierAccount", "type": - "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:15:15Z", "updated_at": - "2023-05-12T21:15:15Z", "description": "DHL eCommerce Solutions Account", - "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", - "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": - "ca_99007e1aeb66421faf82676f1199481e", "object": "CarrierAccount", "type": - "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:15:15Z", "updated_at": - "2023-05-12T21:15:15Z", "description": "DHL eCommerce Solutions Account", - "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", - "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "object": "CarrierAccount", "type": - "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:15:16Z", "updated_at": - "2023-05-12T21:15:16Z", "description": "DHL eCommerce Solutions Account", - "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", - "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": - "ca_b1a0a1bc45844159812e0224d53948ea", "object": "CarrierAccount", "type": - "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:15:16Z", "updated_at": - "2023-05-12T21:15:16Z", "description": "DHL eCommerce Solutions Account", - "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", - "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": - "ca_c7b4cfaf671b4984b84023d77561394a", "object": "CarrierAccount", "type": - "DhlEcsAccount", "clone": false, "created_at": "2023-05-12T21:18:18Z", "updated_at": - "2023-05-12T21:18:18Z", "description": "DHL eCommerce Solutions Account", - "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", - "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "object": "CarrierAccount", "type": - "DhlEcsAccount", "clone": false, "created_at": "2024-01-19T23:38:29Z", "updated_at": - "2024-01-19T23:38:30Z", "description": "My custom description", "reference": - null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", "logo": - null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": "ca_4f4f19e3b533485296d62721584e096d", - "object": "CarrierAccount", "type": "UpsAccount", "clone": false, "created_at": - "2024-07-09T17:02:57Z", "updated_at": "2024-07-09T17:02:57Z", "description": - null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": - null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "object": "CarrierAccount", "type": "UpsAccount", "clone": false, "created_at": - "2024-07-09T17:07:29Z", "updated_at": "2024-07-09T17:07:29Z", "description": - null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": - null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "object": "CarrierAccount", "type": "UpsAccount", "clone": false, "created_at": - "2024-07-09T17:07:53Z", "updated_at": "2024-07-09T17:07:53Z", "description": - null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": - null, "fields": [], "credentials": {}, "test_credentials": {}}, {"id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "object": "CarrierAccount", "type": "UpsAccount", "clone": false, "created_at": - "2024-07-09T17:19:51Z", "updated_at": "2024-07-09T17:19:51Z", "description": - null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": - null, "fields": [], "credentials": {}, "test_credentials": {}}]' + [], "credentials": {}, "test_credentials": {}}]' headers: cache-control: - private, no-cache, no-store content-length: - - '17657' + - '1068' content-type: - application/json; charset=utf-8 expires: @@ -105,20 +45,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c78e7885e090016ffc6 + - 8e8eb62867c9fbe9e2b9777c0018702a x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.186058' + - '0.036109' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_create.yaml b/tests/cassettes/test_carrier_account_create.yaml index 3021d79b..1efdf479 100644 --- a/tests/cassettes/test_carrier_account_create.yaml +++ b/tests/cassettes/test_carrier_account_create.yaml @@ -23,17 +23,16 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: '{"id": "ca_0b7c75baca1447d69713754791b2f745", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:23Z", - "updated_at": "2024-08-15T19:52:23Z", "description": "DHL eCommerce Solutions - Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce - Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": - {}}' + string: '{"id": "ca_b3b0ce644621411badf5c1fb5bd388df", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2025-03-06T19:47:53Z", + "updated_at": "2025-03-06T19:47:53Z", "description": "DHL eCommerce Account", + "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce", + "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1469' + - '1369' content-type: - application/json; charset=utf-8 expires: @@ -53,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c77e7885e070016fede + - 8e8eb62567c9fbe9e2b9777a00186f6d x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.067667' + - '0.153005' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -88,7 +87,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_0b7c75baca1447d69713754791b2f745 + uri: https://api.easypost.com/v2/carrier_accounts/ca_b3b0ce644621411badf5c1fb5bd388df response: body: string: '{}' @@ -116,20 +115,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c77e7885e070016ff00 + - 8e8eb62567c9fbe9e2b9777a00186fa1 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.069825' + - '0.054696' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_create_ups.yaml b/tests/cassettes/test_carrier_account_create_ups.yaml index 6d5457cb..978a3d6c 100644 --- a/tests/cassettes/test_carrier_account_create_ups.yaml +++ b/tests/cassettes/test_carrier_account_create_ups.yaml @@ -20,16 +20,16 @@ interactions: uri: https://api.easypost.com/v2/ups_oauth_registrations response: body: - string: '{"id": "ca_3f5c0e3f2a314961af6803e884adf015", "object": "CarrierAccount", - "type": "UpsAccount", "clone": false, "created_at": "2024-08-15T19:52:26Z", - "updated_at": "2024-08-15T19:52:26Z", "description": null, "reference": null, + string: '{"id": "ca_47c106e98d8442018f3712e8e1e9bf32", "object": "CarrierAccount", + "type": "UpsAccount", "clone": false, "created_at": "2025-03-06T19:47:55Z", + "updated_at": "2025-03-06T19:47:55Z", "description": null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1428' + - '1412' content-type: - application/json; charset=utf-8 expires: @@ -49,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c7ae7885e25001701f8 + - 8e8eb62967c9fbebe2b97a8f001871de x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.099510' + - '0.077926' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -84,7 +84,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_3f5c0e3f2a314961af6803e884adf015 + uri: https://api.easypost.com/v2/carrier_accounts/ca_47c106e98d8442018f3712e8e1e9bf32 response: body: string: '{}' @@ -112,20 +112,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c7ae7885e2500170220 + - 8e8eb62967c9fbebe2b97a8f001871fe x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.065143' + - '0.067735' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_create_with_custom_workflow.yaml b/tests/cassettes/test_carrier_account_create_with_custom_workflow.yaml index 66789556..1ce9def1 100644 --- a/tests/cassettes/test_carrier_account_create_with_custom_workflow.yaml +++ b/tests/cassettes/test_carrier_account_create_with_custom_workflow.yaml @@ -63,7 +63,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c79e7885e240017019f + - 8e8eb62c67c9fbebe2b97a8e001871b4 x-frame-options: - SAMEORIGIN x-node: @@ -71,12 +71,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.022580' + - '0.019066' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_delete.yaml b/tests/cassettes/test_carrier_account_delete.yaml index 8c4d0d54..0f621e5d 100644 --- a/tests/cassettes/test_carrier_account_delete.yaml +++ b/tests/cassettes/test_carrier_account_delete.yaml @@ -23,17 +23,16 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: '{"id": "ca_2af5dff755c247d6bab02b57c4d4f108", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:25Z", - "updated_at": "2024-08-15T19:52:25Z", "description": "DHL eCommerce Solutions - Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce - Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": - {}}' + string: '{"id": "ca_2db7b102d7384c6580f7c1a33cc6ab09", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2025-03-06T19:47:54Z", + "updated_at": "2025-03-06T19:47:54Z", "description": "DHL eCommerce Account", + "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce", + "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1469' + - '1369' content-type: - application/json; charset=utf-8 expires: @@ -53,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c79e7885e0b001700ec + - 8e8eb62767c9fbeae2b97a8c0018710a x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.068937' + - '0.179585' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -88,7 +87,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_2af5dff755c247d6bab02b57c4d4f108 + uri: https://api.easypost.com/v2/carrier_accounts/ca_2db7b102d7384c6580f7c1a33cc6ab09 response: body: string: '{}' @@ -116,20 +115,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c79e7885e0b0017010d + - 8e8eb62767c9fbeae2b97a8c00187148 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.057958' + - '0.052865' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_retrieve.yaml b/tests/cassettes/test_carrier_account_retrieve.yaml index 844d7607..576a2b4d 100644 --- a/tests/cassettes/test_carrier_account_retrieve.yaml +++ b/tests/cassettes/test_carrier_account_retrieve.yaml @@ -23,17 +23,16 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: '{"id": "ca_ebd53e94cdee405c8fe2c97d9d270339", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:23Z", - "updated_at": "2024-08-15T19:52:23Z", "description": "DHL eCommerce Solutions - Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce - Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": - {}}' + string: '{"id": "ca_0d2084c8bd8a483eb7cf30adf83ca4ed", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2025-03-06T19:47:53Z", + "updated_at": "2025-03-06T19:47:53Z", "description": "DHL eCommerce Account", + "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce", + "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1469' + - '1369' content-type: - application/json; charset=utf-8 expires: @@ -48,25 +47,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c77e7885e080016ff56 + - 8e8eb62967c9fbe9e2b9777b00186fcf x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.076086' + - '0.060555' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -86,20 +87,19 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/carrier_accounts/ca_ebd53e94cdee405c8fe2c97d9d270339 + uri: https://api.easypost.com/v2/carrier_accounts/ca_0d2084c8bd8a483eb7cf30adf83ca4ed response: body: - string: '{"id": "ca_ebd53e94cdee405c8fe2c97d9d270339", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:23Z", - "updated_at": "2024-08-15T19:52:23Z", "description": "DHL eCommerce Solutions - Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce - Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": - {}}' + string: '{"id": "ca_0d2084c8bd8a483eb7cf30adf83ca4ed", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2025-03-06T19:47:53Z", + "updated_at": "2025-03-06T19:47:53Z", "description": "DHL eCommerce Account", + "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce", + "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1469' + - '1369' content-type: - application/json; charset=utf-8 expires: @@ -119,20 +119,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c77e7885e080016ff76 + - 8e8eb62967c9fbe9e2b9777b00186fe9 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.034043' + - '0.029009' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -154,7 +154,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_ebd53e94cdee405c8fe2c97d9d270339 + uri: https://api.easypost.com/v2/carrier_accounts/ca_0d2084c8bd8a483eb7cf30adf83ca4ed response: body: string: '{}' @@ -177,27 +177,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c77e7885e080016ff8e + - 8e8eb62967c9fbe9e2b9777b00187004 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.055738' + - '0.053419' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_type.yaml b/tests/cassettes/test_carrier_account_type.yaml index 21ea4678..2ca1f976 100644 --- a/tests/cassettes/test_carrier_account_type.yaml +++ b/tests/cassettes/test_carrier_account_type.yaml @@ -16,9 +16,12 @@ interactions: uri: https://api.easypost.com/v2/carrier_types response: body: - string: '[{"object": "CarrierType", "type": "AccurateAccount", "readable": "Accurate", - "logo": null, "fields": []}, {"object": "CarrierType", "type": "AmazonMwsAccount", - "readable": "Amazon MWS", "logo": null, "fields": []}, {"object": "CarrierType", + string: '[{"object": "CarrierType", "type": "UpsAccount", "readable": "UPS", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "UpsMailInnovationsAccount", + "readable": "UPS Mail Innovations", "logo": null, "fields": []}, {"object": + "CarrierType", "type": "AccurateAccount", "readable": "Accurate", "logo": + null, "fields": []}, {"object": "CarrierType", "type": "AmazonShippingAccount", + "readable": "Amazon Shipping", "logo": null, "fields": []}, {"object": "CarrierType", "type": "ApcAccount", "readable": "APC", "logo": null, "fields": []}, {"object": "CarrierType", "type": "AsendiaUsaAccount", "readable": "Asendia USA", "logo": null, "fields": []}, {"object": "CarrierType", "type": "AustraliaPostAccount", @@ -39,10 +42,10 @@ interactions: "readable": "Deliver-It", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DeutschePostUKAccount", "readable": "Deutsche Post UK", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DhlEcsAccount", "readable": - "DHL eCommerce Solutions", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "DhlExpressAccount", "readable": "DHL Express", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "DhlPaketAccount", "readable": "DHL - Paket", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DhlParcelAccount", + "DHL eCommerce", "logo": null, "fields": []}, {"object": "CarrierType", "type": + "DhlExpressAccount", "readable": "DHL Express", "logo": null, "fields": []}, + {"object": "CarrierType", "type": "DhlPaketAccount", "readable": "DHL Paket", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "DhlParcelAccount", "readable": "DHL Parcel", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DoorDashAccount", "readable": "DoorDash", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DouglasAccount", "readable": "Douglas", @@ -50,15 +53,14 @@ interactions: "readable": "DPD", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DpdUkAccount", "readable": "DPD UK", "logo": null, "fields": []}, {"object": "CarrierType", "type": "DpdNlAccount", "readable": "DPD NL", "logo": - null, "fields": []}, {"object": "CarrierType", "type": "EPostGlobalV2Account", - "readable": "EPost Global V2", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "EstafetaAccount", "readable": "Estafeta", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "FedexAccount", "readable": "FedEx", - "logo": null, "fields": []}, {"object": "CarrierType", "type": "FedexCrossBorderAccount", - "readable": "FedEx Cross Border", "logo": null, "fields": []}, {"object": - "CarrierType", "type": "FedexMailviewAccount", "readable": "FedEx MailView", - "logo": null, "fields": []}, {"object": "CarrierType", "type": "FedexSmartpostAccount", - "readable": "FedEx SmartPost", "logo": null, "fields": []}, {"object": "CarrierType", + null, "fields": []}, {"object": "CarrierType", "type": "EstafetaAccount", + "readable": "Estafeta", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "FedexAccount", "readable": "FedEx", "logo": null, "fields": []}, + {"object": "CarrierType", "type": "FedexCrossBorderAccount", "readable": "FedEx + Cross Border", "logo": null, "fields": []}, {"object": "CarrierType", "type": + "FedexMailviewAccount", "readable": "FedEx MailView", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "FedexSmartpostAccount", "readable": + "FedEx SmartPost", "logo": null, "fields": []}, {"object": "CarrierType", "type": "FirstChoiceAccount", "readable": "First Choice", "logo": null, "fields": []}, {"object": "CarrierType", "type": "FirstMileConciseAccount", "readable": "First Mile", "logo": null, "fields": []}, {"object": "CarrierType", "type": @@ -77,50 +79,47 @@ interactions: "LaserShipV2", "logo": null, "fields": []}, {"object": "CarrierType", "type": "LoomisExpressAccount", "readable": "Loomis Express", "logo": null, "fields": []}, {"object": "CarrierType", "type": "LsoAccount", "readable": "LSO", "logo": - null, "fields": []}, {"object": "CarrierType", "type": "OmniParcelAccount", + null, "fields": []}, {"object": "CarrierType", "type": "MaerskAccount", "readable": + "Maersk", "logo": null, "fields": []}, {"object": "CarrierType", "type": "OmniParcelAccount", "readable": "OmniParcel", "logo": null, "fields": []}, {"object": "CarrierType", "type": "OntracAccount", "readable": "OnTrac", "logo": null, "fields": []}, {"object": "CarrierType", "type": "OntracV3Account", "readable": "OnTrac V3", "logo": null, "fields": []}, {"object": "CarrierType", "type": "OptimaAccount", "readable": "Optima", "logo": null, "fields": []}, {"object": "CarrierType", "type": "OsmWorldwideAccount", "readable": "OSM Worldwide", "logo": null, - "fields": []}, {"object": "CarrierType", "type": "PandionAccount", "readable": - "Pandion", "logo": null, "fields": []}, {"object": "CarrierType", "type": - "ParcelForceAccount", "readable": "Parcel Force", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "ParcllAccount", "readable": "Cirro - E-Commerce", "logo": null, "fields": []}, {"object": "CarrierType", "type": - "PassportGlobalAccount", "readable": "Passport Global", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "PurolatorAccount", "readable": "Purolator", - "logo": null, "fields": []}, {"object": "CarrierType", "type": "QuickAccount", - "readable": "Quick", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "RoyalMailAccount", "readable": "Royal Mail", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "RRDonnelleyAccount", "readable": "ePost - Global", "logo": null, "fields": []}, {"object": "CarrierType", "type": "SendleAccount", - "readable": "Sendle", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "SfExpressAccount", "readable": "SF Express", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "SmartKargoAccount", "readable": "SmartKargo", - "logo": null, "fields": []}, {"object": "CarrierType", "type": "SonicAccount", - "readable": "Sonic", "logo": null, "fields": []}, {"object": "CarrierType", + "fields": []}, {"object": "CarrierType", "type": "ParcelForceAccount", "readable": + "Parcel Force", "logo": null, "fields": []}, {"object": "CarrierType", "type": + "ParcllAccount", "readable": "Cirro E-Commerce", "logo": null, "fields": []}, + {"object": "CarrierType", "type": "PassportGlobalAccount", "readable": "Passport + Global", "logo": null, "fields": []}, {"object": "CarrierType", "type": "PurolatorAccount", + "readable": "Purolator", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "QuickAccount", "readable": "Quick", "logo": null, "fields": []}, + {"object": "CarrierType", "type": "RoverAccount", "readable": "Rover", "logo": + null, "fields": []}, {"object": "CarrierType", "type": "RoyalMailV3Account", + "readable": "Royal Mail V3", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "RRDonnelleyAccount", "readable": "ePost Global", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "SendleAccount", "readable": "Sendle", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "SfExpressAccount", + "readable": "SF Express", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "SmartKargoAccount", "readable": "SmartKargo", "logo": null, "fields": + []}, {"object": "CarrierType", "type": "SonicAccount", "readable": "Sonic", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "SpeedXAccount", + "readable": "SpeedX", "logo": null, "fields": []}, {"object": "CarrierType", "type": "SpeedeeAccount", "readable": "Spee-Dee", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "SwyftAccount", "readable": "Swyft", - "logo": null, "fields": []}, {"object": "CarrierType", "type": "TccAccount", - "readable": "Tcc", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "TforceConciseAccount", "readable": "TForce", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "TollAccount", "readable": "Toll", - "logo": null, "fields": []}, {"object": "CarrierType", "type": "UdsAccount", - "readable": "UDS", "logo": null, "fields": []}, {"object": "CarrierType", - "type": "UpsAccount", "readable": "UPS", "logo": null, "fields": []}, {"object": - "CarrierType", "type": "UpsIparcelAccount", "readable": "UPS i-Parcel", "logo": - null, "fields": []}, {"object": "CarrierType", "type": "UpsMailInnovationsAccount", - "readable": "UPS Mail Innovations", "logo": null, "fields": []}, {"object": - "CarrierType", "type": "UspsAccount", "readable": "USPS", "logo": null, "fields": - []}, {"object": "CarrierType", "type": "VehoAccount", "readable": "Veho", - "logo": null, "fields": []}]' + []}, {"object": "CarrierType", "type": "SwayAccount", "readable": "Sway", + "logo": null, "fields": []}, {"object": "CarrierType", "type": "SwyftAccount", + "readable": "Swyft", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "TccAccount", "readable": "Tcc", "logo": null, "fields": []}, {"object": + "CarrierType", "type": "TforceConciseAccount", "readable": "TForce", "logo": + null, "fields": []}, {"object": "CarrierType", "type": "UdsAccount", "readable": + "UDS", "logo": null, "fields": []}, {"object": "CarrierType", "type": "UspsAccount", + "readable": "USPS", "logo": null, "fields": []}, {"object": "CarrierType", + "type": "VehoAccount", "readable": "Veho", "logo": null, "fields": []}]' headers: cache-control: - private, no-cache, no-store content-length: - - '41628' + - '42374' content-type: - application/json; charset=utf-8 expires: @@ -140,20 +139,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5c79e7885e230017015f + - 8e8eb62967c9fbebe2b97a8d00187174 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.027471' + - '0.058157' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_update.yaml b/tests/cassettes/test_carrier_account_update.yaml index 14453864..5aab0100 100644 --- a/tests/cassettes/test_carrier_account_update.yaml +++ b/tests/cassettes/test_carrier_account_update.yaml @@ -23,17 +23,16 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: '{"id": "ca_8369ceeeaebf4690b440f6be8a780d7f", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:24Z", - "updated_at": "2024-08-15T19:52:24Z", "description": "DHL eCommerce Solutions - Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce - Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": - {}}' + string: '{"id": "ca_051a2637279743549672467af0badec7", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2025-03-06T19:47:54Z", + "updated_at": "2025-03-06T19:47:54Z", "description": "DHL eCommerce Account", + "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce", + "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1469' + - '1369' content-type: - application/json; charset=utf-8 expires: @@ -53,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c78e7885e0a00170031 + - 8e8eb62967c9fbeae2b97a8b00187055 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.067883' + - '0.060176' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -86,20 +85,19 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/carrier_accounts/ca_8369ceeeaebf4690b440f6be8a780d7f + uri: https://api.easypost.com/v2/carrier_accounts/ca_051a2637279743549672467af0badec7 response: body: - string: '{"id": "ca_8369ceeeaebf4690b440f6be8a780d7f", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:24Z", - "updated_at": "2024-08-15T19:52:24Z", "description": "DHL eCommerce Solutions - Account", "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce - Solutions", "logo": null, "fields": [], "credentials": {}, "test_credentials": - {}}' + string: '{"id": "ca_051a2637279743549672467af0badec7", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2025-03-06T19:47:54Z", + "updated_at": "2025-03-06T19:47:54Z", "description": "DHL eCommerce Account", + "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce", + "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1469' + - '1369' content-type: - application/json; charset=utf-8 expires: @@ -119,20 +117,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c78e7885e0a00170054 + - 8e8eb62967c9fbeae2b97a8b00187072 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.035064' + - '0.029269' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -156,19 +154,19 @@ interactions: user-agent: - method: PATCH - uri: https://api.easypost.com/v2/carrier_accounts/ca_8369ceeeaebf4690b440f6be8a780d7f + uri: https://api.easypost.com/v2/carrier_accounts/ca_051a2637279743549672467af0badec7 response: body: - string: '{"id": "ca_8369ceeeaebf4690b440f6be8a780d7f", "object": "CarrierAccount", - "type": "DhlEcsAccount", "clone": false, "created_at": "2024-08-15T19:52:24Z", - "updated_at": "2024-08-15T19:52:24Z", "description": "My custom description", - "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce Solutions", + string: '{"id": "ca_051a2637279743549672467af0badec7", "object": "CarrierAccount", + "type": "DhlEcsAccount", "clone": false, "created_at": "2025-03-06T19:47:54Z", + "updated_at": "2025-03-06T19:47:54Z", "description": "My custom description", + "reference": null, "billing_type": "carrier", "readable": "DHL eCommerce", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1459' + - '1369' content-type: - application/json; charset=utf-8 expires: @@ -188,20 +186,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c78e7885e0a00170076 + - 8e8eb62967c9fbeae2b97a8b0018708a x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.082168' + - '0.088061' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -223,7 +221,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_8369ceeeaebf4690b440f6be8a780d7f + uri: https://api.easypost.com/v2/carrier_accounts/ca_051a2637279743549672467af0badec7 response: body: string: '{}' @@ -251,20 +249,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c78e7885e0a0017009e + - 8e8eb62967c9fbeae2b97a8b001870c2 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.056364' + - '0.052585' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_update_ups.yaml b/tests/cassettes/test_carrier_account_update_ups.yaml index 8ae7243e..f113ef40 100644 --- a/tests/cassettes/test_carrier_account_update_ups.yaml +++ b/tests/cassettes/test_carrier_account_update_ups.yaml @@ -20,16 +20,16 @@ interactions: uri: https://api.easypost.com/v2/ups_oauth_registrations response: body: - string: '{"id": "ca_ee3d90a7215b41c1ace15172cd769907", "object": "CarrierAccount", - "type": "UpsAccount", "clone": false, "created_at": "2024-08-15T19:52:26Z", - "updated_at": "2024-08-15T19:52:26Z", "description": null, "reference": null, + string: '{"id": "ca_56b369117cb24365bab1014b845793d3", "object": "CarrierAccount", + "type": "UpsAccount", "clone": false, "created_at": "2025-03-06T19:47:55Z", + "updated_at": "2025-03-06T19:47:55Z", "description": null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1396' + - '1384' content-type: - application/json; charset=utf-8 expires: @@ -49,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c7ae7885e2600170282 + - 8e8eb62a67c9fbebe2b97a900018723c x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.085132' + - '0.075599' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -82,19 +82,19 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/carrier_accounts/ca_ee3d90a7215b41c1ace15172cd769907 + uri: https://api.easypost.com/v2/carrier_accounts/ca_56b369117cb24365bab1014b845793d3 response: body: - string: '{"id": "ca_ee3d90a7215b41c1ace15172cd769907", "object": "CarrierAccount", - "type": "UpsAccount", "clone": false, "created_at": "2024-08-15T19:52:26Z", - "updated_at": "2024-08-15T19:52:26Z", "description": null, "reference": null, + string: '{"id": "ca_56b369117cb24365bab1014b845793d3", "object": "CarrierAccount", + "type": "UpsAccount", "clone": false, "created_at": "2025-03-06T19:47:55Z", + "updated_at": "2025-03-06T19:47:55Z", "description": null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1396' + - '1384' content-type: - application/json; charset=utf-8 expires: @@ -109,27 +109,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c7ae7885e26001702b3 + - 8e8eb62a67c9fbebe2b97a900018726a x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.032327' + - '0.181601' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -153,19 +151,19 @@ interactions: user-agent: - method: PATCH - uri: https://api.easypost.com/v2/ups_oauth_registrations/ca_ee3d90a7215b41c1ace15172cd769907 + uri: https://api.easypost.com/v2/ups_oauth_registrations/ca_56b369117cb24365bab1014b845793d3 response: body: - string: '{"id": "ca_ee3d90a7215b41c1ace15172cd769907", "object": "CarrierAccount", - "type": "UpsAccount", "clone": false, "created_at": "2024-08-15T19:52:26Z", - "updated_at": "2024-08-15T19:52:27Z", "description": null, "reference": null, + string: '{"id": "ca_56b369117cb24365bab1014b845793d3", "object": "CarrierAccount", + "type": "UpsAccount", "clone": false, "created_at": "2025-03-06T19:47:55Z", + "updated_at": "2025-03-06T19:47:56Z", "description": null, "reference": null, "billing_type": "carrier", "readable": "UPS", "logo": null, "fields": [], "credentials": {}, "test_credentials": {}}' headers: cache-control: - private, no-cache, no-store content-length: - - '1396' + - '1388' content-type: - application/json; charset=utf-8 expires: @@ -185,20 +183,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c7ae7885e26001702cb + - 8e8eb62a67c9fbece2b97a90001872b1 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.064354' + - '0.064679' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -220,7 +218,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_ee3d90a7215b41c1ace15172cd769907 + uri: https://api.easypost.com/v2/carrier_accounts/ca_56b369117cb24365bab1014b845793d3 response: body: string: '{}' @@ -243,27 +241,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c7be7885e26001702e5 + - 8e8eb62a67c9fbece2b97a90001872d2 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.061426' + - '0.070166' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_child_user_api_keys.yaml b/tests/cassettes/test_child_user_api_keys.yaml index a37a5b2d..97593c55 100644 --- a/tests/cassettes/test_child_user_api_keys.yaml +++ b/tests/cassettes/test_child_user_api_keys.yaml @@ -20,14 +20,14 @@ interactions: uri: https://api.easypost.com/v2/users response: body: - string: '{"id": "user_8a1033cc63704acf940e2466acce59b6", "object": "User", "parent_id": + string: '{"id": "user_7b18c25890924f8ab96848aa3efc2765", "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2024-08-15T19:51:49Z", "default_carbon_offset": + "", "verified": true, "created_at": "2025-03-06T19:47:22Z", "default_carbon_offset": false, "has_elevate_access": false, "children": [], "api_keys": [{"object": - "ApiKey", "key": "", "mode": "test", "created_at": "2024-08-15T19:51:49Z", - "active": true, "id": "ak_6e17f070f1a5440d82de587ac863c5cc"}, {"object": "ApiKey", - "key": "", "mode": "production", "created_at": "2024-08-15T19:51:49Z", - "active": true, "id": "ak_c6fc2227fa47471fa8585d98ea6a89f5"}]}' + "ApiKey", "key": "", "mode": "test", "created_at": "2025-03-06T19:47:22Z", + "active": true, "id": "ak_0b4bbaf6145c4a4e991fd91ae6d8512b"}, {"object": "ApiKey", + "key": "", "mode": "production", "created_at": "2025-03-06T19:47:22Z", + "active": true, "id": "ak_4ac13156665942c99bbe31bab7cdb0da"}]}' headers: cache-control: - private, no-cache, no-store @@ -52,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c55e7885dc50016dc77 + - 8e8eb62967c9fbcae2b9771900184d24 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.491919' + - '0.516833' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -85,12 +85,12 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/users/user_8a1033cc63704acf940e2466acce59b6 + uri: https://api.easypost.com/v2/users/user_7b18c25890924f8ab96848aa3efc2765 response: body: - string: '{"id": "user_8a1033cc63704acf940e2466acce59b6", "object": "User", "parent_id": + string: '{"id": "user_7b18c25890924f8ab96848aa3efc2765", "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2024-08-15T19:51:49Z", "default_carbon_offset": + "", "verified": true, "created_at": "2025-03-06T19:47:22Z", "default_carbon_offset": false, "has_elevate_access": false, "children": []}' headers: cache-control: @@ -116,20 +116,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c55e7885dc50016dd0c + - 8e8eb62967c9fbcae2b9771900184dd9 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.045726' + - '0.096345' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -180,11 +180,11 @@ interactions: "test", "created_at": "2024-01-19T21:44:18Z", "id": "ak_92d46dfa461245bba1ec48aac1f2090d"}, {"object": "ApiKey", "active": true, "key": "", "mode": "production", "created_at": "2024-01-19T21:44:18Z", "id": "ak_8637c80064224594b9dfdf82efbb27b7"}], - "children": []}, {"id": "user_8a1033cc63704acf940e2466acce59b6", "keys": [{"object": + "children": []}, {"id": "user_7b18c25890924f8ab96848aa3efc2765", "keys": [{"object": "ApiKey", "active": true, "key": "", "mode": "test", "created_at": - "2024-08-15T19:51:49Z", "id": "ak_6e17f070f1a5440d82de587ac863c5cc"}, {"object": + "2025-03-06T19:47:22Z", "id": "ak_0b4bbaf6145c4a4e991fd91ae6d8512b"}, {"object": "ApiKey", "active": true, "key": "", "mode": "production", "created_at": - "2024-08-15T19:51:49Z", "id": "ak_c6fc2227fa47471fa8585d98ea6a89f5"}], "children": + "2025-03-06T19:47:22Z", "id": "ak_4ac13156665942c99bbe31bab7cdb0da"}], "children": []}]}' headers: cache-control: @@ -210,20 +210,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c55e7885dc50016dd32 + - 8e8eb62967c9fbcbe2b9771900184e0f x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.035148' + - '0.103280' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -245,7 +245,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/users/user_8a1033cc63704acf940e2466acce59b6 + uri: https://api.easypost.com/v2/users/user_7b18c25890924f8ab96848aa3efc2765 response: body: string: '' @@ -262,27 +262,25 @@ interactions: - max-age=31536000; includeSubDomains; preload x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c55e7885dc50016dd56 + - 8e8eb62967c9fbcbe2b9771900184e39 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.090093' + - '0.091880' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_claim_all.yaml b/tests/cassettes/test_claim_all.yaml index 9bb242fb..c4acdce6 100644 --- a/tests/cassettes/test_claim_all.yaml +++ b/tests/cassettes/test_claim_all.yaml @@ -16,77 +16,50 @@ interactions: uri: https://api.easypost.com/v2/claims?page_size=5 response: body: - string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/c362d4779c924f598e77e03b784a8562.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/438ff93724ed4756a2a19a5da91226dd.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/d81d826438e84c19b03d7b57d387526e.png"], + string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/cde3cb05bd1e4e6f8de416f301f44354.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/3617f2bdfed24000b62349577cc77b85.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/6fc76e0969d94780811a7baf5c1cd4ca.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-08-15T19:52:33", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:33"}], - "id": "clm_09816458dd9d483ba94edbde30104139", "insurance_amount": "100.00", - "insurance_id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "mode": "test", "object": + "2025-03-06T19:48:00Z", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2025-03-06T19:48:00Z"}], + "id": "clm_09ce975320fe4661af0f80a68022ee76", "insurance_amount": "100.00", + "insurance_id": "ins_7bcb457363834ebd88ba419138138fbc", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", + "100.00", "salvage_value": null, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-08-15T19:52:33", "tracking_code": "9400100105807075742367", "type": - "damage", "updated_at": "2024-08-15T19:52:33"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/cd4a4ca08f8c4fa1a57c1fbe6beb1879.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/ca160db21ac5455f9a865812e58b10d3.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/801e8c25392d4921a994888367961787.png"], + "2025-03-06T19:48:00Z", "tracking_code": "9400100208303109500676", "type": + "damage", "updated_at": "2025-03-06T19:48:00Z"}, {"approved_amount": null, + "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/8fb0b33e39004bfea8bffabf242d48c8.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/6acf5385ee494fc2bfcac704b9dcfddf.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/5bf9e0415088448a937d39348a485593.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-08-15T19:52:30", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:30"}], - "id": "clm_09817b6b616a41929c00e7e6d9dd559c", "insurance_amount": "100.00", - "insurance_id": "ins_cc8aaf0d3a6540c9a008f4a5a1637ef8", "mode": "test", "object": + "2025-03-06T19:47:58Z", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2025-03-06T19:47:58Z"}], + "id": "clm_09ce5f03fd6b4310b9c5b7f306407214", "insurance_amount": "100.00", + "insurance_id": "ins_029e06b218ab48e0979236191bb04df0", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", + "100.00", "salvage_value": null, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-08-15T19:52:30", "tracking_code": "9400100105807075742343", "type": - "damage", "updated_at": "2024-08-15T19:52:30"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/533eff379afa47759cdc14f19e190fc7.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4715d1ddc5e448ad924c029d8407b9e4.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/987f3e1a094044219e640163b1074ff7.png"], + "2025-03-06T19:47:58Z", "tracking_code": "9400100208303109500669", "type": + "damage", "updated_at": "2025-03-06T19:47:58Z"}, {"approved_amount": null, + "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250221/b323c9d15a5f45669b16994df4233f82.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250221/71287f6c2f984eb58e336ff7266d4d7a.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250221/662abb57720b4740a6003e285451c988.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:44", "description": "Test description", "history": [{"status": - "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": - "2024-07-23T17:53:45"}, {"status": "submitted", "status_detail": "Claim was - created.", "timestamp": "2024-07-23T17:53:44"}], "id": "clm_097eda66d06e42ec84449bbd34671a7d", - "insurance_amount": "100.00", "insurance_id": "ins_8d75d3dcf398461aaa330e48dbd4c19e", - "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": - null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": - "shp_82fecc386f314823ad6b1a35365b7f4e", "status": "cancelled", "status_detail": - "Claim cancellation was requested.", "status_timestamp": "2024-07-23T17:53:45", - "tracking_code": "9400100110368066361872", "type": "damage", "updated_at": - "2024-07-23T17:53:45"}, {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7b9b0171ae7b4e258f765822e7cddb71.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2cd9fdd33a7d40fc84ac8f87c3da1f86.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/d3aebbc42e884769ad810c92c26ad8ad.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:40", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-23T17:53:40"}], - "id": "clm_097e86d630e44e83b736c48c1271fed3", "insurance_amount": "100.00", - "insurance_id": "ins_33a9255ab9f443c18a1c1876bc6e25a4", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", - "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-23T17:53:40", "tracking_code": "9400100110368066361841", "type": - "damage", "updated_at": "2024-07-23T17:53:40"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/836a3784a67e429ca0d30f10f64cb0bc.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/a1316f8afc5843d7b2d1370dfb7e73d3.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4d3502f6a6e64972913e43fc4191b4cd.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:36", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-23T17:53:36"}], - "id": "clm_097eb623597146bab94e9ef701364d4f", "insurance_amount": "100.00", - "insurance_id": "ins_6aa59cf8618843c09b4707e1f3f74486", "mode": "test", "object": + "2025-02-21T18:30:53Z", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2025-02-21T18:30:53Z"}], + "id": "clm_09cc787188c1462aaa437fcba47ee03d", "insurance_amount": "100.00", + "insurance_id": "ins_730ae2cc418147938bfcac3e49ed1665", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", + "100.00", "salvage_value": null, "shipment_id": "shp_bfb151c83dbf4a8c97a494074041c11f", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-23T17:53:36", "tracking_code": "9400100110368066361827", "type": - "damage", "updated_at": "2024-07-23T17:53:36"}], "has_more": true}' + "2025-02-21T18:30:53Z", "tracking_code": "9400100208271116404754", "type": + "theft", "updated_at": "2025-02-21T18:30:53Z"}], "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '5708' + - '3374' content-type: - application/json; charset=utf-8 expires: @@ -101,25 +74,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c82e7885e2b00170a7f + - 8e8eb62967c9fbf1e2b97aad0018787c x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.068739' + - '0.045934' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_claim_cancel.yaml b/tests/cassettes/test_claim_cancel.yaml index 9d2d366e..bd44043d 100644 --- a/tests/cassettes/test_claim_cancel.yaml +++ b/tests/cassettes/test_claim_cancel.yaml @@ -31,106 +31,84 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:52:35Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_0ea044af2a4a491e953233cd7867bb6a", "created_at": "2025-03-06T19:48:01Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-08-15T19:52:36Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_c7e6838e55aa4c0380bacfd1011adf6c", - "object": "CustomsInfo", "created_at": "2024-08-15T19:52:35Z", "updated_at": - "2024-08-15T19:52:35Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2025-03-06T19:48:01Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_d9951ec92f88467b858907457b287de2", + "object": "CustomsInfo", "created_at": "2025-03-06T19:48:01Z", "updated_at": + "2025-03-06T19:48:01Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_79f2018825ef41a7a516fbab7842bb2d", "object": "CustomsItem", - "created_at": "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", + [{"id": "cstitem_ce7a9058a4de43d2a7cb4e181095b619", "object": "CustomsItem", + "created_at": "2025-03-06T19:48:01Z", "updated_at": "2025-03-06T19:48:01Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", + null}]}, "from_address": {"id": "adr_e9c82d93fac311efb46dac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:01+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c6ad08dabc6541e787a4f5239f2dd21b", - "object": "Parcel", "created_at": "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_f9b7bc5a09c0410b8b5e3d5a4e2d54e7", + "object": "Parcel", "created_at": "2025-03-06T19:48:01Z", "updated_at": "2025-03-06T19:48:01Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_70ba914fbf544898885230f6a3415fa5", - "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_3c9b9d22912b45768152e44b830fc949", + "object": "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4e065fa607f94fe489a2ec1cd2b1a6a2", - "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e3014a913dd146f2b8698f7398c7837b", + "object": "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d", - "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a144a42f34e24777bffd707cb614c68c", + "object": "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + 3, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": - "2024-08-15T19:52:35+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_e9c58fe5fac311ef8e57ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:01+00:00", "updated_at": + "2025-03-06T19:48:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": + {"id": "adr_e9c82d93fac311efb46dac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:01+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", + {}}, "buyer_address": {"id": "adr_e9c58fe5fac311ef8e57ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_8fc7dc5b18a9489086367f4e76016b3e", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6912' + - '5160' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_8fc7dc5b18a9489086367f4e76016b3e + - /api/v2/shipments/shp_0ea044af2a4a491e953233cd7867bb6a pragma: - no-cache referrer-policy: @@ -146,27 +124,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c83e788613b00170b43 + - 8e8eb62c67c9fbf1e2b97aaf001878d9 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.817338' + - '0.269529' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d"}}' + body: '{"rate": {"id": "rate_a144a42f34e24777bffd707cb614c68c"}}' headers: Accept: - '*/*' @@ -183,100 +161,79 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_8fc7dc5b18a9489086367f4e76016b3e/buy + uri: https://api.easypost.com/v2/shipments/shp_0ea044af2a4a491e953233cd7867bb6a/buy response: body: - string: '{"created_at": "2024-08-15T19:52:35Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_0ea044af2a4a491e953233cd7867bb6a", "created_at": "2025-03-06T19:48:01Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100105807075742381", "updated_at": "2024-08-15T19:52:37Z", "batch_id": + "9400100208303109500683", "updated_at": "2025-03-06T19:48:03Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_c7e6838e55aa4c0380bacfd1011adf6c", "object": "CustomsInfo", "created_at": - "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", "contents_explanation": + "cstinfo_d9951ec92f88467b858907457b287de2", "object": "CustomsInfo", "created_at": + "2025-03-06T19:48:01Z", "updated_at": "2025-03-06T19:48:01Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_79f2018825ef41a7a516fbab7842bb2d", - "object": "CustomsItem", "created_at": "2024-08-15T19:52:35Z", "updated_at": - "2024-08-15T19:52:35Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_ce7a9058a4de43d2a7cb4e181095b619", + "object": "CustomsItem", "created_at": "2025-03-06T19:48:01Z", "updated_at": + "2025-03-06T19:48:01Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": + "adr_e9c82d93fac311efb46dac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:01+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c6ad08dabc6541e787a4f5239f2dd21b", - "object": "Parcel", "created_at": "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_f9b7bc5a09c0410b8b5e3d5a4e2d54e7", + "object": "Parcel", "created_at": "2025-03-06T19:48:01Z", "updated_at": "2025-03-06T19:48:01Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6832b1ef0dd64fb585df71704d6749ab", - "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:37Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:36Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6a5afe4a07c14caca7afbda6e2c32067", + "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:03Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:02Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e81e02e001b2f741898a14150f135326d1.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e82472ec19172d428b992f713a7a7cf3df.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_70ba914fbf544898885230f6a3415fa5", "object": - "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_3c9b9d22912b45768152e44b830fc949", "object": + "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4e065fa607f94fe489a2ec1cd2b1a6a2", - "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e3014a913dd146f2b8698f7398c7837b", + "object": "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d", - "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a144a42f34e24777bffd707cb614c68c", + "object": "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + 3, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d", "object": - "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_a144a42f34e24777bffd707cb614c68c", "object": + "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_54131fb3d69d493e85b1cea4c2629a71", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742381", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:52:37Z", - "updated_at": "2024-08-15T19:52:37Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier": "USPS", + 3, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_9ac363e1c15c4fc999d121ce98d362e7", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500683", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-06T19:48:03Z", + "updated_at": "2025-03-06T19:48:03Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzU0MTMxZmIzZDY5ZDQ5M2U4NWIxY2VhNGMyNjI5YTcx"}, - "to_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", + "https://track.easypost.com/djE6dHJrXzlhYzM2M2UxYzE1YzRmYzk5OWQxMjFjZTk4ZDM2MmU3"}, + "to_address": {"id": "adr_e9c58fe5fac311ef8e57ac1f6bc53342", "object": "Address", + "created_at": "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:02+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -284,14 +241,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", + 4, "return_address": {"id": "adr_e9c82d93fac311efb46dac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:01+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", + {}}, "buyer_address": {"id": "adr_e9c58fe5fac311ef8e57ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:02+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -301,13 +258,12 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_8fc7dc5b18a9489086367f4e76016b3e", - "object": "Shipment"}' + "6.07000", "charged": true, "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '9037' + - '7285' content-type: - application/json; charset=utf-8 expires: @@ -322,25 +278,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c84e788613b00170c27 + - 8e8eb62c67c9fbf2e2b97aaf0018794c x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.805426' + - '0.858515' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -364,103 +322,82 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_8fc7dc5b18a9489086367f4e76016b3e/insure + uri: https://api.easypost.com/v2/shipments/shp_0ea044af2a4a491e953233cd7867bb6a/insure response: body: - string: '{"created_at": "2024-08-15T19:52:35Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_0ea044af2a4a491e953233cd7867bb6a", "created_at": "2025-03-06T19:48:01Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100105807075742381", "updated_at": "2024-08-15T19:52:37Z", "batch_id": + "9400100208303109500683", "updated_at": "2025-03-06T19:48:03Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_c7e6838e55aa4c0380bacfd1011adf6c", "object": "CustomsInfo", "created_at": - "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", "contents_explanation": + "cstinfo_d9951ec92f88467b858907457b287de2", "object": "CustomsInfo", "created_at": + "2025-03-06T19:48:01Z", "updated_at": "2025-03-06T19:48:01Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_79f2018825ef41a7a516fbab7842bb2d", - "object": "CustomsItem", "created_at": "2024-08-15T19:52:35Z", "updated_at": - "2024-08-15T19:52:35Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_ce7a9058a4de43d2a7cb4e181095b619", + "object": "CustomsItem", "created_at": "2025-03-06T19:48:01Z", "updated_at": + "2025-03-06T19:48:01Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": + "adr_e9c82d93fac311efb46dac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:01+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_c6ad08dabc6541e787a4f5239f2dd21b", - "object": "Parcel", "created_at": "2024-08-15T19:52:35Z", "updated_at": "2024-08-15T19:52:35Z", + {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_f9b7bc5a09c0410b8b5e3d5a4e2d54e7", + "object": "Parcel", "created_at": "2025-03-06T19:48:01Z", "updated_at": "2025-03-06T19:48:01Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6832b1ef0dd64fb585df71704d6749ab", - "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:37Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:36Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6a5afe4a07c14caca7afbda6e2c32067", + "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:03Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:02Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e81e02e001b2f741898a14150f135326d1.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e82472ec19172d428b992f713a7a7cf3df.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_70ba914fbf544898885230f6a3415fa5", "object": - "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_3c9b9d22912b45768152e44b830fc949", "object": + "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4e065fa607f94fe489a2ec1cd2b1a6a2", - "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e3014a913dd146f2b8698f7398c7837b", + "object": "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d", - "object": "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a144a42f34e24777bffd707cb614c68c", + "object": "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": + 3, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_3d49908bbaff4ccbb32cf5907db3499d", "object": - "Rate", "created_at": "2024-08-15T19:52:36Z", "updated_at": "2024-08-15T19:52:36Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_a144a42f34e24777bffd707cb614c68c", "object": + "Rate", "created_at": "2025-03-06T19:48:02Z", "updated_at": "2025-03-06T19:48:02Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_54131fb3d69d493e85b1cea4c2629a71", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742381", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:52:37Z", - "updated_at": "2024-08-15T19:52:37Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:52:37Z", "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", + 3, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_9ac363e1c15c4fc999d121ce98d362e7", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500683", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-06T19:48:03Z", + "updated_at": "2025-03-06T19:48:03Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:03Z", "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:52:37Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:03Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:29:37Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:03Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -469,9 +406,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzU0MTMxZmIzZDY5ZDQ5M2U4NWIxY2VhNGMyNjI5YTcx"}, - "to_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzlhYzM2M2UxYzE1YzRmYzk5OWQxMjFjZTk4ZDM2MmU3"}, + "to_address": {"id": "adr_e9c58fe5fac311ef8e57ac1f6bc53342", "object": "Address", + "created_at": "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:02+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -479,14 +416,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", + 4, "return_address": {"id": "adr_e9c82d93fac311efb46dac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:01+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", + {}}, "buyer_address": {"id": "adr_e9c58fe5fac311ef8e57ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:02+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -496,14 +433,14 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}, {"object": "Fee", "type": + "6.07000", "charged": true, "refunded": false}, {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": false}], - "id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "object": "Shipment"}' + "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '10261' + - '8509' content-type: - application/json; charset=utf-8 expires: @@ -523,20 +460,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c85e788613b00170d03 + - 8e8eb62c67c9fbf3e2b97aaf00187a31 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.272668' + - '0.315359' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -547,7 +484,7 @@ interactions: "invoice_attachments": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="], "supporting_documentation_attachments": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="], "description": "Test description", "contact_email": "test@example.com", "tracking_code": - "9400100105807075742381", "amount": "100.00"}' + "9400100208303109500683", "amount": "100.00"}' headers: Accept: - '*/*' @@ -567,24 +504,24 @@ interactions: uri: https://api.easypost.com/v2/claims response: body: - string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/a63833129b9d4853b8d127dde69e2f95.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/16a5632b3f10457d9a8fdfffa87f5cbd.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/3f96748d2e2540dd81be17a5c5197fa2.png"], + string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/48c6da378b1c4df88308924c11d86a20.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/363f7506d469479685db3d284e56fbb5.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/d25e02b038eb46308dc9febeeba1963e.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-08-15T19:52:37", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:37"}], - "id": "clm_0981ca2852bd429796bdb43115d70aa2", "insurance_amount": "100.00", - "insurance_id": "ins_99a199efd8b74ce1b2f75ea747e19a96", "mode": "test", "object": + "2025-03-06T19:48:03Z", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2025-03-06T19:48:03Z"}], + "id": "clm_09cea7c6461a4182a7e05bed24b83717", "insurance_amount": "100.00", + "insurance_id": "ins_229626a7af2f46c28f15547390291e82", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", + "100.00", "salvage_value": null, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-08-15T19:52:37", "tracking_code": "9400100105807075742381", "type": - "damage", "updated_at": "2024-08-15T19:52:37"}' + "2025-03-06T19:48:03Z", "tracking_code": "9400100208303109500683", "type": + "damage", "updated_at": "2025-03-06T19:48:03Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1111' + - '1115' content-type: - application/json; charset=utf-8 expires: @@ -604,20 +541,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c85e788613b00170d65 + - 8e8eb62c67c9fbf3e2b97aaf00187a7b x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.879516' + - '0.744747' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -641,29 +578,29 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/claims/clm_0981ca2852bd429796bdb43115d70aa2/cancel + uri: https://api.easypost.com/v2/claims/clm_09cea7c6461a4182a7e05bed24b83717/cancel response: body: - string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/a63833129b9d4853b8d127dde69e2f95.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/16a5632b3f10457d9a8fdfffa87f5cbd.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/3f96748d2e2540dd81be17a5c5197fa2.png"], + string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/48c6da378b1c4df88308924c11d86a20.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/363f7506d469479685db3d284e56fbb5.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/d25e02b038eb46308dc9febeeba1963e.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-08-15T19:52:37", "description": "Test description", "history": [{"status": + "2025-03-06T19:48:03Z", "description": "Test description", "history": [{"status": "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": - "2024-08-15T19:52:39"}, {"status": "submitted", "status_detail": "Claim was - created.", "timestamp": "2024-08-15T19:52:37"}], "id": "clm_0981ca2852bd429796bdb43115d70aa2", - "insurance_amount": "100.00", "insurance_id": "ins_99a199efd8b74ce1b2f75ea747e19a96", + "2025-03-06T19:48:04Z"}, {"status": "submitted", "status_detail": "Claim was + created.", "timestamp": "2025-03-06T19:48:03Z"}], "id": "clm_09cea7c6461a4182a7e05bed24b83717", + "insurance_amount": "100.00", "insurance_id": "ins_229626a7af2f46c28f15547390291e82", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": - "shp_8fc7dc5b18a9489086367f4e76016b3e", "status": "cancelled", "status_detail": - "Claim cancellation was requested.", "status_timestamp": "2024-08-15T19:52:39", - "tracking_code": "9400100105807075742381", "type": "damage", "updated_at": - "2024-08-15T19:52:38"}' + "shp_0ea044af2a4a491e953233cd7867bb6a", "status": "cancelled", "status_detail": + "Claim cancellation was requested.", "status_timestamp": "2025-03-06T19:48:04Z", + "tracking_code": "9400100208303109500683", "type": "damage", "updated_at": + "2025-03-06T19:48:04Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1235' + - '1240' content-type: - application/json; charset=utf-8 expires: @@ -683,20 +620,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c86e788613b00170e7c + - 8e8eb62c67c9fbf4e2b97aaf00187b2a x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.043569' + - '0.039914' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_claim_create.yaml b/tests/cassettes/test_claim_create.yaml index 41c3c5e5..8ec8b8b3 100644 --- a/tests/cassettes/test_claim_create.yaml +++ b/tests/cassettes/test_claim_create.yaml @@ -31,106 +31,84 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:52:28Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "created_at": "2025-03-06T19:47:56Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-08-15T19:52:28Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_1bd882d40d8145609cdcaac5af7e1f2b", - "object": "CustomsInfo", "created_at": "2024-08-15T19:52:28Z", "updated_at": - "2024-08-15T19:52:28Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2025-03-06T19:47:56Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_99613496ed144db19134629e78dd8309", + "object": "CustomsInfo", "created_at": "2025-03-06T19:47:56Z", "updated_at": + "2025-03-06T19:47:56Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_4e47bb7096dc4b0882a356bf281754e5", "object": "CustomsItem", - "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", + [{"id": "cstitem_916203bc6a7640ee9f0d3f67192ab18a", "object": "CustomsItem", + "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", + null}]}, "from_address": {"id": "adr_e6b764b2fac311efa8503cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:56+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_9a62580917e444488221b209b078fc2a", - "object": "Parcel", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_59e8de9138da4262994e87a64c8fe537", + "object": "Parcel", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_1e972f21c5244406b7d4c0899cb1317a", - "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_40f1c040c29848a68b1db88daa3b1964", + "object": "Rate", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f52fc9b383bc4d93b7f888a675dc6922", + "object": "Rate", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ccb6df9318ee41cea574f06bc3db366d", - "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_58bf4ebce74e4639a3a6557a41b53721", + "object": "Rate", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8c175bf780334620aca5b3d5a24ffcf0", - "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + 3, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": - "2024-08-15T19:52:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_e6b48af8fac311efb2ebac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:47:56+00:00", "updated_at": + "2025-03-06T19:47:56+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": + {"id": "adr_e6b764b2fac311efa8503cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:56+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", + {}}, "buyer_address": {"id": "adr_e6b48af8fac311efb2ebac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:56+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_51a3c4e20f394a308d398a9f76639c07", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6912' + - '5160' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_51a3c4e20f394a308d398a9f76639c07 + - /api/v2/shipments/shp_5ee01eb89ffc456fa9cdc82cb03c7f8e pragma: - no-cache referrer-policy: @@ -141,34 +119,32 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c7ce7885e29001703f0 + - 8e8eb62967c9fbece2b97a9300187380 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.811888' + - '0.239208' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_ccb6df9318ee41cea574f06bc3db366d"}}' + body: '{"rate": {"id": "rate_58bf4ebce74e4639a3a6557a41b53721"}}' headers: Accept: - '*/*' @@ -185,100 +161,79 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_51a3c4e20f394a308d398a9f76639c07/buy + uri: https://api.easypost.com/v2/shipments/shp_5ee01eb89ffc456fa9cdc82cb03c7f8e/buy response: body: - string: '{"created_at": "2024-08-15T19:52:28Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "created_at": "2025-03-06T19:47:56Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100105807075742343", "updated_at": "2024-08-15T19:52:29Z", "batch_id": + "9400100208303109500669", "updated_at": "2025-03-06T19:47:57Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_1bd882d40d8145609cdcaac5af7e1f2b", "object": "CustomsInfo", "created_at": - "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", "contents_explanation": + "cstinfo_99613496ed144db19134629e78dd8309", "object": "CustomsInfo", "created_at": + "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_4e47bb7096dc4b0882a356bf281754e5", - "object": "CustomsItem", "created_at": "2024-08-15T19:52:28Z", "updated_at": - "2024-08-15T19:52:28Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_916203bc6a7640ee9f0d3f67192ab18a", + "object": "CustomsItem", "created_at": "2025-03-06T19:47:56Z", "updated_at": + "2025-03-06T19:47:56Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": + "adr_e6b764b2fac311efa8503cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:56+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_9a62580917e444488221b209b078fc2a", - "object": "Parcel", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_59e8de9138da4262994e87a64c8fe537", + "object": "Parcel", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_872cafd0a1fe43e8b054f0b50ff2ffd9", - "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:29Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_310c11cf1f7241aba064585cea05404a", + "created_at": "2025-03-06T19:47:57Z", "updated_at": "2025-03-06T19:47:57Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:47:57Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8b2420124f2af4dc5b42a932e0024fe0f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e86990a07eebcf4c86948425147d943995.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_1e972f21c5244406b7d4c0899cb1317a", "object": - "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_40f1c040c29848a68b1db88daa3b1964", "object": + "Rate", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f52fc9b383bc4d93b7f888a675dc6922", + "object": "Rate", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ccb6df9318ee41cea574f06bc3db366d", - "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_58bf4ebce74e4639a3a6557a41b53721", + "object": "Rate", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8c175bf780334620aca5b3d5a24ffcf0", - "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + 3, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_ccb6df9318ee41cea574f06bc3db366d", "object": - "Rate", "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_58bf4ebce74e4639a3a6557a41b53721", "object": + "Rate", "created_at": "2025-03-06T19:47:57Z", "updated_at": "2025-03-06T19:47:57Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_0d8953331dc048958fe9d879fc3c1b6b", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742343", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:52:29Z", - "updated_at": "2024-08-15T19:52:29Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier": "USPS", + 3, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_adb09a892549448f92f26c83c20b412c", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500669", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-06T19:47:57Z", + "updated_at": "2025-03-06T19:47:57Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzBkODk1MzMzMWRjMDQ4OTU4ZmU5ZDg3OWZjM2MxYjZi"}, - "to_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", + "https://track.easypost.com/djE6dHJrX2FkYjA5YTg5MjU0OTQ0OGY5MmYyNmM4M2MyMGI0MTJj"}, + "to_address": {"id": "adr_e6b48af8fac311efb2ebac1f6bc539ae", "object": "Address", + "created_at": "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:57+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -286,14 +241,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", + 4, "return_address": {"id": "adr_e6b764b2fac311efa8503cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:56+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", + {}}, "buyer_address": {"id": "adr_e6b48af8fac311efb2ebac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:57+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -303,13 +258,12 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_51a3c4e20f394a308d398a9f76639c07", - "object": "Shipment"}' + "6.07000", "charged": true, "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '9037' + - '7285' content-type: - application/json; charset=utf-8 expires: @@ -329,20 +283,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c7ce7885e29001704db + - 8e8eb62967c9fbede2b97a93001873c9 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.859000' + - '0.807030' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -366,103 +320,82 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_51a3c4e20f394a308d398a9f76639c07/insure + uri: https://api.easypost.com/v2/shipments/shp_5ee01eb89ffc456fa9cdc82cb03c7f8e/insure response: body: - string: '{"created_at": "2024-08-15T19:52:28Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "created_at": "2025-03-06T19:47:56Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100105807075742343", "updated_at": "2024-08-15T19:52:29Z", "batch_id": + "9400100208303109500669", "updated_at": "2025-03-06T19:47:57Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_1bd882d40d8145609cdcaac5af7e1f2b", "object": "CustomsInfo", "created_at": - "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", "contents_explanation": + "cstinfo_99613496ed144db19134629e78dd8309", "object": "CustomsInfo", "created_at": + "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_4e47bb7096dc4b0882a356bf281754e5", - "object": "CustomsItem", "created_at": "2024-08-15T19:52:28Z", "updated_at": - "2024-08-15T19:52:28Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_916203bc6a7640ee9f0d3f67192ab18a", + "object": "CustomsItem", "created_at": "2025-03-06T19:47:56Z", "updated_at": + "2025-03-06T19:47:56Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": + "adr_e6b764b2fac311efa8503cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:56+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_9a62580917e444488221b209b078fc2a", - "object": "Parcel", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", + {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_59e8de9138da4262994e87a64c8fe537", + "object": "Parcel", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_872cafd0a1fe43e8b054f0b50ff2ffd9", - "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:29Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_310c11cf1f7241aba064585cea05404a", + "created_at": "2025-03-06T19:47:57Z", "updated_at": "2025-03-06T19:47:57Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:47:57Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8b2420124f2af4dc5b42a932e0024fe0f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e86990a07eebcf4c86948425147d943995.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_1e972f21c5244406b7d4c0899cb1317a", "object": - "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_40f1c040c29848a68b1db88daa3b1964", "object": + "Rate", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f52fc9b383bc4d93b7f888a675dc6922", + "object": "Rate", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ccb6df9318ee41cea574f06bc3db366d", - "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_58bf4ebce74e4639a3a6557a41b53721", + "object": "Rate", "created_at": "2025-03-06T19:47:56Z", "updated_at": "2025-03-06T19:47:56Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8c175bf780334620aca5b3d5a24ffcf0", - "object": "Rate", "created_at": "2024-08-15T19:52:28Z", "updated_at": "2024-08-15T19:52:28Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": + 3, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_ccb6df9318ee41cea574f06bc3db366d", "object": - "Rate", "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_58bf4ebce74e4639a3a6557a41b53721", "object": + "Rate", "created_at": "2025-03-06T19:47:57Z", "updated_at": "2025-03-06T19:47:57Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_0d8953331dc048958fe9d879fc3c1b6b", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742343", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:52:29Z", - "updated_at": "2024-08-15T19:52:29Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:52:29Z", "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", + 3, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_adb09a892549448f92f26c83c20b412c", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500669", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-06T19:47:57Z", + "updated_at": "2025-03-06T19:47:57Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:47:57Z", "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:52:29Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:47:57Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:29:29Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:24:57Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -471,9 +404,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzBkODk1MzMzMWRjMDQ4OTU4ZmU5ZDg3OWZjM2MxYjZi"}, - "to_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2FkYjA5YTg5MjU0OTQ0OGY5MmYyNmM4M2MyMGI0MTJj"}, + "to_address": {"id": "adr_e6b48af8fac311efb2ebac1f6bc539ae", "object": "Address", + "created_at": "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:57+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -481,14 +414,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", + 4, "return_address": {"id": "adr_e6b764b2fac311efa8503cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:56+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", + {}}, "buyer_address": {"id": "adr_e6b48af8fac311efb2ebac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:57+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -498,14 +431,14 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}, {"object": "Fee", "type": + "6.07000", "charged": true, "refunded": false}, {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": false}], - "id": "shp_51a3c4e20f394a308d398a9f76639c07", "object": "Shipment"}' + "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '10261' + - '8509' content-type: - application/json; charset=utf-8 expires: @@ -525,20 +458,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c7de7885e29001705c1 + - 8e8eb62967c9fbede2b97a930018749e x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.267915' + - '0.250325' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -549,7 +482,7 @@ interactions: "invoice_attachments": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="], "supporting_documentation_attachments": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="], "description": "Test description", "contact_email": "test@example.com", "tracking_code": - "9400100105807075742343", "amount": "100.00"}' + "9400100208303109500669", "amount": "100.00"}' headers: Accept: - '*/*' @@ -569,24 +502,24 @@ interactions: uri: https://api.easypost.com/v2/claims response: body: - string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/cd4a4ca08f8c4fa1a57c1fbe6beb1879.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/ca160db21ac5455f9a865812e58b10d3.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/801e8c25392d4921a994888367961787.png"], + string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/8fb0b33e39004bfea8bffabf242d48c8.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/6acf5385ee494fc2bfcac704b9dcfddf.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/5bf9e0415088448a937d39348a485593.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-08-15T19:52:30", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:30"}], - "id": "clm_09817b6b616a41929c00e7e6d9dd559c", "insurance_amount": "100.00", - "insurance_id": "ins_cc8aaf0d3a6540c9a008f4a5a1637ef8", "mode": "test", "object": + "2025-03-06T19:47:58Z", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2025-03-06T19:47:58Z"}], + "id": "clm_09ce5f03fd6b4310b9c5b7f306407214", "insurance_amount": "100.00", + "insurance_id": "ins_029e06b218ab48e0979236191bb04df0", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", + "100.00", "salvage_value": null, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-08-15T19:52:30", "tracking_code": "9400100105807075742343", "type": - "damage", "updated_at": "2024-08-15T19:52:30"}' + "2025-03-06T19:47:58Z", "tracking_code": "9400100208303109500669", "type": + "damage", "updated_at": "2025-03-06T19:47:58Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1111' + - '1115' content-type: - application/json; charset=utf-8 expires: @@ -606,20 +539,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c7ee7885e290017061e + - 8e8eb62967c9fbeee2b97a93001874ec x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.830272' + - '0.851508' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_claim_get_next_page.yaml b/tests/cassettes/test_claim_get_next_page.yaml index 3e78599d..9975569b 100644 --- a/tests/cassettes/test_claim_get_next_page.yaml +++ b/tests/cassettes/test_claim_get_next_page.yaml @@ -16,202 +16,50 @@ interactions: uri: https://api.easypost.com/v2/claims?page_size=5 response: body: - string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/c362d4779c924f598e77e03b784a8562.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/438ff93724ed4756a2a19a5da91226dd.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/d81d826438e84c19b03d7b57d387526e.png"], + string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/cde3cb05bd1e4e6f8de416f301f44354.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/3617f2bdfed24000b62349577cc77b85.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/6fc76e0969d94780811a7baf5c1cd4ca.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-08-15T19:52:33", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:33"}], - "id": "clm_09816458dd9d483ba94edbde30104139", "insurance_amount": "100.00", - "insurance_id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "mode": "test", "object": + "2025-03-06T19:48:00Z", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2025-03-06T19:48:00Z"}], + "id": "clm_09ce975320fe4661af0f80a68022ee76", "insurance_amount": "100.00", + "insurance_id": "ins_7bcb457363834ebd88ba419138138fbc", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", + "100.00", "salvage_value": null, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-08-15T19:52:33", "tracking_code": "9400100105807075742367", "type": - "damage", "updated_at": "2024-08-15T19:52:33"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/cd4a4ca08f8c4fa1a57c1fbe6beb1879.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/ca160db21ac5455f9a865812e58b10d3.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/801e8c25392d4921a994888367961787.png"], + "2025-03-06T19:48:00Z", "tracking_code": "9400100208303109500676", "type": + "damage", "updated_at": "2025-03-06T19:48:00Z"}, {"approved_amount": null, + "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/8fb0b33e39004bfea8bffabf242d48c8.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/6acf5385ee494fc2bfcac704b9dcfddf.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/5bf9e0415088448a937d39348a485593.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-08-15T19:52:30", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:30"}], - "id": "clm_09817b6b616a41929c00e7e6d9dd559c", "insurance_amount": "100.00", - "insurance_id": "ins_cc8aaf0d3a6540c9a008f4a5a1637ef8", "mode": "test", "object": + "2025-03-06T19:47:58Z", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2025-03-06T19:47:58Z"}], + "id": "clm_09ce5f03fd6b4310b9c5b7f306407214", "insurance_amount": "100.00", + "insurance_id": "ins_029e06b218ab48e0979236191bb04df0", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", + "100.00", "salvage_value": null, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-08-15T19:52:30", "tracking_code": "9400100105807075742343", "type": - "damage", "updated_at": "2024-08-15T19:52:30"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/533eff379afa47759cdc14f19e190fc7.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4715d1ddc5e448ad924c029d8407b9e4.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/987f3e1a094044219e640163b1074ff7.png"], + "2025-03-06T19:47:58Z", "tracking_code": "9400100208303109500669", "type": + "damage", "updated_at": "2025-03-06T19:47:58Z"}, {"approved_amount": null, + "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250221/b323c9d15a5f45669b16994df4233f82.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250221/71287f6c2f984eb58e336ff7266d4d7a.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250221/662abb57720b4740a6003e285451c988.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:44", "description": "Test description", "history": [{"status": - "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": - "2024-07-23T17:53:45"}, {"status": "submitted", "status_detail": "Claim was - created.", "timestamp": "2024-07-23T17:53:44"}], "id": "clm_097eda66d06e42ec84449bbd34671a7d", - "insurance_amount": "100.00", "insurance_id": "ins_8d75d3dcf398461aaa330e48dbd4c19e", - "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": - null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": - "shp_82fecc386f314823ad6b1a35365b7f4e", "status": "cancelled", "status_detail": - "Claim cancellation was requested.", "status_timestamp": "2024-07-23T17:53:45", - "tracking_code": "9400100110368066361872", "type": "damage", "updated_at": - "2024-07-23T17:53:45"}, {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7b9b0171ae7b4e258f765822e7cddb71.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/2cd9fdd33a7d40fc84ac8f87c3da1f86.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/d3aebbc42e884769ad810c92c26ad8ad.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:40", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-23T17:53:40"}], - "id": "clm_097e86d630e44e83b736c48c1271fed3", "insurance_amount": "100.00", - "insurance_id": "ins_33a9255ab9f443c18a1c1876bc6e25a4", "mode": "test", "object": + "2025-02-21T18:30:53Z", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2025-02-21T18:30:53Z"}], + "id": "clm_09cc787188c1462aaa437fcba47ee03d", "insurance_amount": "100.00", + "insurance_id": "ins_730ae2cc418147938bfcac3e49ed1665", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", + "100.00", "salvage_value": null, "shipment_id": "shp_bfb151c83dbf4a8c97a494074041c11f", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-23T17:53:40", "tracking_code": "9400100110368066361841", "type": - "damage", "updated_at": "2024-07-23T17:53:40"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/836a3784a67e429ca0d30f10f64cb0bc.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/a1316f8afc5843d7b2d1370dfb7e73d3.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/4d3502f6a6e64972913e43fc4191b4cd.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:53:36", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-23T17:53:36"}], - "id": "clm_097eb623597146bab94e9ef701364d4f", "insurance_amount": "100.00", - "insurance_id": "ins_6aa59cf8618843c09b4707e1f3f74486", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", - "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-23T17:53:36", "tracking_code": "9400100110368066361827", "type": - "damage", "updated_at": "2024-07-23T17:53:36"}], "has_more": true}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '5708' - content-type: - - application/json; charset=utf-8 - expires: - - '0' - pragma: - - no-cache - referrer-policy: - - strict-origin-when-cross-origin - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-backend: - - easypost - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-ep-request-uuid: - - 62c1f5d866be5c83e7885e2c00170aca - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb41nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c - x-runtime: - - '0.050227' - x-version-label: - - easypost-202408151917-1527448f18-master - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - authorization: - - - user-agent: - - - method: GET - uri: https://api.easypost.com/v2/claims?before_id=clm_097eb623597146bab94e9ef701364d4f&page_size=5 - response: - body: - string: '{"claims": [{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/7280de6a4ce249e6af34cfd8fc2c8613.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/9faca9b590ed4616aaa385e717969828.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240723/5c641ae1e5a54a53ab6ded433ebfabdc.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-23T17:10:33", "description": "Test description", "history": [{"status": - "cancelled", "status_detail": "Claim cancellation was requested.", "timestamp": - "2024-07-23T17:12:03"}, {"status": "submitted", "status_detail": "Claim was - created.", "timestamp": "2024-07-23T17:10:33"}], "id": "clm_097e39b748d24c32a0bd61840fc0763f", - "insurance_amount": "249.99", "insurance_id": "ins_d15880e5772c4373aec497744fa4da54", - "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": - null, "requested_amount": "100.00", "salvage_value": null, "shipment_id": - "shp_09a808dae97442f3aa7fbd994a3533d4", "status": "cancelled", "status_detail": - "Claim cancellation was requested.", "status_timestamp": "2024-07-23T17:12:03", - "tracking_code": "9470100110368066351889", "type": "damage", "updated_at": - "2024-07-23T17:12:03"}, {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d0c4ff3d71c4f5d8ec5c21bcfeaf419.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/8f78018b1c6941cdafd1ca9d36579e40.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/973d2a48b6b04423b1d112dff79e85e3.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-22T20:47:51", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-22T20:47:51"}], - "id": "clm_097ed32c795141499bb0a5e17a4fe24f", "insurance_amount": "249.99", - "insurance_id": "ins_fa5c89fcf765494b921a96c4e4004476", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_5bcff1867a1f4a29a67db9a84a2082c5", - "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-22T20:47:51", "tracking_code": "9434600110368065978707", "type": - "damage", "updated_at": "2024-07-22T20:47:51"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/1d0c4ff3d71c4f5d8ec5c21bcfeaf419.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/8f78018b1c6941cdafd1ca9d36579e40.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/973d2a48b6b04423b1d112dff79e85e3.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-22T20:47:51", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-22T20:47:51"}], - "id": "clm_097ed32c795141499bb0a5e17a4fe24f", "insurance_amount": "249.99", - "insurance_id": "ins_fa5c89fcf765494b921a96c4e4004476", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_5bcff1867a1f4a29a67db9a84a2082c5", - "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-07-22T20:47:51", "tracking_code": "9434600110368065978707", "type": - "damage", "updated_at": "2024-07-22T20:47:51"}, {"approved_amount": null, - "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/5b940a68e4a5493e8d5ae50c79ead964.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2a238f773957479199496ee7633187b8.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0281745ca44e4c88a632f9534c2c709d.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-22T18:44:23", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-22T18:44:23"}], - "id": "clm_097e05da0f9740569d4c7dde98b45814", "insurance_amount": "100.00", - "insurance_id": "ins_aabfdf1ee3f243c79e8b43d5f7f2aa0c", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": null, "status": "submitted", - "status_detail": "Claim was created.", "status_timestamp": "2024-07-22T18:44:23", - "tracking_code": "EZ1000000001", "type": "damage", "updated_at": "2024-07-22T18:44:23"}, - {"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/5b940a68e4a5493e8d5ae50c79ead964.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/2a238f773957479199496ee7633187b8.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240722/0281745ca44e4c88a632f9534c2c709d.png"], - "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-07-22T18:44:23", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-07-22T18:44:23"}], - "id": "clm_097e05da0f9740569d4c7dde98b45814", "insurance_amount": "100.00", - "insurance_id": "ins_aabfdf1ee3f243c79e8b43d5f7f2aa0c", "mode": "test", "object": - "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": null, "status": "submitted", - "status_detail": "Claim was created.", "status_timestamp": "2024-07-22T18:44:23", - "tracking_code": "EZ1000000001", "type": "damage", "updated_at": "2024-07-22T18:44:23"}], - "has_more": true}' + "2025-02-21T18:30:53Z", "tracking_code": "9400100208271116404754", "type": + "theft", "updated_at": "2025-02-21T18:30:53Z"}], "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '5620' + - '3374' content-type: - application/json; charset=utf-8 expires: @@ -226,27 +74,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c83e7885e2c00170aef + - 8e8eb62667c9fbf1e2b97aae001878b2 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.054210' + - '0.041997' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_claim_retrieve.yaml b/tests/cassettes/test_claim_retrieve.yaml index 8934cdea..6b1cb27e 100644 --- a/tests/cassettes/test_claim_retrieve.yaml +++ b/tests/cassettes/test_claim_retrieve.yaml @@ -31,106 +31,84 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:52:31Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "created_at": "2025-03-06T19:47:59Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-08-15T19:52:32Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_63b0fc0d7fce4b6d9176c82974fa8a0e", - "object": "CustomsInfo", "created_at": "2024-08-15T19:52:31Z", "updated_at": - "2024-08-15T19:52:31Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2025-03-06T19:47:59Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_1291df2a92c34d0484e0b4b391213db1", + "object": "CustomsInfo", "created_at": "2025-03-06T19:47:59Z", "updated_at": + "2025-03-06T19:47:59Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_e8e2ff889f1f4ecba7443486f5e560a0", "object": "CustomsItem", - "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", + [{"id": "cstitem_c8d91674ee2742eaa751f6a354488a1e", "object": "CustomsItem", + "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", + null}]}, "from_address": {"id": "adr_e82a4736fac311ef8d72ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_aedcc5f27422411a97e32968e988ad07", - "object": "Parcel", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_106aad69070e47e0a63014a0ff424828", + "object": "Parcel", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_f149259c37ce4e76a279042b6b4d368d", - "object": "Rate", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c0906e3e66874d26808a096bc9063c0f", + "object": "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514", - "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8178ba6a5a414e43b01703b4062a1afd", + "object": "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37b2dec5f536484d90d2d79916f30836", - "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_136f13c287d34b3ba51f3a26bdc61932", + "object": "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + 1, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": - "2024-08-15T19:52:31+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_e827fb21fac311efb3b0ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:47:59+00:00", "updated_at": + "2025-03-06T19:47:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": + {"id": "adr_e82a4736fac311ef8d72ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", + {}}, "buyer_address": {"id": "adr_e827fb21fac311efb3b0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_3f3863c35045497db77b14187b65f824", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6912' + - '5160' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_3f3863c35045497db77b14187b65f824 + - /api/v2/shipments/shp_1bb0f57e60d6448b84a94a9e120629bf pragma: - no-cache referrer-policy: @@ -141,32 +119,34 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c7fe7885e2a0017072a + - 8e8eb62a67c9fbefe2b97aac001875ed x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.738831' + - '0.222811' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514"}}' + body: '{"rate": {"id": "rate_8178ba6a5a414e43b01703b4062a1afd"}}' headers: Accept: - '*/*' @@ -183,100 +163,79 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_3f3863c35045497db77b14187b65f824/buy + uri: https://api.easypost.com/v2/shipments/shp_1bb0f57e60d6448b84a94a9e120629bf/buy response: body: - string: '{"created_at": "2024-08-15T19:52:31Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "created_at": "2025-03-06T19:47:59Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100105807075742367", "updated_at": "2024-08-15T19:52:32Z", "batch_id": + "9400100208303109500676", "updated_at": "2025-03-06T19:48:00Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_63b0fc0d7fce4b6d9176c82974fa8a0e", "object": "CustomsInfo", "created_at": - "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "contents_explanation": + "cstinfo_1291df2a92c34d0484e0b4b391213db1", "object": "CustomsInfo", "created_at": + "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_e8e2ff889f1f4ecba7443486f5e560a0", - "object": "CustomsItem", "created_at": "2024-08-15T19:52:31Z", "updated_at": - "2024-08-15T19:52:31Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_c8d91674ee2742eaa751f6a354488a1e", + "object": "CustomsItem", "created_at": "2025-03-06T19:47:59Z", "updated_at": + "2025-03-06T19:47:59Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": + "adr_e82a4736fac311ef8d72ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_aedcc5f27422411a97e32968e988ad07", - "object": "Parcel", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_106aad69070e47e0a63014a0ff424828", + "object": "Parcel", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_3efd1f5493c949bbbc1c94a3c182facf", - "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:32Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_fb6b9be81ac54bcfa237b572bdc4a6c8", + "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:48:00Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:47:59Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e894723fdef038491185a1e89b45134cc2.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e8a29432d8244f4da9aab6664650a4d383.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f149259c37ce4e76a279042b6b4d368d", "object": - "Rate", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_c0906e3e66874d26808a096bc9063c0f", "object": + "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514", - "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8178ba6a5a414e43b01703b4062a1afd", + "object": "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37b2dec5f536484d90d2d79916f30836", - "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_136f13c287d34b3ba51f3a26bdc61932", + "object": "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + 1, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514", "object": - "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_8178ba6a5a414e43b01703b4062a1afd", "object": + "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_393a646a6cae4372b2bbda8e63441cc9", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742367", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:52:33Z", - "updated_at": "2024-08-15T19:52:33Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier": "USPS", + 3, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_8df7c31984b84c2a87210b822c4fbd47", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500676", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-06T19:48:00Z", + "updated_at": "2025-03-06T19:48:00Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzM5M2E2NDZhNmNhZTQzNzJiMmJiZGE4ZTYzNDQxY2M5"}, - "to_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", + "https://track.easypost.com/djE6dHJrXzhkZjdjMzE5ODRiODRjMmE4NzIxMGI4MjJjNGZiZDQ3"}, + "to_address": {"id": "adr_e827fb21fac311efb3b0ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -284,14 +243,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", + 4, "return_address": {"id": "adr_e82a4736fac311ef8d72ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", + {}}, "buyer_address": {"id": "adr_e827fb21fac311efb3b0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -301,13 +260,12 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_3f3863c35045497db77b14187b65f824", - "object": "Shipment"}' + "6.07000", "charged": true, "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '9037' + - '7285' content-type: - application/json; charset=utf-8 expires: @@ -327,20 +285,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c80e7885e2a001707f9 + - 8e8eb62a67c9fbefe2b97aac00187633 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.929695' + - '0.678226' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -364,103 +322,82 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_3f3863c35045497db77b14187b65f824/insure + uri: https://api.easypost.com/v2/shipments/shp_1bb0f57e60d6448b84a94a9e120629bf/insure response: body: - string: '{"created_at": "2024-08-15T19:52:31Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "created_at": "2025-03-06T19:47:59Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100105807075742367", "updated_at": "2024-08-15T19:52:32Z", "batch_id": + "9400100208303109500676", "updated_at": "2025-03-06T19:48:00Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_63b0fc0d7fce4b6d9176c82974fa8a0e", "object": "CustomsInfo", "created_at": - "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", "contents_explanation": + "cstinfo_1291df2a92c34d0484e0b4b391213db1", "object": "CustomsInfo", "created_at": + "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_e8e2ff889f1f4ecba7443486f5e560a0", - "object": "CustomsItem", "created_at": "2024-08-15T19:52:31Z", "updated_at": - "2024-08-15T19:52:31Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_c8d91674ee2742eaa751f6a354488a1e", + "object": "CustomsItem", "created_at": "2025-03-06T19:47:59Z", "updated_at": + "2025-03-06T19:47:59Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": + "adr_e82a4736fac311ef8d72ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_aedcc5f27422411a97e32968e988ad07", - "object": "Parcel", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", + {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_106aad69070e47e0a63014a0ff424828", + "object": "Parcel", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_3efd1f5493c949bbbc1c94a3c182facf", - "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:32Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_fb6b9be81ac54bcfa237b572bdc4a6c8", + "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:48:00Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:47:59Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e894723fdef038491185a1e89b45134cc2.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e8a29432d8244f4da9aab6664650a4d383.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f149259c37ce4e76a279042b6b4d368d", "object": - "Rate", "created_at": "2024-08-15T19:52:31Z", "updated_at": "2024-08-15T19:52:31Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_c0906e3e66874d26808a096bc9063c0f", "object": + "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514", - "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8178ba6a5a414e43b01703b4062a1afd", + "object": "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37b2dec5f536484d90d2d79916f30836", - "object": "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_136f13c287d34b3ba51f3a26bdc61932", + "object": "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": + 1, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_c000ae3c0ecd4cec84b0ee49e82e4514", "object": - "Rate", "created_at": "2024-08-15T19:52:32Z", "updated_at": "2024-08-15T19:52:32Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_8178ba6a5a414e43b01703b4062a1afd", "object": + "Rate", "created_at": "2025-03-06T19:47:59Z", "updated_at": "2025-03-06T19:47:59Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_393a646a6cae4372b2bbda8e63441cc9", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742367", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:52:33Z", - "updated_at": "2024-08-15T19:52:33Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:52:33Z", "shipment_id": "shp_3f3863c35045497db77b14187b65f824", + 3, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_8df7c31984b84c2a87210b822c4fbd47", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500676", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-06T19:48:00Z", + "updated_at": "2025-03-06T19:48:00Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:00Z", "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:52:33Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:29:33Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -469,9 +406,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzM5M2E2NDZhNmNhZTQzNzJiMmJiZGE4ZTYzNDQxY2M5"}, - "to_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzhkZjdjMzE5ODRiODRjMmE4NzIxMGI4MjJjNGZiZDQ3"}, + "to_address": {"id": "adr_e827fb21fac311efb3b0ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -479,14 +416,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", + 4, "return_address": {"id": "adr_e82a4736fac311ef8d72ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_e88398b65b3f11ef92023cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", + {}}, "buyer_address": {"id": "adr_e827fb21fac311efb3b0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -496,14 +433,14 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}, {"object": "Fee", "type": + "6.07000", "charged": true, "refunded": false}, {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": false}], - "id": "shp_3f3863c35045497db77b14187b65f824", "object": "Shipment"}' + "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '10261' + - '8509' content-type: - application/json; charset=utf-8 expires: @@ -523,7 +460,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c81e7885e2a001708ed + - 8e8eb62a67c9fbf0e2b97aac00187709 x-frame-options: - SAMEORIGIN x-node: @@ -531,12 +468,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.306838' + - '0.224067' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -547,7 +484,7 @@ interactions: "invoice_attachments": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="], "supporting_documentation_attachments": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAeUlEQVR42mP8//8/AwAI/AL+4Q7AIAAAAABJRU5ErkJggg=="], "description": "Test description", "contact_email": "test@example.com", "tracking_code": - "9400100105807075742367", "amount": "100.00"}' + "9400100208303109500676", "amount": "100.00"}' headers: Accept: - '*/*' @@ -567,24 +504,24 @@ interactions: uri: https://api.easypost.com/v2/claims response: body: - string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/c362d4779c924f598e77e03b784a8562.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/438ff93724ed4756a2a19a5da91226dd.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/d81d826438e84c19b03d7b57d387526e.png"], + string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/cde3cb05bd1e4e6f8de416f301f44354.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/3617f2bdfed24000b62349577cc77b85.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/6fc76e0969d94780811a7baf5c1cd4ca.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-08-15T19:52:33", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:33"}], - "id": "clm_09816458dd9d483ba94edbde30104139", "insurance_amount": "100.00", - "insurance_id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "mode": "test", "object": + "2025-03-06T19:48:00Z", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2025-03-06T19:48:00Z"}], + "id": "clm_09ce975320fe4661af0f80a68022ee76", "insurance_amount": "100.00", + "insurance_id": "ins_7bcb457363834ebd88ba419138138fbc", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", + "100.00", "salvage_value": null, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-08-15T19:52:33", "tracking_code": "9400100105807075742367", "type": - "damage", "updated_at": "2024-08-15T19:52:33"}' + "2025-03-06T19:48:00Z", "tracking_code": "9400100208303109500676", "type": + "damage", "updated_at": "2025-03-06T19:48:00Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1111' + - '1115' content-type: - application/json; charset=utf-8 expires: @@ -604,20 +541,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c81e7885e2a00170944 + - 8e8eb62a67c9fbf0e2b97aac00187750 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.847946' + - '0.855502' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -637,27 +574,27 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/claims/clm_09816458dd9d483ba94edbde30104139 + uri: https://api.easypost.com/v2/claims/clm_09ce975320fe4661af0f80a68022ee76 response: body: - string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/c362d4779c924f598e77e03b784a8562.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/438ff93724ed4756a2a19a5da91226dd.png", - "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20240815/d81d826438e84c19b03d7b57d387526e.png"], + string: '{"approved_amount": null, "attachments": ["https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/cde3cb05bd1e4e6f8de416f301f44354.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/3617f2bdfed24000b62349577cc77b85.png", + "https://easypost-files.s3-us-west-2.amazonaws.com/insurance/20250306/6fc76e0969d94780811a7baf5c1cd4ca.png"], "check_delivery_address": null, "contact_email": "test@example.com", "created_at": - "2024-08-15T19:52:33", "description": "Test description", "history": [{"status": - "submitted", "status_detail": "Claim was created.", "timestamp": "2024-08-15T19:52:33"}], - "id": "clm_09816458dd9d483ba94edbde30104139", "insurance_amount": "100.00", - "insurance_id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "mode": "test", "object": + "2025-03-06T19:48:00Z", "description": "Test description", "history": [{"status": + "submitted", "status_detail": "Claim was created.", "timestamp": "2025-03-06T19:48:00Z"}], + "id": "clm_09ce975320fe4661af0f80a68022ee76", "insurance_amount": "100.00", + "insurance_id": "ins_7bcb457363834ebd88ba419138138fbc", "mode": "test", "object": "Claim", "payment_method": "easypost_wallet", "recipient_name": null, "requested_amount": - "100.00", "salvage_value": null, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", + "100.00", "salvage_value": null, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "status": "submitted", "status_detail": "Claim was created.", "status_timestamp": - "2024-08-15T19:52:33", "tracking_code": "9400100105807075742367", "type": - "damage", "updated_at": "2024-08-15T19:52:33"}' + "2025-03-06T19:48:00Z", "tracking_code": "9400100208303109500676", "type": + "damage", "updated_at": "2025-03-06T19:48:00Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1111' + - '1115' content-type: - application/json; charset=utf-8 expires: @@ -677,20 +614,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c82e7885e2a00170a2a + - 8e8eb62a67c9fbf1e2b97aac0018783f x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.040694' + - '0.036017' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_info_create.yaml b/tests/cassettes/test_customs_info_create.yaml index 3248dda6..2258959b 100644 --- a/tests/cassettes/test_customs_info_create.yaml +++ b/tests/cassettes/test_customs_info_create.yaml @@ -24,14 +24,14 @@ interactions: uri: https://api.easypost.com/v2/customs_infos response: body: - string: '{"id": "cstinfo_316b0f0140364345a5e5b5a72308eff1", "object": "CustomsInfo", - "created_at": "2024-08-15T19:52:38Z", "updated_at": "2024-08-15T19:52:38Z", + string: '{"id": "cstinfo_05b128ea88f14b1faa98a7016564debd", "object": "CustomsInfo", + "created_at": "2025-03-06T19:48:04Z", "updated_at": "2025-03-06T19:48:04Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_db2112a2507240be8f65da42822a10ae", - "object": "CustomsItem", "created_at": "2024-08-15T19:52:38Z", "updated_at": - "2024-08-15T19:52:38Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_f3567deaea214b1aa4a9a8270d5de29e", + "object": "CustomsItem", "created_at": "2025-03-06T19:48:04Z", "updated_at": + "2025-03-06T19:48:04Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}' @@ -45,7 +45,7 @@ interactions: expires: - '0' location: - - /api/v2/customs_infos/cstinfo_316b0f0140364345a5e5b5a72308eff1 + - /api/v2/customs_infos/cstinfo_05b128ea88f14b1faa98a7016564debd pragma: - no-cache referrer-policy: @@ -61,20 +61,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c86e788613c00170ecf + - 8e8eb62867c9fbf4e2b97ab000187b4a x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.049551' + - '0.039503' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_info_retrieve.yaml b/tests/cassettes/test_customs_info_retrieve.yaml index b9ab9a18..2484bb1e 100644 --- a/tests/cassettes/test_customs_info_retrieve.yaml +++ b/tests/cassettes/test_customs_info_retrieve.yaml @@ -24,14 +24,14 @@ interactions: uri: https://api.easypost.com/v2/customs_infos response: body: - string: '{"id": "cstinfo_b116875618ab4d9ea9831fd47378af88", "object": "CustomsInfo", - "created_at": "2024-08-15T19:52:39Z", "updated_at": "2024-08-15T19:52:39Z", + string: '{"id": "cstinfo_d9ae40b6b146421b887a36fa89c0d2d4", "object": "CustomsInfo", + "created_at": "2025-03-06T19:48:04Z", "updated_at": "2025-03-06T19:48:04Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_00ee149af2b94c43a517e874b5eb21b3", - "object": "CustomsItem", "created_at": "2024-08-15T19:52:39Z", "updated_at": - "2024-08-15T19:52:39Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_92443ed7dacf431a8c5bcb8f42620517", + "object": "CustomsItem", "created_at": "2025-03-06T19:48:04Z", "updated_at": + "2025-03-06T19:48:04Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}' @@ -45,7 +45,7 @@ interactions: expires: - '0' location: - - /api/v2/customs_infos/cstinfo_b116875618ab4d9ea9831fd47378af88 + - /api/v2/customs_infos/cstinfo_d9ae40b6b146421b887a36fa89c0d2d4 pragma: - no-cache referrer-policy: @@ -61,7 +61,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c87e788613d00170f16 + - 8e8eb62767c9fbf4e2b97ab100187b7f x-frame-options: - SAMEORIGIN x-node: @@ -69,12 +69,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.042017' + - '0.073920' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -94,17 +94,17 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/customs_infos/cstinfo_b116875618ab4d9ea9831fd47378af88 + uri: https://api.easypost.com/v2/customs_infos/cstinfo_d9ae40b6b146421b887a36fa89c0d2d4 response: body: - string: '{"id": "cstinfo_b116875618ab4d9ea9831fd47378af88", "object": "CustomsInfo", - "created_at": "2024-08-15T19:52:39Z", "updated_at": "2024-08-15T19:52:39Z", + string: '{"id": "cstinfo_d9ae40b6b146421b887a36fa89c0d2d4", "object": "CustomsInfo", + "created_at": "2025-03-06T19:48:04Z", "updated_at": "2025-03-06T19:48:04Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": - "test", "declaration": null, "customs_items": [{"id": "cstitem_00ee149af2b94c43a517e874b5eb21b3", - "object": "CustomsItem", "created_at": "2024-08-15T19:52:39Z", "updated_at": - "2024-08-15T19:52:39Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_92443ed7dacf431a8c5bcb8f42620517", + "object": "CustomsItem", "created_at": "2025-03-06T19:48:04Z", "updated_at": + "2025-03-06T19:48:04Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}' @@ -132,20 +132,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c87e788613d00170f32 + - 8e8eb62767c9fbf4e2b97ab100187b99 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.026357' + - '0.028455' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_item_create.yaml b/tests/cassettes/test_customs_item_create.yaml index 58d619a6..4e074d10 100644 --- a/tests/cassettes/test_customs_item_create.yaml +++ b/tests/cassettes/test_customs_item_create.yaml @@ -21,8 +21,8 @@ interactions: uri: https://api.easypost.com/v2/customs_items response: body: - string: '{"id": "cstitem_1d73814f028d441cab05856c9e47a8dd", "object": "CustomsItem", - "created_at": "2024-08-15T19:52:39Z", "updated_at": "2024-08-15T19:52:39Z", + string: '{"id": "cstitem_53ea67b599dd44e2ab90b794ead81234", "object": "CustomsItem", + "created_at": "2025-03-06T19:48:04Z", "updated_at": "2025-03-06T19:48:04Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": @@ -37,7 +37,7 @@ interactions: expires: - '0' location: - - /api/v2/customs_items/cstitem_1d73814f028d441cab05856c9e47a8dd + - /api/v2/customs_items/cstitem_53ea67b599dd44e2ab90b794ead81234 pragma: - no-cache referrer-policy: @@ -48,25 +48,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5c87e788613e00170f6f + - 8e8eb62867c9fbf4e2b97ab200187bbf x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.034319' + - '0.034055' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_item_retrieve.yaml b/tests/cassettes/test_customs_item_retrieve.yaml index 4de9b2e2..77678a9f 100644 --- a/tests/cassettes/test_customs_item_retrieve.yaml +++ b/tests/cassettes/test_customs_item_retrieve.yaml @@ -21,8 +21,8 @@ interactions: uri: https://api.easypost.com/v2/customs_items response: body: - string: '{"id": "cstitem_f69c399844294c5d8f2783fb0f4cf759", "object": "CustomsItem", - "created_at": "2024-08-15T19:52:39Z", "updated_at": "2024-08-15T19:52:39Z", + string: '{"id": "cstitem_c175be7a6c5a43a584a77efa5ebaaede", "object": "CustomsItem", + "created_at": "2025-03-06T19:48:05Z", "updated_at": "2025-03-06T19:48:05Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": @@ -37,7 +37,7 @@ interactions: expires: - '0' location: - - /api/v2/customs_items/cstitem_f69c399844294c5d8f2783fb0f4cf759 + - /api/v2/customs_items/cstitem_c175be7a6c5a43a584a77efa5ebaaede pragma: - no-cache referrer-policy: @@ -48,27 +48,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c87e788613f00170fb0 + - 8e8eb62667c9fbf5e2b97ab300187be2 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.038585' + - '0.028563' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -88,11 +86,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/customs_items/cstitem_f69c399844294c5d8f2783fb0f4cf759 + uri: https://api.easypost.com/v2/customs_items/cstitem_c175be7a6c5a43a584a77efa5ebaaede response: body: - string: '{"id": "cstitem_f69c399844294c5d8f2783fb0f4cf759", "object": "CustomsItem", - "created_at": "2024-08-15T19:52:39Z", "updated_at": "2024-08-15T19:52:39Z", + string: '{"id": "cstitem_c175be7a6c5a43a584a77efa5ebaaede", "object": "CustomsItem", + "created_at": "2025-03-06T19:48:05Z", "updated_at": "2025-03-06T19:48:05Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": @@ -121,20 +119,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c87e788613f00170fcb + - 8e8eb62667c9fbf5e2b97ab300187bf3 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.025397' + - '0.022030' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_endshipper_all.yaml b/tests/cassettes/test_endshipper_all.yaml index aed99252..10245d3d 100644 --- a/tests/cassettes/test_endshipper_all.yaml +++ b/tests/cassettes/test_endshipper_all.yaml @@ -65,20 +65,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c88e7886142001710a8 + - 8e8eb62867c9fbf5e2b97acd00187ca8 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.602542' + - '0.607331' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_endshipper_create.yaml b/tests/cassettes/test_endshipper_create.yaml index 5b9b8d60..f8dae83c 100644 --- a/tests/cassettes/test_endshipper_create.yaml +++ b/tests/cassettes/test_endshipper_create.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/end_shippers response: body: - string: '{"id": "es_ef2b59d05fba457cbddcf06e626223c5", "object": "EndShipper", - "mode": "test", "created_at": "2024-08-15T19:52:40+00:00", "updated_at": "2024-08-15T19:52:40+00:00", + string: '{"id": "es_5e3ea7d1189e454eac0441b7f0f7ea0d", "object": "EndShipper", + "mode": "test", "created_at": "2025-03-06T19:48:05+00:00", "updated_at": "2025-03-06T19:48:05+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -51,20 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c88e788614000171006 + - 8e8eb62767c9fbf5e2b97ab400187c1e x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.052347' + - '0.048818' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_endshipper_retrieve.yaml b/tests/cassettes/test_endshipper_retrieve.yaml index 1b4b7de0..891c2d06 100644 --- a/tests/cassettes/test_endshipper_retrieve.yaml +++ b/tests/cassettes/test_endshipper_retrieve.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/end_shippers response: body: - string: '{"id": "es_50c27a0653174c01970f6844e95a33d8", "object": "EndShipper", - "mode": "test", "created_at": "2024-08-15T19:52:40+00:00", "updated_at": "2024-08-15T19:52:40+00:00", + string: '{"id": "es_a5f3f1ad2ab8432593d05a81983d189f", "object": "EndShipper", + "mode": "test", "created_at": "2025-03-06T19:48:05+00:00", "updated_at": "2025-03-06T19:48:05+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -46,25 +46,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c88e788614100171048 + - 8e8eb62767c9fbf5e2b97ab500187c49 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.056509' + - '0.053052' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -84,11 +86,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/end_shippers/es_50c27a0653174c01970f6844e95a33d8 + uri: https://api.easypost.com/v2/end_shippers/es_a5f3f1ad2ab8432593d05a81983d189f response: body: - string: '{"id": "es_50c27a0653174c01970f6844e95a33d8", "object": "EndShipper", - "mode": "test", "created_at": "2024-08-15T19:52:40+00:00", "updated_at": "2024-08-15T19:52:40+00:00", + string: '{"id": "es_a5f3f1ad2ab8432593d05a81983d189f", "object": "EndShipper", + "mode": "test", "created_at": "2025-03-06T19:48:05+00:00", "updated_at": "2025-03-06T19:48:05+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -116,20 +118,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c88e788614100171068 + - 8e8eb62767c9fbf5e2b97ab500187c69 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.029566' + - '0.035268' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_endshipper_update.yaml b/tests/cassettes/test_endshipper_update.yaml index 859cae26..b87ea667 100644 --- a/tests/cassettes/test_endshipper_update.yaml +++ b/tests/cassettes/test_endshipper_update.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/end_shippers response: body: - string: '{"id": "es_ad8cde1ed2dd4d65a83fc6066bd62796", "object": "EndShipper", - "mode": "test", "created_at": "2024-08-15T19:52:41+00:00", "updated_at": "2024-08-15T19:52:41+00:00", + string: '{"id": "es_1fcf924d41404c4daee3fba4c2946f87", "object": "EndShipper", + "mode": "test", "created_at": "2025-03-06T19:48:06+00:00", "updated_at": "2025-03-06T19:48:06+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -51,20 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c89e78861430017119f + - 8e8eb62b67c9fbf6e2b97ace00187df5 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.049814' + - '0.049372' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -90,11 +90,11 @@ interactions: user-agent: - method: PUT - uri: https://api.easypost.com/v2/end_shippers/es_ad8cde1ed2dd4d65a83fc6066bd62796 + uri: https://api.easypost.com/v2/end_shippers/es_1fcf924d41404c4daee3fba4c2946f87 response: body: - string: '{"id": "es_ad8cde1ed2dd4d65a83fc6066bd62796", "object": "EndShipper", - "mode": "test", "created_at": "2024-08-15T19:52:41+00:00", "updated_at": "2024-08-15T19:52:41+00:00", + string: '{"id": "es_1fcf924d41404c4daee3fba4c2946f87", "object": "EndShipper", + "mode": "test", "created_at": "2025-03-06T19:48:06+00:00", "updated_at": "2025-03-06T19:48:06+00:00", "name": "CAPTAIN SPARROW", "company": "EASYPOST", "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -117,25 +117,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c89e7886143001711be + - 8e8eb62b67c9fbf6e2b97ace00187e1c x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.067068' + - '0.059291' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_error.yaml b/tests/cassettes/test_error.yaml index 5c304008..e4baf953 100644 --- a/tests/cassettes/test_error.yaml +++ b/tests/cassettes/test_error.yaml @@ -46,7 +46,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c8ae788614400171210 + - 8e8eb62967c9fbf6e2b97acf00187e62 x-frame-options: - SAMEORIGIN x-node: @@ -54,12 +54,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.025504' + - '0.019930' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_error_alternative_format.yaml b/tests/cassettes/test_error_alternative_format.yaml index 88e68b39..bfe5d885 100644 --- a/tests/cassettes/test_error_alternative_format.yaml +++ b/tests/cassettes/test_error_alternative_format.yaml @@ -51,20 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 764a527567b8c6c5e2b8e6320004ed95 + - 8e8eb62b67c9fbf6e2b97ad000187ea1 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb4nuq 51d74985a2 - extlb1nuq 99aac35317 x-runtime: - - '0.032715' + - '0.030414' x-version-label: - - easypost-202502211712-417f1a0f64-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_all.yaml b/tests/cassettes/test_event_all.yaml index 344dce06..2b0e16c7 100644 --- a/tests/cassettes/test_event_all.yaml +++ b/tests/cassettes/test_event_all.yaml @@ -16,27 +16,27 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: '{"events": [{"description": "tracker.created", "id": "evt_ecc447ee5b3f11efb81703b24128e5c4", + string: '{"events": [{"description": "tracker.created", "id": "evt_ebde5d3cfac311ef84522bd0c5c586a1", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:38.512Z", "mode": "test", "object": "Event"}, {"description": - "tracker.created", "id": "evt_e98543305b3f11ef8f0819412c30cbb6", "user_id": + "2025-03-06T19:48:05.456Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e8d4ccdefac311ef85c247061f0fe827", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:33.066Z", "mode": "test", "object": "Event"}, {"description": - "tracker.created", "id": "evt_e64273965b3f11ef89a955639b5325b3", "user_id": + "2025-03-06T19:48:00.360Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e45091a2fac311ef8fdf07d8bb7ce84b", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:27.595Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_e1f88e1a5b3f11ef923f11dbabadcf44", "user_id": + "2025-03-06T19:47:52.782Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e3aa5026fac311ef87b57da2a609c037", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:20.400Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_e155647e5b3f11ef92ec2db9b1a3ed44", "user_id": + "2025-03-06T19:47:51.693Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e12e412cfac311efbc965774cea6d58d", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:19.331Z", "mode": "test", "object": "Event"}], "has_more": + "2025-03-06T19:47:47.524Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '1114' + - '1112' content-type: - application/json; charset=utf-8 expires: @@ -51,27 +51,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c8ae788615c0017126c + - 8e8eb62967c9fbf7e2b97ad100187ee7 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.228543' + - '0.379323' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_get_next_page.yaml b/tests/cassettes/test_event_get_next_page.yaml index e4c564cf..f25ac477 100644 --- a/tests/cassettes/test_event_get_next_page.yaml +++ b/tests/cassettes/test_event_get_next_page.yaml @@ -16,27 +16,27 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: '{"events": [{"description": "tracker.created", "id": "evt_ecc447ee5b3f11efb81703b24128e5c4", + string: '{"events": [{"description": "tracker.created", "id": "evt_ebde5d3cfac311ef84522bd0c5c586a1", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:38.512Z", "mode": "test", "object": "Event"}, {"description": - "tracker.created", "id": "evt_e98543305b3f11ef8f0819412c30cbb6", "user_id": + "2025-03-06T19:48:05.456Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e8d4ccdefac311ef85c247061f0fe827", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:33.066Z", "mode": "test", "object": "Event"}, {"description": - "tracker.created", "id": "evt_e64273965b3f11ef89a955639b5325b3", "user_id": + "2025-03-06T19:48:00.360Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e45091a2fac311ef8fdf07d8bb7ce84b", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:27.595Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_e1f88e1a5b3f11ef923f11dbabadcf44", "user_id": + "2025-03-06T19:47:52.782Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e3aa5026fac311ef87b57da2a609c037", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:20.400Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_e155647e5b3f11ef92ec2db9b1a3ed44", "user_id": + "2025-03-06T19:47:51.693Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e12e412cfac311efbc965774cea6d58d", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:19.331Z", "mode": "test", "object": "Event"}], "has_more": + "2025-03-06T19:47:47.524Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '1114' + - '1112' content-type: - application/json; charset=utf-8 expires: @@ -56,20 +56,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5c8ae788615d001712dc + - 8e8eb62567c9fbf7e2b97ad200187fae x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.207426' + - '0.301702' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -89,24 +89,24 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/events?before_id=evt_e155647e5b3f11ef92ec2db9b1a3ed44&page_size=5 + uri: https://api.easypost.com/v2/events?before_id=evt_e12e412cfac311efbc965774cea6d58d&page_size=5 response: body: - string: '{"events": [{"description": "batch.updated", "id": "evt_deed12ea5b3f11efbc51556efb4ede2a", + string: '{"events": [{"description": "batch.updated", "id": "evt_ddab99befac311efb1c6057c04bd81f2", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:15.292Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_db46dc525b3f11ef8fae3551cd8ef274", "user_id": + "2025-03-06T19:47:41.635Z", "mode": "test", "object": "Event"}, {"description": + "batch.created", "id": "evt_dd964b36fac311ef94b45548938ae146", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:09.169Z", "mode": "test", "object": "Event"}, {"description": - "batch.created", "id": "evt_db3765f65b3f11efbb3d2728988b29f1", "user_id": + "2025-03-06T19:47:41.495Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_dd7ecaa6fac311ef9e7141b3d935e850", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:09.068Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_db0f0f485b3f11ef80d50170de2557da", "user_id": + "2025-03-06T19:47:41.341Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_dd52f5e8fac311efbb3e197210b72367", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:08.803Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_dafaa1e85b3f11ef8f063fd59bf5c7da", "user_id": + "2025-03-06T19:47:41.054Z", "mode": "test", "object": "Event"}, {"description": + "batch.created", "id": "evt_dd41070cfac311efa5045f7a964274c9", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:08.670Z", "mode": "test", "object": "Event"}], "has_more": + "2025-03-06T19:47:40.936Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: @@ -127,27 +127,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5c8be788615d0017131a + - 8e8eb62567c9fbf7e2b97ad20018801b x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.211666' + - '0.343607' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_retrieve.yaml b/tests/cassettes/test_event_retrieve.yaml index 5f699a6e..a9ff66e0 100644 --- a/tests/cassettes/test_event_retrieve.yaml +++ b/tests/cassettes/test_event_retrieve.yaml @@ -16,27 +16,27 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: '{"events": [{"description": "tracker.created", "id": "evt_ecc447ee5b3f11efb81703b24128e5c4", + string: '{"events": [{"description": "tracker.created", "id": "evt_ebde5d3cfac311ef84522bd0c5c586a1", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:38.512Z", "mode": "test", "object": "Event"}, {"description": - "tracker.created", "id": "evt_e98543305b3f11ef8f0819412c30cbb6", "user_id": + "2025-03-06T19:48:05.456Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e8d4ccdefac311ef85c247061f0fe827", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:33.066Z", "mode": "test", "object": "Event"}, {"description": - "tracker.created", "id": "evt_e64273965b3f11ef89a955639b5325b3", "user_id": + "2025-03-06T19:48:00.360Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e45091a2fac311ef8fdf07d8bb7ce84b", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:27.595Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_e1f88e1a5b3f11ef923f11dbabadcf44", "user_id": + "2025-03-06T19:47:52.782Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e3aa5026fac311ef87b57da2a609c037", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:20.400Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_e155647e5b3f11ef92ec2db9b1a3ed44", "user_id": + "2025-03-06T19:47:51.693Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_e12e412cfac311efbc965774cea6d58d", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:19.331Z", "mode": "test", "object": "Event"}], "has_more": + "2025-03-06T19:47:47.524Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '1114' + - '1112' content-type: - application/json; charset=utf-8 expires: @@ -51,25 +51,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c8be788615e00171390 + - 8e8eb62867c9fbf8e2b97ad30018809c x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.196899' + - '0.282236' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_retrieve_all_payloads.yaml b/tests/cassettes/test_event_retrieve_all_payloads.yaml index 734ca6df..28996ff1 100644 --- a/tests/cassettes/test_event_retrieve_all_payloads.yaml +++ b/tests/cassettes/test_event_retrieve_all_payloads.yaml @@ -20,14 +20,14 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_f0169e7e5b3f11ef93004502123c0e35", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:52:44Z", - "disabled_at": null}' + string: '{"id": "hook_ede7aea8fac311ef8c6613b647fc5eff", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2025-03-06T19:48:09Z", + "disabled_at": null, "custom_headers": []}' headers: cache-control: - private, no-cache, no-store content-length: - - '161' + - '181' content-type: - application/json; charset=utf-8 expires: @@ -47,20 +47,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c8ce788615f001713f9 + - 8e8eb62667c9fbf8e2b97ad40018811b x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.167627' + - '0.222058' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -94,9 +94,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_c5ffa43f3dd3420d88614343a6845c9b", "object": "Batch", + string: '{"id": "batch_8112c2c8dce14aa291bae18c30d9092d", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:52:44Z", "updated_at": "2024-08-15T19:52:44Z", + "created_at": "2025-03-06T19:48:09Z", "updated_at": "2025-03-06T19:48:09Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -124,20 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c8ce788615f00171440 + - 8e8eb62667c9fbf9e2b97ad40018816c x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.049346' + - '0.054295' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -160,21 +160,21 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: '{"events": [{"description": "tracker.created", "id": "evt_f0d9ebc25b3f11efa2091dc3d8b7f0c5", + string: '{"events": [{"description": "tracker.created", "id": "evt_ef360e3afac311ef9cf959235e992e6e", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:45.365Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_f051cc605b3f11efb4605b7c947b81d7", "user_id": + "2025-03-06T19:48:11.063Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_ee4610c4fac311ef9d366f1fec144160", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:44.473Z", "mode": "test", "object": "Event"}, {"description": - "batch.created", "id": "evt_f041ac545b3f11efa0ac1b866d416644", "user_id": + "2025-03-06T19:48:09.491Z", "mode": "test", "object": "Event"}, {"description": + "batch.created", "id": "evt_ee15e0defac311efacb60f245172ef6e", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:44.367Z", "mode": "test", "object": "Event"}, {"description": - "tracker.created", "id": "evt_ecc447ee5b3f11efb81703b24128e5c4", "user_id": + "2025-03-06T19:48:09.175Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_ebde5d3cfac311ef84522bd0c5c586a1", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:38.512Z", "mode": "test", "object": "Event"}, {"description": - "tracker.created", "id": "evt_e98543305b3f11ef8f0819412c30cbb6", "user_id": + "2025-03-06T19:48:05.456Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_e8d4ccdefac311ef85c247061f0fe827", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:33.066Z", "mode": "test", "object": "Event"}], "has_more": + "2025-03-06T19:48:00.360Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: @@ -200,20 +200,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c91e788615f001719b3 + - 8e8eb62667c9fbfee2b97ad4001886b1 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.218895' + - '0.266756' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -233,7 +233,7 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/events/evt_f0d9ebc25b3f11efa2091dc3d8b7f0c5/payloads + uri: https://api.easypost.com/v2/events/evt_ef360e3afac311ef9cf959235e992e6e/payloads response: body: string: '{"payloads": []}' @@ -256,27 +256,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c91e788615f00171a14 + - 8e8eb62667c9fbfee2b97ad4001886fc x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.041334' + - '0.036244' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -298,7 +296,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_f0169e7e5b3f11ef93004502123c0e35 + uri: https://api.easypost.com/v2/webhooks/hook_ede7aea8fac311ef8c6613b647fc5eff response: body: string: '{}' @@ -321,25 +319,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c91e788615f00171a3b + - 8e8eb62667c9fbfee2b97ad400188713 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.356509' + - '0.326052' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_retrieve_payload.yaml b/tests/cassettes/test_event_retrieve_payload.yaml index f6950aeb..27ea60b0 100644 --- a/tests/cassettes/test_event_retrieve_payload.yaml +++ b/tests/cassettes/test_event_retrieve_payload.yaml @@ -20,14 +20,14 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_f3ec28b65b3f11efb261096fa1830e98", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:52:51Z", - "disabled_at": null}' + string: '{"id": "hook_f19d25e6fac311efaf305b2397f4f7d3", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2025-03-06T19:48:15Z", + "disabled_at": null, "custom_headers": []}' headers: cache-control: - private, no-cache, no-store content-length: - - '161' + - '181' content-type: - application/json; charset=utf-8 expires: @@ -47,20 +47,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c92e788616000171aee + - 8e8eb62867c9fbffe2b97ad500188795 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.207950' + - '0.147598' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -94,9 +94,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_26a82690e5ff4d64998082a42910408a", "object": "Batch", + string: '{"id": "batch_34e423c2228549a6b09e36a269887be7", "object": "Batch", "mode": "test", "state": "creating", "num_shipments": 1, "reference": null, - "created_at": "2024-08-15T19:52:50Z", "updated_at": "2024-08-15T19:52:50Z", + "created_at": "2025-03-06T19:48:15Z", "updated_at": "2025-03-06T19:48:15Z", "scan_form": null, "shipments": [], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 0, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' @@ -124,20 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c92e788616000171b3c + - 8e8eb62867c9fbffe2b97ad5001887c3 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.054041' + - '0.036705' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -160,27 +160,27 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: '{"events": [{"description": "batch.updated", "id": "evt_f4405e045b3f11ef94983fa5d330c72f", + string: '{"events": [{"description": "tracker.created", "id": "evt_f31be862fac311ef9aa4710dd2aee3b7", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:51.070Z", "mode": "test", "object": "Event"}, {"description": - "batch.created", "id": "evt_f41f0c0e5b3f11ef82727905adf3347d", "user_id": + "2025-03-06T19:48:17.603Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_f1d6ebf0fac311efabc95d1fc5637621", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:50.851Z", "mode": "test", "object": "Event"}, {"description": - "tracker.created", "id": "evt_f0d9ebc25b3f11efa2091dc3d8b7f0c5", "user_id": + "2025-03-06T19:48:15.473Z", "mode": "test", "object": "Event"}, {"description": + "batch.created", "id": "evt_f1bfadc8fac311efb6a71bb5e0cd2876", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:45.365Z", "mode": "test", "object": "Event"}, {"description": - "batch.updated", "id": "evt_f051cc605b3f11efb4605b7c947b81d7", "user_id": + "2025-03-06T19:48:15.321Z", "mode": "test", "object": "Event"}, {"description": + "tracker.created", "id": "evt_ef360e3afac311ef9cf959235e992e6e", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:44.473Z", "mode": "test", "object": "Event"}, {"description": - "batch.created", "id": "evt_f041ac545b3f11efa0ac1b866d416644", "user_id": + "2025-03-06T19:48:11.063Z", "mode": "test", "object": "Event"}, {"description": + "batch.updated", "id": "evt_ee4610c4fac311ef9d366f1fec144160", "user_id": "user_54356a6b96c940d8913961a3c7b909f2", "status": "pending", "created_at": - "2024-08-15T19:52:44.367Z", "mode": "test", "object": "Event"}], "has_more": + "2025-03-06T19:48:09.491Z", "mode": "test", "object": "Event"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '1110' + - '1112' content-type: - application/json; charset=utf-8 expires: @@ -200,20 +200,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c97e78861600017208d + - 8e8eb62867c9fc04e2b97ad500188e4d x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.277720' + - '0.289993' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -233,7 +233,7 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/events/evt_f4405e045b3f11ef94983fa5d330c72f/payloads/payload_11111111111111111111111111111111 + uri: https://api.easypost.com/v2/events/evt_f31be862fac311ef9aa4710dd2aee3b7/payloads/payload_11111111111111111111111111111111 response: body: string: '{"error": {"code": "PAYLOAD.NOT_FOUND", "message": "The payload(s) @@ -257,27 +257,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c98e7886160001720e4 + - 8e8eb62867c9fc04e2b97ad500188ea8 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.068406' + - '0.060967' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -299,7 +297,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_f3ec28b65b3f11efb261096fa1830e98 + uri: https://api.easypost.com/v2/webhooks/hook_f19d25e6fac311efaf305b2397f4f7d3 response: body: string: '{}' @@ -327,20 +325,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c98e788616000172101 + - 8e8eb62867c9fc04e2b97ad500188ecb x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.457687' + - '0.326402' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_insurance_all.yaml b/tests/cassettes/test_insurance_all.yaml index 76311cb6..2f873dba 100644 --- a/tests/cassettes/test_insurance_all.yaml +++ b/tests/cassettes/test_insurance_all.yaml @@ -16,11 +16,11 @@ interactions: uri: https://api.easypost.com/v2/insurances?page_size=5 response: body: - string: '{"insurances": [{"id": "ins_0b02293630584ec38a869419b0545069", "object": + string: '{"insurances": [{"id": "ins_abffbc30c07f4bc0ba6fb8f36e4e7781", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_fa00aedb5b3f11efab92ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", "name": + "adr_f6e8ef0dfac311efb10b3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:23+00:00", "updated_at": "2025-03-06T19:48:23+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -28,8 +28,8 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_fa0af6b05b3f11ef8ca4ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", "name": + {"id": "adr_f6edb4d3fac311efb10f3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:24+00:00", "updated_at": "2025-03-06T19:48:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -37,26 +37,26 @@ interactions: {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "shipment_id": null, "tracker": {"id": - "trk_50b372963459402aa81977a2feb1ac20", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105807075742510", "status": "error", "status_detail": - null, "created_at": "2024-08-15T19:53:01Z", "updated_at": "2024-08-15T19:53:01Z", + "trk_bd61761988d5406e98a33971dd6a6000", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208303109500706", "status": "error", "status_detail": + null, "created_at": "2025-03-06T19:48:24Z", "updated_at": "2025-03-06T19:48:24Z", "signed_by": null, "weight": null, "est_delivery_date": null, "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007", "description": - "", "status": "error", "status_detail": null, "datetime": "2024-08-15T19:53:01Z", + "", "status": "error", "status_detail": null, "datetime": "2025-03-06T19:48:24Z", "source": "ProcessingError", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}], "carrier_detail": null, "finalized": true, "is_return": false, "public_url": - "https://track.easypost.com/djE6dHJrXzUwYjM3Mjk2MzQ1OTQwMmFhODE5NzdhMmZlYjFhYzIw", - "fees": []}, "tracking_code": "9400100105807075742510", "fee": {"object": + "https://track.easypost.com/djE6dHJrX2JkNjE3NjE5ODhkNTQwNmU5OGEzMzk3MWRkNmE2MDAw", + "fees": []}, "tracking_code": "9400100208303109500706", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:53:00Z", "updated_at": - "2024-08-15T19:53:00Z"}, {"id": "ins_129dfdb3ef8241cfa53deda1eb48e675", "object": + false}, "messages": [], "created_at": "2025-03-06T19:48:24Z", "updated_at": + "2025-03-06T19:48:24Z"}, {"id": "ins_dcf565145ccf4f04a8d820d810590ad5", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_f9018af05b3f11ef8c31ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": + "adr_f623d486fac311ef9523ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:22+00:00", "updated_at": "2025-03-06T19:48:22+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -64,8 +64,8 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_f90743da5b3f11efbc1bac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": + {"id": "adr_f6289011fac311ef9526ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:22+00:00", "updated_at": "2025-03-06T19:48:22+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -73,26 +73,26 @@ interactions: {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "shipment_id": null, "tracker": {"id": - "trk_46cb95a5b744445ca3218886dd2856ca", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105807075742497", "status": "error", "status_detail": - null, "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", + "trk_3bbaa4f95f5d452b89cb06e754d76351", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208303109500690", "status": "error", "status_detail": + null, "created_at": "2025-03-06T19:48:22Z", "updated_at": "2025-03-06T19:48:22Z", "signed_by": null, "weight": null, "est_delivery_date": null, "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007", "description": - "", "status": "error", "status_detail": null, "datetime": "2024-08-15T19:52:59Z", + "", "status": "error", "status_detail": null, "datetime": "2025-03-06T19:48:22Z", "source": "ProcessingError", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}], "carrier_detail": null, "finalized": true, "is_return": false, "public_url": - "https://track.easypost.com/djE6dHJrXzQ2Y2I5NWE1Yjc0NDQ0NWNhMzIxODg4NmRkMjg1NmNh", - "fees": []}, "tracking_code": "9400100105807075742497", "fee": {"object": + "https://track.easypost.com/djE6dHJrXzNiYmFhNGY5NWY1ZDQ1MmI4OWNiMDZlNzU0ZDc2MzUx", + "fees": []}, "tracking_code": "9400100208303109500690", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:52:59Z", "updated_at": - "2024-08-15T19:52:59Z"}, {"id": "ins_99a199efd8b74ce1b2f75ea747e19a96", "object": + false}, "messages": [], "created_at": "2025-03-06T19:48:22Z", "updated_at": + "2025-03-06T19:48:22Z"}, {"id": "ins_229626a7af2f46c28f15547390291e82", "object": "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", "name": + "adr_e9c58fe5fac311ef8e57ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:02+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -100,25 +100,25 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": + {"id": "adr_e9c82d93fac311efb46dac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:01+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "tracker": {"id": - "trk_54131fb3d69d493e85b1cea4c2629a71", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105807075742381", "status": "pre_transit", "status_detail": - "status_update", "created_at": "2024-08-15T19:52:37Z", "updated_at": "2024-08-15T19:52:37Z", - "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:37Z", - "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier": "USPS", + {}}, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "tracker": {"id": + "trk_9ac363e1c15c4fc999d121ce98d362e7", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208303109500683", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2025-03-06T19:48:03Z", "updated_at": "2025-03-06T19:48:03Z", + "signed_by": null, "weight": null, "est_delivery_date": "2025-03-06T19:48:03Z", + "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-15T19:52:37Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-06T19:48:03Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-16T08:29:37Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-07T08:25:03Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -127,15 +127,15 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzU0MTMxZmIzZDY5ZDQ5M2U4NWIxY2VhNGMyNjI5YTcx", - "fees": []}, "tracking_code": "9400100105807075742381", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzlhYzM2M2UxYzE1YzRmYzk5OWQxMjFjZTk4ZDM2MmU3", + "fees": []}, "tracking_code": "9400100208303109500683", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:52:37Z", "updated_at": - "2024-08-15T19:52:37Z"}, {"id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "object": + false}, "messages": [], "created_at": "2025-03-06T19:48:03Z", "updated_at": + "2025-03-06T19:48:03Z"}, {"id": "ins_7bcb457363834ebd88ba419138138fbc", "object": "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_e88398b65b3f11ef92023cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", "name": + "adr_e827fb21fac311efb3b0ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -143,25 +143,25 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": + {"id": "adr_e82a4736fac311ef8d72ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "tracker": {"id": - "trk_393a646a6cae4372b2bbda8e63441cc9", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105807075742367", "status": "pre_transit", "status_detail": - "status_update", "created_at": "2024-08-15T19:52:33Z", "updated_at": "2024-08-15T19:52:33Z", - "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:33Z", - "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier": "USPS", + {}}, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "tracker": {"id": + "trk_8df7c31984b84c2a87210b822c4fbd47", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208303109500676", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2025-03-06T19:48:00Z", "updated_at": "2025-03-06T19:48:00Z", + "signed_by": null, "weight": null, "est_delivery_date": "2025-03-06T19:48:00Z", + "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-15T19:52:33Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-06T19:48:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-16T08:29:33Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-07T08:25:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -170,15 +170,15 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzM5M2E2NDZhNmNhZTQzNzJiMmJiZGE4ZTYzNDQxY2M5", - "fees": []}, "tracking_code": "9400100105807075742367", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzhkZjdjMzE5ODRiODRjMmE4NzIxMGI4MjJjNGZiZDQ3", + "fees": []}, "tracking_code": "9400100208303109500676", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:52:33Z", "updated_at": - "2024-08-15T19:52:33Z"}, {"id": "ins_cc8aaf0d3a6540c9a008f4a5a1637ef8", "object": + false}, "messages": [], "created_at": "2025-03-06T19:48:00Z", "updated_at": + "2025-03-06T19:48:00Z"}, {"id": "ins_029e06b218ab48e0979236191bb04df0", "object": "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", "name": + "adr_e6b48af8fac311efb2ebac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:57+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -186,25 +186,25 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": + {"id": "adr_e6b764b2fac311efa8503cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:56+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "tracker": {"id": - "trk_0d8953331dc048958fe9d879fc3c1b6b", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105807075742343", "status": "pre_transit", "status_detail": - "status_update", "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", - "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:29Z", - "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier": "USPS", + {}}, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "tracker": {"id": + "trk_adb09a892549448f92f26c83c20b412c", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208303109500669", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2025-03-06T19:47:57Z", "updated_at": "2025-03-06T19:47:57Z", + "signed_by": null, "weight": null, "est_delivery_date": "2025-03-06T19:47:57Z", + "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-15T19:52:29Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-06T19:47:57Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-16T08:29:29Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-07T08:24:57Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -213,11 +213,11 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzBkODk1MzMzMWRjMDQ4OTU4ZmU5ZDg3OWZjM2MxYjZi", - "fees": []}, "tracking_code": "9400100105807075742343", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2FkYjA5YTg5MjU0OTQ0OGY5MmYyNmM4M2MyMGI0MTJj", + "fees": []}, "tracking_code": "9400100208303109500669", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:52:29Z", "updated_at": - "2024-08-15T19:52:30Z"}], "has_more": true}' + false}, "messages": [], "created_at": "2025-03-06T19:47:57Z", "updated_at": + "2025-03-06T19:47:58Z"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store @@ -242,20 +242,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c9de788617d00172578 + - 8e8eb62a67c9fc08e2b97b180018936e x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb56nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.373892' + - '0.387014' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_insurance_create.yaml b/tests/cassettes/test_insurance_create.yaml index 4ec008e3..39ae8528 100644 --- a/tests/cassettes/test_insurance_create.yaml +++ b/tests/cassettes/test_insurance_create.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:52:57Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742497", "updated_at": "2024-08-15T19:52:58Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_f85e77345b3f11efaad6ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:52:57+00:00", "updated_at": "2024-08-15T19:52:57+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b7e2c1fd906241e7ab6dd28b1c0fa27e", - "object": "Parcel", "created_at": "2024-08-15T19:52:57Z", "updated_at": "2024-08-15T19:52:57Z", + string: '{"id": "shp_8a45d2ce9594453d88f180d3df96d6c6", "created_at": "2025-03-06T19:48:21Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109500690", "updated_at": + "2025-03-06T19:48:22Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_f599807ffac311ef94ecac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:21+00:00", "updated_at": + "2025-03-06T19:48:21+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_ea9b37bfd8d243788cb33af2706dc8c5", "object": + "Parcel", "created_at": "2025-03-06T19:48:21Z", "updated_at": "2025-03-06T19:48:21Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f7ace2c87a85460dbcab5b1094012585", - "created_at": "2024-08-15T19:52:58Z", "updated_at": "2024-08-15T19:52:58Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:52:58Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_e08e870243604e7f90514b038a80175a", + "created_at": "2025-03-06T19:48:22Z", "updated_at": "2025-03-06T19:48:22Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:22Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e86e9a9b006fca417d9a8692f86e041ed7.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e8d41ff089cb6e442fadd91067aa1cccf7.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_94f107f2036142e08d6dfb2726bbaf0d", "object": - "Rate", "created_at": "2024-08-15T19:52:58Z", "updated_at": "2024-08-15T19:52:58Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_7d5084b5455a48c796475edd6ad992a4", "object": + "Rate", "created_at": "2025-03-06T19:48:21Z", "updated_at": "2025-03-06T19:48:21Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_8a45d2ce9594453d88f180d3df96d6c6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_47966bba614d40cba9ae81e9dc4f9008", + "object": "Rate", "created_at": "2025-03-06T19:48:21Z", "updated_at": "2025-03-06T19:48:21Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7e009408cdd245d2b7f0fa909cc1034e", - "object": "Rate", "created_at": "2024-08-15T19:52:58Z", "updated_at": "2024-08-15T19:52:58Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_8a45d2ce9594453d88f180d3df96d6c6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d5c528ef383449648a320dbc3b149f23", + "object": "Rate", "created_at": "2025-03-06T19:48:21Z", "updated_at": "2025-03-06T19:48:21Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e0a2a0be3f5749fda514ef41a4cd4e76", - "object": "Rate", "created_at": "2024-08-15T19:52:58Z", "updated_at": "2024-08-15T19:52:58Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", "carrier_account_id": + 1, "shipment_id": "shp_8a45d2ce9594453d88f180d3df96d6c6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_94f107f2036142e08d6dfb2726bbaf0d", "object": - "Rate", "created_at": "2024-08-15T19:52:58Z", "updated_at": "2024-08-15T19:52:58Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_47966bba614d40cba9ae81e9dc4f9008", "object": + "Rate", "created_at": "2025-03-06T19:48:22Z", "updated_at": "2025-03-06T19:48:22Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_d4f0a70a8f04482bab878b49dbfc1476", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742497", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:52:58Z", - "updated_at": "2024-08-15T19:52:58Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", "carrier": "USPS", + 3, "shipment_id": "shp_8a45d2ce9594453d88f180d3df96d6c6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_1fae64692f0c4b458ff0262243df9452", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500690", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-06T19:48:22Z", + "updated_at": "2025-03-06T19:48:22Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_8a45d2ce9594453d88f180d3df96d6c6", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2Q0ZjBhNzBhOGYwNDQ4MmJhYjg3OGI0OWRiZmMxNDc2"}, - "to_address": {"id": "adr_f85a15895b3f11ef99ee3cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:52:57+00:00", "updated_at": "2024-08-15T19:52:58+00:00", + "https://track.easypost.com/djE6dHJrXzFmYWU2NDY5MmYwYzRiNDU4ZmYwMjYyMjQzZGY5NDUy"}, + "to_address": {"id": "adr_f596f29efac311ef94ebac1f6bc53342", "object": "Address", + "created_at": "2025-03-06T19:48:21+00:00", "updated_at": "2025-03-06T19:48:21+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_f85e77345b3f11efaad6ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:52:57+00:00", "updated_at": - "2024-08-15T19:52:57+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_f599807ffac311ef94ecac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:21+00:00", "updated_at": + "2025-03-06T19:48:21+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_f85a15895b3f11ef99ee3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:57+00:00", "updated_at": "2024-08-15T19:52:58+00:00", "name": + "adr_f596f29efac311ef94ebac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:21+00:00", "updated_at": "2025-03-06T19:48:21+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_975470c5f2e942b297e5079a7bf3a16b", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_975470c5f2e942b297e5079a7bf3a16b + - /api/v2/shipments/shp_8a45d2ce9594453d88f180d3df96d6c6 pragma: - no-cache referrer-policy: @@ -138,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c99e788616400172219 + - 8e8eb62b67c9fc05e2b97b1600188fef x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.941998' + - '0.795592' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -164,7 +164,7 @@ interactions: "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "carrier": "USPS", "amount": "100", "tracking_code": - "9400100105807075742497"}}' + "9400100208303109500690"}}' headers: Accept: - '*/*' @@ -184,19 +184,19 @@ interactions: uri: https://api.easypost.com/v2/insurances response: body: - string: '{"id": "ins_129dfdb3ef8241cfa53deda1eb48e675", "object": "Insurance", + string: '{"id": "ins_dcf565145ccf4f04a8d820d810590ad5", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_f9018af05b3f11ef8c31ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:52:59+00:00", "updated_at": - "2024-08-15T19:52:59+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_f623d486fac311ef9523ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:22+00:00", "updated_at": + "2025-03-06T19:48:22+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "from_address": {"id": "adr_f90743da5b3f11efbc1bac1f6bc539ae", "object": "Address", - "created_at": "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", + "from_address": {"id": "adr_f6289011fac311ef9526ac1f6bc53342", "object": "Address", + "created_at": "2025-03-06T19:48:22+00:00", "updated_at": "2025-03-06T19:48:22+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -204,18 +204,18 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "shipment_id": null, "tracker": {"id": "trk_d4f0a70a8f04482bab878b49dbfc1476", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742497", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:52:58Z", - "updated_at": "2024-08-15T19:52:58Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:52:58Z", "shipment_id": "shp_975470c5f2e942b297e5079a7bf3a16b", + "shipment_id": null, "tracker": {"id": "trk_1fae64692f0c4b458ff0262243df9452", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500690", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-06T19:48:22Z", + "updated_at": "2025-03-06T19:48:22Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:22Z", "shipment_id": "shp_8a45d2ce9594453d88f180d3df96d6c6", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:52:58Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:22Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:29:58Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:22Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -224,11 +224,11 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2Q0ZjBhNzBhOGYwNDQ4MmJhYjg3OGI0OWRiZmMxNDc2", - "fees": []}, "tracking_code": "9400100105807075742497", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzFmYWU2NDY5MmYwYzRiNDU4ZmYwMjYyMjQzZGY5NDUy", + "fees": []}, "tracking_code": "9400100208303109500690", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:52:59Z", "updated_at": - "2024-08-15T19:52:59Z"}' + false}, "messages": [], "created_at": "2025-03-06T19:48:22Z", "updated_at": + "2025-03-06T19:48:22Z"}' headers: cache-control: - private, no-cache, no-store @@ -239,7 +239,7 @@ interactions: expires: - '0' location: - - /api/v2/insurances/ins_129dfdb3ef8241cfa53deda1eb48e675 + - /api/v2/insurances/ins_dcf565145ccf4f04a8d820d810590ad5 pragma: - no-cache referrer-policy: @@ -255,20 +255,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5c9ae788616400172304 + - 8e8eb62b67c9fc06e2b97b16001890fb x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.346702' + - '0.329239' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_insurance_get_next_page.yaml b/tests/cassettes/test_insurance_get_next_page.yaml index 6dca0f7b..4c2d28b9 100644 --- a/tests/cassettes/test_insurance_get_next_page.yaml +++ b/tests/cassettes/test_insurance_get_next_page.yaml @@ -16,11 +16,11 @@ interactions: uri: https://api.easypost.com/v2/insurances?page_size=5 response: body: - string: '{"insurances": [{"id": "ins_0b02293630584ec38a869419b0545069", "object": + string: '{"insurances": [{"id": "ins_abffbc30c07f4bc0ba6fb8f36e4e7781", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_fa00aedb5b3f11efab92ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", "name": + "adr_f6e8ef0dfac311efb10b3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:23+00:00", "updated_at": "2025-03-06T19:48:23+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -28,8 +28,8 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_fa0af6b05b3f11ef8ca4ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", "name": + {"id": "adr_f6edb4d3fac311efb10f3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:24+00:00", "updated_at": "2025-03-06T19:48:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -37,26 +37,26 @@ interactions: {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "shipment_id": null, "tracker": {"id": - "trk_50b372963459402aa81977a2feb1ac20", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105807075742510", "status": "error", "status_detail": - null, "created_at": "2024-08-15T19:53:01Z", "updated_at": "2024-08-15T19:53:01Z", + "trk_bd61761988d5406e98a33971dd6a6000", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208303109500706", "status": "error", "status_detail": + null, "created_at": "2025-03-06T19:48:24Z", "updated_at": "2025-03-06T19:48:24Z", "signed_by": null, "weight": null, "est_delivery_date": null, "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007", "description": - "", "status": "error", "status_detail": null, "datetime": "2024-08-15T19:53:01Z", + "", "status": "error", "status_detail": null, "datetime": "2025-03-06T19:48:24Z", "source": "ProcessingError", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}], "carrier_detail": null, "finalized": true, "is_return": false, "public_url": - "https://track.easypost.com/djE6dHJrXzUwYjM3Mjk2MzQ1OTQwMmFhODE5NzdhMmZlYjFhYzIw", - "fees": []}, "tracking_code": "9400100105807075742510", "fee": {"object": + "https://track.easypost.com/djE6dHJrX2JkNjE3NjE5ODhkNTQwNmU5OGEzMzk3MWRkNmE2MDAw", + "fees": []}, "tracking_code": "9400100208303109500706", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:53:00Z", "updated_at": - "2024-08-15T19:53:00Z"}, {"id": "ins_129dfdb3ef8241cfa53deda1eb48e675", "object": + false}, "messages": [], "created_at": "2025-03-06T19:48:24Z", "updated_at": + "2025-03-06T19:48:24Z"}, {"id": "ins_dcf565145ccf4f04a8d820d810590ad5", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_f9018af05b3f11ef8c31ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": + "adr_f623d486fac311ef9523ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:22+00:00", "updated_at": "2025-03-06T19:48:22+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -64,8 +64,8 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_f90743da5b3f11efbc1bac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": + {"id": "adr_f6289011fac311ef9526ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:22+00:00", "updated_at": "2025-03-06T19:48:22+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -73,26 +73,26 @@ interactions: {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "shipment_id": null, "tracker": {"id": - "trk_46cb95a5b744445ca3218886dd2856ca", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105807075742497", "status": "error", "status_detail": - null, "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", + "trk_3bbaa4f95f5d452b89cb06e754d76351", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208303109500690", "status": "error", "status_detail": + null, "created_at": "2025-03-06T19:48:22Z", "updated_at": "2025-03-06T19:48:22Z", "signed_by": null, "weight": null, "est_delivery_date": null, "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007", "description": - "", "status": "error", "status_detail": null, "datetime": "2024-08-15T19:52:59Z", + "", "status": "error", "status_detail": null, "datetime": "2025-03-06T19:48:22Z", "source": "ProcessingError", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}], "carrier_detail": null, "finalized": true, "is_return": false, "public_url": - "https://track.easypost.com/djE6dHJrXzQ2Y2I5NWE1Yjc0NDQ0NWNhMzIxODg4NmRkMjg1NmNh", - "fees": []}, "tracking_code": "9400100105807075742497", "fee": {"object": + "https://track.easypost.com/djE6dHJrXzNiYmFhNGY5NWY1ZDQ1MmI4OWNiMDZlNzU0ZDc2MzUx", + "fees": []}, "tracking_code": "9400100208303109500690", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:52:59Z", "updated_at": - "2024-08-15T19:52:59Z"}, {"id": "ins_99a199efd8b74ce1b2f75ea747e19a96", "object": + false}, "messages": [], "created_at": "2025-03-06T19:48:22Z", "updated_at": + "2025-03-06T19:48:22Z"}, {"id": "ins_229626a7af2f46c28f15547390291e82", "object": "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_eb0eaaeb5b3f11efa41fac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:36+00:00", "name": + "adr_e9c58fe5fac311ef8e57ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:02+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -100,25 +100,25 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_eb11d27a5b3f11ef93373cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:35+00:00", "updated_at": "2024-08-15T19:52:35+00:00", "name": + {"id": "adr_e9c82d93fac311efb46dac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:01+00:00", "updated_at": "2025-03-06T19:48:01+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "tracker": {"id": - "trk_54131fb3d69d493e85b1cea4c2629a71", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105807075742381", "status": "pre_transit", "status_detail": - "status_update", "created_at": "2024-08-15T19:52:37Z", "updated_at": "2024-08-15T19:52:37Z", - "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:37Z", - "shipment_id": "shp_8fc7dc5b18a9489086367f4e76016b3e", "carrier": "USPS", + {}}, "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "tracker": {"id": + "trk_9ac363e1c15c4fc999d121ce98d362e7", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208303109500683", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2025-03-06T19:48:03Z", "updated_at": "2025-03-06T19:48:03Z", + "signed_by": null, "weight": null, "est_delivery_date": "2025-03-06T19:48:03Z", + "shipment_id": "shp_0ea044af2a4a491e953233cd7867bb6a", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-15T19:52:37Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-06T19:48:03Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-16T08:29:37Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-07T08:25:03Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -127,15 +127,15 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzU0MTMxZmIzZDY5ZDQ5M2U4NWIxY2VhNGMyNjI5YTcx", - "fees": []}, "tracking_code": "9400100105807075742381", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzlhYzM2M2UxYzE1YzRmYzk5OWQxMjFjZTk4ZDM2MmU3", + "fees": []}, "tracking_code": "9400100208303109500683", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:52:37Z", "updated_at": - "2024-08-15T19:52:37Z"}, {"id": "ins_134927ffeddb4a9cbc6c199577a9dfaf", "object": + false}, "messages": [], "created_at": "2025-03-06T19:48:03Z", "updated_at": + "2025-03-06T19:48:03Z"}, {"id": "ins_7bcb457363834ebd88ba419138138fbc", "object": "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_e88398b65b3f11ef92023cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:32+00:00", "name": + "adr_e827fb21fac311efb3b0ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -143,25 +143,25 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_e885e9c95b3f11ef83ebac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:52:31+00:00", "updated_at": "2024-08-15T19:52:31+00:00", "name": + {"id": "adr_e82a4736fac311ef8d72ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:47:59+00:00", "updated_at": "2025-03-06T19:47:59+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "tracker": {"id": - "trk_393a646a6cae4372b2bbda8e63441cc9", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105807075742367", "status": "pre_transit", "status_detail": - "status_update", "created_at": "2024-08-15T19:52:33Z", "updated_at": "2024-08-15T19:52:33Z", - "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:33Z", - "shipment_id": "shp_3f3863c35045497db77b14187b65f824", "carrier": "USPS", + {}}, "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "tracker": {"id": + "trk_8df7c31984b84c2a87210b822c4fbd47", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208303109500676", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2025-03-06T19:48:00Z", "updated_at": "2025-03-06T19:48:00Z", + "signed_by": null, "weight": null, "est_delivery_date": "2025-03-06T19:48:00Z", + "shipment_id": "shp_1bb0f57e60d6448b84a94a9e120629bf", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-15T19:52:33Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-06T19:48:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-16T08:29:33Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-07T08:25:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -170,15 +170,15 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzM5M2E2NDZhNmNhZTQzNzJiMmJiZGE4ZTYzNDQxY2M5", - "fees": []}, "tracking_code": "9400100105807075742367", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzhkZjdjMzE5ODRiODRjMmE4NzIxMGI4MjJjNGZiZDQ3", + "fees": []}, "tracking_code": "9400100208303109500676", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:52:33Z", "updated_at": - "2024-08-15T19:52:33Z"}, {"id": "ins_cc8aaf0d3a6540c9a008f4a5a1637ef8", "object": + false}, "messages": [], "created_at": "2025-03-06T19:48:00Z", "updated_at": + "2025-03-06T19:48:00Z"}, {"id": "ins_029e06b218ab48e0979236191bb04df0", "object": "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_e690a54a5b3f11ef82e9ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:29+00:00", "name": + "adr_e6b48af8fac311efb2ebac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:57+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -186,25 +186,25 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_e6931ad75b3f11efb2f7ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:52:28+00:00", "updated_at": "2024-08-15T19:52:28+00:00", "name": + {"id": "adr_e6b764b2fac311efa8503cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:47:56+00:00", "updated_at": "2025-03-06T19:47:56+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "tracker": {"id": - "trk_0d8953331dc048958fe9d879fc3c1b6b", "object": "Tracker", "mode": "test", - "tracking_code": "9400100105807075742343", "status": "pre_transit", "status_detail": - "status_update", "created_at": "2024-08-15T19:52:29Z", "updated_at": "2024-08-15T19:52:29Z", - "signed_by": null, "weight": null, "est_delivery_date": "2024-08-15T19:52:29Z", - "shipment_id": "shp_51a3c4e20f394a308d398a9f76639c07", "carrier": "USPS", + {}}, "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "tracker": {"id": + "trk_adb09a892549448f92f26c83c20b412c", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208303109500669", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2025-03-06T19:47:57Z", "updated_at": "2025-03-06T19:47:57Z", + "signed_by": null, "weight": null, "est_delivery_date": "2025-03-06T19:47:57Z", + "shipment_id": "shp_5ee01eb89ffc456fa9cdc82cb03c7f8e", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-15T19:52:29Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-06T19:47:57Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-16T08:29:29Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-07T08:24:57Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -213,11 +213,11 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzBkODk1MzMzMWRjMDQ4OTU4ZmU5ZDg3OWZjM2MxYjZi", - "fees": []}, "tracking_code": "9400100105807075742343", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2FkYjA5YTg5MjU0OTQ0OGY5MmYyNmM4M2MyMGI0MTJj", + "fees": []}, "tracking_code": "9400100208303109500669", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:52:29Z", "updated_at": - "2024-08-15T19:52:30Z"}], "has_more": true}' + false}, "messages": [], "created_at": "2025-03-06T19:47:57Z", "updated_at": + "2025-03-06T19:47:58Z"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store @@ -242,20 +242,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c9ee788617e0017260e + - 8e8eb62c67c9fc09e2b97b3000189404 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.291435' + - '0.336949' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -275,154 +275,14 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/insurances?before_id=ins_cc8aaf0d3a6540c9a008f4a5a1637ef8&page_size=5 + uri: https://api.easypost.com/v2/insurances?before_id=ins_029e06b218ab48e0979236191bb04df0&page_size=5 response: body: - string: '{"insurances": [{"id": "ins_d80beb2a846941d8b9f16be60b769b2a", "object": - "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": - "249.99000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_c5968bd74ad411efbbddac1f6bc53342", "object": "Address", "created_at": - "2024-07-25T22:25:18+00:00", "updated_at": "2024-07-25T22:26:11+00:00", "name": - "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_c59928c24ad411efbbdfac1f6bc53342", "object": "Address", "created_at": - "2024-07-25T22:25:18+00:00", "updated_at": "2024-07-25T22:25:18+00:00", "name": - "EasyPost", "company": null, "street1": "417 Montgomery Street", "street2": - "5th Floor", "city": "San Francisco", "state": "CA", "zip": "94104", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_e9bcfcc782864d66ae709914881250a6", "tracker": {"id": - "trk_7d17e2b23b1744498dc938af7cbd44cb", "object": "Tracker", "mode": "test", - "tracking_code": "9434600110368067392068", "status": "delivered", "status_detail": - "arrived_at_destination", "created_at": "2024-07-25T22:26:12Z", "updated_at": - "2024-07-25T22:29:12Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": - "2024-07-25T22:29:12Z", "shipment_id": "shp_e9bcfcc782864d66ae709914881250a6", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-25T22:29:12Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-26T11:06:12Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2024-06-26T21:11:12Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2024-06-27T22:47:12Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2024-06-28T01:38:12Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2024-06-28T07:18:12Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2024-06-28T07:28:12Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2024-06-28T12:20:12Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "carrier_detail": - {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": - null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": - "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", - "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}, - "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2024-06-28T12:20:12Z"}, "finalized": true, - "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzdkMTdlMmIyM2IxNzQ0NDk4ZGM5MzhhZjdjYmQ0NGNi", - "fees": []}, "tracking_code": "9434600110368067392068", "fee": {"object": - "Fee", "type": "InsuranceFee", "amount": "2.49990", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-07-25T22:26:11Z", "updated_at": - "2024-07-25T22:26:12Z"}, {"id": "ins_8d75d3dcf398461aaa330e48dbd4c19e", "object": - "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": - "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_7f960d15491c11efb81cac1f6bc539ae", "object": "Address", "created_at": - "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:43+00:00", "name": - "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_7f98d03a491c11efa416ac1f6bc53342", "object": "Address", "created_at": - "2024-07-23T17:53:42+00:00", "updated_at": "2024-07-23T17:53:42+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_82fecc386f314823ad6b1a35365b7f4e", "tracker": {"id": - "trk_094807d115c14008b09588e9a336d226", "object": "Tracker", "mode": "test", - "tracking_code": "9400100110368066361872", "status": "delivered", "status_detail": - "arrived_at_destination", "created_at": "2024-07-23T17:53:43Z", "updated_at": - "2024-07-23T17:56:44Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": - "2024-07-23T17:56:44Z", "shipment_id": "shp_82fecc386f314823ad6b1a35365b7f4e", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-23T17:56:44Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-24T06:33:44Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2024-06-24T16:38:44Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2024-06-25T18:14:44Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2024-06-25T21:05:44Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2024-06-26T02:45:44Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2024-06-26T02:55:44Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2024-06-26T07:47:44Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "carrier_detail": - {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": - null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": - "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", - "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}, - "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2024-06-26T07:47:44Z"}, "finalized": true, - "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzA5NDgwN2QxMTVjMTQwMDhiMDk1ODhlOWEzMzZkMjI2", - "fees": []}, "tracking_code": "9400100110368066361872", "fee": {"object": - "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-07-23T17:53:43Z", "updated_at": - "2024-07-23T17:53:44Z"}, {"id": "ins_33a9255ab9f443c18a1c1876bc6e25a4", "object": + string: '{"insurances": [{"id": "ins_730ae2cc418147938bfcac3e49ed1665", "object": "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_7d0ab012491c11ef98423cecef1b359e", "object": "Address", "created_at": - "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:38+00:00", "name": + "adr_fab8798ef08111ef8ca73cecef1b359e", "object": "Address", "created_at": + "2025-02-21T18:30:51+00:00", "updated_at": "2025-02-21T18:30:52+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -430,50 +290,50 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_7d0d0fd8491c11efa2a9ac1f6bc53342", "object": "Address", "created_at": - "2024-07-23T17:53:37+00:00", "updated_at": "2024-07-23T17:53:37+00:00", "name": + {"id": "adr_fabb4013f08111efacb8ac1f6bc53342", "object": "Address", "created_at": + "2025-02-21T18:30:51+00:00", "updated_at": "2025-02-21T18:30:51+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", "tracker": {"id": - "trk_50a3f6c393cf407cb7e82a16e753f932", "object": "Tracker", "mode": "test", - "tracking_code": "9400100110368066361841", "status": "delivered", "status_detail": - "arrived_at_destination", "created_at": "2024-07-23T17:53:39Z", "updated_at": - "2024-07-23T17:56:39Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": - "2024-07-23T17:56:39Z", "shipment_id": "shp_8ae4d3d1cf78409fbabd93c5b13c5f98", + {}}, "shipment_id": "shp_bfb151c83dbf4a8c97a494074041c11f", "tracker": {"id": + "trk_8f86b00bbc1140f6b0cbaee6701b9f57", "object": "Tracker", "mode": "test", + "tracking_code": "9400100208271116404754", "status": "delivered", "status_detail": + "arrived_at_destination", "created_at": "2025-02-21T18:30:52Z", "updated_at": + "2025-02-21T18:33:53Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": + "2025-02-21T18:33:53Z", "shipment_id": "shp_bfb151c83dbf4a8c97a494074041c11f", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-23T17:56:39Z", "source": + "status_detail": "status_update", "datetime": "2025-01-21T18:33:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-24T06:33:39Z", "source": + "status_detail": "status_update", "datetime": "2025-01-22T07:10:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2024-06-24T16:38:39Z", "source": "USPS", "carrier_code": "", "tracking_location": + "2025-01-22T17:15:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2024-06-25T18:14:39Z", "source": "USPS", + "arrived_at_facility", "datetime": "2025-01-23T18:51:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2024-06-25T21:05:39Z", + "status_detail": "arrived_at_facility", "datetime": "2025-01-23T21:42:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2024-06-26T02:45:39Z", + "in_transit", "status_detail": "status_update", "datetime": "2025-01-24T03:22:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2024-06-26T02:55:39Z", + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2025-01-24T03:32:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2024-06-26T07:47:39Z", + "status_detail": "arrived_at_destination", "datetime": "2025-01-24T08:24:53Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -483,157 +343,17 @@ interactions: "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2024-06-26T07:47:39Z"}, "finalized": true, - "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzUwYTNmNmMzOTNjZjQwN2NiN2U4MmExNmU3NTNmOTMy", - "fees": []}, "tracking_code": "9400100110368066361841", "fee": {"object": + null, "initial_delivery_attempt": "2025-01-24T08:24:53Z"}, "finalized": true, + "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzhmODZiMDBiYmMxMTQwZjZiMGNiYWVlNjcwMWI5ZjU3", + "fees": []}, "tracking_code": "9400100208271116404754", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-07-23T17:53:39Z", "updated_at": - "2024-07-23T17:53:39Z"}, {"id": "ins_6aa59cf8618843c09b4707e1f3f74486", "object": - "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": - "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_7ae1fcad491c11efb015ac1f6bc539aa", "object": "Address", "created_at": - "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:35+00:00", "name": - "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_7ae4b187491c11efb529ac1f6bc539ae", "object": "Address", "created_at": - "2024-07-23T17:53:34+00:00", "updated_at": "2024-07-23T17:53:34+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", "tracker": {"id": - "trk_40df1d2c30a74d65b09c6fe5fb904cc0", "object": "Tracker", "mode": "test", - "tracking_code": "9400100110368066361827", "status": "delivered", "status_detail": - "arrived_at_destination", "created_at": "2024-07-23T17:53:35Z", "updated_at": - "2024-07-23T17:56:36Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": - "2024-07-23T17:56:36Z", "shipment_id": "shp_d692021679d54c0c9da828499fb1a8de", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-23T17:56:36Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-24T06:33:36Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2024-06-24T16:38:36Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2024-06-25T18:14:36Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2024-06-25T21:05:36Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2024-06-26T02:45:36Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2024-06-26T02:55:36Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2024-06-26T07:47:36Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "carrier_detail": - {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": - null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": - "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", - "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}, - "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2024-06-26T07:47:36Z"}, "finalized": true, - "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzQwZGYxZDJjMzBhNzRkNjViMDljNmZlNWZiOTA0Y2Mw", - "fees": []}, "tracking_code": "9400100110368066361827", "fee": {"object": - "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-07-23T17:53:36Z", "updated_at": - "2024-07-23T17:53:36Z"}, {"id": "ins_d15880e5772c4373aec497744fa4da54", "object": - "Insurance", "mode": "test", "reference": null, "status": "purchased", "amount": - "249.99000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_2702e7a0491611ef9aa4ac1f6bc53342", "object": "Address", "created_at": - "2024-07-23T17:08:16+00:00", "updated_at": "2024-07-23T17:09:42+00:00", "name": - "DR. STEVE BRULE", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "from_address": - {"id": "adr_27059612491611ef9aa6ac1f6bc53342", "object": "Address", "created_at": - "2024-07-23T17:08:16+00:00", "updated_at": "2024-07-23T17:08:16+00:00", "name": - "EasyPost", "company": null, "street1": "417 Montgomery Street", "street2": - "5th Floor", "city": "San Francisco", "state": "CA", "zip": "94104", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipment_id": "shp_09a808dae97442f3aa7fbd994a3533d4", "tracker": {"id": - "trk_a61a9fecf69b4964849e39fc7cc1dfc5", "object": "Tracker", "mode": "test", - "tracking_code": "9470100110368066351889", "status": "delivered", "status_detail": - "arrived_at_destination", "created_at": "2024-07-23T17:09:43Z", "updated_at": - "2024-07-23T17:12:43Z", "signed_by": "John Tester", "weight": null, "est_delivery_date": - "2024-07-23T17:12:43Z", "shipment_id": "shp_09a808dae97442f3aa7fbd994a3533d4", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-23T17:12:43Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-06-24T05:49:43Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2024-06-24T15:54:43Z", "source": "USPS", "carrier_code": "", "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": "", "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2024-06-25T17:30:43Z", "source": "USPS", - "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": - "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": "TrackingDetail", - "message": "Arrived at Post Office", "description": "", "status": "in_transit", - "status_detail": "arrived_at_facility", "datetime": "2024-06-25T20:21:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Sorting Complete", "description": "", "status": - "in_transit", "status_detail": "status_update", "datetime": "2024-06-26T02:01:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Out for Delivery", "description": "", "status": - "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2024-06-26T02:11:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2024-06-26T07:03:43Z", - "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "carrier_detail": - {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": - null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": - "HOUSTON TX, 77001", "origin_tracking_location": {"object": "TrackingLocation", - "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}, - "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": - null, "initial_delivery_attempt": "2024-06-26T07:03:43Z"}, "finalized": true, - "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2E2MWE5ZmVjZjY5YjQ5NjQ4NDllMzlmYzdjYzFkZmM1", - "fees": []}, "tracking_code": "9470100110368066351889", "fee": {"object": - "Fee", "type": "InsuranceFee", "amount": "2.49990", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-07-23T17:09:42Z", "updated_at": - "2024-07-23T17:09:42Z"}], "has_more": true}' + false}, "messages": [], "created_at": "2025-02-21T18:30:53Z", "updated_at": + "2025-02-21T18:30:53Z"}], "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '26603' + - '5340' content-type: - application/json; charset=utf-8 expires: @@ -653,20 +373,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5c9ee788617e00172673 + - 8e8eb62c67c9fc09e2b97b3000189484 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb56nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.426833' + - '0.156883' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_insurance_refund.yaml b/tests/cassettes/test_insurance_refund.yaml index e156a4dc..3ea940a7 100644 --- a/tests/cassettes/test_insurance_refund.yaml +++ b/tests/cassettes/test_insurance_refund.yaml @@ -26,19 +26,19 @@ interactions: uri: https://api.easypost.com/v2/insurances response: body: - string: '{"id": "ins_934e819458684a25b65437b09886339c", "object": "Insurance", + string: '{"id": "ins_f6a6de2a893f4b55b3e33affa43ff738", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_fb8e11d55b3f11ef8d75ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:03+00:00", "updated_at": - "2024-08-15T19:53:03+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_f7ff9b21fac311ef90e8ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-06T19:48:25+00:00", "updated_at": + "2025-03-06T19:48:25+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "from_address": {"id": "adr_fb93fbd65b3f11ef8d77ac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:53:03+00:00", "updated_at": "2024-08-15T19:53:03+00:00", + "from_address": {"id": "adr_f8047801fac311efb1c63cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:48:25+00:00", "updated_at": "2025-03-06T19:48:25+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -46,18 +46,18 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "shipment_id": null, "tracker": {"id": "trk_62f6076a9a3f4338b86e15e7fef1d00d", + "shipment_id": null, "tracker": {"id": "trk_d60c22ff15a9476e932b86162d25a191", "object": "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": - "pre_transit", "status_detail": "status_update", "created_at": "2024-07-18T20:43:47Z", - "updated_at": "2024-07-18T20:43:48Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-07-18T20:43:47Z", "shipment_id": null, "carrier": "USPS", "tracking_details": + "pre_transit", "status_detail": "status_update", "created_at": "2024-09-27T17:59:00Z", + "updated_at": "2024-09-27T17:59:00Z", "signed_by": null, "weight": null, "est_delivery_date": + "2024-09-27T17:59:00Z", "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": "status_update", - "datetime": "2024-06-18T20:43:47Z", "source": "USPS", "carrier_code": "", + "datetime": "2024-08-27T17:59:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-06-19T09:20:47Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2024-08-28T06:36:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -66,10 +66,10 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzYyZjYwNzZhOWEzZjQzMzhiODZlMTVlN2ZlZjFkMDBk", + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2Q2MGMyMmZmMTVhOTQ3NmU5MzJiODYxNjJkMjVhMTkx", "fees": []}, "tracking_code": "EZ1000000001", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": false}, - "messages": [], "created_at": "2024-08-15T19:53:03Z", "updated_at": "2024-08-15T19:53:03Z"}' + "messages": [], "created_at": "2025-03-06T19:48:25Z", "updated_at": "2025-03-06T19:48:26Z"}' headers: cache-control: - private, no-cache, no-store @@ -80,7 +80,7 @@ interactions: expires: - '0' location: - - /api/v2/insurances/ins_934e819458684a25b65437b09886339c + - /api/v2/insurances/ins_f6a6de2a893f4b55b3e33affa43ff738 pragma: - no-cache referrer-policy: @@ -96,20 +96,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c9fe788617f00172733 + - 8e8eb62c67c9fc09e2b97b31001894eb x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.395710' + - '0.395640' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -133,22 +133,22 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/insurances/ins_934e819458684a25b65437b09886339c/refund + uri: https://api.easypost.com/v2/insurances/ins_f6a6de2a893f4b55b3e33affa43ff738/refund response: body: - string: '{"id": "ins_934e819458684a25b65437b09886339c", "object": "Insurance", + string: '{"id": "ins_f6a6de2a893f4b55b3e33affa43ff738", "object": "Insurance", "mode": "test", "reference": null, "status": "cancelled", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_fb8e11d55b3f11ef8d75ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:03+00:00", "updated_at": - "2024-08-15T19:53:03+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_f7ff9b21fac311ef90e8ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-06T19:48:25+00:00", "updated_at": + "2025-03-06T19:48:25+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "from_address": {"id": "adr_fb93fbd65b3f11ef8d77ac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:53:03+00:00", "updated_at": "2024-08-15T19:53:03+00:00", + "from_address": {"id": "adr_f8047801fac311efb1c63cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:48:25+00:00", "updated_at": "2025-03-06T19:48:25+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -156,18 +156,18 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "shipment_id": null, "tracker": {"id": "trk_4939db1d0bec497193c8d3601a96a5fc", + "shipment_id": null, "tracker": {"id": "trk_e7e8f143f3eb40d38be9562e3767c36a", "object": "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": - "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:03Z", - "updated_at": "2024-08-15T19:53:03Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:03Z", "shipment_id": null, "carrier": "USPS", "tracking_details": + "pre_transit", "status_detail": "status_update", "created_at": "2025-03-06T19:48:26Z", + "updated_at": "2025-03-06T19:48:26Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:26Z", "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": "status_update", - "datetime": "2024-07-15T19:53:03Z", "source": "USPS", "carrier_code": "", + "datetime": "2025-02-06T19:48:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-07-16T08:30:03Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-07T08:25:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -176,11 +176,11 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzQ5MzlkYjFkMGJlYzQ5NzE5M2M4ZDM2MDFhOTZhNWZj", + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2U3ZThmMTQzZjNlYjQwZDM4YmU5NTYyZTM3NjdjMzZh", "fees": []}, "tracking_code": "EZ1000000001", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": false}, - "messages": ["Insurance was cancelled by the user."], "created_at": "2024-08-15T19:53:03Z", - "updated_at": "2024-08-15T19:53:03Z"}' + "messages": ["Insurance was cancelled by the user."], "created_at": "2025-03-06T19:48:25Z", + "updated_at": "2025-03-06T19:48:26Z"}' headers: cache-control: - private, no-cache, no-store @@ -200,27 +200,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5c9fe788617f001727c6 + - 8e8eb62c67c9fc0ae2b97b3100189576 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.240240' + - '0.222910' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_insurance_retrieve.yaml b/tests/cassettes/test_insurance_retrieve.yaml index 5d3a3a37..72c58ad5 100644 --- a/tests/cassettes/test_insurance_retrieve.yaml +++ b/tests/cassettes/test_insurance_retrieve.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:52:59Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742510", "updated_at": "2024-08-15T19:53:00Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_f953a1915b3f11ef9a443cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_13f63dae576746cf942f8c56fbd3b90c", - "object": "Parcel", "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", + string: '{"id": "shp_e938c6e639aa496882e7307b678a4802", "created_at": "2025-03-06T19:48:23Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109500706", "updated_at": + "2025-03-06T19:48:23Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_f65cbaa7fac311efb0bf3cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:23+00:00", "updated_at": + "2025-03-06T19:48:23+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_e0018b3a823d4cc09985933e9a745a7d", "object": + "Parcel", "created_at": "2025-03-06T19:48:23Z", "updated_at": "2025-03-06T19:48:23Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_c36b5d5f94774acaa577bcfd1a460c10", - "created_at": "2024-08-15T19:53:00Z", "updated_at": "2024-08-15T19:53:00Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:00Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_bc926188388d48af86cbb55033766bcb", + "created_at": "2025-03-06T19:48:23Z", "updated_at": "2025-03-06T19:48:23Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:23Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8a409691bd1c84a9b910d52347d2f17f1.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e87cc2ac984a6f4e2aae8a38cc61a289b6.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_cbe9921e5b194e1aa0c0dff095e21425", "object": - "Rate", "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_516cdc16d5984fc0baece745d0948549", "object": + "Rate", "created_at": "2025-03-06T19:48:23Z", "updated_at": "2025-03-06T19:48:23Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_e938c6e639aa496882e7307b678a4802", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_877e3e57cb3c4c75ac351197b11b256a", + "object": "Rate", "created_at": "2025-03-06T19:48:23Z", "updated_at": "2025-03-06T19:48:23Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f13665d2820f4869b6460066fee0d509", - "object": "Rate", "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_e938c6e639aa496882e7307b678a4802", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_01aab7b48e4e4980adbb677c6f392de7", + "object": "Rate", "created_at": "2025-03-06T19:48:23Z", "updated_at": "2025-03-06T19:48:23Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_585e5d8046f14581a3ebb1dcff49d6a7", - "object": "Rate", "created_at": "2024-08-15T19:52:59Z", "updated_at": "2024-08-15T19:52:59Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", "carrier_account_id": + 1, "shipment_id": "shp_e938c6e639aa496882e7307b678a4802", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_cbe9921e5b194e1aa0c0dff095e21425", "object": - "Rate", "created_at": "2024-08-15T19:53:00Z", "updated_at": "2024-08-15T19:53:00Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_877e3e57cb3c4c75ac351197b11b256a", "object": + "Rate", "created_at": "2025-03-06T19:48:23Z", "updated_at": "2025-03-06T19:48:23Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_89a2a0bddd2c4915ab2b8290ef012f5e", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742510", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:00Z", - "updated_at": "2024-08-15T19:53:00Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", "carrier": "USPS", + 3, "shipment_id": "shp_e938c6e639aa496882e7307b678a4802", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_58d8cf77ce934a34ae4e28fde5798683", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500706", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-06T19:48:23Z", + "updated_at": "2025-03-06T19:48:23Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_e938c6e639aa496882e7307b678a4802", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzg5YTJhMGJkZGQyYzQ5MTVhYjJiODI5MGVmMDEyZjVl"}, - "to_address": {"id": "adr_f950f6c35b3f11ef8c4fac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", + "https://track.easypost.com/djE6dHJrXzU4ZDhjZjc3Y2U5MzRhMzRhZTRlMjhmZGU1Nzk4Njgz"}, + "to_address": {"id": "adr_f65ac07ffac311efb0be3cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:48:23+00:00", "updated_at": "2025-03-06T19:48:23+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_f953a1915b3f11ef9a443cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:52:59+00:00", "updated_at": - "2024-08-15T19:52:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_f65cbaa7fac311efb0bf3cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:23+00:00", "updated_at": + "2025-03-06T19:48:23+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_f950f6c35b3f11ef8c4fac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:52:59+00:00", "updated_at": "2024-08-15T19:52:59+00:00", "name": + "adr_f65ac07ffac311efb0be3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:23+00:00", "updated_at": "2025-03-06T19:48:23+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_d52dc659ac2647558fb9e2cc375227d1", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_d52dc659ac2647558fb9e2cc375227d1 + - /api/v2/shipments/shp_e938c6e639aa496882e7307b678a4802 pragma: - no-cache referrer-policy: @@ -138,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c9be78861650017239a + - 8e8eb62867c9fc07e2b97b1700189198 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '1.003053' + - '0.825699' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -164,7 +164,7 @@ interactions: "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "carrier": "USPS", "amount": "100", "tracking_code": - "9400100105807075742510"}}' + "9400100208303109500706"}}' headers: Accept: - '*/*' @@ -184,19 +184,19 @@ interactions: uri: https://api.easypost.com/v2/insurances response: body: - string: '{"id": "ins_0b02293630584ec38a869419b0545069", "object": "Insurance", + string: '{"id": "ins_abffbc30c07f4bc0ba6fb8f36e4e7781", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_fa00aedb5b3f11efab92ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:00+00:00", "updated_at": - "2024-08-15T19:53:00+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_f6e8ef0dfac311efb10b3cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:23+00:00", "updated_at": + "2025-03-06T19:48:23+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "from_address": {"id": "adr_fa0af6b05b3f11ef8ca4ac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", + "from_address": {"id": "adr_f6edb4d3fac311efb10f3cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:48:24+00:00", "updated_at": "2025-03-06T19:48:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -204,18 +204,18 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "shipment_id": null, "tracker": {"id": "trk_89a2a0bddd2c4915ab2b8290ef012f5e", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742510", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:00Z", - "updated_at": "2024-08-15T19:53:00Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:00Z", "shipment_id": "shp_d52dc659ac2647558fb9e2cc375227d1", + "shipment_id": null, "tracker": {"id": "trk_58d8cf77ce934a34ae4e28fde5798683", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500706", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-06T19:48:23Z", + "updated_at": "2025-03-06T19:48:23Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:23Z", "shipment_id": "shp_e938c6e639aa496882e7307b678a4802", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:00Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:23Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:00Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:23Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -224,11 +224,11 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzg5YTJhMGJkZGQyYzQ5MTVhYjJiODI5MGVmMDEyZjVl", - "fees": []}, "tracking_code": "9400100105807075742510", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzU4ZDhjZjc3Y2U5MzRhMzRhZTRlMjhmZGU1Nzk4Njgz", + "fees": []}, "tracking_code": "9400100208303109500706", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:53:00Z", "updated_at": - "2024-08-15T19:53:00Z"}' + false}, "messages": [], "created_at": "2025-03-06T19:48:24Z", "updated_at": + "2025-03-06T19:48:24Z"}' headers: cache-control: - private, no-cache, no-store @@ -239,7 +239,7 @@ interactions: expires: - '0' location: - - /api/v2/insurances/ins_0b02293630584ec38a869419b0545069 + - /api/v2/insurances/ins_abffbc30c07f4bc0ba6fb8f36e4e7781 pragma: - no-cache referrer-policy: @@ -250,27 +250,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c9ce7886165001724a2 + - 8e8eb62867c9fc07e2b97b17001892ad x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.388430' + - '0.303280' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -290,22 +288,22 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/insurances/ins_0b02293630584ec38a869419b0545069 + uri: https://api.easypost.com/v2/insurances/ins_abffbc30c07f4bc0ba6fb8f36e4e7781 response: body: - string: '{"id": "ins_0b02293630584ec38a869419b0545069", "object": "Insurance", + string: '{"id": "ins_abffbc30c07f4bc0ba6fb8f36e4e7781", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_fa00aedb5b3f11efab92ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:00+00:00", "updated_at": - "2024-08-15T19:53:00+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_f6e8ef0dfac311efb10b3cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:23+00:00", "updated_at": + "2025-03-06T19:48:23+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "from_address": {"id": "adr_fa0af6b05b3f11ef8ca4ac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:53:00+00:00", "updated_at": "2024-08-15T19:53:00+00:00", + "from_address": {"id": "adr_f6edb4d3fac311efb10f3cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:48:24+00:00", "updated_at": "2025-03-06T19:48:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -313,22 +311,22 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "shipment_id": null, "tracker": {"id": "trk_50b372963459402aa81977a2feb1ac20", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742510", - "status": "error", "status_detail": null, "created_at": "2024-08-15T19:53:01Z", - "updated_at": "2024-08-15T19:53:01Z", "signed_by": null, "weight": null, "est_delivery_date": + "shipment_id": null, "tracker": {"id": "trk_bd61761988d5406e98a33971dd6a6000", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500706", + "status": "error", "status_detail": null, "created_at": "2025-03-06T19:48:24Z", + "updated_at": "2025-03-06T19:48:24Z", "signed_by": null, "weight": null, "est_delivery_date": null, "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "In test mode, only test tracking numbers are valid. Test tracking numbers are EZ1000000001, EZ2000000002, ... , EZ7000000007", - "description": "", "status": "error", "status_detail": null, "datetime": "2024-08-15T19:53:01Z", + "description": "", "status": "error", "status_detail": null, "datetime": "2025-03-06T19:48:24Z", "source": "ProcessingError", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}], "carrier_detail": null, "finalized": true, "is_return": false, "public_url": - "https://track.easypost.com/djE6dHJrXzUwYjM3Mjk2MzQ1OTQwMmFhODE5NzdhMmZlYjFhYzIw", - "fees": []}, "tracking_code": "9400100105807075742510", "fee": {"object": + "https://track.easypost.com/djE6dHJrX2JkNjE3NjE5ODhkNTQwNmU5OGEzMzk3MWRkNmE2MDAw", + "fees": []}, "tracking_code": "9400100208303109500706", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2024-08-15T19:53:00Z", "updated_at": - "2024-08-15T19:53:00Z"}' + false}, "messages": [], "created_at": "2025-03-06T19:48:24Z", "updated_at": + "2025-03-06T19:48:24Z"}' headers: cache-control: - private, no-cache, no-store @@ -348,27 +346,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c9de788616500172519 + - 8e8eb62867c9fc08e2b97b170018931b x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.179617' + - '0.124133' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_buy.yaml b/tests/cassettes/test_order_buy.yaml index 82adb461..1950515b 100644 --- a/tests/cassettes/test_order_buy.yaml +++ b/tests/cassettes/test_order_buy.yaml @@ -27,226 +27,177 @@ interactions: response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}], "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:14Z", - "customs_info": null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": - "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": - "2024-08-15T19:53:13+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_0183a5095b4011ef9e373cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "USD", "payment": {"type": "SENDER"}}, "messages": [], "created_at": "2025-03-06T19:48:28Z", + "updated_at": "2025-03-06T19:48:28Z", "customs_info": null, "from_address": + {"id": "adr_f99ac245fac311efb2c73cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", + {}}, "buyer_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "return_address": {"id": "adr_f99ac245fac311efb2c73cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-08-15T19:53:13Z", "is_return": false, - "messages": [{"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + {}}, "shipments": [{"id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "created_at": + "2025-03-06T19:48:28Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:13Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": - "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2025-03-06T19:48:28Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_f99ac245fac311efb2c73cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": + "2025-03-06T19:48:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_1ec32f65712d4da18891042c8b13a320", "parcel": {"id": "prcl_f3ca719456b24d78bb1db4ba34b1fc80", - "object": "Parcel", "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", + "order_c91fef40e21c48a3a4846ab323722583", "parcel": {"id": "prcl_af8d754b79db47c6aec316862abfd29d", + "object": "Parcel", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_1693bb5466ef4711addcb26cf5b0df5f", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_1fbcb190f99a463b8c2d9bb96326c8fe", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5d3f583efcff423392d3dd5a6be28127", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4a33c6c437914edb88fd59d8e9378156", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_31ae98adc1924a349936598f46f54365", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.21", + "currency": "USD", "retail_rate": "7.00", "retail_currency": "USD", "list_rate": + "5.21", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_000bd41b1e6f47af8630c7b5af41c302", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + 3, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": - "2024-08-15T19:53:13+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": + "2025-03-06T19:48:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": + {"id": "adr_f99ac245fac311efb2c73cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", + {}}, "buyer_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_33818a0642104028b9c680342f687137", - "object": "Shipment"}, {"created_at": "2024-08-15T19:53:13Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:13Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": - "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_1ec32f65712d4da18891042c8b13a320", "parcel": {"id": "prcl_825ae02c7a6c4a03bbfb07e3456ef0d6", - "object": "Parcel", "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", + {}}, "forms": [], "fees": [], "object": "Shipment"}, {"id": "shp_481597ab57634eea9a07f99e967f6aa5", + "created_at": "2025-03-06T19:48:28Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + null, "updated_at": "2025-03-06T19:48:28Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": null, "from_address": {"id": + "adr_f99ac245fac311efb2c73cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": "order_c91fef40e21c48a3a4846ab323722583", + "parcel": {"id": "prcl_240f15d90ddd406ca5160b0c13b1b63a", "object": "Parcel", + "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_12f65c47259b4658b19df702e504a593", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37dd89b2cb32496eab9fa0aad6c724f3", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_8d4e8ba9d6ed40f5aa283cdadd0aadf4", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "38.40", + "currency": "USD", "retail_rate": "44.15", "retail_currency": "USD", "list_rate": + "38.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_46080d7983d6421b8b46245a8246b8d6", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", - "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": - "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_481597ab57634eea9a07f99e967f6aa5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8112d82e5349417aae4dbb96f3f279ce", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "8.22", + "currency": "USD", "retail_rate": "12.65", "retail_currency": "USD", "list_rate": + "9.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + 2, "shipment_id": "shp_481597ab57634eea9a07f99e967f6aa5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_114b35086efb4c718d17eab9520048a8", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.53", + "currency": "USD", "retail_rate": "11.40", "retail_currency": "USD", "list_rate": + "8.05", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_481597ab57634eea9a07f99e967f6aa5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": - "2024-08-15T19:53:13+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": + "2025-03-06T19:48:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": + {"id": "adr_f99ac245fac311efb2c73cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", + {}}, "buyer_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_8c97e92d163a457da27bffbc5311c7c4", - "object": "Shipment"}], "rates": [{"id": "rate_1693bb5466ef4711addcb26cf5b0df5f", + {}}, "forms": [], "fees": [], "object": "Shipment"}], "rates": [{"id": "rate_1fbcb190f99a463b8c2d9bb96326c8fe", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "14.48", "currency": "USD", - "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_33818a0642104028b9c680342f687137", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_4a33c6c437914edb88fd59d8e9378156", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": - "USPS", "rate": "11.40", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_000bd41b1e6f47af8630c7b5af41c302", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", - "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "service": "Express", "carrier": "USPS", "rate": "72.55", "currency": "USD", + "retail_rate": "83.25", "retail_currency": "USD", "list_rate": "72.55", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_33818a0642104028b9c680342f687137", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_1ec32f65712d4da18891042c8b13a320", "object": "Order"}' + "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_5d3f583efcff423392d3dd5a6be28127", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": + "USPS", "rate": "15.64", "currency": "USD", "retail_rate": "22.55", "retail_currency": + "USD", "list_rate": "17.41", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 2, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_31ae98adc1924a349936598f46f54365", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.74", "currency": + "USD", "retail_rate": "18.40", "retail_currency": "USD", "list_rate": "13.26", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_c91fef40e21c48a3a4846ab323722583", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '16329' + - '12448' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/orders/order_1ec32f65712d4da18891042c8b13a320 + - /api/v2/orders/order_c91fef40e21c48a3a4846ab323722583 pragma: - no-cache referrer-policy: @@ -262,20 +213,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5ca9e78861c000173189 + - 8e8eb62667c9fc0ce2b97b360018984a x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '1.661868' + - '0.363678' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -299,120 +250,102 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/orders/order_1ec32f65712d4da18891042c8b13a320/buy + uri: https://api.easypost.com/v2/orders/order_c91fef40e21c48a3a4846ab323722583/buy response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}], "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:14Z", - "customs_info": null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": - "2024-08-15T19:53:13+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": - "2024-08-15T19:53:15+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": - "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", - "zip": "90277-2506", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": - null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": - [], "details": null}, "delivery": {"success": true, "errors": [], "details": - {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, - "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", + "USD", "payment": {"type": "SENDER"}}, "messages": [], "created_at": "2025-03-06T19:48:28Z", + "updated_at": "2025-03-06T19:48:28Z", "customs_info": null, "from_address": + {"id": "adr_f99ac245fac311efb2c73cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:29+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": false, "federal_tax_id": null, "state_tax_id": null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, + "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "buyer_address": + {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:29+00:00", "name": + "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": + "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": false, "federal_tax_id": null, "state_tax_id": null, + "verifications": {"zip4": {"success": true, "errors": [], "details": null}, + "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "return_address": - {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": + {"id": "adr_f99ac245fac311efb2c73cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-08-15T19:53:13Z", "is_return": false, - "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": "9400100105807075742640", "updated_at": "2024-08-15T19:53:15Z", - "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_1ec32f65712d4da18891042c8b13a320", - "parcel": {"id": "prcl_f3ca719456b24d78bb1db4ba34b1fc80", "object": "Parcel", - "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", + {}}, "shipments": [{"id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "created_at": + "2025-03-06T19:48:28Z", "is_return": false, "messages": [], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": "9400100208303109500713", + "updated_at": "2025-03-06T19:48:29Z", "batch_id": null, "batch_status": null, + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_f99ac245fac311efb2c73cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": + "2025-03-06T19:48:28+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_c91fef40e21c48a3a4846ab323722583", "parcel": {"id": "prcl_af8d754b79db47c6aec316862abfd29d", + "object": "Parcel", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", "length": null, "width": null, "height": null, "predefined_package": null, "weight": 10.2, "mode": "test"}, "postage_label": {"object": "PostageLabel", - "id": "pl_553320f687e9443d866f62d0f6402297", "created_at": "2024-08-15T19:53:15Z", - "updated_at": "2024-08-15T19:53:15Z", "date_advance": 0, "integrated_form": - "none", "label_date": "2024-08-15T19:53:15Z", "label_resolution": 300, "label_size": + "id": "pl_773be9fdec1a4c52a07562abe4232fc5", "created_at": "2025-03-06T19:48:29Z", + "updated_at": "2025-03-06T19:48:29Z", "date_advance": 0, "integrated_form": + "none", "label_date": "2025-03-06T19:48:29Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": "image/png", "label_url": - "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8e7f7c416b427496ba2ad5d2d3a5df385.png", + "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e8e142e78a33c24ab4a361d0f36d3242e7.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_1693bb5466ef4711addcb26cf5b0df5f", "object": - "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_1fbcb190f99a463b8c2d9bb96326c8fe", "object": + "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5d3f583efcff423392d3dd5a6be28127", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4a33c6c437914edb88fd59d8e9378156", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_31ae98adc1924a349936598f46f54365", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.21", + "currency": "USD", "retail_rate": "7.00", "retail_currency": "USD", "list_rate": + "5.21", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_000bd41b1e6f47af8630c7b5af41c302", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + 3, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_4a33c6c437914edb88fd59d8e9378156", "object": - "Rate", "created_at": "2024-08-15T19:53:15Z", "updated_at": "2024-08-15T19:53:15Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_31ae98adc1924a349936598f46f54365", "object": + "Rate", "created_at": "2025-03-06T19:48:29Z", "updated_at": "2025-03-06T19:48:29Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.21", + "currency": "USD", "retail_rate": "7.00", "retail_currency": "USD", "list_rate": + "5.21", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_3089cb021793401da4a645e1c4f4379a", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742640", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:16Z", - "updated_at": "2024-08-15T19:53:16Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier": "USPS", + 3, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_213b27933f19450cbb6096e57a372e0e", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500713", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-06T19:48:30Z", + "updated_at": "2025-03-06T19:48:30Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzMwODljYjAyMTc5MzQwMWRhNGE2NDVlMWM0ZjQzNzlh"}, - "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", + "https://track.easypost.com/djE6dHJrXzIxM2IyNzkzM2YxOTQ1MGNiYjYwOTZlNTdhMzcyZTBl"}, + "to_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", "object": "Address", + "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:29+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -420,14 +353,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", + 4, "return_address": {"id": "adr_f99ac245fac311efb2c73cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", + {}}, "buyer_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:29+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -437,67 +370,67 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.07000", "charged": true, "refunded": false}], "id": "shp_33818a0642104028b9c680342f687137", - "object": "Shipment"}, {"created_at": "2024-08-15T19:53:13Z", "is_return": - false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": "9434600105807075742697", "updated_at": "2024-08-15T19:53:16Z", - "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_1ec32f65712d4da18891042c8b13a320", - "parcel": {"id": "prcl_825ae02c7a6c4a03bbfb07e3456ef0d6", "object": "Parcel", - "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", + "5.21000", "charged": true, "refunded": false}], "object": "Shipment"}, {"id": + "shp_481597ab57634eea9a07f99e967f6aa5", "created_at": "2025-03-06T19:48:28Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9434600208303109492683", "updated_at": + "2025-03-06T19:48:30Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_f99ac245fac311efb2c73cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": + "2025-03-06T19:48:28+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_c91fef40e21c48a3a4846ab323722583", "parcel": {"id": "prcl_240f15d90ddd406ca5160b0c13b1b63a", + "object": "Parcel", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", "length": null, "width": null, "height": null, "predefined_package": null, "weight": 17.5, "mode": "test"}, "postage_label": {"object": "PostageLabel", - "id": "pl_b2144b0eb8784c14a8c4b2186d6520e5", "created_at": "2024-08-15T19:53:16Z", - "updated_at": "2024-08-15T19:53:16Z", "date_advance": 0, "integrated_form": - "none", "label_date": "2024-08-15T19:53:16Z", "label_resolution": 300, "label_size": + "id": "pl_efa194d079e047f49dde3669686f90ae", "created_at": "2025-03-06T19:48:29Z", + "updated_at": "2025-03-06T19:48:30Z", "date_advance": 0, "integrated_form": + "none", "label_date": "2025-03-06T19:48:29Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": "image/png", "label_url": - "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e882636a63fd9c4d1c81ad135bf61b6d88.png", + "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e80c5d306f3e974011aa2640e65cb89ed5.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_12f65c47259b4658b19df702e504a593", "object": - "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37dd89b2cb32496eab9fa0aad6c724f3", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_8d4e8ba9d6ed40f5aa283cdadd0aadf4", "object": + "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "38.40", + "currency": "USD", "retail_rate": "44.15", "retail_currency": "USD", "list_rate": + "38.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_46080d7983d6421b8b46245a8246b8d6", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", - "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": - "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_481597ab57634eea9a07f99e967f6aa5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8112d82e5349417aae4dbb96f3f279ce", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "8.22", + "currency": "USD", "retail_rate": "12.65", "retail_currency": "USD", "list_rate": + "9.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + 2, "shipment_id": "shp_481597ab57634eea9a07f99e967f6aa5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_114b35086efb4c718d17eab9520048a8", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.53", + "currency": "USD", "retail_rate": "11.40", "retail_currency": "USD", "list_rate": + "8.05", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_481597ab57634eea9a07f99e967f6aa5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_12f65c47259b4658b19df702e504a593", "object": - "Rate", "created_at": "2024-08-15T19:53:16Z", "updated_at": "2024-08-15T19:53:16Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_114b35086efb4c718d17eab9520048a8", "object": + "Rate", "created_at": "2025-03-06T19:48:29Z", "updated_at": "2025-03-06T19:48:29Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.53", + "currency": "USD", "retail_rate": "11.40", "retail_currency": "USD", "list_rate": + "8.05", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_74a4cf0f407042489d0ef96c14f12467", - "object": "Tracker", "mode": "test", "tracking_code": "9434600105807075742697", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:16Z", - "updated_at": "2024-08-15T19:53:16Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier": "USPS", + 3, "shipment_id": "shp_481597ab57634eea9a07f99e967f6aa5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_a2af9f98be1f4922abb5bf8c970a86c5", + "object": "Tracker", "mode": "test", "tracking_code": "9434600208303109492683", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-06T19:48:30Z", + "updated_at": "2025-03-06T19:48:30Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_481597ab57634eea9a07f99e967f6aa5", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzc0YTRjZjBmNDA3MDQyNDg5ZDBlZjk2YzE0ZjEyNDY3"}, - "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", + "https://track.easypost.com/djE6dHJrX2EyYWY5Zjk4YmUxZjQ5MjJhYmI1YmY4Yzk3MGE4NmM1"}, + "to_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", "object": "Address", + "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:29+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -505,14 +438,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", + 4, "return_address": {"id": "adr_f99ac245fac311efb2c73cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", + {}}, "buyer_address": {"id": "adr_f9991dacfac311ef91d5ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:28+00:00", "updated_at": "2025-03-06T19:48:29+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -522,33 +455,33 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "6.33000", "charged": true, "refunded": false}], "id": "shp_8c97e92d163a457da27bffbc5311c7c4", - "object": "Shipment"}], "rates": [{"id": "rate_1693bb5466ef4711addcb26cf5b0df5f", + "6.53000", "charged": true, "refunded": false}], "object": "Shipment"}], "rates": + [{"id": "rate_1fbcb190f99a463b8c2d9bb96326c8fe", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Express", "carrier": + "USPS", "rate": "72.55", "currency": "USD", "retail_rate": "83.25", "retail_currency": + "USD", "list_rate": "72.55", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 1, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5d3f583efcff423392d3dd5a6be28127", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "14.48", "currency": "USD", - "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": + "service": "Priority", "carrier": "USPS", "rate": "15.64", "currency": "USD", + "retail_rate": "22.55", "retail_currency": "USD", "list_rate": "17.41", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_33818a0642104028b9c680342f687137", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_4a33c6c437914edb88fd59d8e9378156", "object": "Rate", "created_at": + "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_31ae98adc1924a349936598f46f54365", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": - "USPS", "rate": "11.40", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", + "USPS", "rate": "11.74", "currency": "USD", "retail_rate": "18.40", "retail_currency": + "USD", "list_rate": "13.26", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_000bd41b1e6f47af8630c7b5af41c302", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", - "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_33818a0642104028b9c680342f687137", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_1ec32f65712d4da18891042c8b13a320", "object": "Order"}' + "est_delivery_days": 3, "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "id": "order_c91fef40e21c48a3a4846ab323722583", + "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '18542' + - '17063' content-type: - application/json; charset=utf-8 expires: @@ -568,7 +501,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5cabe78861c00017330e + - 8e8eb62667c9fc0ce2b97b36001898e6 x-frame-options: - SAMEORIGIN x-node: @@ -576,12 +509,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '1.581730' + - '1.282990' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_create.yaml b/tests/cassettes/test_order_create.yaml index 23f85931..20b75728 100644 --- a/tests/cassettes/test_order_create.yaml +++ b/tests/cassettes/test_order_create.yaml @@ -27,226 +27,177 @@ interactions: response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}], "created_at": "2024-08-15T19:53:04Z", "updated_at": "2024-08-15T19:53:07Z", - "customs_info": null, "from_address": {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": - "2024-08-15T19:53:04+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_fc2879685b3f11ef9bd13cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": - "2024-08-15T19:53:04+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_fc2879685b3f11ef9bd13cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "USD", "payment": {"type": "SENDER"}}, "messages": [], "created_at": "2025-03-06T19:48:26Z", + "updated_at": "2025-03-06T19:48:26Z", "customs_info": null, "from_address": + {"id": "adr_f86e7b61fac311ef9688ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_f86cb7a8fac311ef9685ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_f86cb7a8fac311ef9685ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", + {}}, "return_address": {"id": "adr_f86e7b61fac311ef9688ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-08-15T19:53:04Z", "is_return": false, - "messages": [{"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + {}}, "shipments": [{"id": "shp_9eb9d0a2eab64153b1c03645eac39cdb", "created_at": + "2025-03-06T19:48:26Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:04Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": - "2024-08-15T19:53:04+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2025-03-06T19:48:26Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_f86e7b61fac311ef9688ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": + "2025-03-06T19:48:26+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_d18796edae714f2887afd5a9fac92a4f", "parcel": {"id": "prcl_4bb9bd377db44fbc838d1d8a0a3a0d49", - "object": "Parcel", "created_at": "2024-08-15T19:53:04Z", "updated_at": "2024-08-15T19:53:04Z", + "order_2de8eebf610b4fd694768fdb151b33e2", "parcel": {"id": "prcl_0beed44accc946b1ac57d8f695ceab22", + "object": "Parcel", "created_at": "2025-03-06T19:48:26Z", "updated_at": "2025-03-06T19:48:26Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_e0f40701cd76486c8d8315bd586f3453", - "object": "Rate", "created_at": "2024-08-15T19:53:06Z", "updated_at": "2024-08-15T19:53:06Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_2d41074ce2e6498f9eeaea359640954b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_aa57d4f0a4434d61a3d5fdd3f18cb6e1", - "object": "Rate", "created_at": "2024-08-15T19:53:06Z", "updated_at": "2024-08-15T19:53:06Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_25cedc8227724e2698295f2fad9f2019", + "object": "Rate", "created_at": "2025-03-06T19:48:26Z", "updated_at": "2025-03-06T19:48:26Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.21", + "currency": "USD", "retail_rate": "7.00", "retail_currency": "USD", "list_rate": + "5.21", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_2d41074ce2e6498f9eeaea359640954b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4998f9a097d44aeca8c35d94c86c9137", - "object": "Rate", "created_at": "2024-08-15T19:53:06Z", "updated_at": "2024-08-15T19:53:06Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_9eb9d0a2eab64153b1c03645eac39cdb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7cfcfb3a80a54159bd9770c75aaaf744", + "object": "Rate", "created_at": "2025-03-06T19:48:26Z", "updated_at": "2025-03-06T19:48:26Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_2d41074ce2e6498f9eeaea359640954b", "carrier_account_id": + 1, "shipment_id": "shp_9eb9d0a2eab64153b1c03645eac39cdb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_814abc5f9ddd4a65ae1fd8a2abd0badb", + "object": "Rate", "created_at": "2025-03-06T19:48:26Z", "updated_at": "2025-03-06T19:48:26Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_9eb9d0a2eab64153b1c03645eac39cdb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fc2879685b3f11ef9bd13cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": - "2024-08-15T19:53:04+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f86cb7a8fac311ef9685ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": + "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", "name": + {"id": "adr_f86e7b61fac311ef9688ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_fc2879685b3f11ef9bd13cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", + {}}, "buyer_address": {"id": "adr_f86cb7a8fac311ef9685ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_2d41074ce2e6498f9eeaea359640954b", - "object": "Shipment"}, {"created_at": "2024-08-15T19:53:04Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:04Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": - "2024-08-15T19:53:04+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_d18796edae714f2887afd5a9fac92a4f", "parcel": {"id": "prcl_d6ae131fb36441a781aae1895bc101dd", - "object": "Parcel", "created_at": "2024-08-15T19:53:04Z", "updated_at": "2024-08-15T19:53:04Z", + {}}, "forms": [], "fees": [], "object": "Shipment"}, {"id": "shp_a38a71078e2449c6bca5ff496497290e", + "created_at": "2025-03-06T19:48:26Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + null, "updated_at": "2025-03-06T19:48:26Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": null, "from_address": {"id": + "adr_f86e7b61fac311ef9688ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": "order_2de8eebf610b4fd694768fdb151b33e2", + "parcel": {"id": "prcl_00f7f86a3bb346a59e4387a766c2c652", "object": "Parcel", + "created_at": "2025-03-06T19:48:26Z", "updated_at": "2025-03-06T19:48:26Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_919cdedca6f1439c8a189bcc41912c1a", - "object": "Rate", "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", - "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": - "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_de2ba121c28249f08801d6a032f26f84", + "object": "Rate", "created_at": "2025-03-06T19:48:26Z", "updated_at": "2025-03-06T19:48:26Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "8.22", + "currency": "USD", "retail_rate": "12.65", "retail_currency": "USD", "list_rate": + "9.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_a88b1db412114e5c8c7ccd58d4758440", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8a04c7a7a90343b288502428e2c2d429", - "object": "Rate", "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_a38a71078e2449c6bca5ff496497290e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9558cf7a7f434006bc052e791cd870c8", + "object": "Rate", "created_at": "2025-03-06T19:48:26Z", "updated_at": "2025-03-06T19:48:26Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.53", + "currency": "USD", "retail_rate": "11.40", "retail_currency": "USD", "list_rate": + "8.05", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_a88b1db412114e5c8c7ccd58d4758440", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b5743d29dc76425c9d76fd4be72ee88e", - "object": "Rate", "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_a38a71078e2449c6bca5ff496497290e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eb37a274e54c4a6880c7adc1cb04ca68", + "object": "Rate", "created_at": "2025-03-06T19:48:26Z", "updated_at": "2025-03-06T19:48:26Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "38.40", + "currency": "USD", "retail_rate": "44.15", "retail_currency": "USD", "list_rate": + "38.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_a88b1db412114e5c8c7ccd58d4758440", "carrier_account_id": + 1, "shipment_id": "shp_a38a71078e2449c6bca5ff496497290e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fc2879685b3f11ef9bd13cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": - "2024-08-15T19:53:04+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f86cb7a8fac311ef9685ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": + "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_fc2ac1185b3f11efacb8ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", "name": + {"id": "adr_f86e7b61fac311ef9688ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_fc2879685b3f11ef9bd13cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:04+00:00", "updated_at": "2024-08-15T19:53:04+00:00", + {}}, "buyer_address": {"id": "adr_f86cb7a8fac311ef9685ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_a88b1db412114e5c8c7ccd58d4758440", - "object": "Shipment"}], "rates": [{"id": "rate_e0f40701cd76486c8d8315bd586f3453", + {}}, "forms": [], "fees": [], "object": "Shipment"}], "rates": [{"id": "rate_25cedc8227724e2698295f2fad9f2019", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.74", "currency": + "USD", "retail_rate": "18.40", "retail_currency": "USD", "list_rate": "13.26", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9eb9d0a2eab64153b1c03645eac39cdb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_7cfcfb3a80a54159bd9770c75aaaf744", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Express", "carrier": + "USPS", "rate": "72.55", "currency": "USD", "retail_rate": "83.25", "retail_currency": + "USD", "list_rate": "72.55", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 1, "shipment_id": "shp_9eb9d0a2eab64153b1c03645eac39cdb", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_814abc5f9ddd4a65ae1fd8a2abd0badb", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "14.48", "currency": "USD", - "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": + "service": "Priority", "carrier": "USPS", "rate": "15.64", "currency": "USD", + "retail_rate": "22.55", "retail_currency": "USD", "list_rate": "17.41", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_2d41074ce2e6498f9eeaea359640954b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_aa57d4f0a4434d61a3d5fdd3f18cb6e1", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": - "USPS", "rate": "11.40", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_2d41074ce2e6498f9eeaea359640954b", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4998f9a097d44aeca8c35d94c86c9137", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", - "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_2d41074ce2e6498f9eeaea359640954b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_d18796edae714f2887afd5a9fac92a4f", "object": "Order"}' + "shp_9eb9d0a2eab64153b1c03645eac39cdb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_2de8eebf610b4fd694768fdb151b33e2", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '16329' + - '12448' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/orders/order_d18796edae714f2887afd5a9fac92a4f + - /api/v2/orders/order_2de8eebf610b4fd694768fdb151b33e2 pragma: - no-cache referrer-policy: @@ -262,20 +213,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5ca0e788618000172851 + - 8e8eb62667c9fc0ae2b97b33001895e8 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '2.898345' + - '0.315445' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_get_rates.yaml b/tests/cassettes/test_order_get_rates.yaml index 3eb8af31..cf31289e 100644 --- a/tests/cassettes/test_order_get_rates.yaml +++ b/tests/cassettes/test_order_get_rates.yaml @@ -27,226 +27,177 @@ interactions: response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}], "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:11Z", - "customs_info": null, "from_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": - "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": - "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "USD", "payment": {"type": "SENDER"}}, "messages": [], "created_at": "2025-03-06T19:48:27Z", + "updated_at": "2025-03-06T19:48:27Z", "customs_info": null, "from_address": + {"id": "adr_f9137e8dfac311ef9199ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", + {}}, "return_address": {"id": "adr_f9137e8dfac311ef9199ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-08-15T19:53:09Z", "is_return": false, - "messages": [{"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + {}}, "shipments": [{"id": "shp_1a082204e53c4fe0be7ddaacc6755589", "created_at": + "2025-03-06T19:48:27Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:09Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": - "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2025-03-06T19:48:27Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_f9137e8dfac311ef9199ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": + "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_5d3d965a86bd4a7fa08a685be2d7cb88", "parcel": {"id": "prcl_32b7696639ae47debdb603b25bf9cdac", - "object": "Parcel", "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:09Z", + "order_fa66ba284bc7484994770a4a2dde7a5f", "parcel": {"id": "prcl_a15a14ef3a3c49cb997ed0ed71c0b0a8", + "object": "Parcel", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6cf0ffa1024442a890528f1f5d3e1133", - "object": "Rate", "created_at": "2024-08-15T19:53:10Z", "updated_at": "2024-08-15T19:53:10Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_2f202da4dc6b4678a7c3d0f99b0d12fb", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1ad3cc8441ea47c2a762e872f109623e", - "object": "Rate", "created_at": "2024-08-15T19:53:10Z", "updated_at": "2024-08-15T19:53:10Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_1a082204e53c4fe0be7ddaacc6755589", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7087cced66144902a5037d31f21e71aa", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.21", + "currency": "USD", "retail_rate": "7.00", "retail_currency": "USD", "list_rate": + "5.21", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0bd299f91b63445ea20652ad932a3552", - "object": "Rate", "created_at": "2024-08-15T19:53:10Z", "updated_at": "2024-08-15T19:53:10Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_1a082204e53c4fe0be7ddaacc6755589", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ec9c7e7122b348be967048bbb8f03478", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": + 1, "shipment_id": "shp_1a082204e53c4fe0be7ddaacc6755589", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": - "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": + "2025-03-06T19:48:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + {"id": "adr_f9137e8dfac311ef9199ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", + {}}, "buyer_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_8aca1d83b9e044e78561d5931fa49e1e", - "object": "Shipment"}, {"created_at": "2024-08-15T19:53:09Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:09Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": - "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_5d3d965a86bd4a7fa08a685be2d7cb88", "parcel": {"id": "prcl_0c0c31d3bdfd434ebf4021bc15cc35e9", - "object": "Parcel", "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:09Z", + {}}, "forms": [], "fees": [], "object": "Shipment"}, {"id": "shp_10e4d46ae7004e44a601e87956a825bb", + "created_at": "2025-03-06T19:48:27Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + null, "updated_at": "2025-03-06T19:48:27Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": null, "from_address": {"id": + "adr_f9137e8dfac311ef9199ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": "order_fa66ba284bc7484994770a4a2dde7a5f", + "parcel": {"id": "prcl_0d469dca44c7413199bf81d687797247", "object": "Parcel", + "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_70a52e9cb8df43019b1683f857d60a6c", - "object": "Rate", "created_at": "2024-08-15T19:53:11Z", "updated_at": "2024-08-15T19:53:11Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_218afbbc29fa4384911db143218247b0", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "38.40", + "currency": "USD", "retail_rate": "44.15", "retail_currency": "USD", "list_rate": + "38.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ea44ec1a9dd048f0bb0107f4ffaa191a", - "object": "Rate", "created_at": "2024-08-15T19:53:11Z", "updated_at": "2024-08-15T19:53:11Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", - "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": - "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_10e4d46ae7004e44a601e87956a825bb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2ed60a576c26436987b517a2f32a1bc5", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "8.22", + "currency": "USD", "retail_rate": "12.65", "retail_currency": "USD", "list_rate": + "9.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a7da3edc49ae42ac88d47fba0ef29c76", - "object": "Rate", "created_at": "2024-08-15T19:53:11Z", "updated_at": "2024-08-15T19:53:11Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_10e4d46ae7004e44a601e87956a825bb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cd011cbd74d64633ab55c57f4381d847", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.53", + "currency": "USD", "retail_rate": "11.40", "retail_currency": "USD", "list_rate": + "8.05", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": + 3, "shipment_id": "shp_10e4d46ae7004e44a601e87956a825bb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": - "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": + "2025-03-06T19:48:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + {"id": "adr_f9137e8dfac311ef9199ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", + {}}, "buyer_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_b9d8307e3aa84c55a3e079a36b703e00", - "object": "Shipment"}], "rates": [{"id": "rate_6cf0ffa1024442a890528f1f5d3e1133", + {}}, "forms": [], "fees": [], "object": "Shipment"}], "rates": [{"id": "rate_2f202da4dc6b4678a7c3d0f99b0d12fb", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "14.48", "currency": "USD", - "retail_rate": "22.30", "retail_currency": "USD", "list_rate": "17.22", "list_currency": + "service": "Priority", "carrier": "USPS", "rate": "15.64", "currency": "USD", + "retail_rate": "22.55", "retail_currency": "USD", "list_rate": "17.41", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_1ad3cc8441ea47c2a762e872f109623e", "object": "Rate", "created_at": + "shp_1a082204e53c4fe0be7ddaacc6755589", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_7087cced66144902a5037d31f21e71aa", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": - "USPS", "rate": "11.40", "currency": "USD", "retail_rate": "17.50", "retail_currency": - "USD", "list_rate": "12.82", "list_currency": "USD", "billing_type": "easypost", + "USPS", "rate": "11.74", "currency": "USD", "retail_rate": "18.40", "retail_currency": + "USD", "list_rate": "13.26", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 3, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0bd299f91b63445ea20652ad932a3552", + "est_delivery_days": 3, "shipment_id": "shp_1a082204e53c4fe0be7ddaacc6755589", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ec9c7e7122b348be967048bbb8f03478", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", - "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "service": "Express", "carrier": "USPS", "rate": "72.55", "currency": "USD", + "retail_rate": "83.25", "retail_currency": "USD", "list_rate": "72.55", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_5d3d965a86bd4a7fa08a685be2d7cb88", "object": "Order"}' + "shp_1a082204e53c4fe0be7ddaacc6755589", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_fa66ba284bc7484994770a4a2dde7a5f", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '16329' + - '12448' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/orders/order_5d3d965a86bd4a7fa08a685be2d7cb88 + - /api/v2/orders/order_fa66ba284bc7484994770a4a2dde7a5f pragma: - no-cache referrer-policy: @@ -262,20 +213,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5ca5e788618200172dd0 + - 8e8eb62b67c9fc0be2b97b350018972d x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '2.126092' + - '0.316155' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -295,195 +246,175 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/orders/order_5d3d965a86bd4a7fa08a685be2d7cb88/rates + uri: https://api.easypost.com/v2/orders/order_fa66ba284bc7484994770a4a2dde7a5f/rates response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}], "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:11Z", - "customs_info": null, "from_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": - "2024-08-15T19:53:09+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": - "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "USD", "payment": {"type": "SENDER"}}, "messages": [], "created_at": "2025-03-06T19:48:27Z", + "updated_at": "2025-03-06T19:48:27Z", "customs_info": null, "from_address": + {"id": "adr_f9137e8dfac311ef9199ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + {}}, "buyer_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-08-15T19:53:09Z", "is_return": false, - "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": null, "updated_at": "2024-08-15T19:53:09Z", "batch_id": null, - "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + {}}, "return_address": {"id": "adr_f9137e8dfac311ef9199ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_5d3d965a86bd4a7fa08a685be2d7cb88", - "parcel": {"id": "prcl_32b7696639ae47debdb603b25bf9cdac", "object": "Parcel", - "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:09Z", + {}}, "shipments": [{"id": "shp_1a082204e53c4fe0be7ddaacc6755589", "created_at": + "2025-03-06T19:48:27Z", "is_return": false, "messages": [], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2025-03-06T19:48:27Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_f9137e8dfac311ef9199ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": + "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_fa66ba284bc7484994770a4a2dde7a5f", "parcel": {"id": "prcl_a15a14ef3a3c49cb997ed0ed71c0b0a8", + "object": "Parcel", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_7086e066d5e749738ef724f6dd417672", - "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53:12Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_119c155cc9104c138f59376bc698b53c", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0e41b25a192c4b129e217f3d2640ebba", - "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53:12Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_1a082204e53c4fe0be7ddaacc6755589", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_38565db1c24c4f50b3a9bfa1b2a74b7c", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fd9629efd25846e2ab795ffec09cc732", - "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53:12Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_1a082204e53c4fe0be7ddaacc6755589", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_310cefff7f58457db8cc063f538fb614", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.21", + "currency": "USD", "retail_rate": "7.00", "retail_currency": "USD", "list_rate": + "5.21", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": + 3, "shipment_id": "shp_1a082204e53c4fe0be7ddaacc6755589", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": - "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": + "2025-03-06T19:48:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + {"id": "adr_f9137e8dfac311ef9199ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", + {}}, "buyer_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_8aca1d83b9e044e78561d5931fa49e1e", - "object": "Shipment"}, {"created_at": "2024-08-15T19:53:09Z", "is_return": - false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": null, "updated_at": "2024-08-15T19:53:09Z", "batch_id": null, - "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + {}}, "forms": [], "fees": [], "object": "Shipment"}, {"id": "shp_10e4d46ae7004e44a601e87956a825bb", + "created_at": "2025-03-06T19:48:27Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + null, "updated_at": "2025-03-06T19:48:27Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": null, "from_address": {"id": + "adr_f9137e8dfac311ef9199ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_5d3d965a86bd4a7fa08a685be2d7cb88", - "parcel": {"id": "prcl_0c0c31d3bdfd434ebf4021bc15cc35e9", "object": "Parcel", - "created_at": "2024-08-15T19:53:09Z", "updated_at": "2024-08-15T19:53:09Z", + {}}, "insurance": null, "order_id": "order_fa66ba284bc7484994770a4a2dde7a5f", + "parcel": {"id": "prcl_0d469dca44c7413199bf81d687797247", "object": "Parcel", + "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_a52b605100fe4ca2afd085210378b2b0", - "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53:12Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5d29af059a1b499aab24d25a3d9cfa2a", - "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53:12Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", - "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": - "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_7d8ea3369f3141a38059a835db226599", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "8.22", + "currency": "USD", "retail_rate": "12.65", "retail_currency": "USD", "list_rate": + "9.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b0968651d7544b20bd39d8c3f94c2214", - "object": "Rate", "created_at": "2024-08-15T19:53:12Z", "updated_at": "2024-08-15T19:53:12Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_10e4d46ae7004e44a601e87956a825bb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1c7d67ba1f494c029d1cd02e3366a089", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.53", + "currency": "USD", "retail_rate": "11.40", "retail_currency": "USD", "list_rate": + "8.05", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_b9d8307e3aa84c55a3e079a36b703e00", "carrier_account_id": + 3, "shipment_id": "shp_10e4d46ae7004e44a601e87956a825bb", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c47f2e0e0add4d4587c886d2c868a45b", + "object": "Rate", "created_at": "2025-03-06T19:48:28Z", "updated_at": "2025-03-06T19:48:28Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "38.40", + "currency": "USD", "retail_rate": "44.15", "retail_currency": "USD", "list_rate": + "38.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_10e4d46ae7004e44a601e87956a825bb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": - "2024-08-15T19:53:09+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": + "2025-03-06T19:48:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_ff290d655b3f11ef9d333cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", "name": + {"id": "adr_f9137e8dfac311ef9199ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_ff2759175b3f11efadf7ac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:09+00:00", "updated_at": "2024-08-15T19:53:09+00:00", + {}}, "buyer_address": {"id": "adr_f911d3a4fac311efb2733cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_b9d8307e3aa84c55a3e079a36b703e00", - "object": "Shipment"}], "rates": [{"id": "rate_7086e066d5e749738ef724f6dd417672", + {}}, "forms": [], "fees": [], "object": "Shipment"}], "rates": [{"id": "rate_119c155cc9104c138f59376bc698b53c", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", - "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "service": "Express", "carrier": "USPS", "rate": "72.55", "currency": "USD", + "retail_rate": "83.25", "retail_currency": "USD", "list_rate": "72.55", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_0e41b25a192c4b129e217f3d2640ebba", "object": "Rate", "created_at": + "shp_1a082204e53c4fe0be7ddaacc6755589", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_38565db1c24c4f50b3a9bfa1b2a74b7c", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": - "USPS", "rate": "14.48", "currency": "USD", "retail_rate": "22.30", "retail_currency": - "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", + "USPS", "rate": "15.64", "currency": "USD", "retail_rate": "22.55", "retail_currency": + "USD", "list_rate": "17.41", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_8aca1d83b9e044e78561d5931fa49e1e", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fd9629efd25846e2ab795ffec09cc732", + "est_delivery_days": 2, "shipment_id": "shp_1a082204e53c4fe0be7ddaacc6755589", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_310cefff7f58457db8cc063f538fb614", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.40", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.74", "currency": + "USD", "retail_rate": "18.40", "retail_currency": "USD", "list_rate": "13.26", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8aca1d83b9e044e78561d5931fa49e1e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_5d3d965a86bd4a7fa08a685be2d7cb88", "object": "Order"}' + "shp_1a082204e53c4fe0be7ddaacc6755589", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_fa66ba284bc7484994770a4a2dde7a5f", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '13927' + - '12448' content-type: - application/json; charset=utf-8 expires: @@ -503,20 +434,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5ca7e788618200173004 + - 8e8eb62b67c9fc0be2b97b35001897a3 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '1.536618' + - '0.378195' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_lowest_rate.yaml b/tests/cassettes/test_order_lowest_rate.yaml index 70443d63..57ac5d03 100644 --- a/tests/cassettes/test_order_lowest_rate.yaml +++ b/tests/cassettes/test_order_lowest_rate.yaml @@ -27,226 +27,177 @@ interactions: response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": - "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}], "created_at": "2024-08-15T19:53:16Z", "updated_at": "2024-08-15T19:53:18Z", - "customs_info": null, "from_address": {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": - "2024-08-15T19:53:16+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_03a687315b4011ef8125ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": - "2024-08-15T19:53:16+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_03a687315b4011ef8125ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "USD", "payment": {"type": "SENDER"}}, "messages": [], "created_at": "2025-03-06T19:48:30Z", + "updated_at": "2025-03-06T19:48:30Z", "customs_info": null, "from_address": + {"id": "adr_fab49ddbfac311efb36f3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:30+00:00", "updated_at": "2025-03-06T19:48:30+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_fab33a37fac311efb36e3cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:30+00:00", "updated_at": "2025-03-06T19:48:30+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_fab33a37fac311efb36e3cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:30+00:00", "updated_at": "2025-03-06T19:48:30+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", + {}}, "return_address": {"id": "adr_fab49ddbfac311efb36f3cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:30+00:00", "updated_at": "2025-03-06T19:48:30+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-08-15T19:53:16Z", "is_return": false, - "messages": [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + {}}, "shipments": [{"id": "shp_f82ddf699f31400bbe86c21663960619", "created_at": + "2025-03-06T19:48:30Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:16Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": - "2024-08-15T19:53:16+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2025-03-06T19:48:30Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_fab49ddbfac311efb36f3cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:30+00:00", "updated_at": + "2025-03-06T19:48:30+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_55ebdec2115446e7aa1e44cfe1ca07b5", "parcel": {"id": "prcl_ec74a6a2c1e44beaa983430e62db545c", - "object": "Parcel", "created_at": "2024-08-15T19:53:16Z", "updated_at": "2024-08-15T19:53:16Z", + "order_26702f7c8a5e401faeb65501179e3262", "parcel": {"id": "prcl_3ccdaeb12e474810accc6bb6caa59f83", + "object": "Parcel", "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6f666a3abf11497fa4f8e5e65b42bbb2", - "object": "Rate", "created_at": "2024-08-15T19:53:17Z", "updated_at": "2024-08-15T19:53:17Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_4b659ee7203245ca8c775dc7f0f3eebb", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ca437f7773844326b8130ed736d9b1c4", - "object": "Rate", "created_at": "2024-08-15T19:53:17Z", "updated_at": "2024-08-15T19:53:17Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_cba7e0a3d7124d2ba816ea612d55986f", + "object": "Rate", "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_4b659ee7203245ca8c775dc7f0f3eebb", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c70cd64b7b9f4bcc924be3011fb6f3f7", - "object": "Rate", "created_at": "2024-08-15T19:53:17Z", "updated_at": "2024-08-15T19:53:17Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_f82ddf699f31400bbe86c21663960619", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9aae4ae3164b4d2bb79efbf307e48725", + "object": "Rate", "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.21", + "currency": "USD", "retail_rate": "7.00", "retail_currency": "USD", "list_rate": + "5.21", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_4b659ee7203245ca8c775dc7f0f3eebb", "carrier_account_id": + 3, "shipment_id": "shp_f82ddf699f31400bbe86c21663960619", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fd7abde0253b47bb9fe72b3bb1c2d377", + "object": "Rate", "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_f82ddf699f31400bbe86c21663960619", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_03a687315b4011ef8125ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": - "2024-08-15T19:53:16+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fab33a37fac311efb36e3cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:30+00:00", "updated_at": + "2025-03-06T19:48:30+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", "name": + {"id": "adr_fab49ddbfac311efb36f3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:30+00:00", "updated_at": "2025-03-06T19:48:30+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_03a687315b4011ef8125ac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", + {}}, "buyer_address": {"id": "adr_fab33a37fac311efb36e3cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:30+00:00", "updated_at": "2025-03-06T19:48:30+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_4b659ee7203245ca8c775dc7f0f3eebb", - "object": "Shipment"}, {"created_at": "2024-08-15T19:53:16Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:17Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": - "2024-08-15T19:53:16+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_55ebdec2115446e7aa1e44cfe1ca07b5", "parcel": {"id": "prcl_ded980f1739d47ebb674a17457443d92", - "object": "Parcel", "created_at": "2024-08-15T19:53:16Z", "updated_at": "2024-08-15T19:53:16Z", + {}}, "forms": [], "fees": [], "object": "Shipment"}, {"id": "shp_2a958445977543d493c211e0b64b35b2", + "created_at": "2025-03-06T19:48:30Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + null, "updated_at": "2025-03-06T19:48:30Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": null, "from_address": {"id": + "adr_fab49ddbfac311efb36f3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:30+00:00", "updated_at": "2025-03-06T19:48:30+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": "order_26702f7c8a5e401faeb65501179e3262", + "parcel": {"id": "prcl_e4ea2d6d1a784b11ac76803526a5c550", "object": "Parcel", + "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_86df3ceb5a5f4f68aa373ee6f3ae5c23", - "object": "Rate", "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_f38f9649d9e544fb859c5afb773ba977", + "object": "Rate", "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "38.40", + "currency": "USD", "retail_rate": "44.15", "retail_currency": "USD", "list_rate": + "38.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_477a40295471463783f49cdb0a37143c", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b08ca005a03d43c3b74bef50746b71b1", - "object": "Rate", "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", - "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": - "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_2a958445977543d493c211e0b64b35b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_80a11d13d32b4bb99432012572913ecf", + "object": "Rate", "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "8.22", + "currency": "USD", "retail_rate": "12.65", "retail_currency": "USD", "list_rate": + "9.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_477a40295471463783f49cdb0a37143c", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d54ef86aead34d4ca41802e0f8cc0f2b", - "object": "Rate", "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_2a958445977543d493c211e0b64b35b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_57a579e7ab4c4ae0b584d9b753c0ad7d", + "object": "Rate", "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.53", + "currency": "USD", "retail_rate": "11.40", "retail_currency": "USD", "list_rate": + "8.05", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_477a40295471463783f49cdb0a37143c", "carrier_account_id": + 3, "shipment_id": "shp_2a958445977543d493c211e0b64b35b2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_03a687315b4011ef8125ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": - "2024-08-15T19:53:16+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fab33a37fac311efb36e3cecef1b359e", + "object": "Address", "created_at": "2025-03-06T19:48:30+00:00", "updated_at": + "2025-03-06T19:48:30+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_03a884c55b4011ef8128ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", "name": + {"id": "adr_fab49ddbfac311efb36f3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:30+00:00", "updated_at": "2025-03-06T19:48:30+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_03a687315b4011ef8125ac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:53:16+00:00", "updated_at": "2024-08-15T19:53:16+00:00", + {}}, "buyer_address": {"id": "adr_fab33a37fac311efb36e3cecef1b359e", "object": + "Address", "created_at": "2025-03-06T19:48:30+00:00", "updated_at": "2025-03-06T19:48:30+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_477a40295471463783f49cdb0a37143c", - "object": "Shipment"}], "rates": [{"id": "rate_6f666a3abf11497fa4f8e5e65b42bbb2", + {}}, "forms": [], "fees": [], "object": "Shipment"}], "rates": [{"id": "rate_cba7e0a3d7124d2ba816ea612d55986f", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "15.64", "currency": "USD", + "retail_rate": "22.55", "retail_currency": "USD", "list_rate": "17.41", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_f82ddf699f31400bbe86c21663960619", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_9aae4ae3164b4d2bb79efbf307e48725", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "GroundAdvantage", "carrier": + "USPS", "rate": "11.74", "currency": "USD", "retail_rate": "18.40", "retail_currency": + "USD", "list_rate": "13.26", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 3, "shipment_id": "shp_f82ddf699f31400bbe86c21663960619", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fd7abde0253b47bb9fe72b3bb1c2d377", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", - "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": + "service": "Express", "carrier": "USPS", "rate": "72.55", "currency": "USD", + "retail_rate": "83.25", "retail_currency": "USD", "list_rate": "72.55", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_4b659ee7203245ca8c775dc7f0f3eebb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_ca437f7773844326b8130ed736d9b1c4", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": - "USPS", "rate": "14.48", "currency": "USD", "retail_rate": "22.30", "retail_currency": - "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_4b659ee7203245ca8c775dc7f0f3eebb", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c70cd64b7b9f4bcc924be3011fb6f3f7", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.40", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_4b659ee7203245ca8c775dc7f0f3eebb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_55ebdec2115446e7aa1e44cfe1ca07b5", "object": "Order"}' + "shp_f82ddf699f31400bbe86c21663960619", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_26702f7c8a5e401faeb65501179e3262", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '16329' + - '12448' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/orders/order_55ebdec2115446e7aa1e44cfe1ca07b5 + - /api/v2/orders/order_26702f7c8a5e401faeb65501179e3262 pragma: - no-cache referrer-policy: @@ -262,20 +213,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cace78861c1001734c2 + - 8e8eb62967c9fc0ee2b97b3700189acd x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '1.352484' + - '0.337334' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_retrieve.yaml b/tests/cassettes/test_order_retrieve.yaml index a34f6251..d8d4a96d 100644 --- a/tests/cassettes/test_order_retrieve.yaml +++ b/tests/cassettes/test_order_retrieve.yaml @@ -27,226 +27,177 @@ interactions: response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}], "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:08Z", - "customs_info": null, "from_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": - "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": - "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "USD", "payment": {"type": "SENDER"}}, "messages": [], "created_at": "2025-03-06T19:48:27Z", + "updated_at": "2025-03-06T19:48:27Z", "customs_info": null, "from_address": + {"id": "adr_f8b671e2fac311efbcd2ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", + {}}, "return_address": {"id": "adr_f8b671e2fac311efbcd2ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-08-15T19:53:07Z", "is_return": false, - "messages": [{"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", + {}}, "shipments": [{"id": "shp_080c36deaf4e46288c6ab4dd7541c0ff", "created_at": + "2025-03-06T19:48:27Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:07Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": - "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": + "2025-03-06T19:48:27Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_f8b671e2fac311efbcd2ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": + "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_e092db090c4d4a8981233e064745de34", "parcel": {"id": "prcl_657469de0ffb4bdfb3b7dd2ace077079", - "object": "Parcel", "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", + "order_2d074a2409d84d28b4d76e9c4288931b", "parcel": {"id": "prcl_b2c5e6eacb884263b430db2ff32acd34", + "object": "Parcel", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c1993d23e977404586b2c5cac9b6c574", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_679c43ffd32c4a67a07c06c73c8db0fd", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.21", + "currency": "USD", "retail_rate": "7.00", "retail_currency": "USD", "list_rate": + "5.21", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_080c36deaf4e46288c6ab4dd7541c0ff", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6d80f0247620488295d4e0972f9df86b", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d568dc20f021445ca51fa5d55f24dac5", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_080c36deaf4e46288c6ab4dd7541c0ff", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c846a472ccb04471b81fa5ea9fc14952", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_34a8acc9977b423a99c8f9a7e77f6634", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": + 2, "shipment_id": "shp_080c36deaf4e46288c6ab4dd7541c0ff", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": - "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": + "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + {"id": "adr_f8b671e2fac311efbcd2ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", + {}}, "buyer_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_ca385720de3b442ea1e7595221632ea8", - "object": "Shipment"}, {"created_at": "2024-08-15T19:53:07Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:07Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": - "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - "order_e092db090c4d4a8981233e064745de34", "parcel": {"id": "prcl_36fbf4fbe3ce4d05a996511925495e78", - "object": "Parcel", "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", + {}}, "forms": [], "fees": [], "object": "Shipment"}, {"id": "shp_585a2e0c08944a61bee1557f6f8b9fef", + "created_at": "2025-03-06T19:48:27Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + null, "updated_at": "2025-03-06T19:48:27Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": null, "from_address": {"id": + "adr_f8b671e2fac311efbcd2ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": "order_2d074a2409d84d28b4d76e9c4288931b", + "parcel": {"id": "prcl_4c3997e0861e436081894618321b8f25", "object": "Parcel", + "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_446cf3829bb34215a70b6bcc197421fb", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", - "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": - "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_8392bed93eff422fb388f812e1d28261", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "38.40", + "currency": "USD", "retail_rate": "44.15", "retail_currency": "USD", "list_rate": + "38.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_585a2e0c08944a61bee1557f6f8b9fef", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_96c36947f51048eeb04398a125b0326c", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "8.22", + "currency": "USD", "retail_rate": "12.65", "retail_currency": "USD", "list_rate": + "9.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f1a0224097d64e729fafd7ed3eb6ba18", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_585a2e0c08944a61bee1557f6f8b9fef", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3f4e71c05f0a4b599e14ecd886825309", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.53", + "currency": "USD", "retail_rate": "11.40", "retail_currency": "USD", "list_rate": + "8.05", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c11e02096ff841fdb8ffb8cba81df971", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": + 3, "shipment_id": "shp_585a2e0c08944a61bee1557f6f8b9fef", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": - "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": + "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + {"id": "adr_f8b671e2fac311efbcd2ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", + {}}, "buyer_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_24121dc814f84dca86a0b5b16dfe037f", - "object": "Shipment"}], "rates": [{"id": "rate_c1993d23e977404586b2c5cac9b6c574", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", - "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_d568dc20f021445ca51fa5d55f24dac5", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": - "USPS", "rate": "14.48", "currency": "USD", "retail_rate": "22.30", "retail_currency": - "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_34a8acc9977b423a99c8f9a7e77f6634", + {}}, "forms": [], "fees": [], "object": "Shipment"}], "rates": [{"id": "rate_679c43ffd32c4a67a07c06c73c8db0fd", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.40", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.74", "currency": + "USD", "retail_rate": "18.40", "retail_currency": "USD", "list_rate": "13.26", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_e092db090c4d4a8981233e064745de34", "object": "Order"}' + "shp_080c36deaf4e46288c6ab4dd7541c0ff", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_6d80f0247620488295d4e0972f9df86b", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Express", "carrier": + "USPS", "rate": "72.55", "currency": "USD", "retail_rate": "83.25", "retail_currency": + "USD", "list_rate": "72.55", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 1, "shipment_id": "shp_080c36deaf4e46288c6ab4dd7541c0ff", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c846a472ccb04471b81fa5ea9fc14952", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "15.64", "currency": "USD", + "retail_rate": "22.55", "retail_currency": "USD", "list_rate": "17.41", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_080c36deaf4e46288c6ab4dd7541c0ff", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_2d074a2409d84d28b4d76e9c4288931b", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '16329' + - '12448' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/orders/order_e092db090c4d4a8981233e064745de34 + - /api/v2/orders/order_2d074a2409d84d28b4d76e9c4288931b pragma: - no-cache referrer-policy: @@ -262,20 +213,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5ca3e788618100172bb4 + - 8e8eb62a67c9fc0ae2b97b340018967a x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '1.530456' + - '0.327880' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -295,195 +246,175 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/orders/order_e092db090c4d4a8981233e064745de34 + uri: https://api.easypost.com/v2/orders/order_2d074a2409d84d28b4d76e9c4288931b response: body: string: '{"mode": "test", "reference": "", "is_return": false, "options": {"currency": - "USD", "payment": {"type": "SENDER"}}, "messages": [{"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}], "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:08Z", - "customs_info": null, "from_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": - "2024-08-15T19:53:07+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": - "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + "USD", "payment": {"type": "SENDER"}}, "messages": [], "created_at": "2025-03-06T19:48:27Z", + "updated_at": "2025-03-06T19:48:27Z", "customs_info": null, "from_address": + {"id": "adr_f8b671e2fac311efbcd2ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "to_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "return_address": {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + {}}, "buyer_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "shipments": [{"created_at": "2024-08-15T19:53:07Z", "is_return": false, - "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": null, "updated_at": "2024-08-15T19:53:07Z", "batch_id": null, - "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + {}}, "return_address": {"id": "adr_f8b671e2fac311efbcd2ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_e092db090c4d4a8981233e064745de34", - "parcel": {"id": "prcl_657469de0ffb4bdfb3b7dd2ace077079", "object": "Parcel", - "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", + {}}, "shipments": [{"id": "shp_080c36deaf4e46288c6ab4dd7541c0ff", "created_at": + "2025-03-06T19:48:27Z", "is_return": false, "messages": [], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": + "2025-03-06T19:48:27Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_f8b671e2fac311efbcd2ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:27+00:00", "updated_at": + "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": + "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": + "CA", "zip": "94107", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + "order_2d074a2409d84d28b4d76e9c4288931b", "parcel": {"id": "prcl_b2c5e6eacb884263b430db2ff32acd34", + "object": "Parcel", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c1993d23e977404586b2c5cac9b6c574", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 10.2, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_679c43ffd32c4a67a07c06c73c8db0fd", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.21", + "currency": "USD", "retail_rate": "7.00", "retail_currency": "USD", "list_rate": + "5.21", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_080c36deaf4e46288c6ab4dd7541c0ff", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6d80f0247620488295d4e0972f9df86b", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d568dc20f021445ca51fa5d55f24dac5", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_080c36deaf4e46288c6ab4dd7541c0ff", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c846a472ccb04471b81fa5ea9fc14952", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_34a8acc9977b423a99c8f9a7e77f6634", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": + 2, "shipment_id": "shp_080c36deaf4e46288c6ab4dd7541c0ff", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": - "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": + "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + {"id": "adr_f8b671e2fac311efbcd2ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", + {}}, "buyer_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_ca385720de3b442ea1e7595221632ea8", - "object": "Shipment"}, {"created_at": "2024-08-15T19:53:07Z", "is_return": - false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": null, "updated_at": "2024-08-15T19:53:07Z", "batch_id": null, - "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + {}}, "forms": [], "fees": [], "object": "Shipment"}, {"id": "shp_585a2e0c08944a61bee1557f6f8b9fef", + "created_at": "2025-03-06T19:48:27Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": + null, "updated_at": "2025-03-06T19:48:27Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": null, "from_address": {"id": + "adr_f8b671e2fac311efbcd2ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_e092db090c4d4a8981233e064745de34", - "parcel": {"id": "prcl_36fbf4fbe3ce4d05a996511925495e78", "object": "Parcel", - "created_at": "2024-08-15T19:53:07Z", "updated_at": "2024-08-15T19:53:07Z", + {}}, "insurance": null, "order_id": "order_2d074a2409d84d28b4d76e9c4288931b", + "parcel": {"id": "prcl_4c3997e0861e436081894618321b8f25", "object": "Parcel", + "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_446cf3829bb34215a70b6bcc197421fb", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", - "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": - "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "weight": 17.5, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_8392bed93eff422fb388f812e1d28261", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "38.40", + "currency": "USD", "retail_rate": "44.15", "retail_currency": "USD", "list_rate": + "38.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_585a2e0c08944a61bee1557f6f8b9fef", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_96c36947f51048eeb04398a125b0326c", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "8.22", + "currency": "USD", "retail_rate": "12.65", "retail_currency": "USD", "list_rate": + "9.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f1a0224097d64e729fafd7ed3eb6ba18", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_585a2e0c08944a61bee1557f6f8b9fef", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3f4e71c05f0a4b599e14ecd886825309", + "object": "Rate", "created_at": "2025-03-06T19:48:27Z", "updated_at": "2025-03-06T19:48:27Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.53", + "currency": "USD", "retail_rate": "11.40", "retail_currency": "USD", "list_rate": + "8.05", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c11e02096ff841fdb8ffb8cba81df971", - "object": "Rate", "created_at": "2024-08-15T19:53:08Z", "updated_at": "2024-08-15T19:53:08Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_24121dc814f84dca86a0b5b16dfe037f", "carrier_account_id": + 3, "shipment_id": "shp_585a2e0c08944a61bee1557f6f8b9fef", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": - "2024-08-15T19:53:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": + "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_fdf98e8f5b3f11ef9cac3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", "name": + {"id": "adr_f8b671e2fac311efbcd2ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:27+00:00", "updated_at": "2025-03-06T19:48:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_fdf76cd45b3f11ef9cab3cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:07+00:00", "updated_at": "2024-08-15T19:53:07+00:00", + {}}, "buyer_address": {"id": "adr_f8b49794fac311efbcd0ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-06T19:48:26+00:00", "updated_at": "2025-03-06T19:48:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_24121dc814f84dca86a0b5b16dfe037f", - "object": "Shipment"}], "rates": [{"id": "rate_c1993d23e977404586b2c5cac9b6c574", - "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "70.30", "currency": "USD", - "retail_rate": "80.70", "retail_currency": "USD", "list_rate": "70.30", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_d568dc20f021445ca51fa5d55f24dac5", "object": "Rate", "created_at": - null, "updated_at": null, "mode": "test", "service": "Priority", "carrier": - "USPS", "rate": "14.48", "currency": "USD", "retail_rate": "22.30", "retail_currency": - "USD", "list_rate": "17.22", "list_currency": "USD", "billing_type": "easypost", - "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, - "est_delivery_days": 2, "shipment_id": "shp_ca385720de3b442ea1e7595221632ea8", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_34a8acc9977b423a99c8f9a7e77f6634", + {}}, "forms": [], "fees": [], "object": "Shipment"}], "rates": [{"id": "rate_679c43ffd32c4a67a07c06c73c8db0fd", "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", - "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.40", "currency": - "USD", "retail_rate": "17.50", "retail_currency": "USD", "list_rate": "12.82", + "service": "GroundAdvantage", "carrier": "USPS", "rate": "11.74", "currency": + "USD", "retail_rate": "18.40", "retail_currency": "USD", "list_rate": "13.26", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ca385720de3b442ea1e7595221632ea8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "id": "order_e092db090c4d4a8981233e064745de34", "object": "Order"}' + "shp_080c36deaf4e46288c6ab4dd7541c0ff", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_6d80f0247620488295d4e0972f9df86b", "object": "Rate", "created_at": + null, "updated_at": null, "mode": "test", "service": "Express", "carrier": + "USPS", "rate": "72.55", "currency": "USD", "retail_rate": "83.25", "retail_currency": + "USD", "list_rate": "72.55", "list_currency": "USD", "billing_type": "easypost", + "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, + "est_delivery_days": 1, "shipment_id": "shp_080c36deaf4e46288c6ab4dd7541c0ff", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c846a472ccb04471b81fa5ea9fc14952", + "object": "Rate", "created_at": null, "updated_at": null, "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "15.64", "currency": "USD", + "retail_rate": "22.55", "retail_currency": "USD", "list_rate": "17.41", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_080c36deaf4e46288c6ab4dd7541c0ff", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "id": "order_2d074a2409d84d28b4d76e9c4288931b", "object": "Order"}' headers: cache-control: - private, no-cache, no-store content-length: - - '13927' + - '12448' content-type: - application/json; charset=utf-8 expires: @@ -503,20 +434,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5ca4e788618100172d6b + - 8e8eb62a67c9fc0be2b97b34001896df x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.142965' + - '0.097449' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_parcel_create.yaml b/tests/cassettes/test_parcel_create.yaml index a60a4fea..bcc7646f 100644 --- a/tests/cassettes/test_parcel_create.yaml +++ b/tests/cassettes/test_parcel_create.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_fb3eae01fdcf42e78cd53257aa56740e", "object": "Parcel", - "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", + string: '{"id": "prcl_5d81cd2ad3644052943064bf570d753e", "object": "Parcel", + "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -34,7 +34,7 @@ interactions: expires: - '0' location: - - /api/v2/parcels/prcl_fb3eae01fdcf42e78cd53257aa56740e + - /api/v2/parcels/prcl_5d81cd2ad3644052943064bf570d753e pragma: - no-cache referrer-policy: @@ -52,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5caee78861c20017363f + - 8e8eb62967c9fc0ee2b97b3800189b8b x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.027840' + - '0.028550' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_parcel_retrieve.yaml b/tests/cassettes/test_parcel_retrieve.yaml index 927bbbaa..ac527aef 100644 --- a/tests/cassettes/test_parcel_retrieve.yaml +++ b/tests/cassettes/test_parcel_retrieve.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_1ee652c8f0644a0f9aa19b15175d3450", "object": "Parcel", - "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", + string: '{"id": "prcl_7c7ea4fdff3d49f5a0ba5a4cf8c50d64", "object": "Parcel", + "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -34,7 +34,7 @@ interactions: expires: - '0' location: - - /api/v2/parcels/prcl_1ee652c8f0644a0f9aa19b15175d3450 + - /api/v2/parcels/prcl_7c7ea4fdff3d49f5a0ba5a4cf8c50d64 pragma: - no-cache referrer-policy: @@ -50,20 +50,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5caee78861c300173687 + - 8e8eb62967c9fc0ee2b97b3900189bd2 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.034451' + - '0.031217' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -83,11 +83,11 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/parcels/prcl_1ee652c8f0644a0f9aa19b15175d3450 + uri: https://api.easypost.com/v2/parcels/prcl_7c7ea4fdff3d49f5a0ba5a4cf8c50d64 response: body: - string: '{"id": "prcl_1ee652c8f0644a0f9aa19b15175d3450", "object": "Parcel", - "created_at": "2024-08-15T19:53:18Z", "updated_at": "2024-08-15T19:53:18Z", + string: '{"id": "prcl_7c7ea4fdff3d49f5a0ba5a4cf8c50d64", "object": "Parcel", + "created_at": "2025-03-06T19:48:30Z", "updated_at": "2025-03-06T19:48:30Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -114,20 +114,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5caee78861c3001736b2 + - 8e8eb62967c9fc0ee2b97b3900189bf0 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.022152' + - '0.021935' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_all.yaml b/tests/cassettes/test_pickup_all.yaml index e5a6c08c..1b1c088d 100644 --- a/tests/cassettes/test_pickup_all.yaml +++ b/tests/cassettes/test_pickup_all.yaml @@ -16,61 +16,61 @@ interactions: uri: https://api.easypost.com/v2/pickups?page_size=5 response: body: - string: '{"pickups": [{"id": "pickup_01ab23e45845440b89921fb1607bfe67", "object": - "Pickup", "created_at": "2024-08-16T15:46:46Z", "updated_at": "2024-08-16T15:46:46Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", - "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"pickups": [{"id": "pickup_3cafbbc9dae14281a0c76848a9419cb1", "object": + "Pickup", "created_at": "2025-03-07T16:46:00Z", "updated_at": "2025-03-07T16:46:00Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2025-03-08T00:00:00Z", + "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_be3012c35be611ef8d11ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-16T15:46:46+00:00", "updated_at": "2024-08-16T15:46:46+00:00", "name": + "adr_a6a0caccfb7311efb5feac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:46:00+00:00", "updated_at": "2025-03-07T16:46:00+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:47Z", - "updated_at": "2024-08-16T15:46:47Z", "carrier": "USPS", "pickup_id": "pickup_01ab23e45845440b89921fb1607bfe67", - "id": "pickuprate_f9946c5995eb4af5b741d6d56e47a3b6", "object": "PickupRate"}]}, - {"id": "pickup_ca2a288624fa4e1fbd68bdc6f98b8022", "object": "Pickup", "created_at": - "2024-08-15T20:41:54Z", "updated_at": "2024-08-15T20:41:54Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:02Z", + "updated_at": "2025-03-07T16:46:02Z", "carrier": "USPS", "pickup_id": "pickup_3cafbbc9dae14281a0c76848a9419cb1", + "id": "pickuprate_91820d140f3f4e9ebfa2e709688017c5", "object": "PickupRate"}]}, + {"id": "pickup_62ca1c7c91b843888ff982502c8018b7", "object": "Pickup", "created_at": + "2025-03-06T19:48:38Z", "updated_at": "2025-03-06T19:48:38Z", "mode": "test", + "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_ce87f1b15b4611ef91153cecef1b359e", "object": "Address", "created_at": - "2024-08-15T20:41:54+00:00", "updated_at": "2024-08-15T20:41:54+00:00", "name": + "adr_ffc9a077fac311efb6293cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:38+00:00", "updated_at": "2025-03-06T19:48:38+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_fa75131fa31943498db31c074e290add", - "object": "Pickup", "created_at": "2024-08-15T20:41:52Z", "updated_at": "2024-08-15T20:41:52Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_e1cf0a09b64a4160853f4121d6713747", + "object": "Pickup", "created_at": "2025-03-06T19:48:37Z", "updated_at": "2025-03-06T19:48:37Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_cd660b0a5b4611efb09cac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T20:41:52+00:00", "updated_at": "2024-08-15T20:41:52+00:00", "name": + "adr_fefb306bfac311ef9a28ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:37+00:00", "updated_at": "2025-03-06T19:48:37+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_a4c87194b51f421a8312738633e09606", - "object": "Pickup", "created_at": "2024-08-15T20:41:50Z", "updated_at": "2024-08-15T20:41:50Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_49b84091f140493e8df6d44ec9de856a", + "object": "Pickup", "created_at": "2025-03-06T19:48:36Z", "updated_at": "2025-03-06T19:48:36Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_cc523a585b4611ef90633cecef1b359e", "object": "Address", "created_at": - "2024-08-15T20:41:50+00:00", "updated_at": "2024-08-15T20:41:50+00:00", "name": + "adr_fe10e26efac311efb51c3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:35+00:00", "updated_at": "2025-03-06T19:48:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_d6e8568063a7477c969b7fb183f473cd", - "object": "Pickup", "created_at": "2024-08-15T20:41:48Z", "updated_at": "2024-08-15T20:41:48Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_f4b950fb123b412282de960603a832c4", + "object": "Pickup", "created_at": "2025-03-06T19:48:34Z", "updated_at": "2025-03-06T19:48:34Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_cb32b7005b4611ef801dac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T20:41:48+00:00", "updated_at": "2024-08-15T20:41:48+00:00", "name": + "adr_fd324b43fac311ef93cdac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:34+00:00", "updated_at": "2025-03-06T19:48:34+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -100,20 +100,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43c66bf7468e786a2dc00331191 + - 9087f27567cb22cae2aaba010044227b x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb2nuq 99aac35317 x-runtime: - - '0.233218' + - '0.285083' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_buy.yaml b/tests/cassettes/test_pickup_buy.yaml index 8df7bd2b..c5af894a 100644 --- a/tests/cassettes/test_pickup_buy.yaml +++ b/tests/cassettes/test_pickup_buy.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-16T15:46:52Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807076059112", "updated_at": "2024-08-16T15:46:53Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_c1e3f9ae5be611ef8b2dac1f6bc539aa", "object": "Address", "created_at": - "2024-08-16T15:46:52+00:00", "updated_at": "2024-08-16T15:46:52+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_a9eb633723004fcfbc13d4cfd1721c67", - "object": "Parcel", "created_at": "2024-08-16T15:46:52Z", "updated_at": "2024-08-16T15:46:52Z", + string: '{"id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "created_at": "2025-03-07T16:46:07Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505626", "updated_at": + "2025-03-07T16:46:07Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_aa69c593fb7311ef971b3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:07+00:00", "updated_at": + "2025-03-07T16:46:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_d65c73ef0b0741b683c85ae149b4c615", "object": + "Parcel", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_dc69359118c94b2dbcc85ad62a661596", - "created_at": "2024-08-16T15:46:53Z", "updated_at": "2024-08-16T15:46:53Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-16T15:46:53Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f91a9e01da6c4e378d2dce661c4c6911", + "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:07Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240816/e889e33fc22e234e5ea06400dcc59fd4f5.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8534b38912c20459a8afb5b43a2a38f93.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f4b1543a807d42c7a64d9a1ef23eacc6", "object": - "Rate", "created_at": "2024-08-16T15:46:52Z", "updated_at": "2024-08-16T15:46:52Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_04d542e1de6a48a2b27f2b6df5018765", - "object": "Rate", "created_at": "2024-08-16T15:46:52Z", "updated_at": "2024-08-16T15:46:52Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e4328dec01664a10b49aeb9d785685ef", - "object": "Rate", "created_at": "2024-08-16T15:46:52Z", "updated_at": "2024-08-16T15:46:52Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_59faed8017f04a3a929537ddda74d7fb", "object": + "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "carrier_account_id": + 1, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_feb24755f1794a458896fecb8a014f3e", + "object": "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9f7170c31a6a4cd4b07a7ee5c114aadc", + "object": "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_04d542e1de6a48a2b27f2b6df5018765", "object": - "Rate", "created_at": "2024-08-16T15:46:53Z", "updated_at": "2024-08-16T15:46:53Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_9f7170c31a6a4cd4b07a7ee5c114aadc", "object": + "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b97ca0eff21e4b4aa43bece94fcec9d0", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807076059112", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-16T15:46:53Z", - "updated_at": "2024-08-16T15:46:53Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "carrier": "USPS", + 3, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_5b5388ca5edc4c2188e41862ace7cbee", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505626", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:07Z", + "updated_at": "2025-03-07T16:46:07Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2I5N2NhMGVmZjIxZTRiNGFhNDNiZWNlOTRmY2VjOWQw"}, - "to_address": {"id": "adr_c1e22e865be611ef8b2cac1f6bc539aa", "object": "Address", - "created_at": "2024-08-16T15:46:52+00:00", "updated_at": "2024-08-16T15:46:52+00:00", + "https://track.easypost.com/djE6dHJrXzViNTM4OGNhNWVkYzRjMjE4OGU0MTg2MmFjZTdjYmVl"}, + "to_address": {"id": "adr_aa670212fb7311ef9ddfac1f6bc539aa", "object": "Address", + "created_at": "2025-03-07T16:46:07+00:00", "updated_at": "2025-03-07T16:46:07+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_c1e3f9ae5be611ef8b2dac1f6bc539aa", - "object": "Address", "created_at": "2024-08-16T15:46:52+00:00", "updated_at": - "2024-08-16T15:46:52+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_aa69c593fb7311ef971b3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:07+00:00", "updated_at": + "2025-03-07T16:46:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_c1e22e865be611ef8b2cac1f6bc539aa", "object": "Address", "created_at": - "2024-08-16T15:46:52+00:00", "updated_at": "2024-08-16T15:46:52+00:00", "name": + "adr_aa670212fb7311ef9ddfac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:46:07+00:00", "updated_at": "2025-03-07T16:46:07+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_308e08cc58ed4d22876a35f6c5280cc1", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_308e08cc58ed4d22876a35f6c5280cc1 + - /api/v2/shipments/shp_2d1487afd0f541a4bcf9fecc1b02b28d pragma: - no-cache referrer-policy: @@ -138,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43e66bf746ce786a2f6003315e0 + - 6eaaf8ff67cb22cee2aaba1b000acefd x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.042773' + - '1.045469' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -161,8 +161,8 @@ interactions: body: '{"pickup": {"address": {"name": "Jack Sparrow", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "min_datetime": - "2024-08-17", "max_datetime": "2024-08-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_308e08cc58ed4d22876a35f6c5280cc1"}}}' + "2025-03-08", "max_datetime": "2025-03-08", "instructions": "Pickup at front + door", "shipment": {"id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d"}}}' headers: Accept: - '*/*' @@ -182,21 +182,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_494caf8885524ab9af07a4689e4b4e47", "object": "Pickup", - "created_at": "2024-08-16T15:46:53Z", "updated_at": "2024-08-16T15:46:53Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", - "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_97eb98f4c2004ede9f30e26ec4f63233", "object": "Pickup", + "created_at": "2025-03-07T16:46:08Z", "updated_at": "2025-03-07T16:46:08Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2025-03-08T00:00:00Z", + "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_c295906f5be611ef8f45ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-16T15:46:53+00:00", "updated_at": "2024-08-16T15:46:53+00:00", "name": + "adr_aafa0799fb7311efb8bbac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:46:08+00:00", "updated_at": "2025-03-07T16:46:08+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:54Z", - "updated_at": "2024-08-16T15:46:54Z", "carrier": "USPS", "pickup_id": "pickup_494caf8885524ab9af07a4689e4b4e47", - "id": "pickuprate_a772332c1f47418ca25986f7a7f0e7dc", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:08Z", + "updated_at": "2025-03-07T16:46:08Z", "carrier": "USPS", "pickup_id": "pickup_97eb98f4c2004ede9f30e26ec4f63233", + "id": "pickuprate_dd219c18c36a48b295f8d8c5d5247906", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -221,20 +221,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43e66bf746de786a2f60033170e + - 6eaaf8ff67cb22cfe2aaba1b000ad0d9 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.204295' + - '1.051583' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -258,24 +258,24 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/pickups/pickup_494caf8885524ab9af07a4689e4b4e47/buy + uri: https://api.easypost.com/v2/pickups/pickup_97eb98f4c2004ede9f30e26ec4f63233/buy response: body: - string: '{"id": "pickup_494caf8885524ab9af07a4689e4b4e47", "object": "Pickup", - "created_at": "2024-08-16T15:46:53Z", "updated_at": "2024-08-16T15:46:56Z", + string: '{"id": "pickup_97eb98f4c2004ede9f30e26ec4f63233", "object": "Pickup", + "created_at": "2025-03-07T16:46:08Z", "updated_at": "2025-03-07T16:46:10Z", "mode": "test", "status": "scheduled", "reference": null, "min_datetime": - "2024-08-17T00:00:00Z", "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": + "2025-03-08T00:00:00Z", "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": - "WTC64761768", "address": {"id": "adr_c295906f5be611ef8f45ac1f6bc539ae", "object": - "Address", "created_at": "2024-08-16T15:46:53+00:00", "updated_at": "2024-08-16T15:46:53+00:00", + "WTC65024896", "address": {"id": "adr_aafa0799fb7311efb8bbac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:08+00:00", "updated_at": "2025-03-07T16:46:08+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:54Z", - "updated_at": "2024-08-16T15:46:54Z", "carrier": "USPS", "pickup_id": "pickup_494caf8885524ab9af07a4689e4b4e47", - "id": "pickuprate_a772332c1f47418ca25986f7a7f0e7dc", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:08Z", + "updated_at": "2025-03-07T16:46:08Z", "carrier": "USPS", "pickup_id": "pickup_97eb98f4c2004ede9f30e26ec4f63233", + "id": "pickuprate_dd219c18c36a48b295f8d8c5d5247906", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -300,20 +300,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43e66bf746ee786a2f600331855 + - 6eaaf8ff67cb22d1e2aaba1b000ad22a x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb56nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.548394' + - '1.813744' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_cancel.yaml b/tests/cassettes/test_pickup_cancel.yaml index 828afb59..ef53c5e0 100644 --- a/tests/cassettes/test_pickup_cancel.yaml +++ b/tests/cassettes/test_pickup_cancel.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-16T15:46:56Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807076059136", "updated_at": "2024-08-16T15:46:57Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_c464aa865be611efbad13cecef1b359e", "object": "Address", "created_at": - "2024-08-16T15:46:56+00:00", "updated_at": "2024-08-16T15:46:56+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_cfbd75398e714a5cab06ff15afe27edd", - "object": "Parcel", "created_at": "2024-08-16T15:46:56Z", "updated_at": "2024-08-16T15:46:56Z", + string: '{"id": "shp_b674aad341c24fe18611019a72ff6e84", "created_at": "2025-03-07T16:46:11Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505633", "updated_at": + "2025-03-07T16:46:11Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_acc761b6fb7311ef98773cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:11+00:00", "updated_at": + "2025-03-07T16:46:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_48819d3d4ffc44b898146405288b1b4e", "object": + "Parcel", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d6394807a4794fd3b59a8a55508969f1", - "created_at": "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:46:57Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-16T15:46:57Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7c4b7267da3f4b13a8834e79a7b0af3a", + "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:11Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240816/e84b7c7d8d6628491996a498e6b4fd0926.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8728792ec6b434a14a1f45d8e27c3db93.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_8f7574cc460f4d1fb1dcc7ff9698c685", "object": - "Rate", "created_at": "2024-08-16T15:46:56Z", "updated_at": "2024-08-16T15:46:56Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_fbb3c991c850462e9144cf6744e5230c", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6ff243e7727440599afe751d3c64f596", - "object": "Rate", "created_at": "2024-08-16T15:46:56Z", "updated_at": "2024-08-16T15:46:56Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_fbb3c991c850462e9144cf6744e5230c", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_59fcc1df31cf42888d9fd7597952f899", - "object": "Rate", "created_at": "2024-08-16T15:46:56Z", "updated_at": "2024-08-16T15:46:56Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_f74107b724334c1695f76a362d6d1354", "object": + "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_fbb3c991c850462e9144cf6744e5230c", "carrier_account_id": + 1, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c50e7434c2b8494cbc89405e54ee777e", + "object": "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_345992a3bb14453ca8c41069addcbbad", + "object": "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_6ff243e7727440599afe751d3c64f596", "object": - "Rate", "created_at": "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:46:57Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_345992a3bb14453ca8c41069addcbbad", "object": + "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_fbb3c991c850462e9144cf6744e5230c", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_8e3acee34be146c7bf6f3495d61342dd", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807076059136", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-16T15:46:57Z", - "updated_at": "2024-08-16T15:46:57Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_fbb3c991c850462e9144cf6744e5230c", "carrier": "USPS", + 3, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_7ab5213aaf264b53ab2f296d2efc7e73", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505633", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:11Z", + "updated_at": "2025-03-07T16:46:11Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzhlM2FjZWUzNGJlMTQ2YzdiZjZmMzQ5NWQ2MTM0MmRk"}, - "to_address": {"id": "adr_c462c3225be611ef8c69ac1f6bc53342", "object": "Address", - "created_at": "2024-08-16T15:46:56+00:00", "updated_at": "2024-08-16T15:46:56+00:00", + "https://track.easypost.com/djE6dHJrXzdhYjUyMTNhYWYyNjRiNTNhYjJmMjk2ZDJlZmM3ZTcz"}, + "to_address": {"id": "adr_acc16571fb7311ef9f45ac1f6bc539aa", "object": "Address", + "created_at": "2025-03-07T16:46:10+00:00", "updated_at": "2025-03-07T16:46:11+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_c464aa865be611efbad13cecef1b359e", - "object": "Address", "created_at": "2024-08-16T15:46:56+00:00", "updated_at": - "2024-08-16T15:46:56+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_acc761b6fb7311ef98773cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:11+00:00", "updated_at": + "2025-03-07T16:46:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_c462c3225be611ef8c69ac1f6bc53342", "object": "Address", "created_at": - "2024-08-16T15:46:56+00:00", "updated_at": "2024-08-16T15:46:56+00:00", "name": + "adr_acc16571fb7311ef9f45ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:46:10+00:00", "updated_at": "2025-03-07T16:46:11+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_fbb3c991c850462e9144cf6744e5230c", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_fbb3c991c850462e9144cf6744e5230c + - /api/v2/shipments/shp_b674aad341c24fe18611019a72ff6e84 pragma: - no-cache referrer-policy: @@ -138,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43d66bf7470e786a2f7003319fc + - 6eaaf8ff67cb22d2e2aaba1c000ad494 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.991946' + - '1.032213' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -161,8 +161,8 @@ interactions: body: '{"pickup": {"address": {"name": "Jack Sparrow", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "min_datetime": - "2024-08-17", "max_datetime": "2024-08-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_fbb3c991c850462e9144cf6744e5230c"}}}' + "2025-03-08", "max_datetime": "2025-03-08", "instructions": "Pickup at front + door", "shipment": {"id": "shp_b674aad341c24fe18611019a72ff6e84"}}}' headers: Accept: - '*/*' @@ -182,21 +182,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", "object": "Pickup", - "created_at": "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:46:57Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", - "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_7a497566ff634331bdaffdfe4ab10103", "object": "Pickup", + "created_at": "2025-03-07T16:46:12Z", "updated_at": "2025-03-07T16:46:12Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2025-03-08T00:00:00Z", + "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_c5062b085be611ef904eac1f6bc539ae", "object": "Address", "created_at": - "2024-08-16T15:46:57+00:00", "updated_at": "2024-08-16T15:46:57+00:00", "name": + "adr_ad70f202fb7311ef98d43cecef1b359e", "object": "Address", "created_at": + "2025-03-07T16:46:12+00:00", "updated_at": "2025-03-07T16:46:12+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:58Z", - "updated_at": "2024-08-16T15:46:58Z", "carrier": "USPS", "pickup_id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", - "id": "pickuprate_61c282cd40b9467ba8a089c7c7d6e99c", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:12Z", + "updated_at": "2025-03-07T16:46:12Z", "carrier": "USPS", "pickup_id": "pickup_7a497566ff634331bdaffdfe4ab10103", + "id": "pickuprate_15fc9bd9aee34bed9acb7776860853dd", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -221,20 +221,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43d66bf7471e786a2f700331b00 + - 6eaaf8ff67cb22d4e2aaba1c000ad5cd x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.141081' + - '0.857474' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -258,24 +258,24 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/pickups/pickup_b2949eb61e0b4328a57b6cd946dcd7e4/buy + uri: https://api.easypost.com/v2/pickups/pickup_7a497566ff634331bdaffdfe4ab10103/buy response: body: - string: '{"id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", "object": "Pickup", - "created_at": "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:47:00Z", + string: '{"id": "pickup_7a497566ff634331bdaffdfe4ab10103", "object": "Pickup", + "created_at": "2025-03-07T16:46:12Z", "updated_at": "2025-03-07T16:46:13Z", "mode": "test", "status": "scheduled", "reference": null, "min_datetime": - "2024-08-17T00:00:00Z", "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": + "2025-03-08T00:00:00Z", "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": - "WTC64761770", "address": {"id": "adr_c5062b085be611ef904eac1f6bc539ae", "object": - "Address", "created_at": "2024-08-16T15:46:57+00:00", "updated_at": "2024-08-16T15:46:57+00:00", + "WTC65024918", "address": {"id": "adr_ad70f202fb7311ef98d43cecef1b359e", "object": + "Address", "created_at": "2025-03-07T16:46:12+00:00", "updated_at": "2025-03-07T16:46:12+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:58Z", - "updated_at": "2024-08-16T15:46:58Z", "carrier": "USPS", "pickup_id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", - "id": "pickuprate_61c282cd40b9467ba8a089c7c7d6e99c", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:12Z", + "updated_at": "2025-03-07T16:46:12Z", "carrier": "USPS", "pickup_id": "pickup_7a497566ff634331bdaffdfe4ab10103", + "id": "pickuprate_15fc9bd9aee34bed9acb7776860853dd", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -300,20 +300,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43d66bf7472e786a2f700331c43 + - 6eaaf8ff67cb22d4e2aaba1c000ad6bd x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.149012' + - '0.888661' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -337,24 +337,24 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/pickups/pickup_b2949eb61e0b4328a57b6cd946dcd7e4/cancel + uri: https://api.easypost.com/v2/pickups/pickup_7a497566ff634331bdaffdfe4ab10103/cancel response: body: - string: '{"id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", "object": "Pickup", - "created_at": "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:47:01Z", - "mode": "test", "status": "canceled", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", - "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": "WTC64761770", "address": - {"id": "adr_c5062b085be611ef904eac1f6bc539ae", "object": "Address", "created_at": - "2024-08-16T15:46:57+00:00", "updated_at": "2024-08-16T15:46:57+00:00", "name": + string: '{"id": "pickup_7a497566ff634331bdaffdfe4ab10103", "object": "Pickup", + "created_at": "2025-03-07T16:46:12Z", "updated_at": "2025-03-07T16:46:14Z", + "mode": "test", "status": "canceled", "reference": null, "min_datetime": "2025-03-08T00:00:00Z", + "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": "WTC65024918", "address": + {"id": "adr_ad70f202fb7311ef98d43cecef1b359e", "object": "Address", "created_at": + "2025-03-07T16:46:12+00:00", "updated_at": "2025-03-07T16:46:12+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:58Z", - "updated_at": "2024-08-16T15:46:58Z", "carrier": "USPS", "pickup_id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", - "id": "pickuprate_61c282cd40b9467ba8a089c7c7d6e99c", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:12Z", + "updated_at": "2025-03-07T16:46:12Z", "carrier": "USPS", "pickup_id": "pickup_7a497566ff634331bdaffdfe4ab10103", + "id": "pickuprate_15fc9bd9aee34bed9acb7776860853dd", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -379,20 +379,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43d66bf7474e786a2f700331da9 + - 6eaaf8ff67cb22d5e2aaba1c000ad7fc x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.947149' + - '0.804670' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_create.yaml b/tests/cassettes/test_pickup_create.yaml index d35d0b44..347768cd 100644 --- a/tests/cassettes/test_pickup_create.yaml +++ b/tests/cassettes/test_pickup_create.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-16T15:46:45Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807076059082", "updated_at": "2024-08-16T15:46:46Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_bd8ce76f5be611ef8919ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-16T15:46:45+00:00", "updated_at": "2024-08-16T15:46:45+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_e9b3bd34a4484aba8e2e0de364e0e871", - "object": "Parcel", "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:45Z", + string: '{"id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "created_at": "2025-03-07T16:45:59Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505602", "updated_at": + "2025-03-07T16:46:00Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_a6167a17fb7311ef94473cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:45:59+00:00", "updated_at": + "2025-03-07T16:45:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_c2911b5c7bda49a9803dfba239fad665", "object": + "Parcel", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_c4770b1a1bef442ebd0b8c335b5856a4", - "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:46Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-16T15:46:45Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d08201d458744a4ebf36695bb79f7dee", + "created_at": "2025-03-07T16:46:00Z", "updated_at": "2025-03-07T16:46:00Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:00Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240816/e80352feb30f554fd8ba2aacb5d74d10c5.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8d6cfe7a133ab49f19fdbb00699c16dd0.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_24dcc2f1fd934939af3a8c46a36b70f2", "object": - "Rate", "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:45Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dbec69e254fe406eb4bf716dabc6ff75", - "object": "Rate", "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:45Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_e62e203a40874c9f9733fbd55e5fe9a8", "object": + "Rate", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_aee96176a0764400a3bc4a6a200b4d17", + "object": "Rate", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2db21a73e6004c7d84c786502b80cf96", - "object": "Rate", "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:45Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ac50b2827b524b9f9ab7a19507dfb541", + "object": "Rate", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "carrier_account_id": + 1, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_dbec69e254fe406eb4bf716dabc6ff75", "object": - "Rate", "created_at": "2024-08-16T15:46:45Z", "updated_at": "2024-08-16T15:46:45Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_aee96176a0764400a3bc4a6a200b4d17", "object": + "Rate", "created_at": "2025-03-07T16:46:00Z", "updated_at": "2025-03-07T16:46:00Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_c828c542af214b909f79a46e38166ccb", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807076059082", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-16T15:46:46Z", - "updated_at": "2024-08-16T15:46:46Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "carrier": "USPS", + 3, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_49bbcbf123ae4414984b6ee5182fc53b", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505602", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:00Z", + "updated_at": "2025-03-07T16:46:00Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2M4MjhjNTQyYWYyMTRiOTA5Zjc5YTQ2ZTM4MTY2Y2Ni"}, - "to_address": {"id": "adr_bd8ab7065be611efb76f3cecef1b359e", "object": "Address", - "created_at": "2024-08-16T15:46:45+00:00", "updated_at": "2024-08-16T15:46:45+00:00", + "https://track.easypost.com/djE6dHJrXzQ5YmJjYmYxMjNhZTQ0MTQ5ODRiNmVlNTE4MmZjNTNi"}, + "to_address": {"id": "adr_a613c9f6fb7311ef9555ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-07T16:45:59+00:00", "updated_at": "2025-03-07T16:46:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_bd8ce76f5be611ef8919ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-16T15:46:45+00:00", "updated_at": - "2024-08-16T15:46:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_a6167a17fb7311ef94473cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:45:59+00:00", "updated_at": + "2025-03-07T16:45:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_bd8ab7065be611efb76f3cecef1b359e", "object": "Address", "created_at": - "2024-08-16T15:46:45+00:00", "updated_at": "2024-08-16T15:46:45+00:00", "name": + "adr_a613c9f6fb7311ef9555ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:45:59+00:00", "updated_at": "2025-03-07T16:46:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_534bff1dff374311ad4ccd5d3e14b9ab", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_534bff1dff374311ad4ccd5d3e14b9ab + - /api/v2/shipments/shp_6b4d00550e884c07985eaeccfbdf4fc1 pragma: - no-cache referrer-policy: @@ -133,25 +133,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43b66bf7465e786a2db00330ebe + - 6eaaf8fa67cb22c7e2aaba00000ac624 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.003754' + - '0.818103' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -161,8 +163,8 @@ interactions: body: '{"pickup": {"address": {"name": "Jack Sparrow", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "min_datetime": - "2024-08-17", "max_datetime": "2024-08-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_534bff1dff374311ad4ccd5d3e14b9ab"}}}' + "2025-03-08", "max_datetime": "2025-03-08", "instructions": "Pickup at front + door", "shipment": {"id": "shp_6b4d00550e884c07985eaeccfbdf4fc1"}}}' headers: Accept: - '*/*' @@ -182,21 +184,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_01ab23e45845440b89921fb1607bfe67", "object": "Pickup", - "created_at": "2024-08-16T15:46:46Z", "updated_at": "2024-08-16T15:46:46Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", - "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_3cafbbc9dae14281a0c76848a9419cb1", "object": "Pickup", + "created_at": "2025-03-07T16:46:00Z", "updated_at": "2025-03-07T16:46:00Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2025-03-08T00:00:00Z", + "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_be3012c35be611ef8d11ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-16T15:46:46+00:00", "updated_at": "2024-08-16T15:46:46+00:00", "name": + "adr_a6a0caccfb7311efb5feac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:46:00+00:00", "updated_at": "2025-03-07T16:46:00+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:47Z", - "updated_at": "2024-08-16T15:46:47Z", "carrier": "USPS", "pickup_id": "pickup_01ab23e45845440b89921fb1607bfe67", - "id": "pickuprate_f9946c5995eb4af5b741d6d56e47a3b6", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:02Z", + "updated_at": "2025-03-07T16:46:02Z", "carrier": "USPS", "pickup_id": "pickup_3cafbbc9dae14281a0c76848a9419cb1", + "id": "pickuprate_91820d140f3f4e9ebfa2e709688017c5", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -221,20 +223,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43b66bf7466e786a2db00330fd2 + - 6eaaf8fa67cb22c8e2aaba00000ac722 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.479484' + - '2.004399' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_get_next_page.yaml b/tests/cassettes/test_pickup_get_next_page.yaml index 44dedf7b..7da00843 100644 --- a/tests/cassettes/test_pickup_get_next_page.yaml +++ b/tests/cassettes/test_pickup_get_next_page.yaml @@ -16,61 +16,61 @@ interactions: uri: https://api.easypost.com/v2/pickups?page_size=5 response: body: - string: '{"pickups": [{"id": "pickup_01ab23e45845440b89921fb1607bfe67", "object": - "Pickup", "created_at": "2024-08-16T15:46:46Z", "updated_at": "2024-08-16T15:46:46Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", - "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"pickups": [{"id": "pickup_3cafbbc9dae14281a0c76848a9419cb1", "object": + "Pickup", "created_at": "2025-03-07T16:46:00Z", "updated_at": "2025-03-07T16:46:00Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2025-03-08T00:00:00Z", + "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_be3012c35be611ef8d11ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-16T15:46:46+00:00", "updated_at": "2024-08-16T15:46:46+00:00", "name": + "adr_a6a0caccfb7311efb5feac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:46:00+00:00", "updated_at": "2025-03-07T16:46:00+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:47Z", - "updated_at": "2024-08-16T15:46:47Z", "carrier": "USPS", "pickup_id": "pickup_01ab23e45845440b89921fb1607bfe67", - "id": "pickuprate_f9946c5995eb4af5b741d6d56e47a3b6", "object": "PickupRate"}]}, - {"id": "pickup_ca2a288624fa4e1fbd68bdc6f98b8022", "object": "Pickup", "created_at": - "2024-08-15T20:41:54Z", "updated_at": "2024-08-15T20:41:54Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:02Z", + "updated_at": "2025-03-07T16:46:02Z", "carrier": "USPS", "pickup_id": "pickup_3cafbbc9dae14281a0c76848a9419cb1", + "id": "pickuprate_91820d140f3f4e9ebfa2e709688017c5", "object": "PickupRate"}]}, + {"id": "pickup_62ca1c7c91b843888ff982502c8018b7", "object": "Pickup", "created_at": + "2025-03-06T19:48:38Z", "updated_at": "2025-03-06T19:48:38Z", "mode": "test", + "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_ce87f1b15b4611ef91153cecef1b359e", "object": "Address", "created_at": - "2024-08-15T20:41:54+00:00", "updated_at": "2024-08-15T20:41:54+00:00", "name": + "adr_ffc9a077fac311efb6293cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:38+00:00", "updated_at": "2025-03-06T19:48:38+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_fa75131fa31943498db31c074e290add", - "object": "Pickup", "created_at": "2024-08-15T20:41:52Z", "updated_at": "2024-08-15T20:41:52Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_e1cf0a09b64a4160853f4121d6713747", + "object": "Pickup", "created_at": "2025-03-06T19:48:37Z", "updated_at": "2025-03-06T19:48:37Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_cd660b0a5b4611efb09cac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T20:41:52+00:00", "updated_at": "2024-08-15T20:41:52+00:00", "name": + "adr_fefb306bfac311ef9a28ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:37+00:00", "updated_at": "2025-03-06T19:48:37+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_a4c87194b51f421a8312738633e09606", - "object": "Pickup", "created_at": "2024-08-15T20:41:50Z", "updated_at": "2024-08-15T20:41:50Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_49b84091f140493e8df6d44ec9de856a", + "object": "Pickup", "created_at": "2025-03-06T19:48:36Z", "updated_at": "2025-03-06T19:48:36Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_cc523a585b4611ef90633cecef1b359e", "object": "Address", "created_at": - "2024-08-15T20:41:50+00:00", "updated_at": "2024-08-15T20:41:50+00:00", "name": + "adr_fe10e26efac311efb51c3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:35+00:00", "updated_at": "2025-03-06T19:48:35+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_d6e8568063a7477c969b7fb183f473cd", - "object": "Pickup", "created_at": "2024-08-15T20:41:48Z", "updated_at": "2024-08-15T20:41:48Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_f4b950fb123b412282de960603a832c4", + "object": "Pickup", "created_at": "2025-03-06T19:48:34Z", "updated_at": "2025-03-06T19:48:34Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_cb32b7005b4611ef801dac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T20:41:48+00:00", "updated_at": "2024-08-15T20:41:48+00:00", "name": + "adr_fd324b43fac311ef93cdac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:34+00:00", "updated_at": "2025-03-06T19:48:34+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -100,20 +100,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43f66bf7468e786a2dd003311fa + - 9087f27267cb22cbe2aaba02004422d1 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb2nuq 99aac35317 x-runtime: - - '0.080339' + - '0.068212' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -133,70 +133,86 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/pickups?before_id=pickup_d6e8568063a7477c969b7fb183f473cd&page_size=5 + uri: https://api.easypost.com/v2/pickups?before_id=pickup_f4b950fb123b412282de960603a832c4&page_size=5 response: body: - string: '{"pickups": [{"id": "pickup_cf4908f7f0514cb99d20bf5b5fef2b09", "object": - "Pickup", "created_at": "2024-08-15T20:41:46Z", "updated_at": "2024-08-15T20:41:46Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + string: '{"pickups": [{"id": "pickup_bebf144939d244daafdb929b99a2ef73", "object": + "Pickup", "created_at": "2025-03-06T19:48:32Z", "updated_at": "2025-03-06T19:48:32Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_c9abc34f5b4611ef8f623cecef1b359e", "object": "Address", "created_at": - "2024-08-15T20:41:46+00:00", "updated_at": "2024-08-15T20:41:46+00:00", "name": + "adr_fbce76b7fac311efb40f3cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:32+00:00", "updated_at": "2025-03-06T19:48:32+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_4e9d477637814165b1faf7a558983bc4", - "object": "Pickup", "created_at": "2024-08-15T20:22:10Z", "updated_at": "2024-08-15T20:22:10Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_01e005e4f2d04632b21b79cc76bc605c", + "object": "Pickup", "created_at": "2024-08-16T15:47:02Z", "updated_at": "2024-08-16T15:47:02Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_0ce814bf5b4411ef9704ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T20:22:10+00:00", "updated_at": "2024-08-15T20:22:10+00:00", "name": + "adr_c7d41c565be611ef8e34ac1f6bc53342", "object": "Address", "created_at": + "2024-08-16T15:47:02+00:00", "updated_at": "2024-08-16T15:47:02+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_b539a4cd86a0480aab68db34de60222b", - "object": "Pickup", "created_at": "2024-08-15T20:22:08Z", "updated_at": "2024-08-15T20:22:08Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_0bd56e535b4411ef82c03cecef1b359e", "object": "Address", "created_at": - "2024-08-15T20:22:08+00:00", "updated_at": "2024-08-15T20:22:08+00:00", "name": + {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:47:03Z", + "updated_at": "2024-08-16T15:47:03Z", "carrier": "USPS", "pickup_id": "pickup_01e005e4f2d04632b21b79cc76bc605c", + "id": "pickuprate_fcb3197bea914ee29e3d6a2ae7909b9b", "object": "PickupRate"}]}, + {"id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", "object": "Pickup", "created_at": + "2024-08-16T15:46:57Z", "updated_at": "2024-08-16T15:47:01Z", "mode": "test", + "status": "canceled", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": "WTC64761770", "address": + {"id": "adr_c5062b085be611ef904eac1f6bc539ae", "object": "Address", "created_at": + "2024-08-16T15:46:57+00:00", "updated_at": "2024-08-16T15:46:57+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_abc3e61e6427474fb89ace065ef2b850", - "object": "Pickup", "created_at": "2024-08-15T20:22:07Z", "updated_at": "2024-08-15T20:22:07Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_0adccf7d5b4411efa2cfac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T20:22:06+00:00", "updated_at": "2024-08-15T20:22:06+00:00", "name": + {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:58Z", + "updated_at": "2024-08-16T15:46:58Z", "carrier": "USPS", "pickup_id": "pickup_b2949eb61e0b4328a57b6cd946dcd7e4", + "id": "pickuprate_61c282cd40b9467ba8a089c7c7d6e99c", "object": "PickupRate"}]}, + {"id": "pickup_494caf8885524ab9af07a4689e4b4e47", "object": "Pickup", "created_at": + "2024-08-16T15:46:53Z", "updated_at": "2024-08-16T15:46:56Z", "mode": "test", + "status": "scheduled", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": "WTC64761768", "address": + {"id": "adr_c295906f5be611ef8f45ac1f6bc539ae", "object": "Address", "created_at": + "2024-08-16T15:46:53+00:00", "updated_at": "2024-08-16T15:46:53+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_10718e76860f4c01b5dec5702030493a", - "object": "Pickup", "created_at": "2024-08-15T20:22:05Z", "updated_at": "2024-08-15T20:22:05Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-16T00:00:00Z", - "max_datetime": "2024-08-16T00:00:00Z", "is_account_address": false, "instructions": + {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:54Z", + "updated_at": "2024-08-16T15:46:54Z", "carrier": "USPS", "pickup_id": "pickup_494caf8885524ab9af07a4689e4b4e47", + "id": "pickuprate_a772332c1f47418ca25986f7a7f0e7dc", "object": "PickupRate"}]}, + {"id": "pickup_75767b64ada14629a24d42254656a137", "object": "Pickup", "created_at": + "2024-08-16T15:46:50Z", "updated_at": "2024-08-16T15:46:50Z", "mode": "test", + "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", + "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_09a66f505b4411efb2b6ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T20:22:04+00:00", "updated_at": "2024-08-15T20:22:04+00:00", "name": + "adr_c0b434505be611ef8aa3ac1f6bc539aa", "object": "Address", "created_at": + "2024-08-16T15:46:50+00:00", "updated_at": "2024-08-16T15:46:50+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "carrier_accounts": [], "pickup_rates": []}], "has_more": true}' + {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:52Z", + "updated_at": "2024-08-16T15:46:52Z", "carrier": "USPS", "pickup_id": "pickup_75767b64ada14629a24d42254656a137", + "id": "pickuprate_01651b090221426992b6130c20f56500", "object": "PickupRate"}]}], + "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '4409' + - '5558' content-type: - application/json; charset=utf-8 expires: @@ -216,20 +232,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43f66bf7468e786a2dd00331256 + - 9087f27267cb22cbe2aaba02004422eb x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb2nuq 99aac35317 x-runtime: - - '0.082720' + - '0.136606' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_lowest_rate.yaml b/tests/cassettes/test_pickup_lowest_rate.yaml index 81749563..6d0ee097 100644 --- a/tests/cassettes/test_pickup_lowest_rate.yaml +++ b/tests/cassettes/test_pickup_lowest_rate.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-16T15:47:01Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807076059181", "updated_at": "2024-08-16T15:47:02Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_c7332ddd5be611efbc403cecef1b359e", "object": "Address", "created_at": - "2024-08-16T15:47:01+00:00", "updated_at": "2024-08-16T15:47:01+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_a0c80b2d548f43ddb8e5c314121a0798", - "object": "Parcel", "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:01Z", + string: '{"id": "shp_6348a453cbd04b4189dc85524719e6b2", "created_at": "2025-03-07T16:46:14Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505640", "updated_at": + "2025-03-07T16:46:15Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_af10e4b4fb7311ef9acaac1f6bc539ae", + "object": "Address", "created_at": "2025-03-07T16:46:14+00:00", "updated_at": + "2025-03-07T16:46:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_a9373fdd04bd4d83874c7e397ecddcb6", "object": + "Parcel", "created_at": "2025-03-07T16:46:14Z", "updated_at": "2025-03-07T16:46:14Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_5ded0e0b7ef445aabc622bd765a3af92", - "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:02Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-16T15:47:01Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f54afe8913fb4046b55523838df4f97b", + "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:15Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240816/e85697dfbab4ee46cfa265e78c8ed3f565.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8b170594430f64d768ceb157887c5c28e.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_129369f9a0a74e26ab2fdc0cb4d06af8", "object": - "Rate", "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:01Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cb40abcd78904548a4d3c9be12a948a4", - "object": "Rate", "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:01Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_f9da1c97861743bba5eaf3db89b10898", "object": + "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_83e88433c1014893a067393dba0242f0", - "object": "Rate", "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:01Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "carrier_account_id": + 1, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f320606ea0bd45ef92a34f109234fc44", + "object": "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b501d85dcc0743fdb0d8ab673107bf5d", + "object": "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_129369f9a0a74e26ab2fdc0cb4d06af8", "object": - "Rate", "created_at": "2024-08-16T15:47:01Z", "updated_at": "2024-08-16T15:47:01Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_b501d85dcc0743fdb0d8ab673107bf5d", "object": + "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e99794b8928842d7a69c715f1e652f23", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807076059181", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-16T15:47:02Z", - "updated_at": "2024-08-16T15:47:02Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "carrier": "USPS", + 3, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4c1b66c0dad34060a7b4704100bdd88e", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505640", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:15Z", + "updated_at": "2025-03-07T16:46:15Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2U5OTc5NGI4OTI4ODQyZDdhNjljNzE1ZjFlNjUyZjIz"}, - "to_address": {"id": "adr_c730dcde5be611ef8dc6ac1f6bc539aa", "object": "Address", - "created_at": "2024-08-16T15:47:01+00:00", "updated_at": "2024-08-16T15:47:01+00:00", + "https://track.easypost.com/djE6dHJrXzRjMWI2NmMwZGFkMzQwNjBhN2I0NzA0MTAwYmRkODhl"}, + "to_address": {"id": "adr_af0b9199fb7311ef9ac8ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-07T16:46:14+00:00", "updated_at": "2025-03-07T16:46:15+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_c7332ddd5be611efbc403cecef1b359e", - "object": "Address", "created_at": "2024-08-16T15:47:01+00:00", "updated_at": - "2024-08-16T15:47:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_af10e4b4fb7311ef9acaac1f6bc539ae", + "object": "Address", "created_at": "2025-03-07T16:46:14+00:00", "updated_at": + "2025-03-07T16:46:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_c730dcde5be611ef8dc6ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-16T15:47:01+00:00", "updated_at": "2024-08-16T15:47:01+00:00", "name": + "adr_af0b9199fb7311ef9ac8ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:14+00:00", "updated_at": "2025-03-07T16:46:15+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_206738f5ab8c45b989b5c745d9f03ba2", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_206738f5ab8c45b989b5c745d9f03ba2 + - /api/v2/shipments/shp_6348a453cbd04b4189dc85524719e6b2 pragma: - no-cache referrer-policy: @@ -138,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf44166bf7475e786a2fc00331ef3 + - 6eaaf8fb67cb22d6e2aaba1d000ad900 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.929745' + - '0.866595' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -161,8 +161,8 @@ interactions: body: '{"pickup": {"address": {"name": "Jack Sparrow", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "min_datetime": - "2024-08-17", "max_datetime": "2024-08-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_206738f5ab8c45b989b5c745d9f03ba2"}}}' + "2025-03-08", "max_datetime": "2025-03-08", "instructions": "Pickup at front + door", "shipment": {"id": "shp_6348a453cbd04b4189dc85524719e6b2"}}}' headers: Accept: - '*/*' @@ -182,21 +182,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_01e005e4f2d04632b21b79cc76bc605c", "object": "Pickup", - "created_at": "2024-08-16T15:47:02Z", "updated_at": "2024-08-16T15:47:02Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", - "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_9fec2553c91849b18dd35a155e46261a", "object": "Pickup", + "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2025-03-08T00:00:00Z", + "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_c7d41c565be611ef8e34ac1f6bc53342", "object": "Address", "created_at": - "2024-08-16T15:47:02+00:00", "updated_at": "2024-08-16T15:47:02+00:00", "name": + "adr_afabb759fb7311ef9b2cac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:15+00:00", "updated_at": "2025-03-07T16:46:15+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:47:03Z", - "updated_at": "2024-08-16T15:47:03Z", "carrier": "USPS", "pickup_id": "pickup_01e005e4f2d04632b21b79cc76bc605c", - "id": "pickuprate_fcb3197bea914ee29e3d6a2ae7909b9b", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:16Z", + "updated_at": "2025-03-07T16:46:16Z", "carrier": "USPS", "pickup_id": "pickup_9fec2553c91849b18dd35a155e46261a", + "id": "pickuprate_539f07c1ef384c359a386a44c0b5514e", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -221,20 +221,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf44166bf7476e786a2fc00331fec + - 6eaaf8fb67cb22d7e2aaba1d000ada30 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.017529' + - '1.254309' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_pickup_retrieve.yaml b/tests/cassettes/test_pickup_retrieve.yaml index 1923acf2..0cb39939 100644 --- a/tests/cassettes/test_pickup_retrieve.yaml +++ b/tests/cassettes/test_pickup_retrieve.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-16T15:46:49Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807076059105", "updated_at": "2024-08-16T15:46:50Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_bff24dbb5be611ef8decac1f6bc539ae", "object": "Address", "created_at": - "2024-08-16T15:46:49+00:00", "updated_at": "2024-08-16T15:46:49+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_5b3aa57d47d543bd9247abc96359f28a", - "object": "Parcel", "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:49Z", + string: '{"id": "shp_622803c6479446e895b6ec9ffc580f58", "created_at": "2025-03-07T16:46:03Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505619", "updated_at": + "2025-03-07T16:46:04Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_a84fa087fb7311ef9cb3ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:03+00:00", "updated_at": + "2025-03-07T16:46:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_5c264ed4432848aaad2545e0dfb8eeb4", "object": + "Parcel", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_e15dc837d9d540dc90004660ef6eda55", - "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:50Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-16T15:46:49Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2dd5e193a0874563acda1913359fbef3", + "created_at": "2025-03-07T16:46:04Z", "updated_at": "2025-03-07T16:46:04Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:04Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240816/e8a808d63c1b6c4896af83a6d4fec88b9e.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e82ca3296f28234c8c963d9042eefecad2.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_25e25a11774d4a299f3830ea1aa9c6ea", "object": - "Rate", "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:49Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_aaf73185d7e1432ca4659061aa717d63", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6eabc81dc27a41a6aad214f61fdd03b6", - "object": "Rate", "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:49Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_5ad2d3f3665b4343b75e85a5a0fe02de", "object": + "Rate", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_646a6333c5af49168d64b3df5382e557", + "object": "Rate", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_aaf73185d7e1432ca4659061aa717d63", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2a601f69142b411f978f0ada51e22a89", - "object": "Rate", "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:49Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5179687711ef43e2a5188ee7aa89da97", + "object": "Rate", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_aaf73185d7e1432ca4659061aa717d63", "carrier_account_id": + 1, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_6eabc81dc27a41a6aad214f61fdd03b6", "object": - "Rate", "created_at": "2024-08-16T15:46:49Z", "updated_at": "2024-08-16T15:46:49Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_646a6333c5af49168d64b3df5382e557", "object": + "Rate", "created_at": "2025-03-07T16:46:04Z", "updated_at": "2025-03-07T16:46:04Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_aaf73185d7e1432ca4659061aa717d63", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b856a13ebb05466f8d5690c86f21d50d", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807076059105", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-16T15:46:50Z", - "updated_at": "2024-08-16T15:46:50Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_aaf73185d7e1432ca4659061aa717d63", "carrier": "USPS", + 3, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_11c660ecffdf4b938a1212ec4709662c", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505619", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:04Z", + "updated_at": "2025-03-07T16:46:04Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2I4NTZhMTNlYmIwNTQ2NmY4ZDU2OTBjODZmMjFkNTBk"}, - "to_address": {"id": "adr_bfeeeb2a5be611ef8a41ac1f6bc539aa", "object": "Address", - "created_at": "2024-08-16T15:46:49+00:00", "updated_at": "2024-08-16T15:46:49+00:00", + "https://track.easypost.com/djE6dHJrXzExYzY2MGVjZmZkZjRiOTM4YTEyMTJlYzQ3MDk2NjJj"}, + "to_address": {"id": "adr_a84d64eafb7311ef95cf3cecef1b359e", "object": "Address", + "created_at": "2025-03-07T16:46:03+00:00", "updated_at": "2025-03-07T16:46:03+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_bff24dbb5be611ef8decac1f6bc539ae", - "object": "Address", "created_at": "2024-08-16T15:46:49+00:00", "updated_at": - "2024-08-16T15:46:49+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_a84fa087fb7311ef9cb3ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:03+00:00", "updated_at": + "2025-03-07T16:46:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_bfeeeb2a5be611ef8a41ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-16T15:46:49+00:00", "updated_at": "2024-08-16T15:46:49+00:00", "name": + "adr_a84d64eafb7311ef95cf3cecef1b359e", "object": "Address", "created_at": + "2025-03-07T16:46:03+00:00", "updated_at": "2025-03-07T16:46:03+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_aaf73185d7e1432ca4659061aa717d63", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_aaf73185d7e1432ca4659061aa717d63 + - /api/v2/shipments/shp_622803c6479446e895b6ec9ffc580f58 pragma: - no-cache referrer-policy: @@ -133,27 +133,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43d66bf7469e786a2f5003312ae + - 9087f27267cb22cbe2aaba0300442334 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb2nuq 99aac35317 x-runtime: - - '1.030210' + - '0.808994' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -163,8 +161,8 @@ interactions: body: '{"pickup": {"address": {"name": "Jack Sparrow", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "min_datetime": - "2024-08-17", "max_datetime": "2024-08-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_aaf73185d7e1432ca4659061aa717d63"}}}' + "2025-03-08", "max_datetime": "2025-03-08", "instructions": "Pickup at front + door", "shipment": {"id": "shp_622803c6479446e895b6ec9ffc580f58"}}}' headers: Accept: - '*/*' @@ -184,21 +182,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_75767b64ada14629a24d42254656a137", "object": "Pickup", - "created_at": "2024-08-16T15:46:50Z", "updated_at": "2024-08-16T15:46:50Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", - "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_424882d020b04a09a33613f9bdfdc689", "object": "Pickup", + "created_at": "2025-03-07T16:46:04Z", "updated_at": "2025-03-07T16:46:04Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2025-03-08T00:00:00Z", + "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_c0b434505be611ef8aa3ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-16T15:46:50+00:00", "updated_at": "2024-08-16T15:46:50+00:00", "name": + "adr_a8cfa0bcfb7311ef9738ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:04+00:00", "updated_at": "2025-03-07T16:46:04+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:52Z", - "updated_at": "2024-08-16T15:46:52Z", "carrier": "USPS", "pickup_id": "pickup_75767b64ada14629a24d42254656a137", - "id": "pickuprate_01651b090221426992b6130c20f56500", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:06Z", + "updated_at": "2025-03-07T16:46:06Z", "carrier": "USPS", "pickup_id": "pickup_424882d020b04a09a33613f9bdfdc689", + "id": "pickuprate_1acf4be9344b46a09cbea963dfdc2d6a", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -223,20 +221,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43d66bf746ae786a2f5003313c3 + - 9087f27267cb22cce2aaba030044240e x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb2nuq 99aac35317 x-runtime: - - '1.785968' + - '2.282689' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -256,24 +254,24 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/pickups/pickup_75767b64ada14629a24d42254656a137 + uri: https://api.easypost.com/v2/pickups/pickup_424882d020b04a09a33613f9bdfdc689 response: body: - string: '{"id": "pickup_75767b64ada14629a24d42254656a137", "object": "Pickup", - "created_at": "2024-08-16T15:46:50Z", "updated_at": "2024-08-16T15:46:50Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2024-08-17T00:00:00Z", - "max_datetime": "2024-08-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_424882d020b04a09a33613f9bdfdc689", "object": "Pickup", + "created_at": "2025-03-07T16:46:04Z", "updated_at": "2025-03-07T16:46:04Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2025-03-08T00:00:00Z", + "max_datetime": "2025-03-08T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_c0b434505be611ef8aa3ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-16T15:46:50+00:00", "updated_at": "2024-08-16T15:46:50+00:00", "name": + "adr_a8cfa0bcfb7311ef9738ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:04+00:00", "updated_at": "2025-03-07T16:46:04+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2024-08-16T15:46:52Z", - "updated_at": "2024-08-16T15:46:52Z", "carrier": "USPS", "pickup_id": "pickup_75767b64ada14629a24d42254656a137", - "id": "pickuprate_01651b090221426992b6130c20f56500", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2025-03-07T16:46:06Z", + "updated_at": "2025-03-07T16:46:06Z", "carrier": "USPS", "pickup_id": "pickup_424882d020b04a09a33613f9bdfdc689", + "id": "pickuprate_1acf4be9344b46a09cbea963dfdc2d6a", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -298,20 +296,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 8a4bf43d66bf746ce786a2f500331593 + - 9087f27267cb22cee2aaba03004426a5 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb1nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb2nuq 99aac35317 x-runtime: - - '0.059589' + - '0.054890' x-version-label: - - easypost-202408152333-48cda4a73e-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_rate_retrieve.yaml b/tests/cassettes/test_rate_retrieve.yaml index 1a5d0716..29ad6fee 100644 --- a/tests/cassettes/test_rate_retrieve.yaml +++ b/tests/cassettes/test_rate_retrieve.yaml @@ -26,93 +26,73 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:53:29Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:53:30Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_0b523b8d5b4011efa3fa3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:29+00:00", "updated_at": - "2024-08-15T19:53:29+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_cf09d607dcb647c48a4699171e30efe6", "object": - "Parcel", "created_at": "2024-08-15T19:53:29Z", "updated_at": "2024-08-15T19:53:29Z", + string: '{"id": "shp_fa3ecb526d1d4069b69e9ab69fbb183c", "created_at": "2025-03-06T19:48:39Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": null, "updated_at": "2025-03-06T19:48:39Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_0005dcd7fac411ef9541ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:39+00:00", "updated_at": "2025-03-06T19:48:39+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_15a63f6904274e3bb04ecf05860f0b81", + "object": "Parcel", "created_at": "2025-03-06T19:48:39Z", "updated_at": "2025-03-06T19:48:39Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_aa02931eae0c40d09a992b9616097515", - "object": "Rate", "created_at": "2024-08-15T19:53:30Z", "updated_at": "2024-08-15T19:53:30Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_bfc18c450b1145358f8ba52241cc134e", + "object": "Rate", "created_at": "2025-03-06T19:48:39Z", "updated_at": "2025-03-06T19:48:39Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_fa3ecb526d1d4069b69e9ab69fbb183c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9d62cddf616b418c8dbba7bfbe678c0c", + "object": "Rate", "created_at": "2025-03-06T19:48:39Z", "updated_at": "2025-03-06T19:48:39Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_367b25dbf9df4150ab9036081a123474", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e30690b2472b44f4a2c2e88d9670f5e3", - "object": "Rate", "created_at": "2024-08-15T19:53:30Z", "updated_at": "2024-08-15T19:53:30Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_fa3ecb526d1d4069b69e9ab69fbb183c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0d48f1bd493b4091a41ff71b359b9a01", + "object": "Rate", "created_at": "2025-03-06T19:48:39Z", "updated_at": "2025-03-06T19:48:39Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_367b25dbf9df4150ab9036081a123474", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d43b61a8a2874d8c925c078712400048", - "object": "Rate", "created_at": "2024-08-15T19:53:30Z", "updated_at": "2024-08-15T19:53:30Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_367b25dbf9df4150ab9036081a123474", "carrier_account_id": + 1, "shipment_id": "shp_fa3ecb526d1d4069b69e9ab69fbb183c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_0b4f2e325b4011efa3f83cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:29+00:00", "updated_at": - "2024-08-15T19:53:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_00041b60fac411ef9540ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-06T19:48:39+00:00", "updated_at": + "2025-03-06T19:48:39+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_0b523b8d5b4011efa3fa3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:29+00:00", "updated_at": "2024-08-15T19:53:29+00:00", "name": + {"id": "adr_0005dcd7fac411ef9541ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:39+00:00", "updated_at": "2025-03-06T19:48:39+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_0b4f2e325b4011efa3f83cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:29+00:00", "updated_at": "2024-08-15T19:53:29+00:00", + {}}, "buyer_address": {"id": "adr_00041b60fac411ef9540ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-06T19:48:39+00:00", "updated_at": "2025-03-06T19:48:39+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_367b25dbf9df4150ab9036081a123474", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5804' + - '4325' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_367b25dbf9df4150ab9036081a123474 + - /api/v2/shipments/shp_fa3ecb526d1d4069b69e9ab69fbb183c pragma: - no-cache referrer-policy: @@ -128,20 +108,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cb9e78861e2001741c5 + - 8e8eb62967c9fc17e2b97b5a0018a4ec x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.841307' + - '0.201098' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -161,21 +141,21 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/rates/rate_aa02931eae0c40d09a992b9616097515 + uri: https://api.easypost.com/v2/rates/rate_bfc18c450b1145358f8ba52241cc134e response: body: - string: '{"id": "rate_aa02931eae0c40d09a992b9616097515", "object": "Rate", "created_at": - "2024-08-15T19:53:30Z", "updated_at": "2024-08-15T19:53:30Z", "mode": "test", - "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", "currency": - "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": "6.40", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_367b25dbf9df4150ab9036081a123474", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}' + string: '{"id": "rate_bfc18c450b1145358f8ba52241cc134e", "object": "Rate", "created_at": + "2025-03-06T19:48:39Z", "updated_at": "2025-03-06T19:48:39Z", "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "7.42", "currency": "USD", + "retail_rate": "9.90", "retail_currency": "USD", "list_rate": "8.34", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_fa3ecb526d1d4069b69e9ab69fbb183c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}' headers: cache-control: - private, no-cache, no-store content-length: - - '542' + - '535' content-type: - application/json; charset=utf-8 expires: @@ -195,20 +175,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cbae78861e2001742d0 + - 8e8eb62967c9fc17e2b97b5a0018a540 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.260806' + - '0.294512' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_referral_customer_add_credit_card.yaml b/tests/cassettes/test_referral_customer_add_credit_card.yaml index e5ab4efa..117e8dc6 100644 --- a/tests/cassettes/test_referral_customer_add_credit_card.yaml +++ b/tests/cassettes/test_referral_customer_add_credit_card.yaml @@ -41,20 +41,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5cbee78861e70017461d + - 8e8eb62567c9fc1ae2b97b760018a860 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.020497' + - '0.022642' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -81,20 +81,16 @@ interactions: uri: https://api.stripe.com/v1/tokens?card%5Bexp_month%5D=05&card%5Bexp_year%5D=2028 response: body: - string: '{"id": "tok_0Po9jmDqT4huGUvdGwBgHnel", "object": "token", "card": {"id": - "card_0Po9jmDqT4huGUvdbeP84aAV", "object": "card", "address_city": null, "address_country": - null, "address_line1": null, "address_line1_check": null, "address_line2": - null, "address_state": null, "address_zip": null, "address_zip_check": null, - "brand": "Visa", "country": "US", "cvc_check": "unchecked", "dynamic_last4": - null, "exp_month": 5, "exp_year": 2028, "funding": "credit", "last4": "6170", - "name": null, "networks": {"preferred": null}, "tokenization_method": null, - "wallet": null}, "client_ip": "", "created": 1723751614, "livemode": - true, "type": "card", "used": false}' + string: '{"error": {"message": "This integration surface is unsupported for + publishable key tokenization. To enable this surface, please go to your dashboard + (https://dashboard.stripe.com/settings/integration). See https://support.stripe.com/questions/card-tokenization-restrictions-using-publishable-keys + for more details", "request_log_url": "https://dashboard.stripe.com/logs/req_h4qLymbw74w7cU?t=1741290522", + "type": "invalid_request_error"}}' headers: Access-Control-Allow-Credentials: - 'true' Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE + - GET, HEAD, PUT, PATCH, POST, DELETE Access-Control-Allow-Origin: - '*' Access-Control-Expose-Headers: @@ -107,27 +103,27 @@ interactions: Connection: - keep-alive Content-Length: - - '788' + - '458' Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Ftokens; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' + - base-uri 'none'; default-src 'none'; form-action 'none'; frame-ancestors 'none'; + img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'; worker-src + 'none'; upgrade-insecure-requests; report-uri https://q.stripe.com/csp-violation?q=0Vy5Ta2pFgzW2Ya4hl8lPGzkEN1C3IyDpB204-q3EAArRvHI8ALkzEjhMEmUL0t__fht0crtWzoPxzs_ Content-Type: - application/json Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Date: - - Thu, 15 Aug 2024 19:53:34 GMT + - Thu, 06 Mar 2025 19:48:42 GMT Idempotency-Key: - - 4c2cef93-cd04-4374-8775-fc3ac2189515 + - 4f8c8607-a9d0-4c8e-a5be-cd519b399771 Original-Request: - - req_sONoccjCYMJSVm + - req_h4qLymbw74w7cU Report-To: - - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=payins-bapi-srv"}],"include_subdomains":true}' + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - - coop="https://q.stripe.com/coop-report?s=payins-bapi-srv" + - coop="https://q.stripe.com/coop-report" Request-Id: - - req_sONoccjCYMJSVm + - req_h4qLymbw74w7cU Server: - nginx Strict-Transport-Security: @@ -138,18 +134,17 @@ interactions: - '2020-08-27' Vary: - Origin - X-Content-Type-Options: - - nosniff X-Stripe-Priority-Routing-Enabled: - 'true' X-Stripe-Routing-Context-Priority-Tier: - livemode-critical + X-Wc: + - AB status: - code: 200 - message: OK + code: 400 + message: Bad Request - request: - body: '{"credit_card": {"stripe_object_id": "tok_0Po9jmDqT4huGUvdGwBgHnel", "priority": - "primary"}}' + body: '{"credit_card": {"stripe_object_id": "", "priority": "primary"}}' headers: Accept: - '*/*' @@ -158,7 +153,7 @@ interactions: Connection: - keep-alive Content-Length: - - '92' + - '64' Content-Type: - application/json authorization: @@ -169,14 +164,13 @@ interactions: uri: https://api.easypost.com/v2/credit_cards response: body: - string: '{"id": "pm_1bc11ef87e774e81acf04d34f29b6209", "disabled_at": null, - "object": "CreditCard", "name": null, "last4": "6170", "exp_month": 5, "exp_year": - 2028, "brand": "Visa", "requires_mandate_collection": false}' + string: '{"error": {"code": "BAD_REQUEST", "message": "One of payment_method_reference + or payment_method_id must be provided", "errors": []}}' headers: cache-control: - private, no-cache, no-store content-length: - - '193' + - '126' content-type: - application/json; charset=utf-8 expires: @@ -196,23 +190,23 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5cbfe78861e9001746e3 + - 8e8eb62867c9fc1ae2b97b780018a8da x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '3.079624' + - '0.078448' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: - code: 201 - message: Created + code: 400 + message: Bad Request version: 1 diff --git a/tests/cassettes/test_referral_customer_all.yaml b/tests/cassettes/test_referral_customer_all.yaml index 097044f9..5c6182b6 100644 --- a/tests/cassettes/test_referral_customer_all.yaml +++ b/tests/cassettes/test_referral_customer_all.yaml @@ -76,20 +76,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5cbce78861e5001744d9 + - 8e8eb62667c9fc19e2b97b740018a73e x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.471273' + - '0.193565' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_referral_customer_create.yaml b/tests/cassettes/test_referral_customer_create.yaml index 7d7761c8..9fd00a90 100644 --- a/tests/cassettes/test_referral_customer_create.yaml +++ b/tests/cassettes/test_referral_customer_create.yaml @@ -20,17 +20,17 @@ interactions: uri: https://api.easypost.com/v2/referral_customers response: body: - string: '{"id": "user_aa500c4bac5244e5ad7260d37f033c27", "object": "User", "parent_id": + string: '{"id": "user_55b92a4a1633479488889ec5b1a2dac9", "object": "User", "parent_id": null, "name": "test test", "phone_number": "", "verified": true, - "created_at": "2024-08-15T19:53:31Z", "default_carbon_offset": false, "has_elevate_access": + "created_at": "2025-03-06T19:48:39Z", "default_carbon_offset": false, "has_elevate_access": false, "balance": "0.00000", "price_per_shipment": "0.00000", "recharge_amount": null, "secondary_recharge_amount": null, "recharge_threshold": null, "has_billing_method": null, "cc_fee_rate": "0.0375", "default_insurance_amount": "50.00", "insurance_fee_rate": "0.01", "insurance_fee_minimum": "0.50", "email": "", "children": [], "api_keys": [{"object": "ApiKey", "key": "", "mode": "test", - "created_at": "2024-08-15T19:53:31Z", "active": true, "id": "ak_ed529f84c60a4a5aa76be3808d1c9bbf"}, + "created_at": "2025-03-06T19:48:40Z", "active": true, "id": "ak_f490ecb3c0084330a8c518de543100bb"}, {"object": "ApiKey", "key": "", "mode": "production", "created_at": - "2024-08-15T19:53:31Z", "active": true, "id": "ak_258a2eac822c4414aef96b994a66fc21"}]}' + "2025-03-06T19:48:40Z", "active": true, "id": "ak_6fc88d2d69464d0da46ed6d16cf65294"}]}' headers: cache-control: - private, no-cache, no-store @@ -55,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5cbbe78861e300174348 + - 8e8eb62b67c9fc17e2b97b720018a5bb x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.602572' + - '0.598904' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_referral_customer_update.yaml b/tests/cassettes/test_referral_customer_update.yaml index 3598de13..d724b78f 100644 --- a/tests/cassettes/test_referral_customer_update.yaml +++ b/tests/cassettes/test_referral_customer_update.yaml @@ -91,7 +91,7 @@ interactions: cache-control: - private, no-cache, no-store content-length: - - '5654' + - '5650' content-type: - application/json; charset=utf-8 expires: @@ -111,20 +111,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5cbbe78861e400174418 + - 8e8eb62667c9fc18e2b97b730018a680 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb56nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.496298' + - '0.328114' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -171,25 +171,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5cbce78861e40017449e + - 8e8eb62667c9fc18e2b97b730018a704 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.057436' + - '0.041201' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_referral_get_next_page.yaml b/tests/cassettes/test_referral_get_next_page.yaml index 5c369639..7db16dbe 100644 --- a/tests/cassettes/test_referral_get_next_page.yaml +++ b/tests/cassettes/test_referral_get_next_page.yaml @@ -76,20 +76,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cbde78861e600174570 + - 8e8eb62b67c9fc19e2b97b750018a7a5 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.221506' + - '0.184353' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -165,20 +165,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cbde78861e6001745b2 + - 8e8eb62b67c9fc19e2b97b750018a7e4 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.208635' + - '0.273572' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_refund_all.yaml b/tests/cassettes/test_refund_all.yaml index 624528c1..5f56c089 100644 --- a/tests/cassettes/test_refund_all.yaml +++ b/tests/cassettes/test_refund_all.yaml @@ -16,10 +16,10 @@ interactions: uri: https://api.easypost.com/v2/refunds?page_size=5 response: body: - string: '{"refunds": [{"id": "rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06", "object": - "Refund", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", - "tracking_code": "9400100105807075742886", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587"}], + string: '{"refunds": [{"id": "rfnd_36f1ce2418c34aee8c253bc785e4ddae", "object": + "Refund", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "tracking_code": "9400100208303109500775", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c"}], "has_more": false}' headers: cache-control: @@ -45,20 +45,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5cc3e788620300174b2e + - 8e8eb62967c9fc1ce2b97b7a0018aa35 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.044571' + - '0.037706' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_refund_create.yaml b/tests/cassettes/test_refund_create.yaml index 73079348..ae824ebb 100644 --- a/tests/cassettes/test_refund_create.yaml +++ b/tests/cassettes/test_refund_create.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:53:38Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742886", "updated_at": "2024-08-15T19:53:39Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_108166455b4011efb6f1ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_642d11e9fb434aa998e00ad920aff76b", - "object": "Parcel", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + string: '{"id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "created_at": "2025-03-06T19:48:42Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109500775", "updated_at": + "2025-03-06T19:48:43Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_022dc26ffac411ef8215ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:42+00:00", "updated_at": + "2025-03-06T19:48:42+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_f5e430a8cc534f2daf3fa33dba28d22a", "object": + "Parcel", "created_at": "2025-03-06T19:48:42Z", "updated_at": "2025-03-06T19:48:42Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_49a1063a6a4d4e369e0c0010e8106f2f", - "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:39Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:38Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2ad09f05a2e046f1bf32487531f39dee", + "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:43Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e86d824b1d760044a785ef93f8690c3a26.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e862022dfa87524843bc70b0b440b1df21.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_391276f050354b6fa00b8244b10cee20", "object": - "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_1dd3fb8f39ed4c8f94c00090bae4e0d6", "object": + "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_20891227b5fb432fa0ac80ac0bba6cb5", - "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3f0b282224c94e72bd212ef227f12169", - "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_136e35c9133f4a7eb8327f429d09c813", + "object": "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + 3, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eb98f20bfa29451e91eceb7335b89b77", + "object": "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_3f0b282224c94e72bd212ef227f12169", "object": - "Rate", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_eb98f20bfa29451e91eceb7335b89b77", "object": + "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e122e64adc3d4dbe8e17aaceed4c50f1", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742886", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:39Z", - "updated_at": "2024-08-15T19:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier": "USPS", + 3, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_bdaa56e02ed74f6ea2839e6ea6a4f75d", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500775", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-06T19:48:43Z", + "updated_at": "2025-03-06T19:48:43Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2UxMjJlNjRhZGMzZDRkYmU4ZTE3YWFjZWVkNGM1MGYx"}, - "to_address": {"id": "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", + "https://track.easypost.com/djE6dHJrX2JkYWE1NmUwMmVkNzRmNmVhMjgzOWU2ZWE2YTRmNzVk"}, + "to_address": {"id": "adr_022b47a5fac411efb7663cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:48:42+00:00", "updated_at": "2025-03-06T19:48:43+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_108166455b4011efb6f1ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:38+00:00", "updated_at": - "2024-08-15T19:53:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_022dc26ffac411ef8215ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:42+00:00", "updated_at": + "2025-03-06T19:48:42+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": + "adr_022b47a5fac411efb7663cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:42+00:00", "updated_at": "2025-03-06T19:48:43+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_4b07ee8bc6714adfaddbc1d79cc72587 + - /api/v2/shipments/shp_82abbe8e8a1f4746bfbe7c943906c52c pragma: - no-cache referrer-policy: @@ -138,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cc2e7886202001749f7 + - 8e8eb62867c9fc1ae2b97b790018a908 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.940320' + - '0.794691' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -171,70 +171,71 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_4b07ee8bc6714adfaddbc1d79cc72587 + uri: https://api.easypost.com/v2/shipments/shp_82abbe8e8a1f4746bfbe7c943906c52c response: body: - string: '{"created_at": "2024-08-15T19:53:38Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742886", "updated_at": "2024-08-15T19:53:39Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_108166455b4011efb6f1ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_642d11e9fb434aa998e00ad920aff76b", - "object": "Parcel", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + string: '{"id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "created_at": "2025-03-06T19:48:42Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109500775", "updated_at": + "2025-03-06T19:48:43Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_022dc26ffac411ef8215ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:42+00:00", "updated_at": + "2025-03-06T19:48:42+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_f5e430a8cc534f2daf3fa33dba28d22a", "object": + "Parcel", "created_at": "2025-03-06T19:48:42Z", "updated_at": "2025-03-06T19:48:42Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_49a1063a6a4d4e369e0c0010e8106f2f", - "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:39Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:38Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2ad09f05a2e046f1bf32487531f39dee", + "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:43Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e86d824b1d760044a785ef93f8690c3a26.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e862022dfa87524843bc70b0b440b1df21.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_391276f050354b6fa00b8244b10cee20", "object": - "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_1dd3fb8f39ed4c8f94c00090bae4e0d6", "object": + "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_20891227b5fb432fa0ac80ac0bba6cb5", - "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3f0b282224c94e72bd212ef227f12169", - "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_136e35c9133f4a7eb8327f429d09c813", + "object": "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": + 3, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eb98f20bfa29451e91eceb7335b89b77", + "object": "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_3f0b282224c94e72bd212ef227f12169", "object": - "Rate", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_eb98f20bfa29451e91eceb7335b89b77", "object": + "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e122e64adc3d4dbe8e17aaceed4c50f1", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742886", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:39Z", - "updated_at": "2024-08-15T19:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:39Z", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", + 3, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_bdaa56e02ed74f6ea2839e6ea6a4f75d", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500775", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-06T19:48:43Z", + "updated_at": "2025-03-06T19:48:43Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:43Z", "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:39Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:43Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:39Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:43Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -243,9 +244,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2UxMjJlNjRhZGMzZDRkYmU4ZTE3YWFjZWVkNGM1MGYx"}, - "to_address": {"id": "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2JkYWE1NmUwMmVkNzRmNmVhMjgzOWU2ZWE2YTRmNzVk"}, + "to_address": {"id": "adr_022b47a5fac411efb7663cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:48:42+00:00", "updated_at": "2025-03-06T19:48:43+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -253,15 +254,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_108166455b4011efb6f1ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:38+00:00", "updated_at": - "2024-08-15T19:53:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_022dc26ffac411ef8215ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:42+00:00", "updated_at": + "2025-03-06T19:48:42+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": + "adr_022b47a5fac411efb7663cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:42+00:00", "updated_at": "2025-03-06T19:48:43+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -270,9 +271,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -297,7 +297,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cc3e788620200174ac5 + - 8e8eb62867c9fc1be2b97b790018a9b2 x-frame-options: - SAMEORIGIN x-node: @@ -305,19 +305,19 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.144191' + - '0.170424' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"refund": {"carrier": "USPS", "tracking_codes": ["9400100105807075742886"]}}' + body: '{"refund": {"carrier": "USPS", "tracking_codes": ["9400100208303109500775"]}}' headers: Accept: - '*/*' @@ -337,10 +337,10 @@ interactions: uri: https://api.easypost.com/v2/refunds response: body: - string: '[{"id": "rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06", "object": "Refund", - "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", - "tracking_code": "9400100105807075742886", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587"}]' + string: '[{"id": "rfnd_36f1ce2418c34aee8c253bc785e4ddae", "object": "Refund", + "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "tracking_code": "9400100208303109500775", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c"}]' headers: cache-control: - private, no-cache, no-store @@ -360,25 +360,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cc3e788620200174af6 + - 8e8eb62867c9fc1be2b97b790018a9f9 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.088670' + - '0.079742' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_refund_get_next_page.yaml b/tests/cassettes/test_refund_get_next_page.yaml index 4ba7c261..4efa7f31 100644 --- a/tests/cassettes/test_refund_get_next_page.yaml +++ b/tests/cassettes/test_refund_get_next_page.yaml @@ -16,10 +16,10 @@ interactions: uri: https://api.easypost.com/v2/refunds?page_size=5 response: body: - string: '{"refunds": [{"id": "rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06", "object": - "Refund", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", - "tracking_code": "9400100105807075742886", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587"}], + string: '{"refunds": [{"id": "rfnd_36f1ce2418c34aee8c253bc785e4ddae", "object": + "Refund", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "tracking_code": "9400100208303109500775", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c"}], "has_more": false}' headers: cache-control: @@ -45,20 +45,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cc4e788620400174b5d + - 8e8eb62867c9fc1ce2b97b7b0018aa67 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.187913' + - '0.036587' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_refund_retrieve.yaml b/tests/cassettes/test_refund_retrieve.yaml index ed3a2394..bd457fa9 100644 --- a/tests/cassettes/test_refund_retrieve.yaml +++ b/tests/cassettes/test_refund_retrieve.yaml @@ -16,10 +16,10 @@ interactions: uri: https://api.easypost.com/v2/refunds?page_size=5 response: body: - string: '{"refunds": [{"id": "rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06", "object": - "Refund", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", - "tracking_code": "9400100105807075742886", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587"}], + string: '{"refunds": [{"id": "rfnd_36f1ce2418c34aee8c253bc785e4ddae", "object": + "Refund", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "tracking_code": "9400100208303109500775", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c"}], "has_more": false}' headers: cache-control: @@ -45,20 +45,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cc4e788620500174bc4 + - 8e8eb62967c9fc1ce2b97b930018aa8f x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.045226' + - '0.037489' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -78,13 +78,13 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/refunds/rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06 + uri: https://api.easypost.com/v2/refunds/rfnd_36f1ce2418c34aee8c253bc785e4ddae response: body: - string: '{"id": "rfnd_7a4c4f72c04d4c508bc00da6fb5cdb06", "object": "Refund", - "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", - "tracking_code": "9400100105807075742886", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587"}' + string: '{"id": "rfnd_36f1ce2418c34aee8c253bc785e4ddae", "object": "Refund", + "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "tracking_code": "9400100208303109500775", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c"}' headers: cache-control: - private, no-cache, no-store @@ -104,25 +104,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cc4e788620500174be3 + - 8e8eb62967c9fc1ce2b97b930018aaa8 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.043370' + - '0.035569' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_all.yaml b/tests/cassettes/test_report_all.yaml index cb6ebfd3..e522c345 100644 --- a/tests/cassettes/test_report_all.yaml +++ b/tests/cassettes/test_report_all.yaml @@ -16,35 +16,12 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment?page_size=5 response: body: - string: '{"reports": [{"id": "shprep_be2c2a0ff4ee4c94b50cb1d2a680e1c8", "object": - "ShipmentReport", "created_at": "2024-08-15T19:53:42Z", "updated_at": "2024-08-15T19:53:42Z", - "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": - "new", "url": null, "url_expires_at": null, "include_children": false}, {"id": - "shprep_7d941ac7853d432f80e8ba9a9e610663", "object": "ShipmentReport", "created_at": - "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": - "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e8baebce9247a8487a9f0999584aaf02b5.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=6531cc88069ce31106be0f4c368f70a4dcd6cae80e6451637bf326d90dfc7563", - "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": - "shprep_898f903c09e44f39a78d2327e8a2804d", "object": "ShipmentReport", "created_at": - "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": - "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e86f8b1aceebd44ebda2f226fe0f7a00ce.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=cbaf689b81a6ec5394be5a05606cd3cb76a19c1788cd360269cb5b85f03823d8", - "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": - "shprep_da46ce4ada344c028892a5f0fafcb07e", "object": "ShipmentReport", "created_at": - "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:41Z", "start_date": - "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e838c123876ff64d7fa73c8979b9d4eade.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=f34e076ae918c7379fd73d6cbd4af53d38479cf317289ba351f5299d556eb9ac", - "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": - "shprep_2a996421686a46ad9dce115eed3edc28", "object": "ShipmentReport", "created_at": - "2024-01-19T22:05:41Z", "updated_at": "2024-01-19T22:05:41Z", "start_date": - "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": "empty", - "url": null, "url_expires_at": null, "include_children": false}], "has_more": - true}' + string: '{"has_more": false, "reports": []}' headers: cache-control: - private, no-cache, no-store content-length: - - '2669' + - '32' content-type: - application/json; charset=utf-8 expires: @@ -64,20 +41,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5cc6e788620a00174d92 + - 8e8eb62a67c9fc1de2b97b980018abca x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb56nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.064198' + - '0.065813' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_create_report.yaml b/tests/cassettes/test_report_create_report.yaml index 15b7f876..fbb96623 100644 --- a/tests/cassettes/test_report_create_report.yaml +++ b/tests/cassettes/test_report_create_report.yaml @@ -20,15 +20,16 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: '{"id": "shprep_da46ce4ada344c028892a5f0fafcb07e", "object": "ShipmentReport", - "created_at": "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:41Z", - "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": - "new", "url": null, "url_expires_at": null, "include_children": false}' + string: '{"columns": null, "created_at": "2025-03-06T19:48:44Z", "end_date": + "2022-05-04", "id": "shprep_d1df1bfb4c9a4983976b8d4550871777", "include_children": + null, "mode": "test", "object": "ShipmentReport", "start_date": "2022-05-04", + "status": "new", "updated_at": null, "url": null, "url_expires_at": null, + "utc_offset": null}' headers: cache-control: - private, no-cache, no-store content-length: - - '283' + - '298' content-type: - application/json; charset=utf-8 expires: @@ -48,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cc5e788620600174c20 + - 8e8eb62667c9fc1ce2b97b940018aada x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.089492' + - '0.069204' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_create_with_additional_columns.yaml b/tests/cassettes/test_report_create_with_additional_columns.yaml index 8234c919..362fa58d 100644 --- a/tests/cassettes/test_report_create_with_additional_columns.yaml +++ b/tests/cassettes/test_report_create_with_additional_columns.yaml @@ -21,15 +21,16 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: '{"id": "shprep_898f903c09e44f39a78d2327e8a2804d", "object": "ShipmentReport", - "created_at": "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:41Z", - "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": - "new", "url": null, "url_expires_at": null, "include_children": false}' + string: '{"columns": "created_at,id,tracking_code,status,from_address_id,from_name,from_company,from_street1,from_street2,from_city,from_state,from_zip,from_country,from_residential,to_address_id,to_name,to_company,to_street1,to_street2,to_city,to_state,to_zip,to_country,to_residential,parcel_id,length,width,height,weight,predefined_package,postage_label_created_at,rate_id,service,carrier,rate,insured_value,is_return,refund_status,reference,label_fee,postage_fee,insurance_fee,options,usps_zone,from_name,from_company", + "created_at": "2025-03-06T19:48:44Z", "end_date": "2022-05-04", "id": "shprep_62cc578e63f945bf994b8a0513de565c", + "include_children": null, "mode": "test", "object": "ShipmentReport", "start_date": + "2022-05-04", "status": "new", "updated_at": null, "url": null, "url_expires_at": + null, "utc_offset": null}' headers: cache-control: - private, no-cache, no-store content-length: - - '283' + - '795' content-type: - application/json; charset=utf-8 expires: @@ -49,20 +50,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cc5e788620700174c75 + - 8e8eb62967c9fc1ce2b97b950018ab11 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.093903' + - '0.068570' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_create_with_columns.yaml b/tests/cassettes/test_report_create_with_columns.yaml index eb550dd7..15628c8b 100644 --- a/tests/cassettes/test_report_create_with_columns.yaml +++ b/tests/cassettes/test_report_create_with_columns.yaml @@ -20,15 +20,16 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: '{"id": "shprep_7d941ac7853d432f80e8ba9a9e610663", "object": "ShipmentReport", - "created_at": "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:41Z", - "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": - "new", "url": null, "url_expires_at": null, "include_children": false}' + string: '{"columns": "usps_zone", "created_at": "2025-03-06T19:48:45Z", "end_date": + "2022-05-04", "id": "shprep_650d0c092bad411a929767abf466713b", "include_children": + null, "mode": "test", "object": "ShipmentReport", "start_date": "2022-05-04", + "status": "new", "updated_at": null, "url": null, "url_expires_at": null, + "utc_offset": null}' headers: cache-control: - private, no-cache, no-store content-length: - - '283' + - '305' content-type: - application/json; charset=utf-8 expires: @@ -48,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cc5e788620800174cc7 + - 8e8eb62867c9fc1ce2b97b960018ab43 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.087788' + - '0.086541' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_get_next_page.yaml b/tests/cassettes/test_report_get_next_page.yaml index cc04eeca..1ca3ddfd 100644 --- a/tests/cassettes/test_report_get_next_page.yaml +++ b/tests/cassettes/test_report_get_next_page.yaml @@ -16,36 +16,12 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment?page_size=5 response: body: - string: '{"reports": [{"id": "shprep_be2c2a0ff4ee4c94b50cb1d2a680e1c8", "object": - "ShipmentReport", "created_at": "2024-08-15T19:53:42Z", "updated_at": "2024-08-15T19:53:42Z", - "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": - "available", "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e8c53165d6e8264f47a69ecb7a154c5387.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=35a43d08a97bcc1f5331d71091608a296d7670d63558102f6e5b95e6b4a0457f", - "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": - "shprep_7d941ac7853d432f80e8ba9a9e610663", "object": "ShipmentReport", "created_at": - "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": - "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e8baebce9247a8487a9f0999584aaf02b5.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=6531cc88069ce31106be0f4c368f70a4dcd6cae80e6451637bf326d90dfc7563", - "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": - "shprep_898f903c09e44f39a78d2327e8a2804d", "object": "ShipmentReport", "created_at": - "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:42Z", "start_date": - "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e86f8b1aceebd44ebda2f226fe0f7a00ce.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=cbaf689b81a6ec5394be5a05606cd3cb76a19c1788cd360269cb5b85f03823d8", - "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": - "shprep_da46ce4ada344c028892a5f0fafcb07e", "object": "ShipmentReport", "created_at": - "2024-08-15T19:53:41Z", "updated_at": "2024-08-15T19:53:41Z", "start_date": - "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": "available", - "url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20240815/e838c123876ff64d7fa73c8979b9d4eade.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQ7T7W7W7P%2F20240815%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240815T195342Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=f34e076ae918c7379fd73d6cbd4af53d38479cf317289ba351f5299d556eb9ac", - "url_expires_at": "2024-08-15T19:54:12Z", "include_children": false}, {"id": - "shprep_2a996421686a46ad9dce115eed3edc28", "object": "ShipmentReport", "created_at": - "2024-01-19T22:05:41Z", "updated_at": "2024-01-19T22:05:41Z", "start_date": - "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": "empty", - "url": null, "url_expires_at": null, "include_children": false}], "has_more": - true}' + string: '{"has_more": false, "reports": []}' headers: cache-control: - private, no-cache, no-store content-length: - - '3075' + - '32' content-type: - application/json; charset=utf-8 expires: @@ -60,106 +36,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5cc6e788622200174dcd + - 8e8eb62767c9fc1de2b97b990018ac05 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.063735' + - '0.041104' x-version-label: - - easypost-202408151917-1527448f18-master - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - authorization: - - - user-agent: - - - method: GET - uri: https://api.easypost.com/v2/reports/shipment?before_id=shprep_2a996421686a46ad9dce115eed3edc28&page_size=5 - response: - body: - string: '{"reports": [{"id": "shprep_7a6356a335b149fd976e4ddc64d56fe1", "object": - "ShipmentReport", "created_at": "2024-01-19T22:05:41Z", "updated_at": "2024-01-19T22:05:41Z", - "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": - "empty", "url": null, "url_expires_at": null, "include_children": false}, - {"id": "shprep_7fe6a33016a849999785f97043857fb4", "object": "ShipmentReport", - "created_at": "2024-01-19T22:01:54Z", "updated_at": "2024-01-19T22:01:54Z", - "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": - "empty", "url": null, "url_expires_at": null, "include_children": false}, - {"id": "shprep_e9e2df2a35564753b10fabe53ee264e0", "object": "ShipmentReport", - "created_at": "2024-01-19T22:01:53Z", "updated_at": "2024-01-19T22:01:54Z", - "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": - "empty", "url": null, "url_expires_at": null, "include_children": false}, - {"id": "shprep_dd35c5f7464247ecb38ef96430402e28", "object": "ShipmentReport", - "created_at": "2024-01-19T21:58:59Z", "updated_at": "2024-01-19T21:58:59Z", - "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": - "empty", "url": null, "url_expires_at": null, "include_children": false}, - {"id": "shprep_e6f030d77dec4a3ea914844646d90498", "object": "ShipmentReport", - "created_at": "2024-01-19T21:58:59Z", "updated_at": "2024-01-19T21:58:59Z", - "start_date": "2022-10-01", "end_date": "2022-10-01", "mode": "test", "status": - "empty", "url": null, "url_expires_at": null, "include_children": false}], - "has_more": true}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '1459' - content-type: - - application/json; charset=utf-8 - expires: - - '0' - pragma: - - no-cache - referrer-policy: - - strict-origin-when-cross-origin - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-backend: - - easypost - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-ep-request-uuid: - - 62c1f5d666be5cc6e788622200174df3 - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb38nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c - x-runtime: - - '0.065879' - x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_retrieve_shipment_report.yaml b/tests/cassettes/test_report_retrieve_shipment_report.yaml index 0ce0bcbb..509810c3 100644 --- a/tests/cassettes/test_report_retrieve_shipment_report.yaml +++ b/tests/cassettes/test_report_retrieve_shipment_report.yaml @@ -20,15 +20,16 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: '{"id": "shprep_be2c2a0ff4ee4c94b50cb1d2a680e1c8", "object": "ShipmentReport", - "created_at": "2024-08-15T19:53:42Z", "updated_at": "2024-08-15T19:53:42Z", - "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": - "new", "url": null, "url_expires_at": null, "include_children": false}' + string: '{"columns": null, "created_at": "2025-03-06T19:48:45Z", "end_date": + "2022-05-04", "id": "shprep_42c293b4b2234e9b8202d0ae9cd8eccc", "include_children": + null, "mode": "test", "object": "ShipmentReport", "start_date": "2022-05-04", + "status": "new", "updated_at": null, "url": null, "url_expires_at": null, + "utc_offset": null}' headers: cache-control: - private, no-cache, no-store content-length: - - '283' + - '298' content-type: - application/json; charset=utf-8 expires: @@ -43,27 +44,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5cc6e788620900174d15 + - 8e8eb62c67c9fc1de2b97b970018ab72 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.089543' + - '0.083750' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -83,18 +82,19 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/reports/shprep_be2c2a0ff4ee4c94b50cb1d2a680e1c8 + uri: https://api.easypost.com/v2/reports/shprep_42c293b4b2234e9b8202d0ae9cd8eccc response: body: - string: '{"id": "shprep_be2c2a0ff4ee4c94b50cb1d2a680e1c8", "object": "ShipmentReport", - "created_at": "2024-08-15T19:53:42Z", "updated_at": "2024-08-15T19:53:42Z", - "start_date": "2022-05-04", "end_date": "2022-05-04", "mode": "test", "status": - "new", "url": null, "url_expires_at": null, "include_children": false}' + string: '{"columns": null, "created_at": "2025-03-06T19:48:45Z", "end_date": + "2022-05-04", "id": "shprep_42c293b4b2234e9b8202d0ae9cd8eccc", "include_children": + null, "mode": "test", "object": "ShipmentReport", "start_date": "2022-05-04", + "status": "new", "updated_at": null, "url": null, "url_expires_at": null, + "utc_offset": null}' headers: cache-control: - private, no-cache, no-store content-length: - - '283' + - '298' content-type: - application/json; charset=utf-8 expires: @@ -114,20 +114,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5cc6e788620900174d39 + - 8e8eb62c67c9fc1de2b97b970018ab9e x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.053933' + - '0.043244' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_request_hooks.yaml b/tests/cassettes/test_request_hooks.yaml index 1bb4287d..562c7bbb 100644 --- a/tests/cassettes/test_request_hooks.yaml +++ b/tests/cassettes/test_request_hooks.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_626510e1371b4ba9b768a61f40e04704", "object": "Parcel", - "created_at": "2024-08-15T19:52:57Z", "updated_at": "2024-08-15T19:52:57Z", + string: '{"id": "prcl_bbca99d01d1e4548be2a0fa01a62214f", "object": "Parcel", + "created_at": "2025-03-06T19:48:21Z", "updated_at": "2025-03-06T19:48:21Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -34,7 +34,7 @@ interactions: expires: - '0' location: - - /api/v2/parcels/prcl_626510e1371b4ba9b768a61f40e04704 + - /api/v2/parcels/prcl_bbca99d01d1e4548be2a0fa01a62214f pragma: - no-cache referrer-policy: @@ -50,20 +50,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5c99e78861610017217d + - 8e8eb62867c9fc05e2b97b1300188f61 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.027145' + - '0.034714' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_response_hooks.yaml b/tests/cassettes/test_response_hooks.yaml index 3d51f63b..285fcfdc 100644 --- a/tests/cassettes/test_response_hooks.yaml +++ b/tests/cassettes/test_response_hooks.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_bbf42641c7d441fb8aa276287be5e69e", "object": "Parcel", - "created_at": "2024-08-15T19:52:57Z", "updated_at": "2024-08-15T19:52:57Z", + string: '{"id": "prcl_eb400fa1cd2e4d8a8830068280c6e692", "object": "Parcel", + "created_at": "2025-03-06T19:48:21Z", "updated_at": "2025-03-06T19:48:21Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -34,7 +34,7 @@ interactions: expires: - '0' location: - - /api/v2/parcels/prcl_bbf42641c7d441fb8aa276287be5e69e + - /api/v2/parcels/prcl_eb400fa1cd2e4d8a8830068280c6e692 pragma: - no-cache referrer-policy: @@ -50,20 +50,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5c99e7886162001721ab + - 8e8eb62567c9fc05e2b97b1400188f8b x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.031533' + - '0.024215' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_retrieve_carrier_metadata.yaml b/tests/cassettes/test_retrieve_carrier_metadata.yaml index 7cc46cd2..e15503fa 100644 --- a/tests/cassettes/test_retrieve_carrier_metadata.yaml +++ b/tests/cassettes/test_retrieve_carrier_metadata.yaml @@ -19,53 +19,44 @@ interactions: string: '{"carriers": [{"human_readable": "Accurate", "name": "accurate", "predefined_packages": [], "service_levels": [{"carrier": "accurate", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "Route"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "Amazon MWS", "name": "amazonmws", - "predefined_packages": [], "service_levels": [{"carrier": "amazonmws", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "UPS Rates"}, {"carrier": "amazonmws", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "USPS Rates"}, {"carrier": - "amazonmws", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "FedEx Rates"}, {"carrier": "amazonmws", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "UPS Labels"}, {"carrier": "amazonmws", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "USPS Labels"}, {"carrier": - "amazonmws", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "FedEx Labels"}, {"carrier": "amazonmws", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "UPS Tracking"}, {"carrier": "amazonmws", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "USPS Tracking"}, - {"carrier": "amazonmws", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "FedEx Tracking"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "APC", "name": "apc", "predefined_packages": - [], "service_levels": [{"carrier": "apc", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "parcelConnectBookService"}, - {"carrier": "apc", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "parcelConnectExpeditedDDP"}, {"carrier": + [], "supported_features": []}, {"human_readable": "Amazon Shipping", "name": + "amazonshipping", "predefined_packages": [], "service_levels": [{"carrier": + "amazonshipping", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Amazon Shipping Ground"}], "shipment_options": + [], "supported_features": [{"carrier": "amazonshipping", "description": null, + "name": "labels", "supported": null}, {"carrier": "amazonshipping", "description": + null, "name": "rating", "supported": true}, {"carrier": "amazonshipping", + "description": null, "name": "refunds", "supported": null}]}, {"human_readable": + "APC", "name": "apc", "predefined_packages": [], "service_levels": [{"carrier": "apc", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "parcelConnectExpeditedDDU"}, {"carrier": "apc", "description": + null, "name": "parcelConnectBookService"}, {"carrier": "apc", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "parcelConnectPriorityDDP"}, {"carrier": "apc", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "parcelConnectPriorityDDPDelcon"}, + "parcelConnectExpeditedDDP"}, {"carrier": "apc", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "parcelConnectExpeditedDDU"}, {"carrier": "apc", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "parcelConnectPriorityDDU"}, {"carrier": + null, "max_weight": null, "name": "parcelConnectPriorityDDP"}, {"carrier": "apc", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "parcelConnectPriorityDDUDelcon"}, {"carrier": "apc", "description": + null, "name": "parcelConnectPriorityDDPDelcon"}, {"carrier": "apc", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "parcelConnectPriorityDDUPQW"}, {"carrier": "apc", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "parcelConnectStandardDDU"}, + "parcelConnectPriorityDDU"}, {"carrier": "apc", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "parcelConnectPriorityDDUDelcon"}, {"carrier": "apc", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "parcelConnectStandardDDUPQW"}, {"carrier": + null, "max_weight": null, "name": "parcelConnectPriorityDDUPQW"}, {"carrier": "apc", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "parcelConnectPacketDDU"}], "shipment_options": [], "supported_features": - []}, {"human_readable": "Asendia USA", "name": "asendiausa", "predefined_packages": - [], "service_levels": [{"carrier": "asendiausa", "description": null, "dimensions": - [], "human_readable": "ADS", "max_weight": null, "name": "ADS"}, {"carrier": - "asendiausa", "description": null, "dimensions": [], "human_readable": "Air - Freight Inbound", "max_weight": null, "name": "AirFreightInbound"}, {"carrier": - "asendiausa", "description": null, "dimensions": [], "human_readable": "Air - Freight Outbound", "max_weight": null, "name": "AirFreightOutbound"}, {"carrier": - "asendiausa", "description": null, "dimensions": [], "human_readable": "Asendia - Domestic Bound Printed Matter Expedited", "max_weight": null, "name": "AsendiaDomesticBoundPrinterMatterExpedited"}, + null, "name": "parcelConnectStandardDDU"}, {"carrier": "apc", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "parcelConnectStandardDDUPQW"}, {"carrier": "apc", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "parcelConnectPacketDDU"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "Asendia + USA", "name": "asendiausa", "predefined_packages": [], "service_levels": [{"carrier": + "asendiausa", "description": null, "dimensions": [], "human_readable": "ADS", + "max_weight": null, "name": "ADS"}, {"carrier": "asendiausa", "description": + null, "dimensions": [], "human_readable": "Air Freight Inbound", "max_weight": + null, "name": "AirFreightInbound"}, {"carrier": "asendiausa", "description": + null, "dimensions": [], "human_readable": "Air Freight Outbound", "max_weight": + null, "name": "AirFreightOutbound"}, {"carrier": "asendiausa", "description": + null, "dimensions": [], "human_readable": "Asendia Domestic Bound Printed + Matter Expedited", "max_weight": null, "name": "AsendiaDomesticBoundPrinterMatterExpedited"}, {"carrier": "asendiausa", "description": null, "dimensions": [], "human_readable": "Asendia Domestic Bound Printed Matter Ground", "max_weight": null, "name": "AsendiaDomesticBoundPrinterMatterGround"}, {"carrier": "asendiausa", "description": @@ -287,11 +278,13 @@ interactions: "predefined_packages": [], "service_levels": [{"carrier": "bettertrucks", "description": null, "dimensions": [], "human_readable": "Next Day", "max_weight": null, "name": "NEXT_DAY"}, {"carrier": "bettertrucks", "description": null, - "dimensions": [], "human_readable": "Express", "max_weight": null, "name": - "EXPRESS"}], "shipment_options": [], "supported_features": []}, {"human_readable": - "Bluestreak", "name": "bluestreak", "predefined_packages": [], "service_levels": - [{"carrier": "bluestreak", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "N5"}], "shipment_options": [], "supported_features": + "dimensions": [], "human_readable": "Economy", "max_weight": null, "name": + "ECONOMY"}, {"carrier": "bettertrucks", "description": null, "dimensions": + [], "human_readable": "Same Day", "max_weight": null, "name": "SAME_DAY"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "Bluestreak", + "name": "bluestreak", "predefined_packages": [], "service_levels": [{"carrier": + "bluestreak", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "N5"}], "shipment_options": [], "supported_features": []}, {"human_readable": "Canada Post", "name": "canadapost", "predefined_packages": [], "service_levels": [{"carrier": "canadapost", "description": "Up to 3 days for local delivery, up to 6 days for regional delivery and up to 10 days for @@ -462,45 +455,66 @@ interactions: []}, {"human_readable": "Cirro E-Commerce", "name": "cirroecommerce", "predefined_packages": [], "service_levels": [{"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "CADOECOEA - (CA Domestic Economy East)"}, {"carrier": "cirroecommerce", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "CADOECOWE (CA Domestic Economy West)"}, {"carrier": "cirroecommerce", "description": + (Canada Domestic Economy East)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "CAECOCE (US to CA Economy)"}, {"carrier": "cirroecommerce", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "CAECONE (US to CA Economy)"}, {"carrier": "cirroecommerce", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "CAECOWE (US to CA Economy)"}, {"carrier": "cirroecommerce", "description": + "CADOECOWE (Canada Domestic Economy West)"}, {"carrier": "cirroecommerce", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "CAECONE (USA to Canada Economy Northeast)"}, {"carrier": "cirroecommerce", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "CAECOWE (USA to Canada Economy West)"}, {"carrier": "cirroecommerce", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "ECOCE (Economy Central)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ECOCE (Economy Central)"}, {"carrier": "cirroecommerce", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "ECOEA - (Economy East)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "ECONE (Economy Northeast)"}, + "ECOEA (Economy East)"}, {"carrier": "cirroecommerce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "ECONE + (Economy Northeast)"}, {"carrier": "cirroecommerce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "ECOSO + (Economy South)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "ECOWE (Economy West)"}, + {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "EUECONE (USA to EU Economy Northeast)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ECOSO (Economy South)"}, {"carrier": "cirroecommerce", + null, "max_weight": null, "name": "EXPNE (Expedited Northeast)"}, {"carrier": + "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "EXPWE (Expedited West)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ECOWE (Economy West)"}, {"carrier": "cirroecommerce", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "EUECOWE (US to Europe Economy)"}, {"carrier": "cirroecommerce", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "EXPBNE (Expedited Northeast)"}, {"carrier": "cirroecommerce", "description": + null, "name": "REGCE (Regional Central)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "EXPWE (Expedited West)"}, {"carrier": "cirroecommerce", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "REGCE - (Regional Central)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "REGEA (Regional East)"}, + "REGEA (Regional East)"}, {"carrier": "cirroecommerce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "REGNE + (Regional Northeast)"}, {"carrier": "cirroecommerce", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "REGSO + (Regional South)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "REGWE (Regional West)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "REGNE (Regional Northeast)"}, {"carrier": + null, "max_weight": null, "name": "STDWE (Standard West LA)"}, {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "REGSO (Regional South)"}, {"carrier": "cirroecommerce", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "REGWE (Regional West)"}], "shipment_options": [], "supported_features": - []}, {"human_readable": "Courier Express", "name": "courierexpress", "predefined_packages": - [], "service_levels": [{"carrier": "courierexpress", "description": null, - "dimensions": [], "human_readable": "Basic Parcel", "max_weight": null, "name": - "BASIC_PARCEL"}], "shipment_options": [], "supported_features": []}, {"human_readable": - "Couriers Please", "name": "couriersplease", "predefined_packages": [], "service_levels": - [{"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "STDSL (Standard SL Salt Lake City)"}, {"carrier": + "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "STDCE (Standard Central ORD/Chicago)"}, + {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "STDNJ (Standard NJ New Jersey)"}, {"carrier": + "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "STDNE (Standard Northeast New York/JFK)"}, + {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "STDEA (Standard East ATL)"}, {"carrier": + "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "STDSE (Standard Southeast Miami)"}, {"carrier": + "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "STDSO (Standard South DFW/Dallas)"}, {"carrier": + "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "USECOCA (Canada to USA Economy East)"}, + {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "GBECONE (USA to UK Economy Northeast)"}, + {"carrier": "cirroecommerce", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "EXPNJ (Expedited New Jersey)"}], "shipment_options": + [], "supported_features": []}, {"human_readable": "Courier Express", "name": + "courierexpress", "predefined_packages": [], "service_levels": [{"carrier": + "courierexpress", "description": null, "dimensions": [], "human_readable": + "Basic Parcel", "max_weight": null, "name": "BASIC_PARCEL"}], "shipment_options": + [], "supported_features": []}, {"human_readable": "Couriers Please", "name": + "couriersplease", "predefined_packages": [], "service_levels": [{"carrier": + "couriersplease", "description": null, "dimensions": [], "human_readable": "Road Express", "max_weight": null, "name": "RoadExpress"}, {"carrier": "couriersplease", "description": null, "dimensions": [], "human_readable": "Agg Exp Authority To Leave P10", "max_weight": null, "name": "AggExpAtlP10"}, {"carrier": "couriersplease", @@ -771,55 +785,71 @@ interactions: null, "name": "StandardPacket"}, {"carrier": "deutschepostuk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "BusinessMailStandard"}], "shipment_options": [], "supported_features": []}, - {"human_readable": "DHL eCommerce Solutions", "name": "dhlecommercesolutions", - "predefined_packages": [], "service_levels": [{"carrier": "dhlecommercesolutions", - "description": null, "dimensions": [], "human_readable": null, "max_weight": + {"human_readable": "DHL eCommerce", "name": "dhlecommercesolutions", "predefined_packages": + [], "service_levels": [{"carrier": "dhlecommercesolutions", "description": + null, "dimensions": [], "human_readable": "DHL SM Parcel Expedited", "max_weight": null, "name": "DHLParcelExpedited"}, {"carrier": "dhlecommercesolutions", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DHLParcelExpeditedMax"}, {"carrier": "dhlecommercesolutions", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DHLParcelGround"}, {"carrier": "dhlecommercesolutions", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "DHLBPMExpedited"}, {"carrier": "dhlecommercesolutions", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "DHLBPMGround"}, + "description": null, "dimensions": [], "human_readable": "DHL SM Parcel Expedited + Max", "max_weight": null, "name": "DHLParcelExpeditedMax"}, {"carrier": "dhlecommercesolutions", + "description": null, "dimensions": [], "human_readable": "DHL SM Parcel Ground", + "max_weight": null, "name": "DHLParcelGround"}, {"carrier": "dhlecommercesolutions", + "description": null, "dimensions": [], "human_readable": "DHL Parcel International + Direct", "max_weight": null, "name": "DHLParcelInternationalDirect"}, {"carrier": + "dhlecommercesolutions", "description": null, "dimensions": [], "human_readable": + "DHL Parcel International Standard", "max_weight": null, "name": "DHLParcelInternationalStandard"}, {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "DHLParcelInternationalDirect"}, + "human_readable": "DHL Packet International", "max_weight": null, "name": + "DHLPacketInternational"}, {"carrier": "dhlecommercesolutions", "description": + null, "dimensions": [], "human_readable": "DHL Parcel International Direct + Priority", "max_weight": null, "name": "DHLParcelInternationalDirectPriority"}, {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "DHLParcelInternationalStandard"}, + "human_readable": "DHL Parcel International Direct Standard", "max_weight": + null, "name": "DHLParcelInternationalDirectStandard"}, {"carrier": "dhlecommercesolutions", + "description": null, "dimensions": [], "human_readable": "DHL Parcel International + Direct SMB", "max_weight": null, "name": "DHLParcelInternationalDirectSMB"}, {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "DHLPacketInternational"}, + "human_readable": "DHL Parcel International Standard SMB", "max_weight": null, + "name": "DHLParcelInternationalStandardSMB"}, {"carrier": "dhlecommercesolutions", + "description": null, "dimensions": [], "human_readable": "DHL SM Bound Printed + Matter Expedited", "max_weight": null, "name": "DHLBPMExpedited"}, {"carrier": + "dhlecommercesolutions", "description": null, "dimensions": [], "human_readable": + "DHL SM Bound Printed Matter Ground", "max_weight": null, "name": "DHLBPMGround"}, {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "DHLParcelInternationalDirectPriority"}, + "human_readable": "DHL Packet IPA", "max_weight": null, "name": "DHLPacketIPA"}, {"carrier": "dhlecommercesolutions", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "DHLParcelInternationalDirectStandard"}], - "shipment_options": [], "supported_features": []}, {"human_readable": "DHL - Express", "name": "dhlexpress", "predefined_packages": [{"carrier": "dhlexpress", + "human_readable": "DHL SM Parcel Return Ground", "max_weight": null, "name": + "DHLSmartMailParcelReturnGround"}, {"carrier": "dhlecommercesolutions", "description": + null, "dimensions": [], "human_readable": "DHL SM Parcel Return Plus", "max_weight": + null, "name": "DHLSmartMailParcelReturnPlus"}, {"carrier": "dhlecommercesolutions", + "description": null, "dimensions": [], "human_readable": "DHL SM Parcel Return + Light", "max_weight": null, "name": "DHLSmartMailParcelReturnLight"}], "shipment_options": + [], "supported_features": []}, {"human_readable": "DHL Express", "name": "dhlexpress", + "predefined_packages": [{"carrier": "dhlexpress", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "JumboDocument"}, + {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "JumboParcel"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "JumboDocument"}, {"carrier": "dhlexpress", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "JumboParcel"}, + null, "name": "Document"}, {"carrier": "dhlexpress", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "DHLFlyer"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Document"}, {"carrier": "dhlexpress", "description": + null, "max_weight": null, "name": "Domestic"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "DHLFlyer"}, {"carrier": "dhlexpress", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Domestic"}, {"carrier": - "dhlexpress", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "ExpressDocument"}, {"carrier": "dhlexpress", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DHLExpressEnvelope"}, {"carrier": "dhlexpress", "description": + "ExpressDocument"}, {"carrier": "dhlexpress", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "DHLExpressEnvelope"}, + {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "JumboBox"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "JumboBox"}, {"carrier": "dhlexpress", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "JumboJuniorDocument"}, + "JumboJuniorDocument"}, {"carrier": "dhlexpress", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "JuniorJumboBox"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "JuniorJumboBox"}, {"carrier": "dhlexpress", + null, "max_weight": null, "name": "JumboJuniorParcel"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "JumboJuniorParcel"}, {"carrier": "dhlexpress", "description": + null, "name": "OtherDHLPackaging"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "OtherDHLPackaging"}, {"carrier": "dhlexpress", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Parcel"}, {"carrier": - "dhlexpress", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "YourPackaging"}], "service_levels": [{"carrier": - "dhlexpress", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "BreakBulkEconomy"}, {"carrier": "dhlexpress", + "Parcel"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "YourPackaging"}], "service_levels": + [{"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "BreakBulkEconomy"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "BreakBulkExpress"}, {"carrier": "dhlexpress", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": @@ -890,68 +920,72 @@ interactions: "description": null, "name": "labels", "supported": null}, {"carrier": "doordash", "description": null, "name": "rating", "supported": true}, {"carrier": "doordash", "description": null, "name": "refunds", "supported": null}]}, {"human_readable": - "DPD", "name": "dpd", "predefined_packages": [], "service_levels": [{"carrier": - "dpd", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DPDCLASSIC"}, {"carrier": "dpd", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "DPD8:30"}, {"carrier": - "dpd", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DPD10:00"}, {"carrier": "dpd", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "DPD12:00"}, {"carrier": - "dpd", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DPD18:00"}, {"carrier": "dpd", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "DPDEXPRESS"}, {"carrier": - "dpd", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "DPDPARCELLETTER"}, {"carrier": "dpd", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "DPDPARCELLETTERPLUS"}, - {"carrier": "dpd", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "DPDINTERNATIONALMAIL"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "DPD NL", "name": "dpdnl", - "predefined_packages": [], "service_levels": [{"carrier": "dpdnl", "description": - null, "dimensions": [], "human_readable": "DPDNL Classic", "max_weight": null, - "name": "DPDNL_CLASSIC"}, {"carrier": "dpdnl", "description": null, "dimensions": - [], "human_readable": "Express 10", "max_weight": null, "name": "EXPRESS_10"}, - {"carrier": "dpdnl", "description": null, "dimensions": [], "human_readable": - "Express 12", "max_weight": null, "name": "EXPRESS_12"}, {"carrier": "dpdnl", - "description": null, "dimensions": [], "human_readable": "Express 18", "max_weight": - null, "name": "EXPRESS_18"}, {"carrier": "dpdnl", "description": null, "dimensions": - [], "human_readable": "International Express", "max_weight": null, "name": - "INTERNATIONAL_EXPRESS"}, {"carrier": "dpdnl", "description": null, "dimensions": - [], "human_readable": "DPDNL B2C Home", "max_weight": null, "name": "DPDNL_HOME"}, + "Douglas", "name": "douglas", "predefined_packages": [], "service_levels": + [{"carrier": "douglas", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Next Day"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "DPD", "name": "dpd", "predefined_packages": [], "service_levels": + [{"carrier": "dpd", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "DPDCLASSIC"}, {"carrier": "dpd", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "DPD8:30"}, {"carrier": "dpd", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "DPD10:00"}, {"carrier": "dpd", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "DPD12:00"}, {"carrier": "dpd", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "DPD18:00"}, {"carrier": "dpd", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "DPDEXPRESS"}, {"carrier": "dpd", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "DPDPARCELLETTER"}, {"carrier": "dpd", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "DPDPARCELLETTERPLUS"}, {"carrier": "dpd", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "DPDINTERNATIONALMAIL"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "DPD + NL", "name": "dpdnl", "predefined_packages": [], "service_levels": [{"carrier": + "dpdnl", "description": null, "dimensions": [], "human_readable": "DPDNL Classic", + "max_weight": null, "name": "DPDNL_CLASSIC"}, {"carrier": "dpdnl", "description": + null, "dimensions": [], "human_readable": "Express 10", "max_weight": null, + "name": "EXPRESS_10"}, {"carrier": "dpdnl", "description": null, "dimensions": + [], "human_readable": "Express 12", "max_weight": null, "name": "EXPRESS_12"}, {"carrier": "dpdnl", "description": null, "dimensions": [], "human_readable": - "DPDNL B2C Shop", "max_weight": null, "name": "DPDNL_TO_SHOP"}], "shipment_options": - [], "supported_features": [{"carrier": "dpdnl", "description": null, "name": - "commercial_invoices", "supported": false}, {"carrier": "dpdnl", "description": - null, "name": "labels", "supported": true}, {"carrier": "dpdnl", "description": - null, "name": "orders", "supported": false}, {"carrier": "dpdnl", "description": - null, "name": "pickups", "supported": false}, {"carrier": "dpdnl", "description": - null, "name": "rating", "supported": true}, {"carrier": "dpdnl", "description": - null, "name": "refunds", "supported": true}, {"carrier": "dpdnl", "description": - null, "name": "returns", "supported": false}, {"carrier": "dpdnl", "description": - null, "name": "scanforms", "supported": false}, {"carrier": "dpdnl", "description": - null, "name": "sort_codes", "supported": false}, {"carrier": "dpdnl", "description": - null, "name": "test_environment", "supported": true}]}, {"human_readable": - "DPD UK", "name": "dpduk", "predefined_packages": [{"carrier": "dpduk", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Parcel"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Pallet"}, {"carrier": "dpduk", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ExpressPak"}, {"carrier": "dpduk", "description": null, "dimensions": [], - "human_readable": null, "max_weight": null, "name": "FreightParcel"}, {"carrier": + "Express 18", "max_weight": null, "name": "EXPRESS_18"}, {"carrier": "dpdnl", + "description": null, "dimensions": [], "human_readable": "International Express", + "max_weight": null, "name": "INTERNATIONAL_EXPRESS"}, {"carrier": "dpdnl", + "description": null, "dimensions": [], "human_readable": "DPDNL B2C Home", + "max_weight": null, "name": "DPDNL_HOME"}, {"carrier": "dpdnl", "description": + null, "dimensions": [], "human_readable": "DPDNL B2C Shop", "max_weight": + null, "name": "DPDNL_TO_SHOP"}], "shipment_options": [], "supported_features": + [{"carrier": "dpdnl", "description": null, "name": "commercial_invoices", + "supported": false}, {"carrier": "dpdnl", "description": null, "name": "labels", + "supported": true}, {"carrier": "dpdnl", "description": null, "name": "orders", + "supported": false}, {"carrier": "dpdnl", "description": null, "name": "pickups", + "supported": false}, {"carrier": "dpdnl", "description": null, "name": "rating", + "supported": true}, {"carrier": "dpdnl", "description": null, "name": "refunds", + "supported": true}, {"carrier": "dpdnl", "description": null, "name": "returns", + "supported": false}, {"carrier": "dpdnl", "description": null, "name": "scanforms", + "supported": false}, {"carrier": "dpdnl", "description": null, "name": "sort_codes", + "supported": false}, {"carrier": "dpdnl", "description": null, "name": "test_environment", + "supported": true}]}, {"human_readable": "DPD UK", "name": "dpduk", "predefined_packages": + [{"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Parcel"}, {"carrier": "dpduk", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "Pallet"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "ExpressPak"}, {"carrier": "dpduk", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "FreightParcel"}, {"carrier": "dpduk", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Freight"}], "service_levels": + [{"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "AirClassicInternationalAir"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Freight"}], "service_levels": [{"carrier": "dpduk", "description": + null, "name": "AirExpressInternationalAir"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "AirClassicInternationalAir"}, {"carrier": "dpduk", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "AirExpressInternationalAir"}, - {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ExpresspakDpd10:30"}, {"carrier": "dpduk", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ExpresspakDpd12:00"}, {"carrier": "dpduk", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "ExpresspakDpdClassic"}, + "ExpresspakDpd10:30"}, {"carrier": "dpduk", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "ExpresspakDpd12:00"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ExpresspakDpdNextDay"}, {"carrier": "dpduk", + null, "max_weight": null, "name": "ExpresspakDpdClassic"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ExpresspakSaturday"}, {"carrier": "dpduk", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "ExpresspakSaturday10:30"}, + null, "name": "ExpresspakDpdNextDay"}, {"carrier": "dpduk", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "ExpresspakSaturday"}, {"carrier": "dpduk", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "ExpresspakSaturday10:30"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "ExpresspakSaturday12:00"}, {"carrier": "dpduk", "description": null, "dimensions": [], "human_readable": null, "max_weight": @@ -1201,7 +1235,7 @@ interactions: "max_weight": null, "name": "INTERNATIONAL_FIRST"}, {"carrier": "fedex", "description": "1-3 business days, time definite to select markets", "dimensions": null, "human_readable": "FedEx International (First)", "max_weight": null, "name": - "INTERNATIONAL_PRIORITY"}, {"carrier": "fedex", "description": "By 10:30am + "FEDEX_INTERNATIONAL_PRIORITY"}, {"carrier": "fedex", "description": "By 10:30am the next business day, Saturday delivery", "dimensions": null, "human_readable": "FedEx Priority Overnight", "max_weight": null, "name": "PRIORITY_OVERNIGHT"}, {"carrier": "fedex", "description": "2-7 business days; Sunday Delivery to @@ -1275,30 +1309,27 @@ interactions: null, "name": "scheduled"}], "shipment_options": [], "supported_features": []}, {"human_readable": "GLS", "name": "gls", "predefined_packages": [], "service_levels": [{"carrier": "gls", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "CaliforniaParcelService"}, {"carrier": + null, "max_weight": null, "name": "EarlyPriorityOvernight"}, {"carrier": "gls", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "PriorityOvernight"}, {"carrier": "gls", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "CaliforniaParcelService"}, + {"carrier": "gls", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "SaturdayDeliveryService"}, {"carrier": "gls", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "EarlyPriorityOvernight"}, {"carrier": "gls", "description": + null, "name": "EarlySaturdayService"}, {"carrier": "gls", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "NoonPriorityService"}], + "shipment_options": [], "supported_features": []}, {"human_readable": "GSO", + "name": "gso", "predefined_packages": [], "service_levels": [{"carrier": "gso", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "EarlyPriorityOvernight"}, {"carrier": "gso", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "EarlySaturdayService"}, {"carrier": "gls", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Ground"}, {"carrier": - "gls", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Overnight"}, {"carrier": "gls", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "PriorityOvernight"}, - {"carrier": "gls", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "SaturdayDeliveryService"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "GSO", "name": "gso", "predefined_packages": - [], "service_levels": [{"carrier": "gso", "description": null, "dimensions": + "PriorityOvernight"}, {"carrier": "gso", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "CaliforniaParcelService"}, {"carrier": "gso", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "EarlyPriorityOvernight"}, {"carrier": "gso", - "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "max_weight": null, "name": "SaturdayDeliveryService"}, {"carrier": + "gso", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "EarlySaturdayService"}, {"carrier": "gso", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "Ground"}, - {"carrier": "gso", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Overnight"}, {"carrier": "gso", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "PriorityOvernight"}, {"carrier": "gso", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "SaturdayDeliveryService"}], + "dimensions": [], "human_readable": null, "max_weight": null, "name": "NoonPriorityService"}], "shipment_options": [], "supported_features": []}, {"human_readable": "Hailify", "name": "hailify", "predefined_packages": [], "service_levels": [{"carrier": "hailify", "description": null, "dimensions": [], "human_readable": null, @@ -1491,13 +1522,15 @@ interactions: "supported": true}]}, {"human_readable": "Maersk", "name": "maersk", "predefined_packages": [], "service_levels": [{"carrier": "maersk", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "Maersk-3-Day"}], - "shipment_options": [], "supported_features": []}, {"human_readable": "OnTracV3", - "name": "ontracv3", "predefined_packages": [{"carrier": "ontracv3", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Letter"}], "service_levels": [{"carrier": "ontracv3", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "GRND"}, - {"carrier": "ontracv3", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Next_Day"}], "shipment_options": [], "supported_features": + "shipment_options": [], "supported_features": []}, {"human_readable": "NextDayExpress", + "name": "nextdayexpress", "predefined_packages": [], "service_levels": [{"carrier": + "nextdayexpress", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "N2D"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "OnTracV3", "name": "ontracv3", "predefined_packages": + [{"carrier": "ontracv3", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Letter"}], "service_levels": [{"carrier": + "ontracv3", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "GRND"}], "shipment_options": [], "supported_features": []}, {"human_readable": "Optima", "name": "optima", "predefined_packages": [], "service_levels": [{"carrier": "optima", "description": null, "dimensions": ["Maximum length: 48in", "Maximum width: 32in", "Maximum height: 32in"], "human_readable": @@ -1628,68 +1661,99 @@ interactions: [], "supported_features": []}, {"human_readable": "PARCLL", "name": "parcll", "predefined_packages": [], "service_levels": [{"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "CADOECOEA (CA Domestic Economy East)"}, {"carrier": "parcll", "description": + "CADOECOEA (Canada Domestic Economy East)"}, {"carrier": "parcll", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "CADOECOWE (Canada Domestic Economy West)"}, {"carrier": "parcll", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "CAECONE (USA to Canada Economy Northeast)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "CADOECOWE (CA Domestic Economy West)"}, {"carrier": "parcll", "description": + "CAECOWE (USA to Canada Economy West)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "CAECOCE (US to CA Economy)"}, {"carrier": "parcll", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "CAECONE - (US to CA Economy)"}, {"carrier": "parcll", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "CAECOWE (US to CA - Economy)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ECOCE (Economy Central)"}, {"carrier": + "ECOCE (Economy Central)"}, {"carrier": "parcll", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "ECOEA (Economy East)"}, + {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "ECONE (Economy Northeast)"}, {"carrier": + "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "ECOSO (Economy South)"}, {"carrier": "parcll", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "ECOWE (Economy West)"}, {"carrier": "parcll", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "EUECONE (USA to EU + Economy Northeast)"}, {"carrier": "parcll", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "EXPNE (Expedited + Northeast)"}, {"carrier": "parcll", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "EXPWE (Expedited West)"}, + {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "REGCE (Regional Central)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "ECOEA (Economy East)"}, {"carrier": "parcll", "description": + null, "name": "REGEA (Regional East)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "ECONE (Economy Northeast)"}, {"carrier": "parcll", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "ECOSO (Economy South)"}, + "REGNE (Regional Northeast)"}, {"carrier": "parcll", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "REGSO + (Regional South)"}, {"carrier": "parcll", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "REGWE (Regional West)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "ECOWE (Economy West)"}, {"carrier": "parcll", + null, "max_weight": null, "name": "STDWE (Standard West LA)"}, {"carrier": + "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "STDSL (Standard SL Salt Lake City)"}, {"carrier": "parcll", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "STDCE (Standard Central ORD/Chicago)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "EUECOWE (US to Europe Economy)"}, {"carrier": "parcll", "description": + null, "name": "STDNJ (Standard NJ New Jersey)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "EXPBNE (Expedited Northeast)"}, {"carrier": "parcll", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "EXPWE - (Expedited West)"}, {"carrier": "parcll", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "REGCE (Regional Central)"}, - {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "REGEA (Regional East)"}, {"carrier": "parcll", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "REGNE (Regional Northeast)"}, {"carrier": "parcll", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "REGSO (Regional South)"}, {"carrier": "parcll", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "REGWE (Regional West)"}], - "shipment_options": [], "supported_features": []}, {"human_readable": "Passport", - "name": "passportglobal", "predefined_packages": [], "service_levels": [], - "shipment_options": [], "supported_features": []}, {"human_readable": "PostNL", - "name": "postnl", "predefined_packages": [], "service_levels": [], "shipment_options": - [], "supported_features": []}, {"human_readable": "Purolator", "name": "purolator", - "predefined_packages": [{"carrier": "purolator", "description": null, "dimensions": - [], "human_readable": "CustomerPackaging", "max_weight": null, "name": "CUSTOMERPACKAGING"}, + "STDNE (Standard Northeast New York/JFK)"}, {"carrier": "parcll", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "STDEA (Standard East ATL)"}, {"carrier": "parcll", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "STDSE (Standard Southeast + Miami)"}, {"carrier": "parcll", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "STDSO (Standard South DFW/Dallas)"}, {"carrier": + "parcll", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "USECOCA (Canada to USA Economy East)"}, {"carrier": "parcll", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "GBECONE (USA to UK Economy Northeast)"}, {"carrier": "parcll", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "EXPNJ (Expedited New Jersey)"}], "shipment_options": [], "supported_features": + []}, {"human_readable": "Passport Global", "name": "passportglobal", "predefined_packages": + [], "service_levels": [{"carrier": "passportglobal", "description": "PriorityDdpDelcon", + "dimensions": null, "human_readable": "Priority DDP Delcon", "max_weight": + null, "name": "PriorityDdpDelcon"}, {"carrier": "passportglobal", "description": + "Priority DDP", "dimensions": null, "human_readable": "Priority DDP", "max_weight": + null, "name": "PriorityDdp"}, {"carrier": "passportglobal", "description": + "ePacket DDP", "dimensions": null, "human_readable": "ePacket DDP", "max_weight": + null, "name": "epacketDdp"}, {"carrier": "passportglobal", "description": + "Express DDP", "dimensions": null, "human_readable": "Express DDP", "max_weight": + null, "name": "ExpressDdp"}, {"carrier": "passportglobal", "description": + "Priority DDU Delcon", "dimensions": null, "human_readable": "Priority DDU + Delcon", "max_weight": null, "name": "PriorityDduDelcon"}, {"carrier": "passportglobal", + "description": "Priority DDU", "dimensions": null, "human_readable": "Priority + DDU", "max_weight": null, "name": "PriorityDdu"}], "shipment_options": [], + "supported_features": []}, {"human_readable": "PostNL", "name": "postnl", + "predefined_packages": [], "service_levels": [], "shipment_options": [], "supported_features": + []}, {"human_readable": "Purolator", "name": "purolator", "predefined_packages": + [{"carrier": "purolator", "description": null, "dimensions": [], "human_readable": + "CustomerPackaging", "max_weight": null, "name": "CUSTOMERPACKAGING"}, {"carrier": + "purolator", "description": null, "dimensions": [], "human_readable": "ExpressPack", + "max_weight": null, "name": "EXPRESSPACK"}, {"carrier": "purolator", "description": + null, "dimensions": [], "human_readable": "ExpressBox", "max_weight": null, + "name": "EXPRESSBOX"}, {"carrier": "purolator", "description": null, "dimensions": + [], "human_readable": "ExpressEnvelope", "max_weight": null, "name": "EXPRESSENVELOPE"}], + "service_levels": [{"carrier": "purolator", "description": null, "dimensions": + [], "human_readable": "Purolator Express", "max_weight": null, "name": "PurolatorExpress"}, {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": - "ExpressPack", "max_weight": null, "name": "EXPRESSPACK"}, {"carrier": "purolator", - "description": null, "dimensions": [], "human_readable": "ExpressBox", "max_weight": - null, "name": "EXPRESSBOX"}, {"carrier": "purolator", "description": null, - "dimensions": [], "human_readable": "ExpressEnvelope", "max_weight": null, - "name": "EXPRESSENVELOPE"}], "service_levels": [{"carrier": "purolator", "description": - null, "dimensions": [], "human_readable": "Purolator Express", "max_weight": - null, "name": "PurolatorExpress"}, {"carrier": "purolator", "description": - null, "dimensions": [], "human_readable": "Purolator Express 12PM", "max_weight": - null, "name": "PurolatorExpress12PM"}, {"carrier": "purolator", "description": - null, "dimensions": [], "human_readable": "Purolator Express Pack 12PM", "max_weight": - null, "name": "PurolatorExpressPack12PM"}, {"carrier": "purolator", "description": - null, "dimensions": [], "human_readable": "Purolator Express Box 12PM", "max_weight": - null, "name": "PurolatorExpressBox12PM"}, {"carrier": "purolator", "description": - null, "dimensions": [], "human_readable": "Purolator Express Envelope 12PM", - "max_weight": null, "name": "PurolatorExpressEnvelope12PM"}, {"carrier": "purolator", - "description": null, "dimensions": [], "human_readable": "Purolator Express - 10:30AM", "max_weight": null, "name": "PurolatorExpress1030AM"}, {"carrier": - "purolator", "description": null, "dimensions": [], "human_readable": "Purolator - Express 9AM", "max_weight": null, "name": "PurolatorExpress9AM"}, {"carrier": - "purolator", "description": null, "dimensions": [], "human_readable": "Purolator - Express Box", "max_weight": null, "name": "PurolatorExpressBox"}, {"carrier": - "purolator", "description": null, "dimensions": [], "human_readable": "Purolator - Express Box 10:30AM", "max_weight": null, "name": "PurolatorExpressBox1030AM"}, + "Purolator Express 12PM", "max_weight": null, "name": "PurolatorExpress12PM"}, + {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": + "Purolator Express Pack 12PM", "max_weight": null, "name": "PurolatorExpressPack12PM"}, + {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": + "Purolator Express Box 12PM", "max_weight": null, "name": "PurolatorExpressBox12PM"}, + {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": + "Purolator Express Envelope 12PM", "max_weight": null, "name": "PurolatorExpressEnvelope12PM"}, + {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": + "Purolator Express 10:30AM", "max_weight": null, "name": "PurolatorExpress1030AM"}, + {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": + "Purolator Express 9AM", "max_weight": null, "name": "PurolatorExpress9AM"}, + {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": + "Purolator Express Box", "max_weight": null, "name": "PurolatorExpressBox"}, + {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": + "Purolator Express Box 10:30AM", "max_weight": null, "name": "PurolatorExpressBox1030AM"}, {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": "Purolator Express Box 9AM", "max_weight": null, "name": "PurolatorExpressBox9AM"}, {"carrier": "purolator", "description": null, "dimensions": [], "human_readable": @@ -1819,71 +1883,75 @@ interactions: "supported": true}]}, {"human_readable": "Quick", "name": "quick", "predefined_packages": [], "service_levels": [{"carrier": "quick", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "Routed"}], "shipment_options": - [], "supported_features": []}, {"human_readable": "Royal Mail", "name": "royalmail", - "predefined_packages": [{"carrier": "royalmail", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "LARGELETTER"}, {"carrier": - "royalmail", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "SMALLPARCEL"}, {"carrier": "royalmail", "description": + [], "supported_features": []}, {"human_readable": "Rover", "name": "rover", + "predefined_packages": [], "service_levels": [{"carrier": "rover", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "MEDIUMPARCEL"}, {"carrier": "royalmail", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "LETTER"}, {"carrier": - "royalmail", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "PRINTEDPAPER"}], "service_levels": [{"carrier": - "royalmail", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "InternationalPriority"}, {"carrier": "royalmail", + "WeSh-Vape"}], "shipment_options": [], "supported_features": []}, {"human_readable": + "Royal Mail", "name": "royalmail", "predefined_packages": [{"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "InternationalEconomy"}, {"carrier": "royalmail", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "InternationalStandard"}, {"carrier": "royalmail", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "InternationalTrackedAndSigned"}, + null, "name": "LARGELETTER"}, {"carrier": "royalmail", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "SMALLPARCEL"}, + {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "MEDIUMPARCEL"}, {"carrier": "royalmail", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "LETTER"}, {"carrier": "royalmail", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "PRINTEDPAPER"}], + "service_levels": [{"carrier": "royalmail", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "InternationalPriority"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "InternationalTracked"}, {"carrier": "royalmail", + null, "max_weight": null, "name": "InternationalEconomy"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "InternationalSigned"}, {"carrier": "royalmail", "description": + null, "name": "InternationalStandard"}, {"carrier": "royalmail", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "InternationalTrackedAndSigned"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "AccountMail"}, {"carrier": "royalmail", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "RoyalMailUnsigned"}, + "InternationalTracked"}, {"carrier": "royalmail", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "InternationalSigned"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "RoyalMail"}, {"carrier": "royalmail", "description": + null, "max_weight": null, "name": "AccountMail"}, {"carrier": "royalmail", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "RoyalMailUnsigned"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "SpecialDeliveryGuaranteed"}, {"carrier": "royalmail", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "SpecialDeliveryGuaranteed1pm"}, + "RoyalMail"}, {"carrier": "royalmail", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "SpecialDeliveryGuaranteed"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "SpecialDeliveryGuaranteed9am"}, {"carrier": + null, "max_weight": null, "name": "SpecialDeliveryGuaranteed1pm"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "StandardLetter"}, {"carrier": "royalmail", "description": + "max_weight": null, "name": "SpecialDeliveryGuaranteed9am"}, {"carrier": "royalmail", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "StandardLetter"}, {"carrier": "royalmail", "description": null, + "dimensions": [], "human_readable": null, "max_weight": null, "name": "Tracked24"}, + {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": + null, "max_weight": null, "name": "Tracked24HighVolume"}, {"carrier": "royalmail", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "Tracked24HighVolumeSignature"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Tracked24"}, {"carrier": "royalmail", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Tracked24HighVolume"}, + "Tracked24LBT"}, {"carrier": "royalmail", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Tracked24SignatureLBT"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Tracked24HighVolumeSignature"}, {"carrier": - "royalmail", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "Tracked24LBT"}, {"carrier": "royalmail", "description": + null, "max_weight": null, "name": "Tracked48LBT"}, {"carrier": "royalmail", + "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "Tracked48SignatureLBT"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Tracked24SignatureLBT"}, {"carrier": "royalmail", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Tracked48LBT"}, {"carrier": + "Tracked24Signature"}, {"carrier": "royalmail", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "Tracked48"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "Tracked48SignatureLBT"}, {"carrier": "royalmail", + "max_weight": null, "name": "Tracked48HighVolume"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "Tracked24Signature"}, {"carrier": "royalmail", "description": + null, "name": "Tracked48HighVolumeSignature"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "Tracked48"}, {"carrier": "royalmail", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "Tracked48HighVolume"}, + "Tracked48Signature"}, {"carrier": "royalmail", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "TrackedReturns24"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "Tracked48HighVolumeSignature"}, {"carrier": - "royalmail", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "Tracked48Signature"}, {"carrier": "royalmail", + null, "max_weight": null, "name": "TrackedReturns48"}, {"carrier": "royalmail", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "TrackedReturns24"}, {"carrier": "royalmail", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "TrackedReturns48"}, {"carrier": "royalmail", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "CrossBorderImportTracked48HighVolume"}], - "shipment_options": [{"carrier": "royalmail", "deprecated": false, "description": - null, "human_readable": "Carrier Insurance Amount", "name": "carrier_insurance_amount", - "type": "float"}, {"carrier": "royalmail", "deprecated": false, "description": - null, "human_readable": "Carrier Notification Email", "name": "carrier_notification_email", - "type": "boolean"}, {"carrier": "royalmail", "deprecated": false, "description": - null, "human_readable": "Carrier Notification Sms", "name": "carrier_notification_sms", + null, "name": "CrossBorderImportTracked48HighVolume"}], "shipment_options": + [{"carrier": "royalmail", "deprecated": false, "description": null, "human_readable": + "Carrier Insurance Amount", "name": "carrier_insurance_amount", "type": "float"}, + {"carrier": "royalmail", "deprecated": false, "description": null, "human_readable": + "Carrier Notification Email", "name": "carrier_notification_email", "type": + "boolean"}, {"carrier": "royalmail", "deprecated": false, "description": null, + "human_readable": "Carrier Notification Sms", "name": "carrier_notification_sms", "type": "boolean"}, {"carrier": "royalmail", "deprecated": true, "description": null, "human_readable": "Date Advance", "name": "date_advance", "type": "integer"}, {"carrier": "royalmail", "deprecated": true, "description": null, "human_readable": @@ -1926,8 +1994,512 @@ interactions: "supported": true}, {"carrier": "royalmail", "description": null, "name": "sort_codes", "supported": true}, {"carrier": "royalmail", "description": null, "name": "test_environment", "supported": true}]}, {"human_readable": - "SEKO OmniParcel", "name": "sekoomniparcel", "predefined_packages": [{"carrier": - "sekoomniparcel", "description": null, "dimensions": [], "human_readable": + "RoyalMailV3", "name": "royalmailv3", "predefined_packages": [{"carrier": + "royalmailv3", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "LargeLetter"}, {"carrier": "royalmailv3", "description": + null, "dimensions": [], "human_readable": null, "max_weight": null, "name": + "Letter"}, {"carrier": "royalmailv3", "description": null, "dimensions": [], + "human_readable": null, "max_weight": null, "name": "Parcel"}, {"carrier": + "royalmailv3", "description": null, "dimensions": [], "human_readable": null, + "max_weight": null, "name": "PrintedPapers"}], "service_levels": [{"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, + Combined < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": + "DEImportRoyalMail24PlusParcelsWeekendService"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], "human_readable": + null, "max_weight": 26.46, "name": "DEImportStandard24LargeLetter"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], + "human_readable": null, "max_weight": 26.46, "name": "DEImportStandard24LargeLetterWeekendService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "DEImportStandard24Parcel"}, {"carrier": "royalmailv3", "description": + null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined < 40.94in"], "human_readable": + null, "max_weight": 1058.2, "name": "DEImportStandard24ParcelWeekendService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 26.46, "name": "DEImportStandard48LargeLetter"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 26.46, "name": "DEImportStandard48LargeLetterWeekendService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 35.27, "name": "DEImportTracked24ParcelBoxableHighVolumeWeekendService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 35.27, "name": "DEImportTracked24ParcelBoxableWeekendService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "DEImportTracked24ParcelHighVolumeWeekendService"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, + Combined < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": + "DEImportTracked24SignatureParcelHighVolumeWeekendServiceAGE"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], + "human_readable": null, "max_weight": 35.27, "name": "DEImportTracked48ParcelBoxableHighVolumeWeekendService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 35.27, "name": "DEImportTracked48ParcelBoxableWeekendService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "DEImportTracked48ParcelHighVolumeWeekendService"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, + Combined < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": + "DEImportTracked48SignatureParcelHighVolumeAGE"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": "DEImportTracked48SignatureParcelHighVolumeWeekendServiceAGE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "DEImporttoEUMaxSortLargeLetter"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "DEImporttoEUMaxSortParcel"}, {"carrier": "royalmailv3", "description": + null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined < 40.94in"], "human_readable": + null, "max_weight": 176.37, "name": "DEImporttoEUSignedParcel"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in x 0.98in"], + "human_readable": null, "max_weight": 17.64, "name": "DEImporttoEUTrackedHighVolLargeLetter"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "DEImporttoEUTrackedParcel"}, {"carrier": "royalmailv3", "description": + null, "dimensions": ["15.0in x 12.01in x 0.98in"], "human_readable": null, + "max_weight": 17.64, "name": "DEImporttoEUTrackedSignedLargeLetter"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, + Combined < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": + "DEImporttoEUTrackedSignedParcel"}, {"carrier": "royalmailv3", "description": + null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined < 40.94in"], "human_readable": + null, "max_weight": 70.55, "name": "HMForcesMail"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 70.55, "name": "HMForcesSignedFor"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "HMForcesSpecialDelivery1000"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 70.55, "name": "HMForcesSpecialDelivery2500"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "HMForcesSpecialDelivery500"}, {"carrier": "royalmailv3", "description": + null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined < 40.94in"], "human_readable": + null, "max_weight": 1058.2, "name": "ImportDETracked24"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": "ImportDETracked24HighVolume"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 35.27, "name": "ImportDETracked24Letterboxable"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 35.27, "name": "ImportDETracked24LetterboxableHighVolume"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "ImportDETracked24SignatureHighVolumeAGE"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": "ImportDETracked24SignatureStandardAGE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "ImportDETracked48"}, {"carrier": "royalmailv3", "description": + null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined < 40.94in"], "human_readable": + null, "max_weight": 1058.2, "name": "ImportDETracked48HighVolume"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], + "human_readable": null, "max_weight": 35.27, "name": "ImportDETracked48Letterboxable"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 35.27, "name": "ImportDETracked48LetterboxableHighVolume"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "ImportDETrackedReturns24"}, {"carrier": "royalmailv3", "description": + null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined < 40.94in"], "human_readable": + null, "max_weight": 705.47, "name": "ImportDETrackedReturns48"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in x 0.98in"], + "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterCountryPricedPriority"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterCountryPricedPriorityETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterCountrySortPriority"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterMaxSortPriorityService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterMaxSortResidueStandard"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterMaxSortStandardService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterSemiTracked"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterZeroSortPriority"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterZeroSortPriorityMachine"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterZoneSortPriority"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailLargeLetterZoneSortPriorityMachine"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessMailLetterMaxSortResidueStandard"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessMailLettersMaxSortStandard"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessMailLettersZeroSortPriority"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessMailLettersZoneSortPriority"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailSignedCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailSignedExtraCompensationCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessMailSignedHighVolCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailSignedZoneSort"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailTrackedCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessMailTrackedHighVolCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailTrackedHighVolExtraCompCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailTrackedLargeLetterCountryPricedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailTrackedSignedCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessMailTrackedSignedHighVolCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailTrackedSignedHighVolExtraCompCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailTrackedSignedLargeLetterCountryPricedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailTrackedSignedZoneSort"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessMailTrackedZoneSort"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessPCTrackedSignedLargeLetterHVExtraCompCountryPricedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 1.18in"], "human_readable": null, "max_weight": 70.55, "name": "InternationalBusinessParcelPriorityCountryPricedBoxable"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 1.18in"], "human_readable": null, "max_weight": 70.55, "name": "InternationalBusinessParcelPriorityCountryPricedBoxableDDP"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessParcelTrackedCountryPriced"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in x 1.18in"], + "human_readable": null, "max_weight": 70.55, "name": "InternationalBusinessParcelTrackedCountryPricedBoxable"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 1.18in"], "human_readable": null, "max_weight": 70.55, "name": "InternationalBusinessParcelTrackedCountryPricedBoxableDDP"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 1.18in"], "human_readable": null, "max_weight": 70.55, "name": "InternationalBusinessParcelTrackedCountryPricedBoxableExtraComp"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessParcels"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 388.01, "name": "InternationalBusinessParcelsPrintDirectPriority"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 388.01, "name": "InternationalBusinessParcelsPrintDirectStandard"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, + Combined < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": + "InternationalBusinessParcelsSignedCountryPriced"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": "InternationalBusinessParcelsSignedExtraCompensationCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessParcelsSignedExtraCompensationZoneSort"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessParcelsSignedZoneSort"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, + Combined < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": + "InternationalBusinessParcelsTrackedCountryPriced"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": "InternationalBusinessParcelsTrackedCountryPricedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessParcelsTrackedDirectIrelandCountry"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessParcelsTrackedExtraCompCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessParcelsTrackedExtraCompZoneSort"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, + Combined < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": + "InternationalBusinessParcelsTrackedSignedCountryPriced"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": "InternationalBusinessParcelsTrackedSignedCountryPricedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessParcelsTrackedSignedDDP"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, + Combined < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": + "InternationalBusinessParcelsTrackedSignedExtraCompensationCountryPriced"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessParcelsTrackedSignedExtraCompensationZoneSort"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessParcelsTrackedSignedZoneSort"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, + Combined < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": + "InternationalBusinessParcelsTrackedZoneSort"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 70.55, "name": "InternationalBusinessParcelsZeroSortPriority"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "InternationalBusinessParcelsZeroSortPriorityETOE"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, + Combined < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": + "InternationalBusinessParcelsZoneSortPriorityService"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["15.0in x 12.01in x 0.98in"], "human_readable": + null, "max_weight": 17.64, "name": "InternationalBusinessPersonalCorrespondenceLargeLetterCountrySortPriorityETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessPersonalCorrespondenceLetterPriorityUntracked"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessPersonalCorrespondenceLetterPriorityUntrackedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessPersonalCorrespondenceLetterTrackedHighVolCountryPricedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessPersonalCorrespondenceLetterTrackedSignedHighVolCountryPricedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessPersonalCorrespondenceMaxSortLetter"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessPersonalCorrespondenceMaxSortResidueLargeLetter"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessPersonalCorrespondenceMaxSortResidueLetter"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessPersonalCorrespondenceSignedLargeLetterExtraCompensationCountryPricedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["9.65in x 6.5in + x 0.2in"], "human_readable": null, "max_weight": 3.53, "name": "InternationalBusinessPersonalCorrespondenceSignedLetterHighVolCountryPricedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["15.0in x 12.01in + x 0.98in"], "human_readable": null, "max_weight": 17.64, "name": "InternationalBusinessPersonalCorrespondenceTrackedLargeLetterHighVolExtraCompCountryPricedETOE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["23.62in x + 23.62in x 23.62in, Combined < 35.43in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalBusinessPrintedMatterPacket"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": "InternationalBusinessTrackedExpressNPC"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalEconomyOnAccount"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": "InternationalSignedOnAccount"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalSignedOnAccountExtraComp"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": "InternationalStandardOnAccount"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalTrackedOnAccount"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 176.37, "name": "InternationalTrackedOnAccountExtraComp"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "InternationalTrackedParcels30kg"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": "InternationalTrackedParcels30kgCPrio"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "InternationalTrackedParcels30kgETOEC"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": "InternationalTrackedParcels30kgETOEE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "InternationalTrackedParcels30kgExtraComp"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined + < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": "InternationalTrackedParcels30kgExtraCompETOEC"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "InternationalTrackedParcels30kgExtraCompETOEE"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 23.62in x 23.62in, + Combined < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": + "InternationalTrackedParcels30kgXCompCPrio"}, {"carrier": "royalmailv3", "description": + null, "dimensions": ["35.43in x 23.62in x 23.62in, Combined < 40.94in"], "human_readable": + null, "max_weight": 176.37, "name": "InternationalTrackedSignedOnAccount"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 23.62in x 23.62in, Combined < 40.94in"], "human_readable": null, "max_weight": + 176.37, "name": "InternationalTrackedSignedOnAccountExtraComp"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, + Combined < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": + "ParcelpostFlatRateAnnual"}, {"carrier": "royalmailv3", "description": null, + "dimensions": ["13.9in x 9.84in x 0.98in"], "human_readable": null, "max_weight": + 26.46, "name": "RM24LargeLetterAnnualFlatRate"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], "human_readable": + null, "max_weight": 26.46, "name": "RM24PresortedLargeLetterAnnualFlatRate"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "RM24PresortedParcelsAnnualFlatRate"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], "human_readable": + null, "max_weight": 26.46, "name": "RM48LargeLetterAnnualFlatRate"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], + "human_readable": null, "max_weight": 26.46, "name": "RM48PresortedLargeLetterAnnualFlatRate"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "RM48PresortedParcelsAnnualFlatRate"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["24.02in x 18.11in x 18.11in"], "human_readable": + null, "max_weight": 705.47, "name": "RoyalMail1stClass"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "RoyalMail1stClassLettersDailyRateservice"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["24.02in x + 18.11in x 18.11in"], "human_readable": null, "max_weight": 705.47, "name": + "RoyalMail1stClassSignedFor"}, {"carrier": "royalmailv3", "description": null, + "dimensions": ["13.9in x 9.84in x 0.98in"], "human_readable": null, "max_weight": + 26.46, "name": "RoyalMail24LargeLetterDailyRate"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], "human_readable": + null, "max_weight": 26.46, "name": "RoyalMail24LargeLetterFlatRate"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], + "human_readable": null, "max_weight": 26.46, "name": "RoyalMail24LargeLetterFlatRateService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "RoyalMail24PacketpostFlatRateService"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "RoyalMail24ParcelDailyRateService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "RoyalMail24ParcelSort8DailyRateService"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "RoyalMail24ParcelSort8FlatRateService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "RoyalMail24ParcelsDailyRate"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "RoyalMail24ParcelsFlatRate"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 26.46, "name": "RoyalMail24PresortedLargeLetter"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "RoyalMail24PresortedParcels"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], "human_readable": + null, "max_weight": 26.46, "name": "RoyalMail24SORT8LargeLetterAnnualFlatRate"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "RoyalMail24SORT8ParcelsAnnualFlatRate"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["24.02in x 18.11in x 18.11in"], "human_readable": + null, "max_weight": 705.47, "name": "RoyalMail2ndClass"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 35.27, "name": "RoyalMail2ndClassLettersDailyRateservice"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["24.02in x + 18.11in x 18.11in"], "human_readable": null, "max_weight": 705.47, "name": + "RoyalMail2ndClassSignedFor"}, {"carrier": "royalmailv3", "description": null, + "dimensions": ["13.9in x 9.84in x 0.98in"], "human_readable": null, "max_weight": + 26.46, "name": "RoyalMail48LargeLetterDailyRate"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], "human_readable": + null, "max_weight": 26.46, "name": "RoyalMail48LargeLetterFlatRate"}, {"carrier": + "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], + "human_readable": null, "max_weight": 26.46, "name": "RoyalMail48LargeLetterFlatRateService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "RoyalMail48PacketpostFlatRateService"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 70.55, "name": "RoyalMail48ParcelDailyRateService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "RoyalMail48ParcelSort8DailyRateService"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 70.55, "name": "RoyalMail48ParcelSort8FlatRateService"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "RoyalMail48ParcelsDailyRate"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 70.55, "name": "RoyalMail48ParcelsFlatRate"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 26.46, "name": "RoyalMail48PresortedLargeLetter"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "RoyalMail48PresortedParcels"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["13.9in x 9.84in x 0.98in"], "human_readable": + null, "max_weight": 26.46, "name": "RoyalMail48SORT8LargeLetterAnnualFlatRate"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "RoyalMail48Sort8ParcelsAnnualFlatRate"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "SpecialDeliveryGuaranteed1000"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "SpecialDeliveryGuaranteed2500"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "SpecialDeliveryGuaranteed750"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "SpecialDeliveryGuaranteedAGE1000"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "SpecialDeliveryGuaranteedAGE2500"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "SpecialDeliveryGuaranteedAGE750"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "SpecialDeliveryGuaranteedBy1PM1000"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "SpecialDeliveryGuaranteedBy1PM2500"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "SpecialDeliveryGuaranteedBy1PM750"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "SpecialDeliveryGuaranteedBy1PMAGE1000"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "SpecialDeliveryGuaranteedBy1PMAGE2500"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "SpecialDeliveryGuaranteedBy1PMAGE750"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "SpecialDeliveryGuaranteedBy1PMID1000"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "SpecialDeliveryGuaranteedBy1PMID2500"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "SpecialDeliveryGuaranteedBy1PMID750"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "SpecialDeliveryGuaranteedBy9AM1000"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 70.55, "name": "SpecialDeliveryGuaranteedBy9AM2500"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "SpecialDeliveryGuaranteedBy9AM750"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 70.55, "name": "SpecialDeliveryGuaranteedBy9AMAGE1000"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "SpecialDeliveryGuaranteedBy9AMAGE2500"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 70.55, "name": "SpecialDeliveryGuaranteedBy9AMAGE750"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "SpecialDeliveryGuaranteedBy9AMID1000"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 70.55, "name": "SpecialDeliveryGuaranteedBy9AMID2500"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 70.55, "name": "SpecialDeliveryGuaranteedBy9AMID750"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "SpecialDeliveryGuaranteedID1000"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "SpecialDeliveryGuaranteedID2500"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 705.47, "name": "SpecialDeliveryGuaranteedID750"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "Tracked24"}, {"carrier": "royalmailv3", "description": null, + "dimensions": ["35.43in x 18.11in x 18.11in, Combined < 40.94in"], "human_readable": + null, "max_weight": 1058.2, "name": "Tracked24HighVolume"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": "Tracked24HighVolumeSignatureAGE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "Tracked24SignatureAGE"}, {"carrier": "royalmailv3", "description": + null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined < 40.94in"], "human_readable": + null, "max_weight": 1058.2, "name": "Tracked48"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": "Tracked48HighVolume"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 1058.2, "name": "Tracked48HighVolumeSignatureAGE"}, {"carrier": "royalmailv3", + "description": null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined + < 40.94in"], "human_readable": null, "max_weight": 1058.2, "name": "Tracked48SignatureAGE"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 35.27, "name": "TrackedLetterBoxable24"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 35.27, "name": "TrackedLetterBoxable24HighVolume"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 35.27, "name": "TrackedLetterBoxable48"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["13.9in x 9.84in + x 0.98in"], "human_readable": null, "max_weight": 35.27, "name": "TrackedLetterBoxable48HighVolume"}, + {"carrier": "royalmailv3", "description": null, "dimensions": ["35.43in x + 18.11in x 18.11in, Combined < 40.94in"], "human_readable": null, "max_weight": + 705.47, "name": "TrackedReturns24"}, {"carrier": "royalmailv3", "description": + null, "dimensions": ["35.43in x 18.11in x 18.11in, Combined < 40.94in"], "human_readable": + null, "max_weight": 705.47, "name": "TrackedReturns48"}], "shipment_options": + [], "supported_features": [{"carrier": "royalmailv3", "description": null, + "name": "commercial_invoices", "supported": null}, {"carrier": "royalmailv3", + "description": null, "name": "labels", "supported": null}, {"carrier": "royalmailv3", + "description": null, "name": "rating", "supported": true}, {"carrier": "royalmailv3", + "description": null, "name": "refunds", "supported": null}, {"carrier": "royalmailv3", + "description": null, "name": "returns", "supported": null}, {"carrier": "royalmailv3", + "description": null, "name": "scanforms", "supported": null}, {"carrier": + "royalmailv3", "description": null, "name": "test_environment", "supported": + null}]}, {"human_readable": "SEKO OmniParcel", "name": "sekoomniparcel", "predefined_packages": + [{"carrier": "sekoomniparcel", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "Bag"}, {"carrier": "sekoomniparcel", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "Box"}, {"carrier": "sekoomniparcel", "description": null, "dimensions": [], @@ -1983,35 +2555,37 @@ interactions: "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "EconomyExpress"}], "shipment_options": [], "supported_features": []}, {"human_readable": "SmartKargo", "name": "smartkargo", "predefined_packages": - [], "service_levels": [{"carrier": "smartkargo", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "EPR"}, {"carrier": - "smartkargo", "description": null, "dimensions": [], "human_readable": null, - "max_weight": null, "name": "EPS"}, {"carrier": "smartkargo", "description": - null, "dimensions": [], "human_readable": null, "max_weight": null, "name": - "EST"}, {"carrier": "smartkargo", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "EXP"}], "shipment_options": [], "supported_features": - [{"carrier": "smartkargo", "description": null, "name": "labels", "supported": - null}, {"carrier": "smartkargo", "description": null, "name": "rating", "supported": - true}, {"carrier": "smartkargo", "description": null, "name": "refunds", "supported": - null}, {"carrier": "smartkargo", "description": null, "name": "test_environment", - "supported": null}]}, {"human_readable": "Sonic", "name": "sonic", "predefined_packages": - [], "service_levels": [{"carrier": "sonic", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "SAMEDAY"}], "shipment_options": - [], "supported_features": [{"carrier": "sonic", "description": null, "name": - "bill_on_delivery", "supported": true}, {"carrier": "sonic", "description": - null, "name": "bill_on_label_purchase", "supported": false}, {"carrier": "sonic", - "description": null, "name": "bill_on_manifest", "supported": false}, {"carrier": - "sonic", "description": null, "name": "bill_on_scan", "supported": false}, - {"carrier": "sonic", "description": null, "name": "commercial_invoices", "supported": - false}, {"carrier": "sonic", "description": null, "name": "labels", "supported": - true}, {"carrier": "sonic", "description": null, "name": "orders", "supported": - false}, {"carrier": "sonic", "description": null, "name": "pickups", "supported": - false}, {"carrier": "sonic", "description": null, "name": "rating", "supported": - true}, {"carrier": "sonic", "description": null, "name": "refunds", "supported": - true}, {"carrier": "sonic", "description": null, "name": "returns", "supported": - false}, {"carrier": "sonic", "description": null, "name": "scanforms", "supported": - false}, {"carrier": "sonic", "description": null, "name": "sort_codes", "supported": - false}, {"carrier": "sonic", "description": null, "name": "test_environment", + [], "service_levels": [{"carrier": "smartkargo", "description": "Expedited + Product, 2 business days", "dimensions": null, "human_readable": "Expedited + Product, 2 business days", "max_weight": null, "name": "EPR"}, {"carrier": + "smartkargo", "description": "eCommerce Express", "dimensions": null, "human_readable": + "eCommerce Express", "max_weight": null, "name": "EXP"}, {"carrier": "smartkargo", + "description": "eCommerce Standard", "dimensions": null, "human_readable": + "eCommerce Standard", "max_weight": null, "name": "EST"}, {"carrier": "smartkargo", + "description": "eCommerce Postal Standard", "dimensions": null, "human_readable": + "eCommerce Postal Standard", "max_weight": null, "name": "EPS"}], "shipment_options": + [], "supported_features": [{"carrier": "smartkargo", "description": null, + "name": "labels", "supported": null}, {"carrier": "smartkargo", "description": + null, "name": "rating", "supported": true}, {"carrier": "smartkargo", "description": + null, "name": "refunds", "supported": null}, {"carrier": "smartkargo", "description": + null, "name": "test_environment", "supported": null}]}, {"human_readable": + "Sonic", "name": "sonic", "predefined_packages": [], "service_levels": [{"carrier": + "sonic", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "SAMEDAY"}], "shipment_options": [], "supported_features": [{"carrier": + "sonic", "description": null, "name": "bill_on_delivery", "supported": true}, + {"carrier": "sonic", "description": null, "name": "bill_on_label_purchase", + "supported": false}, {"carrier": "sonic", "description": null, "name": "bill_on_manifest", + "supported": false}, {"carrier": "sonic", "description": null, "name": "bill_on_scan", + "supported": false}, {"carrier": "sonic", "description": null, "name": "commercial_invoices", + "supported": false}, {"carrier": "sonic", "description": null, "name": "labels", + "supported": true}, {"carrier": "sonic", "description": null, "name": "orders", + "supported": false}, {"carrier": "sonic", "description": null, "name": "pickups", + "supported": false}, {"carrier": "sonic", "description": null, "name": "rating", + "supported": true}, {"carrier": "sonic", "description": null, "name": "refunds", + "supported": true}, {"carrier": "sonic", "description": null, "name": "returns", + "supported": false}, {"carrier": "sonic", "description": null, "name": "scanforms", + "supported": false}, {"carrier": "sonic", "description": null, "name": "sort_codes", + "supported": false}, {"carrier": "sonic", "description": null, "name": "test_environment", "supported": false}]}, {"human_readable": "Spee-Dee", "name": "speedee", "predefined_packages": [], "service_levels": [{"carrier": "speedee", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "SpeeDeeDelivery"}], @@ -2025,8 +2599,17 @@ interactions: "speedx", "description": null, "name": "labels", "supported": null}, {"carrier": "speedx", "description": null, "name": "rating", "supported": true}, {"carrier": "speedx", "description": null, "name": "refunds", "supported": null}]}, {"human_readable": - "Swyft", "name": "swyft", "predefined_packages": [], "service_levels": [{"carrier": - "swyft", "description": null, "dimensions": [], "human_readable": null, "max_weight": + "Sway", "name": "sway", "predefined_packages": [], "service_levels": [{"carrier": + "sway", "description": null, "dimensions": [], "human_readable": null, "max_weight": + null, "name": "SAMEDAY"}, {"carrier": "sway", "description": null, "dimensions": + [], "human_readable": null, "max_weight": null, "name": "EXPEDITED"}], "shipment_options": + [], "supported_features": [{"carrier": "sway", "description": null, "name": + "labels", "supported": null}, {"carrier": "sway", "description": null, "name": + "rating", "supported": true}, {"carrier": "sway", "description": null, "name": + "refunds", "supported": null}, {"carrier": "sway", "description": null, "name": + "test_environment", "supported": null}]}, {"human_readable": "Swyft", "name": + "swyft", "predefined_packages": [], "service_levels": [{"carrier": "swyft", + "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "NEXTDAY"}, {"carrier": "swyft", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "SAMEDAY"}], "shipment_options": [], "supported_features": [{"carrier": "swyft", "description": null, "name": @@ -2053,19 +2636,6 @@ interactions: null, "max_weight": null, "name": "NextDay"}, {"carrier": "tforce", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "Return"}], "shipment_options": [], "supported_features": []}, {"human_readable": - "Toll", "name": "toll", "predefined_packages": [], "service_levels": [{"carrier": - "toll", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "IPEC Direct"}, {"carrier": "toll", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "IPEC Fashion"}, {"carrier": - "toll", "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "IPEC Local"}, {"carrier": "toll", "description": null, "dimensions": - [], "human_readable": null, "max_weight": null, "name": "IPEC Priority"}, - {"carrier": "toll", "description": null, "dimensions": [], "human_readable": - null, "max_weight": null, "name": "IPEC Road Express"}, {"carrier": "toll", - "description": null, "dimensions": [], "human_readable": null, "max_weight": - null, "name": "IPEC Sensitive"}, {"carrier": "toll", "description": null, - "dimensions": [], "human_readable": null, "max_weight": null, "name": "IPEC - VicEXP"}], "shipment_options": [], "supported_features": []}, {"human_readable": "UDS", "name": "uds", "predefined_packages": [], "service_levels": [{"carrier": "uds", "description": null, "dimensions": [], "human_readable": null, "max_weight": null, "name": "DeliveryService"}], "shipment_options": [], "supported_features": @@ -2235,7 +2805,7 @@ interactions: cache-control: - private, no-cache, no-store content-length: - - '165173' + - '211245' content-type: - application/json; charset=utf-8 expires: @@ -2255,20 +2825,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5c7be7885e2700170333 + - 8e8eb62b67c9fbece2b97a9100187312 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.080152' + - '0.073021' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_retrieve_carrier_metadata_with_filters.yaml b/tests/cassettes/test_retrieve_carrier_metadata_with_filters.yaml index 31ec003e..c6568ebb 100644 --- a/tests/cassettes/test_retrieve_carrier_metadata_with_filters.yaml +++ b/tests/cassettes/test_retrieve_carrier_metadata_with_filters.yaml @@ -103,27 +103,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5c7be7885e28001703a0 + - 8e8eb62a67c9fbece2b97a9200187353 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.037176' + - '0.038075' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_retrieve_estimated_delivery_date.yaml b/tests/cassettes/test_retrieve_estimated_delivery_date.yaml deleted file mode 100644 index 33cb9b10..00000000 --- a/tests/cassettes/test_retrieve_estimated_delivery_date.yaml +++ /dev/null @@ -1,240 +0,0 @@ -interactions: -- request: - body: '{"shipment": {"from_address": {"name": "Jack Sparrow", "street1": "388 - Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": - "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, - "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": - "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", - "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}}}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '496' - Content-Type: - - application/json - authorization: - - - user-agent: - - - method: POST - uri: https://api.easypost.com/v2/shipments - response: - body: - string: '{"created_at": "2024-08-15T19:54:16Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:54:16Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_26dcb71a5b4011ef800bac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:54:15+00:00", "updated_at": - "2024-08-15T19:54:15+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_fb01a644466a4afd8244cf07f2a22533", "object": - "Parcel", "created_at": "2024-08-15T19:54:15Z", "updated_at": "2024-08-15T19:54:15Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6ba4058596ba464998c219231835809b", - "object": "Rate", "created_at": "2024-08-15T19:54:16Z", "updated_at": "2024-08-15T19:54:16Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_650c70ec766344eeb228417a7dfab3c6", - "object": "Rate", "created_at": "2024-08-15T19:54:16Z", "updated_at": "2024-08-15T19:54:16Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c1486fc79edd4cd2a047c110034f8cd2", - "object": "Rate", "created_at": "2024-08-15T19:54:16Z", "updated_at": "2024-08-15T19:54:16Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_26da02725b4011ef910bac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:54:15+00:00", "updated_at": - "2024-08-15T19:54:15+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_26dcb71a5b4011ef800bac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:54:15+00:00", "updated_at": "2024-08-15T19:54:15+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_26da02725b4011ef910bac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:54:15+00:00", "updated_at": "2024-08-15T19:54:15+00:00", - "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_bba7c1f23e4e40c7994b822bea6427bd", - "object": "Shipment"}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '5804' - content-type: - - application/json; charset=utf-8 - expires: - - '0' - location: - - /api/v2/shipments/shp_bba7c1f23e4e40c7994b822bea6427bd - pragma: - - no-cache - referrer-policy: - - strict-origin-when-cross-origin - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-backend: - - easypost - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-ep-request-uuid: - - 62c1f5d866be5ce7e788626800176eca - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb39nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c - x-runtime: - - '0.996628' - x-version-label: - - easypost-202408151917-1527448f18-master - x-xss-protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - authorization: - - - user-agent: - - - method: GET - uri: https://api.easypost.com/v2/shipments/shp_bba7c1f23e4e40c7994b822bea6427bd/smartrate/delivery_date?planned_ship_date=2024-08-15 - response: - body: - string: '{"rates": [{"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": - 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 6, "percentile_99": 8}, "easypost_estimated_delivery_date": - "2024-08-19", "planned_ship_date": "2024-08-15"}, "rate": {"carrier": "USPS", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": - "2024-08-15T19:54:16Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_6ba4058596ba464998c219231835809b", - "list_currency": "USD", "list_rate": 6.4, "mode": "test", "object": "Rate", - "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.45, "service": "GroundAdvantage", - "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "updated_at": "2024-08-15T19:54:16Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 1, - "percentile_75": 2, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 4, "percentile_97": 5, "percentile_99": 6}, "easypost_estimated_delivery_date": - "2024-08-16", "planned_ship_date": "2024-08-15"}, "rate": {"carrier": "USPS", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": - "2024-08-15T19:54:16Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": 1, "est_delivery_days": 1, "id": "rate_650c70ec766344eeb228417a7dfab3c6", - "list_currency": "USD", "list_rate": 33.1, "mode": "test", "object": "Rate", - "rate": 33.1, "retail_currency": "USD", "retail_rate": 37.9, "service": "Express", - "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "updated_at": "2024-08-15T19:54:16Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, - "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 6, "percentile_99": 8}, "easypost_estimated_delivery_date": - "2024-08-19", "planned_ship_date": "2024-08-15"}, "rate": {"carrier": "USPS", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": - "2024-08-15T19:54:16Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_c1486fc79edd4cd2a047c110034f8cd2", - "list_currency": "USD", "list_rate": 8.25, "mode": "test", "object": "Rate", - "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": "Priority", - "shipment_id": "shp_bba7c1f23e4e40c7994b822bea6427bd", "updated_at": "2024-08-15T19:54:16Z"}}]}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '2336' - content-type: - - application/json; charset=utf-8 - expires: - - '0' - pragma: - - no-cache - referrer-policy: - - strict-origin-when-cross-origin - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-backend: - - easypost - x-content-type-options: - - nosniff - x-download-options: - - noopen - x-ep-request-uuid: - - 62c1f5d866be5ce9e788626800176fc4 - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb39nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c - x-runtime: - - '0.122978' - x-version-label: - - easypost-202408151917-1527448f18-master - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/cassettes/test_scanform_all.yaml b/tests/cassettes/test_scanform_all.yaml index 57e653f9..64775b76 100644 --- a/tests/cassettes/test_scanform_all.yaml +++ b/tests/cassettes/test_scanform_all.yaml @@ -16,45 +16,29 @@ interactions: uri: https://api.easypost.com/v2/scan_forms?page_size=5 response: body: - string: '{"scan_forms": [{"id": "sf_096c54c7ff404b06b6bab4b1087f3f52", "object": - "ScanForm", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", - "tracking_codes": ["9400100105807075742053"], "address": {"id": "adr_d3f4ff695b3f11efb7f6ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:51:56+00:00", "updated_at": - "2024-08-15T19:51:56+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"scan_forms": [{"id": "sf_a1082a2498034042a96617a8d79ff0c4", "object": + "ScanForm", "created_at": "2025-03-06T19:47:39Z", "updated_at": "2025-03-06T19:47:39Z", + "tracking_codes": ["9400100208303109500638"], "address": {"id": "adr_d671882efac311ef846fac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:47:29+00:00", "updated_at": + "2025-03-06T19:47:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8bf289055f0394f158ca7c0edb6f5dfbf.pdf", - "form_file_type": null, "batch_id": "batch_180b18530ca245ab824169b73b26ae6f", - "confirmation": null}, {"id": "sf_3f668f1e39ae405db1363110e7bbe3aa", "object": - "ScanForm", "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", - "tracking_codes": ["9400100105807075742909"], "address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": - "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e83ec1b26066284098b743dd4ce2be4594.pdf", - "form_file_type": null, "batch_id": "batch_18fedb84574b4787a77b7f6a3db400ce", - "confirmation": null}, {"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": - "ScanForm", "created_at": "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", - "tracking_codes": ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", - "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", - "confirmation": null}], "has_more": false}' + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20250306/e86b4473047e82445cb481f8060f4f2eec.pdf", + "form_file_type": null, "batch_id": "batch_79b95699e2644f198db68d1824c11497", + "confirmation": null}, {"id": "sf_83a81b98465f454489ad1591a897f1de", "object": + "ScanForm", "created_at": "2025-03-06T19:48:46Z", "updated_at": "2025-03-06T19:48:46Z", + "tracking_codes": [], "address": null, "status": "failed", "message": "Unable + to create manifest. USPS received too many requests in test mode, please slow + down and try again later", "form_url": null, "form_file_type": null, "batch_id": + "batch_05022d9288d947048a4f6196e6f2bf1e", "confirmation": null}], "has_more": + false}' headers: cache-control: - private, no-cache, no-store content-length: - - '2751' + - '1361' content-type: - application/json; charset=utf-8 expires: @@ -69,25 +53,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5ccae788622500175155 + - 8e8eb62767c9fc1fe2b97b9c0018ada9 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.217590' + - '0.124947' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_scanform_create.yaml b/tests/cassettes/test_scanform_create.yaml index 43847155..3fa87be1 100644 --- a/tests/cassettes/test_scanform_create.yaml +++ b/tests/cassettes/test_scanform_create.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:53:43Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742909", "updated_at": "2024-08-15T19:53:44Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_fbe8636fe1394ba596759cb9a4f5e9b1", - "object": "Parcel", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", + string: '{"id": "shp_c1dd0ad87cfc4a038e632cb27d1d88a6", "created_at": "2025-03-07T16:49:20Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505725", "updated_at": + "2025-03-07T16:49:21Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_1df63e5cfb7411efbe97ac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:49:20+00:00", "updated_at": + "2025-03-07T16:49:20+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_79c077a915e6448abd825b27b924a269", "object": + "Parcel", "created_at": "2025-03-07T16:49:20Z", "updated_at": "2025-03-07T16:49:20Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_83593ba0c4164a459047d79156830108", - "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:44Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:43Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d3cae58e4e9044e18094981fbcd152c0", + "created_at": "2025-03-07T16:49:21Z", "updated_at": "2025-03-07T16:49:21Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:49:21Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8bc57675bcf1e4a21a30e657fca4a0ab0.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8d405b9ed98dd42cea2c346f6be53e66f.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_1c112372e51140a49ae52a64b7e517de", "object": - "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dcc1d9b8707048fe8c164460942cb535", - "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_59bf09da112248c194139c8cee72eb94", - "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_6954d36c78384edf888caaf4336289f1", "object": + "Rate", "created_at": "2025-03-07T16:49:21Z", "updated_at": "2025-03-07T16:49:21Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + 1, "shipment_id": "shp_c1dd0ad87cfc4a038e632cb27d1d88a6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4ab9d13850ec497786498a69dad35da0", + "object": "Rate", "created_at": "2025-03-07T16:49:21Z", "updated_at": "2025-03-07T16:49:21Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_c1dd0ad87cfc4a038e632cb27d1d88a6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9879ecc5f3014572883ec50011ff2989", + "object": "Rate", "created_at": "2025-03-07T16:49:21Z", "updated_at": "2025-03-07T16:49:21Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_c1dd0ad87cfc4a038e632cb27d1d88a6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_dcc1d9b8707048fe8c164460942cb535", "object": - "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_9879ecc5f3014572883ec50011ff2989", "object": + "Rate", "created_at": "2025-03-07T16:49:21Z", "updated_at": "2025-03-07T16:49:21Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_48c523996d8f45c6a0b267166aea639a", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742909", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:44Z", - "updated_at": "2024-08-15T19:53:44Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier": "USPS", + 3, "shipment_id": "shp_c1dd0ad87cfc4a038e632cb27d1d88a6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_ad86ecf48b7d46b0855302218c38e280", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505725", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:49:21Z", + "updated_at": "2025-03-07T16:49:21Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_c1dd0ad87cfc4a038e632cb27d1d88a6", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzQ4YzUyMzk5NmQ4ZjQ1YzZhMGIyNjcxNjZhZWE2Mzlh"}, - "to_address": {"id": "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", + "https://track.easypost.com/djE6dHJrX2FkODZlY2Y0OGI3ZDQ2YjA4NTUzMDIyMThjMzhlMjgw"}, + "to_address": {"id": "adr_1df212a6fb7411efa452ac1f6bc539aa", "object": "Address", + "created_at": "2025-03-07T16:49:20+00:00", "updated_at": "2025-03-07T16:49:21+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": - "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_1df63e5cfb7411efbe97ac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:49:20+00:00", "updated_at": + "2025-03-07T16:49:20+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", "name": + "adr_1df212a6fb7411efa452ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:49:20+00:00", "updated_at": "2025-03-07T16:49:21+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_dce42fde655c4d969c550c16071130c4", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_dce42fde655c4d969c550c16071130c4 + - /api/v2/shipments/shp_c1dd0ad87cfc4a038e632cb27d1d88a6 pragma: - no-cache referrer-policy: @@ -138,27 +138,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cc7e788622300174e30 + - 6eaaf8fb67cb2390e2aac198000bbb99 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.021694' + - '0.865529' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"scan_form": {"shipment": [{"id": "shp_dce42fde655c4d969c550c16071130c4"}]}}' + body: '{"scan_form": {"shipment": [{"id": "shp_c1dd0ad87cfc4a038e632cb27d1d88a6"}]}}' headers: Accept: - '*/*' @@ -178,17 +178,17 @@ interactions: uri: https://api.easypost.com/v2/scan_forms response: body: - string: '{"id": "sf_3f668f1e39ae405db1363110e7bbe3aa", "object": "ScanForm", - "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", - "tracking_codes": ["9400100105807075742909"], "address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": - "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"id": "sf_8eeeea1e23b44a8388cbb85b12595f46", "object": "ScanForm", + "created_at": "2025-03-07T16:49:21Z", "updated_at": "2025-03-07T16:49:22Z", + "tracking_codes": ["9400100208303109505725"], "address": {"id": "adr_1df63e5cfb7411efbe97ac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:49:20+00:00", "updated_at": + "2025-03-07T16:49:20+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e83ec1b26066284098b743dd4ce2be4594.pdf", - "form_file_type": null, "batch_id": "batch_18fedb84574b4787a77b7f6a3db400ce", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20250307/e8f8c453570fc64e979358710bfb60dbd7.pdf", + "form_file_type": null, "batch_id": "batch_7e1ab0edb3f5426097fd37bfeb3718cb", "confirmation": null}' headers: cache-control: @@ -214,20 +214,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cc8e788622300174f3f + - 6eaaf8fb67cb2391e2aac198000bbcce x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.286183' + - '0.303094' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_scanform_get_next_page.yaml b/tests/cassettes/test_scanform_get_next_page.yaml index b9021b1a..88b2be85 100644 --- a/tests/cassettes/test_scanform_get_next_page.yaml +++ b/tests/cassettes/test_scanform_get_next_page.yaml @@ -16,45 +16,29 @@ interactions: uri: https://api.easypost.com/v2/scan_forms?page_size=5 response: body: - string: '{"scan_forms": [{"id": "sf_096c54c7ff404b06b6bab4b1087f3f52", "object": - "ScanForm", "created_at": "2024-08-15T19:52:07Z", "updated_at": "2024-08-15T19:52:07Z", - "tracking_codes": ["9400100105807075742053"], "address": {"id": "adr_d3f4ff695b3f11efb7f6ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:51:56+00:00", "updated_at": - "2024-08-15T19:51:56+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"scan_forms": [{"id": "sf_a1082a2498034042a96617a8d79ff0c4", "object": + "ScanForm", "created_at": "2025-03-06T19:47:39Z", "updated_at": "2025-03-06T19:47:39Z", + "tracking_codes": ["9400100208303109500638"], "address": {"id": "adr_d671882efac311ef846fac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:47:29+00:00", "updated_at": + "2025-03-06T19:47:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8bf289055f0394f158ca7c0edb6f5dfbf.pdf", - "form_file_type": null, "batch_id": "batch_180b18530ca245ab824169b73b26ae6f", - "confirmation": null}, {"id": "sf_3f668f1e39ae405db1363110e7bbe3aa", "object": - "ScanForm", "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", - "tracking_codes": ["9400100105807075742909"], "address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": - "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e83ec1b26066284098b743dd4ce2be4594.pdf", - "form_file_type": null, "batch_id": "batch_18fedb84574b4787a77b7f6a3db400ce", - "confirmation": null}, {"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": - "ScanForm", "created_at": "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", - "tracking_codes": ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", - "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", - "confirmation": null}], "has_more": false}' + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20250306/e86b4473047e82445cb481f8060f4f2eec.pdf", + "form_file_type": null, "batch_id": "batch_79b95699e2644f198db68d1824c11497", + "confirmation": null}, {"id": "sf_83a81b98465f454489ad1591a897f1de", "object": + "ScanForm", "created_at": "2025-03-06T19:48:46Z", "updated_at": "2025-03-06T19:48:46Z", + "tracking_codes": [], "address": null, "status": "failed", "message": "Unable + to create manifest. USPS received too many requests in test mode, please slow + down and try again later", "form_url": null, "form_file_type": null, "batch_id": + "batch_05022d9288d947048a4f6196e6f2bf1e", "confirmation": null}], "has_more": + false}' headers: cache-control: - private, no-cache, no-store content-length: - - '2751' + - '1361' content-type: - application/json; charset=utf-8 expires: @@ -69,25 +53,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5ccbe7886226001751cf + - 8e8eb62667c9fc1fe2b97bb40018ade5 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.047345' + - '0.101271' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_scanform_retrieve.yaml b/tests/cassettes/test_scanform_retrieve.yaml index 4e439431..c6b69e85 100644 --- a/tests/cassettes/test_scanform_retrieve.yaml +++ b/tests/cassettes/test_scanform_retrieve.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:53:44Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742923", "updated_at": "2024-08-15T19:53:45Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:44+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_d42002a5124a43348d65dc076d28bd8f", - "object": "Parcel", "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", + string: '{"id": "shp_b866ef7a6e0240adace767c6d42193ae", "created_at": "2025-03-07T16:51:00Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505749", "updated_at": + "2025-03-07T16:51:01Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_5944eb1bfb7411ef83983cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:51:00+00:00", "updated_at": + "2025-03-07T16:51:00+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_e9a596b81faa4b76ab8fe5f4898146c8", "object": + "Parcel", "created_at": "2025-03-07T16:51:00Z", "updated_at": "2025-03-07T16:51:00Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_90dbc71ee37c4527a43004bcc4f854c0", - "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:45Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_1c5bc270bffc47489a282fb21d603785", + "created_at": "2025-03-07T16:51:00Z", "updated_at": "2025-03-07T16:51:01Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:51:00Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8c1d8e98eb0e5413ea193e5c48897179a.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e831c879812b814ab68df3738df5be0181.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_066e670ca6864c0f92e9090d9cebe164", "object": - "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_807950a46bbe43a489b7a57b38f488bf", - "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_a542bd5cd2134b3b895e237b4b66d01e", "object": + "Rate", "created_at": "2025-03-07T16:51:00Z", "updated_at": "2025-03-07T16:51:00Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_56c61eed5d794978804e403bc5ed49e7", - "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_b866ef7a6e0240adace767c6d42193ae", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a5b15374fe6843bb8f56e18fe7ca4bee", + "object": "Rate", "created_at": "2025-03-07T16:51:00Z", "updated_at": "2025-03-07T16:51:00Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_b866ef7a6e0240adace767c6d42193ae", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_780846ba37d147c3b8faeea03c501979", + "object": "Rate", "created_at": "2025-03-07T16:51:00Z", "updated_at": "2025-03-07T16:51:00Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + 1, "shipment_id": "shp_b866ef7a6e0240adace767c6d42193ae", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_807950a46bbe43a489b7a57b38f488bf", "object": - "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_a5b15374fe6843bb8f56e18fe7ca4bee", "object": + "Rate", "created_at": "2025-03-07T16:51:00Z", "updated_at": "2025-03-07T16:51:00Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4919a90d02f04349a34b4d71f8f8f411", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742923", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:45Z", - "updated_at": "2024-08-15T19:53:45Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier": "USPS", + 3, "shipment_id": "shp_b866ef7a6e0240adace767c6d42193ae", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_14cd89c9bb384ae4bdedd142afa79742", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505749", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:51:01Z", + "updated_at": "2025-03-07T16:51:01Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_b866ef7a6e0240adace767c6d42193ae", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzQ5MTlhOTBkMDJmMDQzNDlhMzRiNGQ3MWY4ZjhmNDEx"}, - "to_address": {"id": "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", + "https://track.easypost.com/djE6dHJrXzE0Y2Q4OWM5YmIzODRhZTRiZGVkZDE0MmFmYTc5NzQy"}, + "to_address": {"id": "adr_5941c90cfb7411ef8a55ac1f6bc539aa", "object": "Address", + "created_at": "2025-03-07T16:51:00+00:00", "updated_at": "2025-03-07T16:51:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_5944eb1bfb7411ef83983cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:51:00+00:00", "updated_at": + "2025-03-07T16:51:00+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", "name": + "adr_5941c90cfb7411ef8a55ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:51:00+00:00", "updated_at": "2025-03-07T16:51:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_5e6513a2c7d34002be90ade89e5eb95e + - /api/v2/shipments/shp_b866ef7a6e0240adace767c6d42193ae pragma: - no-cache referrer-policy: @@ -138,27 +138,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5cc8e788622400174fc4 + - 6eaaf90067cb23f4e2aac23c000c2e22 x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.102679' + - '0.865535' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"scan_form": {"shipment": [{"id": "shp_5e6513a2c7d34002be90ade89e5eb95e"}]}}' + body: '{"scan_form": {"shipment": [{"id": "shp_b866ef7a6e0240adace767c6d42193ae"}]}}' headers: Accept: - '*/*' @@ -178,17 +178,17 @@ interactions: uri: https://api.easypost.com/v2/scan_forms response: body: - string: '{"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": "ScanForm", - "created_at": "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", - "tracking_codes": ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"id": "sf_a10db9bc049841658c7998cc5f3efd9b", "object": "ScanForm", + "created_at": "2025-03-07T16:51:01Z", "updated_at": "2025-03-07T16:51:01Z", + "tracking_codes": ["9400100208303109505749"], "address": {"id": "adr_5944eb1bfb7411ef83983cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:51:00+00:00", "updated_at": + "2025-03-07T16:51:00+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", - "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20250307/e8370b68d8a8a54eb48188bd0e974ca472.pdf", + "form_file_type": null, "batch_id": "batch_0cfb67c1bf034a87a19e7d604cb7ef95", "confirmation": null}' headers: cache-control: @@ -209,27 +209,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5ccae7886224001750bd + - 6eaaf90067cb23f5e2aac23c000c2f19 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.309785' + - '0.281051' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -249,20 +247,20 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/scan_forms/sf_3a6b244afc324e9292a0d69ce3081fe7 + uri: https://api.easypost.com/v2/scan_forms/sf_a10db9bc049841658c7998cc5f3efd9b response: body: - string: '{"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": "ScanForm", - "created_at": "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", - "tracking_codes": ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"id": "sf_a10db9bc049841658c7998cc5f3efd9b", "object": "ScanForm", + "created_at": "2025-03-07T16:51:01Z", "updated_at": "2025-03-07T16:51:01Z", + "tracking_codes": ["9400100208303109505749"], "address": {"id": "adr_5944eb1bfb7411ef83983cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:51:00+00:00", "updated_at": + "2025-03-07T16:51:00+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", - "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20250307/e8370b68d8a8a54eb48188bd0e974ca472.pdf", + "form_file_type": null, "batch_id": "batch_0cfb67c1bf034a87a19e7d604cb7ef95", "confirmation": null}' headers: cache-control: @@ -283,27 +281,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5ccae788622400175119 + - 6eaaf90067cb23f5e2aac23c000c2f7a x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.083969' + - '0.030569' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_all.yaml b/tests/cassettes/test_shipment_all.yaml index e3fbe1e7..5bf0dc89 100644 --- a/tests/cassettes/test_shipment_all.yaml +++ b/tests/cassettes/test_shipment_all.yaml @@ -16,79 +16,68 @@ interactions: uri: https://api.easypost.com/v2/shipments?page_size=5 response: body: - string: '{"shipments": [{"created_at": "2024-08-15T19:53:44Z", "is_return": - false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": "9400100105807075742923", "updated_at": "2024-08-15T19:53:46Z", - "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_d42002a5124a43348d65dc076d28bd8f", "object": - "Parcel", "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", + string: '{"shipments": [{"id": "shp_6348a453cbd04b4189dc85524719e6b2", "created_at": + "2025-03-07T16:46:14Z", "is_return": false, "messages": [], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": "9400100208303109505640", + "updated_at": "2025-03-07T16:46:15Z", "batch_id": "batch_0fc0517f6fb1426197560732520f8edd", + "batch_status": "postage_purchased", "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_af10e4b4fb7311ef9acaac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:14+00:00", "updated_at": "2025-03-07T16:46:14+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_a9373fdd04bd4d83874c7e397ecddcb6", + "object": "Parcel", "created_at": "2025-03-07T16:46:14Z", "updated_at": "2025-03-07T16:46:14Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_90dbc71ee37c4527a43004bcc4f854c0", - "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:45Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f54afe8913fb4046b55523838df4f97b", + "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:15Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8c1d8e98eb0e5413ea193e5c48897179a.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8b170594430f64d768ceb157887c5c28e.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_066e670ca6864c0f92e9090d9cebe164", "object": - "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_807950a46bbe43a489b7a57b38f488bf", - "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_56c61eed5d794978804e403bc5ed49e7", - "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_f9da1c97861743bba5eaf3db89b10898", "object": + "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + 1, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f320606ea0bd45ef92a34f109234fc44", + "object": "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b501d85dcc0743fdb0d8ab673107bf5d", + "object": "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - {"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": "ScanForm", "created_at": - "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", "tracking_codes": - ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", - "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", - "confirmation": null}, "selected_rate": {"id": "rate_807950a46bbe43a489b7a57b38f488bf", - "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_b501d85dcc0743fdb0d8ab673107bf5d", "object": + "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4919a90d02f04349a34b4d71f8f8f411", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742923", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:46Z", - "updated_at": "2024-08-15T19:53:46Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:46Z", "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", + 3, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4c1b66c0dad34060a7b4704100bdd88e", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505640", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:15Z", + "updated_at": "2025-03-07T16:46:15Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:15Z", "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:46Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:15Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:46Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:15Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -97,9 +86,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzQ5MTlhOTBkMDJmMDQzNDlhMzRiNGQ3MWY4ZjhmNDEx"}, - "to_address": {"id": "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzRjMWI2NmMwZGFkMzQwNjBhN2I0NzA0MTAwYmRkODhl"}, + "to_address": {"id": "adr_af0b9199fb7311ef9ac8ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-07T16:46:14+00:00", "updated_at": "2025-03-07T16:46:15+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -107,15 +96,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_af10e4b4fb7311ef9acaac1f6bc539ae", + "object": "Address", "created_at": "2025-03-07T16:46:14+00:00", "updated_at": + "2025-03-07T16:46:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", "name": + "adr_af0b9199fb7311ef9ac8ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:14+00:00", "updated_at": "2025-03-07T16:46:15+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -124,81 +113,70 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:43Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_b674aad341c24fe18611019a72ff6e84", + "created_at": "2025-03-07T16:46:11Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742909", "updated_at": "2024-08-15T19:53:44Z", "batch_id": - "batch_18fedb84574b4787a77b7f6a3db400ce", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": - "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "9400100208303109505633", "updated_at": "2025-03-07T16:46:11Z", "batch_id": + "batch_6b38965e1d0a44578a404fede07d9825", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_acc761b6fb7311ef98773cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:11+00:00", "updated_at": + "2025-03-07T16:46:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_fbe8636fe1394ba596759cb9a4f5e9b1", "object": - "Parcel", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", + null, "parcel": {"id": "prcl_48819d3d4ffc44b898146405288b1b4e", "object": + "Parcel", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_83593ba0c4164a459047d79156830108", - "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:44Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:43Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7c4b7267da3f4b13a8834e79a7b0af3a", + "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:11Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8bc57675bcf1e4a21a30e657fca4a0ab0.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8728792ec6b434a14a1f45d8e27c3db93.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_1c112372e51140a49ae52a64b7e517de", "object": - "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dcc1d9b8707048fe8c164460942cb535", - "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_59bf09da112248c194139c8cee72eb94", - "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_f74107b724334c1695f76a362d6d1354", "object": + "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + 1, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c50e7434c2b8494cbc89405e54ee777e", + "object": "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_345992a3bb14453ca8c41069addcbbad", + "object": "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - {"id": "sf_3f668f1e39ae405db1363110e7bbe3aa", "object": "ScanForm", "created_at": - "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", "tracking_codes": - ["9400100105807075742909"], "address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": - "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e83ec1b26066284098b743dd4ce2be4594.pdf", - "form_file_type": null, "batch_id": "batch_18fedb84574b4787a77b7f6a3db400ce", - "confirmation": null}, "selected_rate": {"id": "rate_dcc1d9b8707048fe8c164460942cb535", - "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_345992a3bb14453ca8c41069addcbbad", "object": + "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_48c523996d8f45c6a0b267166aea639a", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742909", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:44Z", - "updated_at": "2024-08-15T19:53:44Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:44Z", "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", + 3, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_7ab5213aaf264b53ab2f296d2efc7e73", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505633", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:12Z", + "updated_at": "2025-03-07T16:46:12Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:12Z", "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:44Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:12Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:44Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:12Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -207,9 +185,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzQ4YzUyMzk5NmQ4ZjQ1YzZhMGIyNjcxNjZhZWE2Mzlh"}, - "to_address": {"id": "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzdhYjUyMTNhYWYyNjRiNTNhYjJmMjk2ZDJlZmM3ZTcz"}, + "to_address": {"id": "adr_acc16571fb7311ef9f45ac1f6bc539aa", "object": "Address", + "created_at": "2025-03-07T16:46:10+00:00", "updated_at": "2025-03-07T16:46:11+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -217,15 +195,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": - "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_acc761b6fb7311ef98773cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:11+00:00", "updated_at": + "2025-03-07T16:46:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", "name": + "adr_acc16571fb7311ef9f45ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:46:10+00:00", "updated_at": "2025-03-07T16:46:11+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -234,69 +212,70 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_dce42fde655c4d969c550c16071130c4", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:38Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", + "created_at": "2025-03-07T16:46:07Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742886", "updated_at": "2024-08-15T19:53:39Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_108166455b4011efb6f1ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_642d11e9fb434aa998e00ad920aff76b", - "object": "Parcel", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + "9400100208303109505626", "updated_at": "2025-03-07T16:46:07Z", "batch_id": + "batch_1da4ef8e3efa4581b366b81ccf81b4f2", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_aa69c593fb7311ef971b3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:07+00:00", "updated_at": + "2025-03-07T16:46:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_d65c73ef0b0741b683c85ae149b4c615", "object": + "Parcel", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_49a1063a6a4d4e369e0c0010e8106f2f", - "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:39Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:38Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f91a9e01da6c4e378d2dce661c4c6911", + "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:07Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e86d824b1d760044a785ef93f8690c3a26.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8534b38912c20459a8afb5b43a2a38f93.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_391276f050354b6fa00b8244b10cee20", "object": - "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_59faed8017f04a3a929537ddda74d7fb", "object": + "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_20891227b5fb432fa0ac80ac0bba6cb5", - "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3f0b282224c94e72bd212ef227f12169", - "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_feb24755f1794a458896fecb8a014f3e", + "object": "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": "submitted", "scan_form": - null, "selected_rate": {"id": "rate_3f0b282224c94e72bd212ef227f12169", "object": - "Rate", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9f7170c31a6a4cd4b07a7ee5c114aadc", + "object": "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_9f7170c31a6a4cd4b07a7ee5c114aadc", "object": + "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e122e64adc3d4dbe8e17aaceed4c50f1", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742886", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:39Z", - "updated_at": "2024-08-15T19:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:39Z", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", + 3, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_5b5388ca5edc4c2188e41862ace7cbee", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505626", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:07Z", + "updated_at": "2025-03-07T16:46:07Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:07Z", "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:39Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:07Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:39Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:07Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -305,9 +284,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2UxMjJlNjRhZGMzZDRkYmU4ZTE3YWFjZWVkNGM1MGYx"}, - "to_address": {"id": "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzViNTM4OGNhNWVkYzRjMjE4OGU0MTg2MmFjZTdjYmVl"}, + "to_address": {"id": "adr_aa670212fb7311ef9ddfac1f6bc539aa", "object": "Address", + "created_at": "2025-03-07T16:46:07+00:00", "updated_at": "2025-03-07T16:46:07+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -315,15 +294,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_108166455b4011efb6f1ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:38+00:00", "updated_at": - "2024-08-15T19:53:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_aa69c593fb7311ef971b3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:07+00:00", "updated_at": + "2025-03-07T16:46:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": + "adr_aa670212fb7311ef9ddfac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:46:07+00:00", "updated_at": "2025-03-07T16:46:07+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -332,70 +311,70 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:28Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_622803c6479446e895b6ec9ffc580f58", + "created_at": "2025-03-07T16:46:03Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742763", "updated_at": "2024-08-15T19:53:29Z", "batch_id": - "batch_0e51f71c3821431d96a77aa333ac05a3", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_0a6ff5b25b4011ef9591ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:28+00:00", "updated_at": - "2024-08-15T19:53:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "9400100208303109505619", "updated_at": "2025-03-07T16:46:04Z", "batch_id": + "batch_b5e1cf8eeb0e45adb7feb089b3d12a46", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_a84fa087fb7311ef9cb3ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:03+00:00", "updated_at": + "2025-03-07T16:46:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_485cf941942d4862967425c0543caa7c", "object": - "Parcel", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", + null, "parcel": {"id": "prcl_5c264ed4432848aaad2545e0dfb8eeb4", "object": + "Parcel", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_767f256490c44ea6bbc52191a19791e1", - "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:29Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:28Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2dd5e193a0874563acda1913359fbef3", + "created_at": "2025-03-07T16:46:04Z", "updated_at": "2025-03-07T16:46:04Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:04Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8aa8c3f4aa4bb4a5fa3744ba0a97f5e98.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e82ca3296f28234c8c963d9042eefecad2.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_a0ffc385a8224b4593b4b168ee624c0e", "object": - "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c6cec8860db147caae7c732ae4d7ce78", - "object": "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_5ad2d3f3665b4343b75e85a5a0fe02de", "object": + "Rate", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a0baddeb6aa84f4e8b3cf41cbf81a4fd", - "object": "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_646a6333c5af49168d64b3df5382e557", + "object": "Rate", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5179687711ef43e2a5188ee7aa89da97", + "object": "Rate", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": + 1, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_c6cec8860db147caae7c732ae4d7ce78", "object": - "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_646a6333c5af49168d64b3df5382e557", "object": + "Rate", "created_at": "2025-03-07T16:46:04Z", "updated_at": "2025-03-07T16:46:04Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_24fa66d76fe344e4b291a4df3ca5e2b7", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742763", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:29Z", - "updated_at": "2024-08-15T19:53:29Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:29Z", "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", + 3, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_11c660ecffdf4b938a1212ec4709662c", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505619", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:04Z", + "updated_at": "2025-03-07T16:46:04Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:04Z", "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:29Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:04Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:29Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:04Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -404,9 +383,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzI0ZmE2NmQ3NmZlMzQ0ZTRiMjkxYTRkZjNjYTVlMmI3"}, - "to_address": {"id": "adr_0a6d29265b4011efb480ac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:53:28+00:00", "updated_at": "2024-08-15T19:53:28+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzExYzY2MGVjZmZkZjRiOTM4YTEyMTJlYzQ3MDk2NjJj"}, + "to_address": {"id": "adr_a84d64eafb7311ef95cf3cecef1b359e", "object": "Address", + "created_at": "2025-03-07T16:46:03+00:00", "updated_at": "2025-03-07T16:46:03+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -414,15 +393,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_0a6ff5b25b4011ef9591ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:28+00:00", "updated_at": - "2024-08-15T19:53:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_a84fa087fb7311ef9cb3ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:03+00:00", "updated_at": + "2025-03-07T16:46:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_0a6d29265b4011efb480ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:28+00:00", "updated_at": "2024-08-15T19:53:28+00:00", "name": + "adr_a84d64eafb7311ef95cf3cecef1b359e", "object": "Address", "created_at": + "2025-03-07T16:46:03+00:00", "updated_at": "2025-03-07T16:46:03+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -431,70 +410,70 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_9af00c32bcff44ea856d808545496d05", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:26Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", + "created_at": "2025-03-07T16:45:59Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742756", "updated_at": "2024-08-15T19:53:27Z", "batch_id": - "batch_9b8905ead5a44f50bef9aa9902c4bff6", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_0942f3e35b4011efb3ddac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:26+00:00", "updated_at": - "2024-08-15T19:53:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "9400100208303109505602", "updated_at": "2025-03-07T16:46:00Z", "batch_id": + "batch_63f493b2b5484ad8a220c9567867732c", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_a6167a17fb7311ef94473cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:45:59+00:00", "updated_at": + "2025-03-07T16:45:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_955cf25ac94d42faafbecfbbb04c8f31", "object": - "Parcel", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", + null, "parcel": {"id": "prcl_c2911b5c7bda49a9803dfba239fad665", "object": + "Parcel", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_e10efa9d02884ecf9fcd62a94618043e", - "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:27Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:26Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d08201d458744a4ebf36695bb79f7dee", + "created_at": "2025-03-07T16:46:00Z", "updated_at": "2025-03-07T16:46:00Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:00Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8eed2a1c6b0a843de89b7507b704cc11d.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8d6cfe7a133ab49f19fdbb00699c16dd0.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_09878437b69843098947ee0768c18997", "object": - "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_048a5125c43b4fc2b2acfd48e3f1ef63", - "object": "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_416b4b8d011b423cbd8bb5ab3226c067", - "object": "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_e62e203a40874c9f9733fbd55e5fe9a8", "object": + "Rate", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": + 3, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_aee96176a0764400a3bc4a6a200b4d17", + "object": "Rate", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ac50b2827b524b9f9ab7a19507dfb541", + "object": "Rate", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_416b4b8d011b423cbd8bb5ab3226c067", "object": - "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_aee96176a0764400a3bc4a6a200b4d17", "object": + "Rate", "created_at": "2025-03-07T16:46:00Z", "updated_at": "2025-03-07T16:46:00Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b85437e1f5e440a6b1e16577dd1e0ece", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742756", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:27Z", - "updated_at": "2024-08-15T19:53:27Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:27Z", "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", + 3, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_49bbcbf123ae4414984b6ee5182fc53b", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505602", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:00Z", + "updated_at": "2025-03-07T16:46:00Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:00Z", "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:27Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:27Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -503,9 +482,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2I4NTQzN2UxZjVlNDQwYTZiMWUxNjU3N2RkMWUwZWNl"}, - "to_address": {"id": "adr_094021ea5b4011efb3daac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:53:26+00:00", "updated_at": "2024-08-15T19:53:26+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzQ5YmJjYmYxMjNhZTQ0MTQ5ODRiNmVlNTE4MmZjNTNi"}, + "to_address": {"id": "adr_a613c9f6fb7311ef9555ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-07T16:45:59+00:00", "updated_at": "2025-03-07T16:46:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -513,15 +492,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_0942f3e35b4011efb3ddac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:26+00:00", "updated_at": - "2024-08-15T19:53:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_a6167a17fb7311ef94473cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:45:59+00:00", "updated_at": + "2025-03-07T16:45:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_094021ea5b4011efb3daac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:26+00:00", "updated_at": "2024-08-15T19:53:26+00:00", "name": + "adr_a613c9f6fb7311ef9555ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:45:59+00:00", "updated_at": "2025-03-07T16:46:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -530,14 +509,13 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_3b55322d17fe4cc09c36c663a54127bc", "object": - "Shipment"}], "has_more": true}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '39979' + - '38221' content-type: - application/json; charset=utf-8 expires: @@ -557,20 +535,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5ccde78862290017544f + - 6eaaf8ff67cb22dae2aaba20000add77 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.514689' + - '0.502565' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_buy.yaml b/tests/cassettes/test_shipment_buy.yaml index 42dbf274..20351a69 100644 --- a/tests/cassettes/test_shipment_buy.yaml +++ b/tests/cassettes/test_shipment_buy.yaml @@ -31,106 +31,84 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:53:52Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_16578f588f9546ec914afd2474e24ff5", "created_at": "2025-03-07T16:46:20Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-08-15T19:53:52Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_3aea01d774194e888e499c7a21c5ef22", - "object": "CustomsInfo", "created_at": "2024-08-15T19:53:52Z", "updated_at": - "2024-08-15T19:53:52Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2025-03-07T16:46:20Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_f7b53f1e1fc34b5c8d19c1e5632d86fa", + "object": "CustomsInfo", "created_at": "2025-03-07T16:46:19Z", "updated_at": + "2025-03-07T16:46:19Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_52d05460666c4570bfb63b02b43d0233", "object": "CustomsItem", - "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", + [{"id": "cstitem_28ebda7160d14ab692e6f511b48c5e0c", "object": "CustomsItem", + "created_at": "2025-03-07T16:46:20Z", "updated_at": "2025-03-07T16:46:20Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_189ce33f5b4011efba1fac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", + null}]}, "from_address": {"id": "adr_b21acf8efb7311ef9c71ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:19+00:00", "updated_at": "2025-03-07T16:46:19+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_83ae5ebb48204764955b9605b926415a", - "object": "Parcel", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_f20a001b1b1b4a40a2c02bdb83dafb9c", + "object": "Parcel", "created_at": "2025-03-07T16:46:19Z", "updated_at": "2025-03-07T16:46:19Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_de27c69e8beb4f509c878b5d166af364", - "object": "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c4f7e5ff2f4c4c1394fc750a3260755f", + "object": "Rate", "created_at": "2025-03-07T16:46:20Z", "updated_at": "2025-03-07T16:46:20Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1be1983d511a44e091ed1cbc19d4c933", - "object": "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_16578f588f9546ec914afd2474e24ff5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5b67424f63314af1b997aa72d45e41be", + "object": "Rate", "created_at": "2025-03-07T16:46:20Z", "updated_at": "2025-03-07T16:46:20Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3334a452b8b9402cb6fc48c8a918e670", - "object": "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_16578f588f9546ec914afd2474e24ff5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4d1f36fa716c4b1292cacbdf19227c2d", + "object": "Rate", "created_at": "2025-03-07T16:46:20Z", "updated_at": "2025-03-07T16:46:20Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": + 3, "shipment_id": "shp_16578f588f9546ec914afd2474e24ff5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_189a6db55b4011efa8fb3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:53:52+00:00", "updated_at": - "2024-08-15T19:53:52+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b215ae4ffb7311efbccbac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:46:19+00:00", "updated_at": + "2025-03-07T16:46:19+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_189ce33f5b4011efba1fac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", "name": + {"id": "adr_b21acf8efb7311ef9c71ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:19+00:00", "updated_at": "2025-03-07T16:46:19+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_189a6db55b4011efa8fb3cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", + {}}, "buyer_address": {"id": "adr_b215ae4ffb7311efbccbac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:19+00:00", "updated_at": "2025-03-07T16:46:19+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6912' + - '5160' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_5ba7275d2fbe44ee9592f905cfaad5f7 + - /api/v2/shipments/shp_16578f588f9546ec914afd2474e24ff5 pragma: - no-cache referrer-policy: @@ -146,27 +124,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cd0e788622b0017568a + - 6eaaf90167cb22dbe2aaba22000adfe1 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.716393' + - '0.250258' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_3334a452b8b9402cb6fc48c8a918e670"}}' + body: '{"rate": {"id": "rate_4d1f36fa716c4b1292cacbdf19227c2d"}}' headers: Accept: - '*/*' @@ -183,100 +161,79 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_5ba7275d2fbe44ee9592f905cfaad5f7/buy + uri: https://api.easypost.com/v2/shipments/shp_16578f588f9546ec914afd2474e24ff5/buy response: body: - string: '{"created_at": "2024-08-15T19:53:52Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_16578f588f9546ec914afd2474e24ff5", "created_at": "2025-03-07T16:46:20Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100105807075742961", "updated_at": "2024-08-15T19:53:53Z", "batch_id": + "9400100208303109505657", "updated_at": "2025-03-07T16:46:20Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_3aea01d774194e888e499c7a21c5ef22", "object": "CustomsInfo", "created_at": - "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", "contents_explanation": + "cstinfo_f7b53f1e1fc34b5c8d19c1e5632d86fa", "object": "CustomsInfo", "created_at": + "2025-03-07T16:46:19Z", "updated_at": "2025-03-07T16:46:19Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_52d05460666c4570bfb63b02b43d0233", - "object": "CustomsItem", "created_at": "2024-08-15T19:53:52Z", "updated_at": - "2024-08-15T19:53:52Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_28ebda7160d14ab692e6f511b48c5e0c", + "object": "CustomsItem", "created_at": "2025-03-07T16:46:20Z", "updated_at": + "2025-03-07T16:46:20Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_189ce33f5b4011efba1fac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", "name": + "adr_b21acf8efb7311ef9c71ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:19+00:00", "updated_at": "2025-03-07T16:46:19+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_83ae5ebb48204764955b9605b926415a", - "object": "Parcel", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_f20a001b1b1b4a40a2c02bdb83dafb9c", + "object": "Parcel", "created_at": "2025-03-07T16:46:19Z", "updated_at": "2025-03-07T16:46:19Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_c41c8fbc77254a5ab7022bd7b84538fd", - "created_at": "2024-08-15T19:53:53Z", "updated_at": "2024-08-15T19:53:53Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:53Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6b404afa1ac543c3a447abdcb6e5ccbb", + "created_at": "2025-03-07T16:46:20Z", "updated_at": "2025-03-07T16:46:20Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:20Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8d3d657d04b6840afb1cbd22f87c62d2f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e813a2cf6d079c4ea49714758be7711be0.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_de27c69e8beb4f509c878b5d166af364", "object": - "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_c4f7e5ff2f4c4c1394fc750a3260755f", "object": + "Rate", "created_at": "2025-03-07T16:46:20Z", "updated_at": "2025-03-07T16:46:20Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1be1983d511a44e091ed1cbc19d4c933", - "object": "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_16578f588f9546ec914afd2474e24ff5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5b67424f63314af1b997aa72d45e41be", + "object": "Rate", "created_at": "2025-03-07T16:46:20Z", "updated_at": "2025-03-07T16:46:20Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3334a452b8b9402cb6fc48c8a918e670", - "object": "Rate", "created_at": "2024-08-15T19:53:52Z", "updated_at": "2024-08-15T19:53:52Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_16578f588f9546ec914afd2474e24ff5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4d1f36fa716c4b1292cacbdf19227c2d", + "object": "Rate", "created_at": "2025-03-07T16:46:20Z", "updated_at": "2025-03-07T16:46:20Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": + 3, "shipment_id": "shp_16578f588f9546ec914afd2474e24ff5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_3334a452b8b9402cb6fc48c8a918e670", "object": - "Rate", "created_at": "2024-08-15T19:53:53Z", "updated_at": "2024-08-15T19:53:53Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_4d1f36fa716c4b1292cacbdf19227c2d", "object": + "Rate", "created_at": "2025-03-07T16:46:20Z", "updated_at": "2025-03-07T16:46:20Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_19e7f422ccd249b5a97ec755230a615d", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742961", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:53Z", - "updated_at": "2024-08-15T19:53:53Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", "carrier": "USPS", + 3, "shipment_id": "shp_16578f588f9546ec914afd2474e24ff5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_279431562ef84af89555e5c8a2029b2f", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505657", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:20Z", + "updated_at": "2025-03-07T16:46:20Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_16578f588f9546ec914afd2474e24ff5", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzE5ZTdmNDIyY2NkMjQ5YjVhOTdlYzc1NTIzMGE2MTVk"}, - "to_address": {"id": "adr_189a6db55b4011efa8fb3cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", + "https://track.easypost.com/djE6dHJrXzI3OTQzMTU2MmVmODRhZjg5NTU1ZTVjOGEyMDI5YjJm"}, + "to_address": {"id": "adr_b215ae4ffb7311efbccbac1f6bc53342", "object": "Address", + "created_at": "2025-03-07T16:46:19+00:00", "updated_at": "2025-03-07T16:46:20+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -284,14 +241,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_189ce33f5b4011efba1fac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", + 4, "return_address": {"id": "adr_b21acf8efb7311ef9c71ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:19+00:00", "updated_at": "2025-03-07T16:46:19+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_189a6db55b4011efa8fb3cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:52+00:00", "updated_at": "2024-08-15T19:53:52+00:00", + {}}, "buyer_address": {"id": "adr_b215ae4ffb7311efbccbac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:19+00:00", "updated_at": "2025-03-07T16:46:20+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -301,13 +258,12 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", - "object": "Shipment"}' + "6.07000", "charged": true, "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '9037' + - '7285' content-type: - application/json; charset=utf-8 expires: @@ -327,20 +283,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cd0e788622b0017574b + - 6eaaf90167cb22dce2aaba22000ae079 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.850866' + - '0.666737' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_buy_with_end_shipper_id.yaml b/tests/cassettes/test_shipment_buy_with_end_shipper_id.yaml index 8aed14d3..adaca89c 100644 --- a/tests/cassettes/test_shipment_buy_with_end_shipper_id.yaml +++ b/tests/cassettes/test_shipment_buy_with_end_shipper_id.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/end_shippers response: body: - string: '{"id": "es_13c5c2d7e79f4a988cbd1ed0dab5bad5", "object": "EndShipper", - "mode": "test", "created_at": "2024-08-15T19:54:13+00:00", "updated_at": "2024-08-15T19:54:13+00:00", + string: '{"id": "es_184c211535024ac78c9e8e67e0cbbb74", "object": "EndShipper", + "mode": "test", "created_at": "2025-03-07T16:46:31+00:00", "updated_at": "2025-03-07T16:46:31+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": ""}' @@ -51,20 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5ce5e788626700176cf4 + - 6eaaf8fd67cb22e7e2aabd7d000af196 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.052811' + - '0.053726' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -97,93 +97,73 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:14Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:54:14Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_25b762be5b4011efaeb23cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": - "2024-08-15T19:54:14+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_3598fc2bfb634861ad26651ec673677e", "object": - "Parcel", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", + string: '{"id": "shp_d720efccb2864509b7c0d9ca5236fda8", "created_at": "2025-03-07T16:46:31Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": null, "updated_at": "2025-03-07T16:46:31Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_b913a77dfb7311ef80faac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:31+00:00", "updated_at": "2025-03-07T16:46:31+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_edcaa2741fd849179d75040cdd668e56", + "object": "Parcel", "created_at": "2025-03-07T16:46:31Z", "updated_at": "2025-03-07T16:46:31Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_1753963d3f4c439e9b52da5e51b52330", - "object": "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b4573877fb5845608570e383a7fc951f", - "object": "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_5a302bf1871b469c985e226c0d2bb372", + "object": "Rate", "created_at": "2025-03-07T16:46:31Z", "updated_at": "2025-03-07T16:46:31Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_15e9862423b244589dcafb1ab6062f21", - "object": "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_d720efccb2864509b7c0d9ca5236fda8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ce06a84e13274a21abdb92d00840045c", + "object": "Rate", "created_at": "2025-03-07T16:46:31Z", "updated_at": "2025-03-07T16:46:31Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": + 3, "shipment_id": "shp_d720efccb2864509b7c0d9ca5236fda8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_66b3776de08c469386e8629da89eca72", + "object": "Rate", "created_at": "2025-03-07T16:46:31Z", "updated_at": "2025-03-07T16:46:31Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_d720efccb2864509b7c0d9ca5236fda8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_25b4f7865b4011efbf9dac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": - "2024-08-15T19:54:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b910ea0efb7311efa662ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:31+00:00", "updated_at": + "2025-03-07T16:46:31+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_25b762be5b4011efaeb23cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:54:14+00:00", "updated_at": "2024-08-15T19:54:14+00:00", "name": + {"id": "adr_b913a77dfb7311ef80faac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:46:31+00:00", "updated_at": "2025-03-07T16:46:31+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_25b4f7865b4011efbf9dac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": "2024-08-15T19:54:14+00:00", + {}}, "buyer_address": {"id": "adr_b910ea0efb7311efa662ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-07T16:46:31+00:00", "updated_at": "2025-03-07T16:46:31+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_be92641b5b1d422cb0b7d23455463e3b", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5804' + - '4325' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_be92641b5b1d422cb0b7d23455463e3b + - /api/v2/shipments/shp_d720efccb2864509b7c0d9ca5236fda8 pragma: - no-cache referrer-policy: @@ -199,28 +179,28 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5ce6e788626700176d0e + - 6eaaf8fd67cb22e7e2aabd7d000af1af x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.793818' + - '0.205852' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_15e9862423b244589dcafb1ab6062f21"}, "end_shipper_id": - "es_13c5c2d7e79f4a988cbd1ed0dab5bad5"}' + body: '{"rate": {"id": "rate_ce06a84e13274a21abdb92d00840045c"}, "end_shipper_id": + "es_184c211535024ac78c9e8e67e0cbbb74"}' headers: Accept: - '*/*' @@ -237,86 +217,68 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_be92641b5b1d422cb0b7d23455463e3b/buy + uri: https://api.easypost.com/v2/shipments/shp_d720efccb2864509b7c0d9ca5236fda8/buy response: body: - string: '{"created_at": "2024-08-15T19:54:14Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": "9400100105807075743081", - "updated_at": "2024-08-15T19:54:15Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_25b762be5b4011efaeb23cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": - "2024-08-15T19:54:14+00:00", "name": "Jack Sparrow", "company": null, "street1": + string: '{"id": "shp_d720efccb2864509b7c0d9ca5236fda8", "created_at": "2025-03-07T16:46:31Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505701", "updated_at": + "2025-03-07T16:46:32Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_b913a77dfb7311ef80faac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:46:31+00:00", "updated_at": + "2025-03-07T16:46:31+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_3598fc2bfb634861ad26651ec673677e", "object": - "Parcel", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", + null, "parcel": {"id": "prcl_edcaa2741fd849179d75040cdd668e56", "object": + "Parcel", "created_at": "2025-03-07T16:46:31Z", "updated_at": "2025-03-07T16:46:31Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_a17ec91e0d4b46e2bc130adda5a49308", - "created_at": "2024-08-15T19:54:15Z", "updated_at": "2024-08-15T19:54:15Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:15Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_03eff81acc7b413ca6af27837b8617b5", + "created_at": "2025-03-07T16:46:32Z", "updated_at": "2025-03-07T16:46:32Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:32Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8d0091aeae21547678e7ef08eb695aea5.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e813374500ea4847e0ad1c4777437d0b7c.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_1753963d3f4c439e9b52da5e51b52330", "object": - "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b4573877fb5845608570e383a7fc951f", - "object": "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_5a302bf1871b469c985e226c0d2bb372", "object": + "Rate", "created_at": "2025-03-07T16:46:31Z", "updated_at": "2025-03-07T16:46:31Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_15e9862423b244589dcafb1ab6062f21", - "object": "Rate", "created_at": "2024-08-15T19:54:14Z", "updated_at": "2024-08-15T19:54:14Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_d720efccb2864509b7c0d9ca5236fda8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ce06a84e13274a21abdb92d00840045c", + "object": "Rate", "created_at": "2025-03-07T16:46:31Z", "updated_at": "2025-03-07T16:46:31Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": + 3, "shipment_id": "shp_d720efccb2864509b7c0d9ca5236fda8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_66b3776de08c469386e8629da89eca72", + "object": "Rate", "created_at": "2025-03-07T16:46:31Z", "updated_at": "2025-03-07T16:46:31Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_d720efccb2864509b7c0d9ca5236fda8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_15e9862423b244589dcafb1ab6062f21", "object": - "Rate", "created_at": "2024-08-15T19:54:15Z", "updated_at": "2024-08-15T19:54:15Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_ce06a84e13274a21abdb92d00840045c", "object": + "Rate", "created_at": "2025-03-07T16:46:32Z", "updated_at": "2025-03-07T16:46:32Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_9df7bdd832bf409b8d061ac5ac4db98f", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743081", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:54:15Z", - "updated_at": "2024-08-15T19:54:15Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", "carrier": "USPS", + 3, "shipment_id": "shp_d720efccb2864509b7c0d9ca5236fda8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_cddf9c5b0be0443f87eefb446145d3f0", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505701", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:32Z", + "updated_at": "2025-03-07T16:46:32Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_d720efccb2864509b7c0d9ca5236fda8", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzlkZjdiZGQ4MzJiZjQwOWI4ZDA2MWFjNWFjNGRiOThm"}, - "to_address": {"id": "adr_25b4f7865b4011efbf9dac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:54:14+00:00", "updated_at": "2024-08-15T19:54:15+00:00", + "https://track.easypost.com/djE6dHJrX2NkZGY5YzViMGJlMDQ0M2Y4N2VlZmI0NDYxNDVkM2Yw"}, + "to_address": {"id": "adr_b910ea0efb7311efa662ac1f6bc539aa", "object": "Address", + "created_at": "2025-03-07T16:46:31+00:00", "updated_at": "2025-03-07T16:46:31+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -324,14 +286,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_25b762be5b4011efaeb23cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": "2024-08-15T19:54:14+00:00", + 4, "return_address": {"id": "adr_b913a77dfb7311ef80faac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:31+00:00", "updated_at": "2025-03-07T16:46:31+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_25b4f7865b4011efbf9dac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:54:14+00:00", "updated_at": "2024-08-15T19:54:15+00:00", + {}}, "buyer_address": {"id": "adr_b910ea0efb7311efa662ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-07T16:46:31+00:00", "updated_at": "2025-03-07T16:46:31+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -341,13 +303,12 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_be92641b5b1d422cb0b7d23455463e3b", - "object": "Shipment"}' + "6.07000", "charged": true, "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7929' + - '6450' content-type: - application/json; charset=utf-8 expires: @@ -367,20 +328,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5ce6e788626700176dc7 + - 6eaaf8fd67cb22e7e2aabd7d000af1f8 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.814862' + - '0.752164' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_convert_label.yaml b/tests/cassettes/test_shipment_convert_label.yaml index 11f02d40..afd5698d 100644 --- a/tests/cassettes/test_shipment_convert_label.yaml +++ b/tests/cassettes/test_shipment_convert_label.yaml @@ -31,106 +31,84 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:53:56Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_5f25253b03cd4bd18d27f49763f2433b", "created_at": "2025-03-07T16:46:21Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-08-15T19:53:56Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_7c61d2c094884e9eb9b42d4e5d88054f", - "object": "CustomsInfo", "created_at": "2024-08-15T19:53:56Z", "updated_at": - "2024-08-15T19:53:56Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2025-03-07T16:46:21Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_84b9a1cb9e5e423aa767a26375f57055", + "object": "CustomsInfo", "created_at": "2025-03-07T16:46:21Z", "updated_at": + "2025-03-07T16:46:21Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_d841f52083de41e9a3b8e8257f9189ae", "object": "CustomsItem", - "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", + [{"id": "cstitem_2034f78e08094af69a5553b9b216f5ed", "object": "CustomsItem", + "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_1af195515b4011efbb28ac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", + null}]}, "from_address": {"id": "adr_b31a5f20fb7311ef9cfbac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:21+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_1cc31c37166d41b3b6a630338c821c55", - "object": "Parcel", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_42d5d9cb37b446629ad9c14e0a65defd", + "object": "Parcel", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_9ff2d3861d584f9f81ea451cf7e860fe", - "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_174dbc718dd144c3a44fd4fc093513a4", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_81e6885100654291b65afbbe6c815e05", - "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b4fbf86b5af745aeaf44804a88d58eb7", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bb68f987d86c48eb80a4474601744aff", - "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2aab040e952b46db809c2b24380c674b", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + 3, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": - "2024-08-15T19:53:55+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b317fa6afb7311efbd57ac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:46:21+00:00", "updated_at": + "2025-03-07T16:46:21+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_1af195515b4011efbb28ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", "name": + {"id": "adr_b31a5f20fb7311ef9cfbac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:21+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", + {}}, "buyer_address": {"id": "adr_b317fa6afb7311efbd57ac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:21+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6912' + - '5160' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_5cfd3bffbbdc4b3cb82477a2401e2e65 + - /api/v2/shipments/shp_5f25253b03cd4bd18d27f49763f2433b pragma: - no-cache referrer-policy: @@ -146,27 +124,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cd3e788624400175a56 + - 6eaaf8fa67cb22dde2aaba24000ae306 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.937516' + - '0.242081' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_bb68f987d86c48eb80a4474601744aff"}}' + body: '{"rate": {"id": "rate_2aab040e952b46db809c2b24380c674b"}}' headers: Accept: - '*/*' @@ -183,100 +161,79 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_5cfd3bffbbdc4b3cb82477a2401e2e65/buy + uri: https://api.easypost.com/v2/shipments/shp_5f25253b03cd4bd18d27f49763f2433b/buy response: body: - string: '{"created_at": "2024-08-15T19:53:56Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_5f25253b03cd4bd18d27f49763f2433b", "created_at": "2025-03-07T16:46:21Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100105807075742978", "updated_at": "2024-08-15T19:53:57Z", "batch_id": + "9400100208303109505664", "updated_at": "2025-03-07T16:46:22Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_7c61d2c094884e9eb9b42d4e5d88054f", "object": "CustomsInfo", "created_at": - "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", "contents_explanation": + "cstinfo_84b9a1cb9e5e423aa767a26375f57055", "object": "CustomsInfo", "created_at": + "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_d841f52083de41e9a3b8e8257f9189ae", - "object": "CustomsItem", "created_at": "2024-08-15T19:53:56Z", "updated_at": - "2024-08-15T19:53:56Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_2034f78e08094af69a5553b9b216f5ed", + "object": "CustomsItem", "created_at": "2025-03-07T16:46:21Z", "updated_at": + "2025-03-07T16:46:21Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_1af195515b4011efbb28ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", "name": + "adr_b31a5f20fb7311ef9cfbac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:21+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_1cc31c37166d41b3b6a630338c821c55", - "object": "Parcel", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_42d5d9cb37b446629ad9c14e0a65defd", + "object": "Parcel", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_56e694d2cf6d44acbc854fc8071b703b", - "created_at": "2024-08-15T19:53:57Z", "updated_at": "2024-08-15T19:53:57Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:57Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_422bd54a5bbd49469dab6d449581c9b1", + "created_at": "2025-03-07T16:46:22Z", "updated_at": "2025-03-07T16:46:22Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:22Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e84582a7855852473f94f3c4dfcd5a0c82.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8dd8fe8e5de7549e9b1766fe7097bd045.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_9ff2d3861d584f9f81ea451cf7e860fe", "object": - "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_174dbc718dd144c3a44fd4fc093513a4", "object": + "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_81e6885100654291b65afbbe6c815e05", - "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b4fbf86b5af745aeaf44804a88d58eb7", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bb68f987d86c48eb80a4474601744aff", - "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2aab040e952b46db809c2b24380c674b", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + 3, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_bb68f987d86c48eb80a4474601744aff", "object": - "Rate", "created_at": "2024-08-15T19:53:57Z", "updated_at": "2024-08-15T19:53:57Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_2aab040e952b46db809c2b24380c674b", "object": + "Rate", "created_at": "2025-03-07T16:46:22Z", "updated_at": "2025-03-07T16:46:22Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4b0cf8b1afd640158ca7db0b6a167e7a", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742978", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:53:57Z", - "updated_at": "2024-08-15T19:53:57Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier": "USPS", + 3, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_3f4c7b1064ad443e9f24161e3ec72ebf", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505664", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:22Z", + "updated_at": "2025-03-07T16:46:22Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzRiMGNmOGIxYWZkNjQwMTU4Y2E3ZGIwYjZhMTY3ZTdh"}, - "to_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:57+00:00", + "https://track.easypost.com/djE6dHJrXzNmNGM3YjEwNjRhZDQ0M2U5ZjI0MTYxZTNlYzcyZWJm"}, + "to_address": {"id": "adr_b317fa6afb7311efbd57ac1f6bc53342", "object": "Address", + "created_at": "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:22+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -284,14 +241,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_1af195515b4011efbb28ac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", + 4, "return_address": {"id": "adr_b31a5f20fb7311ef9cfbac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:21+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:57+00:00", + {}}, "buyer_address": {"id": "adr_b317fa6afb7311efbd57ac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:22+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": "", "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -301,13 +258,12 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", - "object": "Shipment"}' + "6.07000", "charged": true, "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '9037' + - '7285' content-type: - application/json; charset=utf-8 expires: @@ -327,20 +283,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cd4e788624400175b45 + - 6eaaf8fa67cb22dde2aaba24000ae378 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.992248' + - '0.747921' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -360,103 +316,82 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_5cfd3bffbbdc4b3cb82477a2401e2e65/label?file_format=ZPL + uri: https://api.easypost.com/v2/shipments/shp_5f25253b03cd4bd18d27f49763f2433b/label?file_format=ZPL response: body: - string: '{"created_at": "2024-08-15T19:53:56Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_5f25253b03cd4bd18d27f49763f2433b", "created_at": "2025-03-07T16:46:21Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - "9400100105807075742978", "updated_at": "2024-08-15T19:53:57Z", "batch_id": + "9400100208303109505664", "updated_at": "2025-03-07T16:46:22Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": {"id": - "cstinfo_7c61d2c094884e9eb9b42d4e5d88054f", "object": "CustomsInfo", "created_at": - "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", "contents_explanation": + "cstinfo_84b9a1cb9e5e423aa767a26375f57055", "object": "CustomsInfo", "created_at": + "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", - "declaration": null, "customs_items": [{"id": "cstitem_d841f52083de41e9a3b8e8257f9189ae", - "object": "CustomsItem", "created_at": "2024-08-15T19:53:56Z", "updated_at": - "2024-08-15T19:53:56Z", "description": "Sweet shirts", "hs_tariff_number": + "declaration": null, "customs_items": [{"id": "cstitem_2034f78e08094af69a5553b9b216f5ed", + "object": "CustomsItem", "created_at": "2025-03-07T16:46:21Z", "updated_at": + "2025-03-07T16:46:21Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": null}]}, "from_address": {"id": - "adr_1af195515b4011efbb28ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", "name": + "adr_b31a5f20fb7311ef9cfbac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:21+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_1cc31c37166d41b3b6a630338c821c55", - "object": "Parcel", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_42d5d9cb37b446629ad9c14e0a65defd", + "object": "Parcel", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_56e694d2cf6d44acbc854fc8071b703b", - "created_at": "2024-08-15T19:53:57Z", "updated_at": "2024-08-15T19:53:59Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:57Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_422bd54a5bbd49469dab6d449581c9b1", + "created_at": "2025-03-07T16:46:22Z", "updated_at": "2025-03-07T16:46:23Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:22Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e84582a7855852473f94f3c4dfcd5a0c82.png", - "label_pdf_url": null, "label_zpl_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20240815/e5966c7ca3ef4403b9a2a472213595cc.zpl", - "label_epl2_url": null, "label_file": null}, "rates": [{"id": "rate_9ff2d3861d584f9f81ea451cf7e860fe", - "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8dd8fe8e5de7549e9b1766fe7097bd045.png", + "label_pdf_url": null, "label_zpl_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20250307/e23ee2095e0f48a1a5deefdf4dca9ea7.zpl", + "label_epl2_url": null, "label_file": null}, "rates": [{"id": "rate_174dbc718dd144c3a44fd4fc093513a4", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_81e6885100654291b65afbbe6c815e05", - "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b4fbf86b5af745aeaf44804a88d58eb7", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bb68f987d86c48eb80a4474601744aff", - "object": "Rate", "created_at": "2024-08-15T19:53:56Z", "updated_at": "2024-08-15T19:53:56Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2aab040e952b46db809c2b24380c674b", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": + 3, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_bb68f987d86c48eb80a4474601744aff", "object": - "Rate", "created_at": "2024-08-15T19:53:57Z", "updated_at": "2024-08-15T19:53:57Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_2aab040e952b46db809c2b24380c674b", "object": + "Rate", "created_at": "2025-03-07T16:46:22Z", "updated_at": "2025-03-07T16:46:22Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4b0cf8b1afd640158ca7db0b6a167e7a", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742978", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:57Z", - "updated_at": "2024-08-15T19:53:58Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:58Z", "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", + 3, "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_3f4c7b1064ad443e9f24161e3ec72ebf", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505664", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:22Z", + "updated_at": "2025-03-07T16:46:22Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:22Z", "shipment_id": "shp_5f25253b03cd4bd18d27f49763f2433b", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:58Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:22Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:58Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:22Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -465,9 +400,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzRiMGNmOGIxYWZkNjQwMTU4Y2E3ZGIwYjZhMTY3ZTdh"}, - "to_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:57+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzNmNGM3YjEwNjRhZDQ0M2U5ZjI0MTYxZTNlYzcyZWJm"}, + "to_address": {"id": "adr_b317fa6afb7311efbd57ac1f6bc53342", "object": "Address", + "created_at": "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:22+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -475,14 +410,14 @@ interactions: "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_1af195515b4011efbb28ac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:55+00:00", + 4, "return_address": {"id": "adr_b31a5f20fb7311ef9cfbac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:21+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_1aeeb0495b4011ef9bdcac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:53:55+00:00", "updated_at": "2024-08-15T19:53:57+00:00", + {}}, "buyer_address": {"id": "adr_b317fa6afb7311efbd57ac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:22+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -492,13 +427,12 @@ interactions: "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.93000", "charged": true, "refunded": false}], "id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", - "object": "Shipment"}' + "6.07000", "charged": true, "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '10280' + - '8528' content-type: - application/json; charset=utf-8 expires: @@ -518,20 +452,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cd6e788624400175c4a + - 6eaaf8fa67cb22dee2aaba24000ae486 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.683488' + - '1.356256' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_create.yaml b/tests/cassettes/test_shipment_create.yaml index 8525ccc1..4ea68e19 100644 --- a/tests/cassettes/test_shipment_create.yaml +++ b/tests/cassettes/test_shipment_create.yaml @@ -31,106 +31,84 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:53:47Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_4f5381cd729d48c2adc4d2d801d655e2", "created_at": "2025-03-07T16:46:17Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-08-15T19:53:48Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_bd2adfe345314386a7ced82c52fcfdf5", - "object": "CustomsInfo", "created_at": "2024-08-15T19:53:47Z", "updated_at": - "2024-08-15T19:53:47Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2025-03-07T16:46:17Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_97b059fb952a4d8b87e3f5f1cb89878f", + "object": "CustomsInfo", "created_at": "2025-03-07T16:46:17Z", "updated_at": + "2025-03-07T16:46:17Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_f9e58260076a4c18a0ee0f78fa4163ae", "object": "CustomsItem", - "created_at": "2024-08-15T19:53:47Z", "updated_at": "2024-08-15T19:53:47Z", + [{"id": "cstitem_08483c42308243d8b47c9b2fd67e2405", "object": "CustomsItem", + "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_15e713ae5b4011ef99dfac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:53:47+00:00", "updated_at": "2024-08-15T19:53:47+00:00", + null}]}, "from_address": {"id": "adr_b07ddf8cfb7311ef9ba7ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:17+00:00", "updated_at": "2025-03-07T16:46:17+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7c3ddba2ccea443b991dd18874179d49", - "object": "Parcel", "created_at": "2024-08-15T19:53:47Z", "updated_at": "2024-08-15T19:53:47Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_32603eb873f14a7ca8dd2c9593c756d2", + "object": "Parcel", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c08bd8a8060249c3906c5dd3c8c943f6", - "object": "Rate", "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c8501931eb2b4c1fb25e1af7f3286bf4", + "object": "Rate", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_4f5381cd729d48c2adc4d2d801d655e2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e10ea4fea5ba4d98a1a4135fe54737d7", + "object": "Rate", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_d1be4a906cdc460a91945ae576a19b27", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4e5b06bfacad41209a6367a17a48d4f7", - "object": "Rate", "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_4f5381cd729d48c2adc4d2d801d655e2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_96763f5dc32548538c44e7c479243e38", + "object": "Rate", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_d1be4a906cdc460a91945ae576a19b27", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a23e93e4df0c4f3f94eb0c18d48994cc", - "object": "Rate", "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_d1be4a906cdc460a91945ae576a19b27", "carrier_account_id": + 3, "shipment_id": "shp_4f5381cd729d48c2adc4d2d801d655e2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_15e4e95d5b4011ef99deac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:47+00:00", "updated_at": - "2024-08-15T19:53:47+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b0798197fb7311efa15bac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:17+00:00", "updated_at": + "2025-03-07T16:46:17+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_15e713ae5b4011ef99dfac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:53:47+00:00", "updated_at": "2024-08-15T19:53:47+00:00", "name": + {"id": "adr_b07ddf8cfb7311ef9ba7ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:17+00:00", "updated_at": "2025-03-07T16:46:17+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_15e4e95d5b4011ef99deac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:53:47+00:00", "updated_at": "2024-08-15T19:53:47+00:00", + {}}, "buyer_address": {"id": "adr_b0798197fb7311efa15bac1f6bc539aa", "object": + "Address", "created_at": "2025-03-07T16:46:17+00:00", "updated_at": "2025-03-07T16:46:17+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_d1be4a906cdc460a91945ae576a19b27", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6912' + - '5160' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_d1be4a906cdc460a91945ae576a19b27 + - /api/v2/shipments/shp_4f5381cd729d48c2adc4d2d801d655e2 pragma: - no-cache referrer-policy: @@ -146,20 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5ccbe788622700175213 + - 6eaaf8ff67cb22d9e2aaba1e000adc25 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.711145' + - '0.266061' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_create_empty_objects.yaml b/tests/cassettes/test_shipment_create_empty_objects.yaml index bb62319d..8e9f2cb3 100644 --- a/tests/cassettes/test_shipment_create_empty_objects.yaml +++ b/tests/cassettes/test_shipment_create_empty_objects.yaml @@ -27,93 +27,73 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:04Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:54:05Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_1ff60c035b4011ef9deaac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:54:04+00:00", "updated_at": - "2024-08-15T19:54:04+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_c11ea6e5487443c8907aa0f6d8934895", "object": - "Parcel", "created_at": "2024-08-15T19:54:04Z", "updated_at": "2024-08-15T19:54:04Z", + string: '{"id": "shp_90174cdd27e14b87aa4b1acde0df3fe3", "created_at": "2025-03-07T16:46:27Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": null, "updated_at": "2025-03-07T16:46:27Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_b65e45c8fb7311ef9df83cecef1b359e", "object": + "Address", "created_at": "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_87efb4b5d79f45398f5e0c0ff7b8cfe9", + "object": "Parcel", "created_at": "2025-03-07T16:46:27Z", "updated_at": "2025-03-07T16:46:27Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_5f0194c2094d415b9c01fdaf94d3f515", - "object": "Rate", "created_at": "2024-08-15T19:54:05Z", "updated_at": "2024-08-15T19:54:05Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_678f8456b73a4c799a9536d47a05c415", + "object": "Rate", "created_at": "2025-03-07T16:46:27Z", "updated_at": "2025-03-07T16:46:27Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_7dfde8feb9a6482c84e3c47f97c14e3e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3c40de2790c04b93b913908471e18a97", - "object": "Rate", "created_at": "2024-08-15T19:54:05Z", "updated_at": "2024-08-15T19:54:05Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_90174cdd27e14b87aa4b1acde0df3fe3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bd9ec1df48074da1822025158938362d", + "object": "Rate", "created_at": "2025-03-07T16:46:27Z", "updated_at": "2025-03-07T16:46:27Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_7dfde8feb9a6482c84e3c47f97c14e3e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_10c42728a9434925ba380ada18c25c2a", - "object": "Rate", "created_at": "2024-08-15T19:54:05Z", "updated_at": "2024-08-15T19:54:05Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_90174cdd27e14b87aa4b1acde0df3fe3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d8d0020c93f848a99e1e7c17b091ab63", + "object": "Rate", "created_at": "2025-03-07T16:46:27Z", "updated_at": "2025-03-07T16:46:27Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_7dfde8feb9a6482c84e3c47f97c14e3e", "carrier_account_id": + 3, "shipment_id": "shp_90174cdd27e14b87aa4b1acde0df3fe3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_1ff3402b5b4011efac0f3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:54:04+00:00", "updated_at": - "2024-08-15T19:54:04+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b659cd7dfb7311efa4d4ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:27+00:00", "updated_at": + "2025-03-07T16:46:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_1ff60c035b4011ef9deaac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:54:04+00:00", "updated_at": "2024-08-15T19:54:04+00:00", "name": + {"id": "adr_b65e45c8fb7311ef9df83cecef1b359e", "object": "Address", "created_at": + "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_1ff3402b5b4011efac0f3cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:54:04+00:00", "updated_at": "2024-08-15T19:54:04+00:00", + {}}, "buyer_address": {"id": "adr_b659cd7dfb7311efa4d4ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_7dfde8feb9a6482c84e3c47f97c14e3e", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5804' + - '4325' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_7dfde8feb9a6482c84e3c47f97c14e3e + - /api/v2/shipments/shp_90174cdd27e14b87aa4b1acde0df3fe3 pragma: - no-cache referrer-policy: @@ -129,20 +109,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5cdce7886248001762c9 + - 6eaaf8fe67cb22e3e2aabd5c000aeba3 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.786989' + - '0.266752' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_create_tax_identifier.yaml b/tests/cassettes/test_shipment_create_tax_identifier.yaml index c4c19a68..c0bddaa7 100644 --- a/tests/cassettes/test_shipment_create_tax_identifier.yaml +++ b/tests/cassettes/test_shipment_create_tax_identifier.yaml @@ -27,94 +27,74 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:05Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", - "type": "rate_error", "message": "Invalid Access License number"}], "mode": - "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:54:06Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_209098545b4011ef8e50ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:54:05+00:00", "updated_at": - "2024-08-15T19:54:05+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_6ae4d953176c409094c2c4977f803362", "object": - "Parcel", "created_at": "2024-08-15T19:54:05Z", "updated_at": "2024-08-15T19:54:05Z", + string: '{"id": "shp_6bb281b7493b4f678e1922b18abd6230", "created_at": "2025-03-07T16:46:27Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": null, "updated_at": "2025-03-07T16:46:27Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_b695897dfb7311ef9f53ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_d7554c3efce24584ad33b0289b842f4e", + "object": "Parcel", "created_at": "2025-03-07T16:46:27Z", "updated_at": "2025-03-07T16:46:27Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_69572a15cce345cca87b29e8f8bdd66d", - "object": "Rate", "created_at": "2024-08-15T19:54:06Z", "updated_at": "2024-08-15T19:54:06Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_64bd7a7fe66c423b8af7a9d220e23f3b", + "object": "Rate", "created_at": "2025-03-07T16:46:27Z", "updated_at": "2025-03-07T16:46:27Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_6bb281b7493b4f678e1922b18abd6230", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_55ab1b175d964f7588f9307843d993b3", + "object": "Rate", "created_at": "2025-03-07T16:46:27Z", "updated_at": "2025-03-07T16:46:27Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8da99a570ede4f8893e7ecd2f65db7d1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ccca1f41d8e8434a826e1bca6063b764", - "object": "Rate", "created_at": "2024-08-15T19:54:06Z", "updated_at": "2024-08-15T19:54:06Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_6bb281b7493b4f678e1922b18abd6230", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f8b6ad305532462f9aa5b1a5db1a91a9", + "object": "Rate", "created_at": "2025-03-07T16:46:27Z", "updated_at": "2025-03-07T16:46:27Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8da99a570ede4f8893e7ecd2f65db7d1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_53061899d9254801b2a3354a816c2026", - "object": "Rate", "created_at": "2024-08-15T19:54:06Z", "updated_at": "2024-08-15T19:54:06Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_8da99a570ede4f8893e7ecd2f65db7d1", "carrier_account_id": + 3, "shipment_id": "shp_6bb281b7493b4f678e1922b18abd6230", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_208e62c05b4011ef9e19ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:54:05+00:00", "updated_at": - "2024-08-15T19:54:05+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b693b98cfb7311ef9e0d3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:27+00:00", "updated_at": + "2025-03-07T16:46:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_209098545b4011ef8e50ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:54:05+00:00", "updated_at": "2024-08-15T19:54:05+00:00", "name": + {"id": "adr_b695897dfb7311ef9f53ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_208e62c05b4011ef9e19ac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:54:05+00:00", "updated_at": "2024-08-15T19:54:05+00:00", + {}}, "buyer_address": {"id": "adr_b693b98cfb7311ef9e0d3cecef1b359e", "object": + "Address", "created_at": "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_8da99a570ede4f8893e7ecd2f65db7d1", - "object": "Shipment", "tax_identifiers": [{"entity": "SENDER", "tax_id": "HIDDEN", - "tax_id_type": "IOSS", "issuing_country": "GB"}]}' + {}}, "forms": [], "fees": [], "object": "Shipment", "tax_identifiers": [{"entity": + "SENDER", "tax_id": "HIDDEN", "tax_id_type": "IOSS", "issuing_country": "GB"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '5906' + - '4427' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_8da99a570ede4f8893e7ecd2f65db7d1 + - /api/v2/shipments/shp_6bb281b7493b4f678e1922b18abd6230 pragma: - no-cache referrer-policy: @@ -130,20 +110,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5cdde7886249001763fe + - 6eaaf8fb67cb22e3e2aabd5d000aec2f x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.029683' + - '0.232970' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_create_with_ids.yaml b/tests/cassettes/test_shipment_create_with_ids.yaml index 1f4c88c4..37404af1 100644 --- a/tests/cassettes/test_shipment_create_with_ids.yaml +++ b/tests/cassettes/test_shipment_create_with_ids.yaml @@ -22,8 +22,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_215447c15b4011ef9e7aac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:54:06+00:00", "updated_at": "2024-08-15T19:54:06+00:00", + string: '{"id": "adr_b6ca70bbfb7311ef9f6dac1f6bc539ae", "object": "Address", + "created_at": "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -39,7 +39,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_215447c15b4011ef9e7aac1f6bc539aa + - /api/v2/addresses/adr_b6ca70bbfb7311ef9f6dac1f6bc539ae pragma: - no-cache referrer-policy: @@ -57,7 +57,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5cdee788624a001765bf + - 6eaaf90167cb22e3e2aabd75000aec9c x-frame-options: - SAMEORIGIN x-node: @@ -65,12 +65,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.036798' + - '0.052364' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -99,8 +99,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_2165ada15b4011efaca83cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:54:06+00:00", "updated_at": "2024-08-15T19:54:06+00:00", + string: '{"id": "adr_b6d6d8a7fb7311ef9f72ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -116,7 +116,7 @@ interactions: expires: - '0' location: - - /api/v2/addresses/adr_2165ada15b4011efaca83cecef1b359e + - /api/v2/addresses/adr_b6d6d8a7fb7311ef9f72ac1f6bc539ae pragma: - no-cache referrer-policy: @@ -127,27 +127,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5cdee788624a001765e6 + - 6eaaf90167cb22e3e2aabd75000aecb3 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.038789' + - '0.053079' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -174,8 +172,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_d79b6967ad3d4329a0321ad32b856733", "object": "Parcel", - "created_at": "2024-08-15T19:54:06Z", "updated_at": "2024-08-15T19:54:06Z", + string: '{"id": "prcl_16e46f5f5e6b4d01817d81a01382b58f", "object": "Parcel", + "created_at": "2025-03-07T16:46:27Z", "updated_at": "2025-03-07T16:46:27Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -188,7 +186,7 @@ interactions: expires: - '0' location: - - /api/v2/parcels/prcl_d79b6967ad3d4329a0321ad32b856733 + - /api/v2/parcels/prcl_16e46f5f5e6b4d01817d81a01382b58f pragma: - no-cache referrer-policy: @@ -204,29 +202,29 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5cdee788624a0017660b + - 6eaaf90167cb22e3e2aabd75000aecd5 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.031866' + - '0.025819' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"shipment": {"from_address": {"id": "adr_215447c15b4011ef9e7aac1f6bc539aa"}, - "to_address": {"id": "adr_2165ada15b4011efaca83cecef1b359e"}, "parcel": {"id": - "prcl_d79b6967ad3d4329a0321ad32b856733"}}}' + body: '{"shipment": {"from_address": {"id": "adr_b6ca70bbfb7311ef9f6dac1f6bc539ae"}, + "to_address": {"id": "adr_b6d6d8a7fb7311ef9f72ac1f6bc539ae"}, "parcel": {"id": + "prcl_16e46f5f5e6b4d01817d81a01382b58f"}}}' headers: Accept: - '*/*' @@ -246,93 +244,73 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:07Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:54:07Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_215447c15b4011ef9e7aac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:54:06+00:00", "updated_at": - "2024-08-15T19:54:06+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_d79b6967ad3d4329a0321ad32b856733", "object": - "Parcel", "created_at": "2024-08-15T19:54:06Z", "updated_at": "2024-08-15T19:54:06Z", + string: '{"id": "shp_3660b5de40c842cf95732770ca03c71e", "created_at": "2025-03-07T16:46:28Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": null, "updated_at": "2025-03-07T16:46:28Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_b6ca70bbfb7311ef9f6dac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_16e46f5f5e6b4d01817d81a01382b58f", + "object": "Parcel", "created_at": "2025-03-07T16:46:27Z", "updated_at": "2025-03-07T16:46:27Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_b25b320a2c434576b8f697109fd4fd3e", - "object": "Rate", "created_at": "2024-08-15T19:54:07Z", "updated_at": "2024-08-15T19:54:07Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.64", - "currency": "USD", "retail_rate": "9.25", "retail_currency": "USD", "list_rate": - "7.90", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_117851bcd53a4b6abe0512532d77c6af", + "object": "Rate", "created_at": "2025-03-07T16:46:28Z", "updated_at": "2025-03-07T16:46:28Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.54", + "currency": "USD", "retail_rate": "9.35", "retail_currency": "USD", "list_rate": + "7.99", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_f83b9a87d23948d0905ca72f8d826b3f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_afbf4330295c4c8686005745ea4ad00c", - "object": "Rate", "created_at": "2024-08-15T19:54:07Z", "updated_at": "2024-08-15T19:54:07Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.52", - "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": - "6.17", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_3660b5de40c842cf95732770ca03c71e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_412094b9476f41bcab56c1749a7c29c4", + "object": "Rate", "created_at": "2025-03-07T16:46:28Z", "updated_at": "2025-03-07T16:46:28Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.65", + "currency": "USD", "retail_rate": "8.35", "retail_currency": "USD", "list_rate": + "6.33", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_f83b9a87d23948d0905ca72f8d826b3f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a09f5bef4bf047678722f816de097820", - "object": "Rate", "created_at": "2024-08-15T19:54:07Z", "updated_at": "2024-08-15T19:54:07Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "26.75", - "currency": "USD", "retail_rate": "30.95", "retail_currency": "USD", "list_rate": - "26.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_3660b5de40c842cf95732770ca03c71e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_568831d4eadf4d008d81fbc80459910c", + "object": "Rate", "created_at": "2025-03-07T16:46:28Z", "updated_at": "2025-03-07T16:46:28Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "27.60", + "currency": "USD", "retail_rate": "31.95", "retail_currency": "USD", "list_rate": + "27.60", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_f83b9a87d23948d0905ca72f8d826b3f", "carrier_account_id": + 1, "shipment_id": "shp_3660b5de40c842cf95732770ca03c71e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_2165ada15b4011efaca83cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:54:06+00:00", "updated_at": - "2024-08-15T19:54:06+00:00", "name": "Jack Sparrow", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b6d6d8a7fb7311ef9f72ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-07T16:46:27+00:00", "updated_at": + "2025-03-07T16:46:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 1, "return_address": - {"id": "adr_215447c15b4011ef9e7aac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:54:06+00:00", "updated_at": "2024-08-15T19:54:06+00:00", "name": + {"id": "adr_b6ca70bbfb7311ef9f6dac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_2165ada15b4011efaca83cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:54:06+00:00", "updated_at": "2024-08-15T19:54:06+00:00", + {}}, "buyer_address": {"id": "adr_b6d6d8a7fb7311ef9f72ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:27+00:00", "updated_at": "2025-03-07T16:46:27+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_f83b9a87d23948d0905ca72f8d826b3f", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5808' + - '4329' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_f83b9a87d23948d0905ca72f8d826b3f + - /api/v2/shipments/shp_3660b5de40c842cf95732770ca03c71e pragma: - no-cache referrer-policy: @@ -348,20 +326,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5cdfe788624a0017661b + - 6eaaf90167cb22e4e2aabd75000aece7 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.775498' + - '0.177039' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_generate_form.yaml b/tests/cassettes/test_shipment_generate_form.yaml index 58ad9bea..9ede95d1 100644 --- a/tests/cassettes/test_shipment_generate_form.yaml +++ b/tests/cassettes/test_shipment_generate_form.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:11Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075743067", "updated_at": "2024-08-15T19:54:12Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_246ce07f5b4011efae183cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:11+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_32a6abc923004b41845599487982cd49", - "object": "Parcel", "created_at": "2024-08-15T19:54:11Z", "updated_at": "2024-08-15T19:54:11Z", + string: '{"id": "shp_0d6b20226e494736aa947169c8d24bf6", "created_at": "2025-03-07T16:46:29Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505695", "updated_at": + "2025-03-07T16:46:30Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_b7f8e61ffb7311ef9eca3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:29+00:00", "updated_at": + "2025-03-07T16:46:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_5d41e80a1df240b688eb8fc5696a4bf5", "object": + "Parcel", "created_at": "2025-03-07T16:46:29Z", "updated_at": "2025-03-07T16:46:29Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6d44b89c577d4cb4bffba42f3b0a682f", - "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:12Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_288b7cf0b90447bd9232d51c1bf25830", + "created_at": "2025-03-07T16:46:30Z", "updated_at": "2025-03-07T16:46:30Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:30Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8d108ded4879b4bbcbc6241485676c787.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e85e45f2badc7c4c0db07c7e4b594f8282.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_5d672114742344f6b5f4656ef928195f", "object": - "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_ca8d31d84b50481a84720db0a1f55331", "object": + "Rate", "created_at": "2025-03-07T16:46:30Z", "updated_at": "2025-03-07T16:46:30Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_0d6b20226e494736aa947169c8d24bf6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_19dcf38e6f444db1adb6e38b93375382", + "object": "Rate", "created_at": "2025-03-07T16:46:30Z", "updated_at": "2025-03-07T16:46:30Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_50f0eccf94d14ecabb0bcef922523bbc", - "object": "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_0d6b20226e494736aa947169c8d24bf6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_585cf48015a940dfb200d4c77df8cfb6", + "object": "Rate", "created_at": "2025-03-07T16:46:30Z", "updated_at": "2025-03-07T16:46:30Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_84d82fbb0f0a4f3993f7a3901c4a4499", - "object": "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": + 1, "shipment_id": "shp_0d6b20226e494736aa947169c8d24bf6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_5d672114742344f6b5f4656ef928195f", "object": - "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_19dcf38e6f444db1adb6e38b93375382", "object": + "Rate", "created_at": "2025-03-07T16:46:30Z", "updated_at": "2025-03-07T16:46:30Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_192cc0249a284e6889bee8390cf47341", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743067", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:54:13Z", - "updated_at": "2024-08-15T19:54:13Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier": "USPS", + 3, "shipment_id": "shp_0d6b20226e494736aa947169c8d24bf6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_53cb015bbb2a46abbc80d1918a131ee5", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505695", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:30Z", + "updated_at": "2025-03-07T16:46:30Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_0d6b20226e494736aa947169c8d24bf6", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzE5MmNjMDI0OWEyODRlNjg4OWJlZTgzOTBjZjQ3MzQx"}, - "to_address": {"id": "adr_246a76725b4011ef900aac1f6bc539ae", "object": "Address", - "created_at": "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:12+00:00", + "https://track.easypost.com/djE6dHJrXzUzY2IwMTViYmIyYTQ2YWJiYzgwZDE5MThhMTMxZWU1"}, + "to_address": {"id": "adr_b7f651a1fb7311ef804bac1f6bc53342", "object": "Address", + "created_at": "2025-03-07T16:46:29+00:00", "updated_at": "2025-03-07T16:46:30+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_246ce07f5b4011efae183cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:54:11+00:00", "updated_at": - "2024-08-15T19:54:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_b7f8e61ffb7311ef9eca3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:29+00:00", "updated_at": + "2025-03-07T16:46:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_246a76725b4011ef900aac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:12+00:00", "name": + "adr_b7f651a1fb7311ef804bac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:46:29+00:00", "updated_at": "2025-03-07T16:46:30+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_c190d06e12f54c1488bcd4e91fa4bd9b + - /api/v2/shipments/shp_0d6b20226e494736aa947169c8d24bf6 pragma: - no-cache referrer-policy: @@ -133,25 +133,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5ce3e788626600176ad7 + - 6eaaf8ff67cb22e5e2aabd7c000aef52 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.203664' + - '0.996671' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -177,70 +179,71 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_c190d06e12f54c1488bcd4e91fa4bd9b/forms + uri: https://api.easypost.com/v2/shipments/shp_0d6b20226e494736aa947169c8d24bf6/forms response: body: - string: '{"created_at": "2024-08-15T19:54:11Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075743067", "updated_at": "2024-08-15T19:54:12Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_246ce07f5b4011efae183cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:11+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_32a6abc923004b41845599487982cd49", - "object": "Parcel", "created_at": "2024-08-15T19:54:11Z", "updated_at": "2024-08-15T19:54:11Z", + string: '{"id": "shp_0d6b20226e494736aa947169c8d24bf6", "created_at": "2025-03-07T16:46:29Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505695", "updated_at": + "2025-03-07T16:46:30Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_b7f8e61ffb7311ef9eca3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:29+00:00", "updated_at": + "2025-03-07T16:46:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_5d41e80a1df240b688eb8fc5696a4bf5", "object": + "Parcel", "created_at": "2025-03-07T16:46:29Z", "updated_at": "2025-03-07T16:46:29Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6d44b89c577d4cb4bffba42f3b0a682f", - "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:12Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_288b7cf0b90447bd9232d51c1bf25830", + "created_at": "2025-03-07T16:46:30Z", "updated_at": "2025-03-07T16:46:30Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:30Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8d108ded4879b4bbcbc6241485676c787.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e85e45f2badc7c4c0db07c7e4b594f8282.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_5d672114742344f6b5f4656ef928195f", "object": - "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_ca8d31d84b50481a84720db0a1f55331", "object": + "Rate", "created_at": "2025-03-07T16:46:30Z", "updated_at": "2025-03-07T16:46:30Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_0d6b20226e494736aa947169c8d24bf6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_19dcf38e6f444db1adb6e38b93375382", + "object": "Rate", "created_at": "2025-03-07T16:46:30Z", "updated_at": "2025-03-07T16:46:30Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_50f0eccf94d14ecabb0bcef922523bbc", - "object": "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_0d6b20226e494736aa947169c8d24bf6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_585cf48015a940dfb200d4c77df8cfb6", + "object": "Rate", "created_at": "2025-03-07T16:46:30Z", "updated_at": "2025-03-07T16:46:30Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_84d82fbb0f0a4f3993f7a3901c4a4499", - "object": "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": + 1, "shipment_id": "shp_0d6b20226e494736aa947169c8d24bf6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_5d672114742344f6b5f4656ef928195f", "object": - "Rate", "created_at": "2024-08-15T19:54:12Z", "updated_at": "2024-08-15T19:54:12Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_19dcf38e6f444db1adb6e38b93375382", "object": + "Rate", "created_at": "2025-03-07T16:46:30Z", "updated_at": "2025-03-07T16:46:30Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_192cc0249a284e6889bee8390cf47341", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743067", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:54:13Z", - "updated_at": "2024-08-15T19:54:13Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:13Z", "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", + 3, "shipment_id": "shp_0d6b20226e494736aa947169c8d24bf6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_53cb015bbb2a46abbc80d1918a131ee5", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505695", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:30Z", + "updated_at": "2025-03-07T16:46:30Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:30Z", "shipment_id": "shp_0d6b20226e494736aa947169c8d24bf6", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:13Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:30Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:13Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:30Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -249,9 +252,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzE5MmNjMDI0OWEyODRlNjg4OWJlZTgzOTBjZjQ3MzQx"}, - "to_address": {"id": "adr_246a76725b4011ef900aac1f6bc539ae", "object": "Address", - "created_at": "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:12+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzUzY2IwMTViYmIyYTQ2YWJiYzgwZDE5MThhMTMxZWU1"}, + "to_address": {"id": "adr_b7f651a1fb7311ef804bac1f6bc53342", "object": "Address", + "created_at": "2025-03-07T16:46:29+00:00", "updated_at": "2025-03-07T16:46:30+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -259,15 +262,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_246ce07f5b4011efae183cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:54:11+00:00", "updated_at": - "2024-08-15T19:54:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_b7f8e61ffb7311ef9eca3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:29+00:00", "updated_at": + "2025-03-07T16:46:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_246a76725b4011ef900aac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:54:11+00:00", "updated_at": "2024-08-15T19:54:12+00:00", "name": + "adr_b7f651a1fb7311ef804bac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:46:29+00:00", "updated_at": "2025-03-07T16:46:30+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -275,13 +278,13 @@ interactions: {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [{"object": "Form", "id": - "form_d9f41de4bafd49af991bec5d1b609b5d", "created_at": "2024-08-15T19:54:13Z", - "updated_at": "2024-08-15T19:54:13Z", "mode": "test", "form_type": "return_packing_slip", - "form_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20240815/8a23101b60c6458ca61488be3681fdc6.pdf", + "form_039d1d5a83924f6ca931c5221319a4c5", "created_at": "2025-03-07T16:46:31Z", + "updated_at": "2025-03-07T16:46:31Z", "mode": "test", "form_type": "return_packing_slip", + "form_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20250307/b560bbbe1ab0484a9de736143ab49f0d.pdf", "submitted_electronically": null}], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", - "type": "PostageFee", "amount": "5.93000", "charged": true, "refunded": false}], - "id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", "object": "Shipment"}' + "type": "PostageFee", "amount": "6.07000", "charged": true, "refunded": false}], + "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -292,7 +295,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_c190d06e12f54c1488bcd4e91fa4bd9b/forms/return_packing_slip + - /api/v2/shipments/shp_0d6b20226e494736aa947169c8d24bf6/forms/return_packing_slip pragma: - no-cache referrer-policy: @@ -308,20 +311,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5ce5e788626600176c22 + - 6eaaf8ff67cb22e6e2aabd7c000af0b0 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.526436' + - '0.587254' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_get_lowest_smart_rate.yaml b/tests/cassettes/test_shipment_get_lowest_smart_rate.yaml index ce8ef5a4..087f17e8 100644 --- a/tests/cassettes/test_shipment_get_lowest_smart_rate.yaml +++ b/tests/cassettes/test_shipment_get_lowest_smart_rate.yaml @@ -26,93 +26,73 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:10Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:54:11Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_23ab39155b4011efadc13cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:54:10+00:00", "updated_at": - "2024-08-15T19:54:10+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_20a0c8f506d0452081661ef2e46f640a", "object": - "Parcel", "created_at": "2024-08-15T19:54:10Z", "updated_at": "2024-08-15T19:54:10Z", + string: '{"id": "shp_59e1ea2ee4ef420bb4560e4df6fc1057", "created_at": "2025-03-07T16:46:29Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": null, "updated_at": "2025-03-07T16:46:29Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_b7aacbcffb7311ef8022ac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:29+00:00", "updated_at": "2025-03-07T16:46:29+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b81bb32a9edd4eceacf041baa39cbe6c", + "object": "Parcel", "created_at": "2025-03-07T16:46:29Z", "updated_at": "2025-03-07T16:46:29Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c086265f699c41b2bd93253125875eb6", - "object": "Rate", "created_at": "2024-08-15T19:54:11Z", "updated_at": "2024-08-15T19:54:11Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0cbe7fbf881b4614852dd2976333d88a", + "object": "Rate", "created_at": "2025-03-07T16:46:29Z", "updated_at": "2025-03-07T16:46:29Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_4f66c1da7957450d9c420f2bf976590f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f0914fd1ce694c2c85ecf766b1408ab8", - "object": "Rate", "created_at": "2024-08-15T19:54:11Z", "updated_at": "2024-08-15T19:54:11Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_59e1ea2ee4ef420bb4560e4df6fc1057", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d11be14d3ff24a0b8140005f97a0702f", + "object": "Rate", "created_at": "2025-03-07T16:46:29Z", "updated_at": "2025-03-07T16:46:29Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_4f66c1da7957450d9c420f2bf976590f", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_55f5e84df21145d080723de0e12dcb67", - "object": "Rate", "created_at": "2024-08-15T19:54:11Z", "updated_at": "2024-08-15T19:54:11Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_59e1ea2ee4ef420bb4560e4df6fc1057", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5d8ad0d375de4b06a14ed74e9d8c3fd6", + "object": "Rate", "created_at": "2025-03-07T16:46:29Z", "updated_at": "2025-03-07T16:46:29Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_4f66c1da7957450d9c420f2bf976590f", "carrier_account_id": + 1, "shipment_id": "shp_59e1ea2ee4ef420bb4560e4df6fc1057", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_23a726e45b4011ef8faaac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:54:10+00:00", "updated_at": - "2024-08-15T19:54:10+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b7a76fdafb7311ef9fe5ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-07T16:46:29+00:00", "updated_at": + "2025-03-07T16:46:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_23ab39155b4011efadc13cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:54:10+00:00", "updated_at": "2024-08-15T19:54:10+00:00", "name": + {"id": "adr_b7aacbcffb7311ef8022ac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:46:29+00:00", "updated_at": "2025-03-07T16:46:29+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_23a726e45b4011ef8faaac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:54:10+00:00", "updated_at": "2024-08-15T19:54:10+00:00", + {}}, "buyer_address": {"id": "adr_b7a76fdafb7311ef9fe5ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:29+00:00", "updated_at": "2025-03-07T16:46:29+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_4f66c1da7957450d9c420f2bf976590f", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5804' + - '4325' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_4f66c1da7957450d9c420f2bf976590f + - /api/v2/shipments/shp_59e1ea2ee4ef420bb4560e4df6fc1057 pragma: - no-cache referrer-policy: @@ -128,20 +108,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5ce2e788626500176991 + - 6eaaf8ff67cb22e5e2aabd7a000aee8a x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.833516' + - '0.226865' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -161,40 +141,40 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_4f66c1da7957450d9c420f2bf976590f/smartrate + uri: https://api.easypost.com/v2/shipments/shp_59e1ea2ee4ef420bb4560e4df6fc1057/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:11Z", "currency": "USD", "delivery_date": + "created_at": "2025-03-07T16:46:29Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_c086265f699c41b2bd93253125875eb6", "list_currency": "USD", - "list_rate": 8.25, "mode": "test", "object": "Rate", "rate": 6.9, "retail_currency": - "USD", "retail_rate": 9.8, "service": "Priority", "shipment_id": "shp_4f66c1da7957450d9c420f2bf976590f", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2024-08-15T19:54:11Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2024-08-15T19:54:11Z", + 2, "id": "rate_0cbe7fbf881b4614852dd2976333d88a", "list_currency": "USD", + "list_rate": 8.34, "mode": "test", "object": "Rate", "rate": 7.42, "retail_currency": + "USD", "retail_rate": 9.9, "service": "Priority", "shipment_id": "shp_59e1ea2ee4ef420bb4560e4df6fc1057", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 3, "percentile_99": + 4}, "updated_at": "2025-03-07T16:46:29Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2025-03-07T16:46:29Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_f0914fd1ce694c2c85ecf766b1408ab8", - "list_currency": "USD", "list_rate": 6.4, "mode": "test", "object": "Rate", - "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.45, "service": "GroundAdvantage", - "shipment_id": "shp_4f66c1da7957450d9c420f2bf976590f", "time_in_transit": + "delivery_days": 3, "est_delivery_days": 3, "id": "rate_d11be14d3ff24a0b8140005f97a0702f", + "list_currency": "USD", "list_rate": 6.57, "mode": "test", "object": "Rate", + "rate": 6.07, "retail_currency": "USD", "retail_rate": 8.85, "service": "GroundAdvantage", + "shipment_id": "shp_59e1ea2ee4ef420bb4560e4df6fc1057", "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": 3}, "updated_at": - "2024-08-15T19:54:11Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:11Z", "currency": "USD", "delivery_date": + 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": 4}, "updated_at": + "2025-03-07T16:46:29Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2025-03-07T16:46:29Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": - 1, "id": "rate_55f5e84df21145d080723de0e12dcb67", "list_currency": "USD", - "list_rate": 33.1, "mode": "test", "object": "Rate", "rate": 33.1, "retail_currency": - "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_4f66c1da7957450d9c420f2bf976590f", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 7}, "updated_at": "2024-08-15T19:54:11Z"}]}' + 1, "id": "rate_5d8ad0d375de4b06a14ed74e9d8c3fd6", "list_currency": "USD", + "list_rate": 34.15, "mode": "test", "object": "Rate", "rate": 34.15, "retail_currency": + "USD", "retail_rate": 39.1, "service": "Express", "shipment_id": "shp_59e1ea2ee4ef420bb4560e4df6fc1057", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 4, "percentile_97": 5, "percentile_99": + 8}, "updated_at": "2025-03-07T16:46:29Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '1965' + - '1969' content-type: - application/json; charset=utf-8 expires: @@ -214,20 +194,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5ce3e788626500176a6b + - 6eaaf8ff67cb22e5e2aabd7a000aeeef x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.110125' + - '0.113517' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_get_next_page.yaml b/tests/cassettes/test_shipment_get_next_page.yaml index da10d5c9..842b97a7 100644 --- a/tests/cassettes/test_shipment_get_next_page.yaml +++ b/tests/cassettes/test_shipment_get_next_page.yaml @@ -16,79 +16,68 @@ interactions: uri: https://api.easypost.com/v2/shipments?page_size=5 response: body: - string: '{"shipments": [{"created_at": "2024-08-15T19:53:44Z", "is_return": - false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": "9400100105807075742923", "updated_at": "2024-08-15T19:53:46Z", - "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_d42002a5124a43348d65dc076d28bd8f", "object": - "Parcel", "created_at": "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", + string: '{"shipments": [{"id": "shp_6348a453cbd04b4189dc85524719e6b2", "created_at": + "2025-03-07T16:46:14Z", "is_return": false, "messages": [], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "unknown", "tracking_code": "9400100208303109505640", + "updated_at": "2025-03-07T16:46:15Z", "batch_id": "batch_0fc0517f6fb1426197560732520f8edd", + "batch_status": "postage_purchased", "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_af10e4b4fb7311ef9acaac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:14+00:00", "updated_at": "2025-03-07T16:46:14+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_a9373fdd04bd4d83874c7e397ecddcb6", + "object": "Parcel", "created_at": "2025-03-07T16:46:14Z", "updated_at": "2025-03-07T16:46:14Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_90dbc71ee37c4527a43004bcc4f854c0", - "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:45Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f54afe8913fb4046b55523838df4f97b", + "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:15Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8c1d8e98eb0e5413ea193e5c48897179a.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8b170594430f64d768ceb157887c5c28e.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_066e670ca6864c0f92e9090d9cebe164", "object": - "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_807950a46bbe43a489b7a57b38f488bf", - "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_56c61eed5d794978804e403bc5ed49e7", - "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_f9da1c97861743bba5eaf3db89b10898", "object": + "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": + 1, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f320606ea0bd45ef92a34f109234fc44", + "object": "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b501d85dcc0743fdb0d8ab673107bf5d", + "object": "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - {"id": "sf_3a6b244afc324e9292a0d69ce3081fe7", "object": "ScanForm", "created_at": - "2024-08-15T19:53:46Z", "updated_at": "2024-08-15T19:53:46Z", "tracking_codes": - ["9400100105807075742923"], "address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e8b848f4d480d349c6a40b3ea2c34450c2.pdf", - "form_file_type": null, "batch_id": "batch_fff5686dc3f646d3a28b3453f8fa7779", - "confirmation": null}, "selected_rate": {"id": "rate_807950a46bbe43a489b7a57b38f488bf", - "object": "Rate", "created_at": "2024-08-15T19:53:45Z", "updated_at": "2024-08-15T19:53:45Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_b501d85dcc0743fdb0d8ab673107bf5d", "object": + "Rate", "created_at": "2025-03-07T16:46:15Z", "updated_at": "2025-03-07T16:46:15Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4919a90d02f04349a34b4d71f8f8f411", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742923", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:46Z", - "updated_at": "2024-08-15T19:53:46Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:46Z", "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", + 3, "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_4c1b66c0dad34060a7b4704100bdd88e", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505640", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:15Z", + "updated_at": "2025-03-07T16:46:15Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:15Z", "shipment_id": "shp_6348a453cbd04b4189dc85524719e6b2", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:46Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:15Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:46Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:15Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -97,9 +86,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzQ5MTlhOTBkMDJmMDQzNDlhMzRiNGQ3MWY4ZjhmNDEx"}, - "to_address": {"id": "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzRjMWI2NmMwZGFkMzQwNjBhN2I0NzA0MTAwYmRkODhl"}, + "to_address": {"id": "adr_af0b9199fb7311ef9ac8ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-07T16:46:14+00:00", "updated_at": "2025-03-07T16:46:15+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -107,15 +96,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_1459438b5b4011ef995bac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:44+00:00", "updated_at": - "2024-08-15T19:53:44+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_af10e4b4fb7311ef9acaac1f6bc539ae", + "object": "Address", "created_at": "2025-03-07T16:46:14+00:00", "updated_at": + "2025-03-07T16:46:14+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_1454e8d35b4011efb883ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:44+00:00", "updated_at": "2024-08-15T19:53:45+00:00", "name": + "adr_af0b9199fb7311ef9ac8ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:14+00:00", "updated_at": "2025-03-07T16:46:15+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -124,81 +113,70 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_5e6513a2c7d34002be90ade89e5eb95e", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:43Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_b674aad341c24fe18611019a72ff6e84", + "created_at": "2025-03-07T16:46:11Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742909", "updated_at": "2024-08-15T19:53:44Z", "batch_id": - "batch_18fedb84574b4787a77b7f6a3db400ce", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": - "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "9400100208303109505633", "updated_at": "2025-03-07T16:46:11Z", "batch_id": + "batch_6b38965e1d0a44578a404fede07d9825", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_acc761b6fb7311ef98773cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:11+00:00", "updated_at": + "2025-03-07T16:46:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_fbe8636fe1394ba596759cb9a4f5e9b1", "object": - "Parcel", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", + null, "parcel": {"id": "prcl_48819d3d4ffc44b898146405288b1b4e", "object": + "Parcel", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_83593ba0c4164a459047d79156830108", - "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:44Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:43Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7c4b7267da3f4b13a8834e79a7b0af3a", + "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:11Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8bc57675bcf1e4a21a30e657fca4a0ab0.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8728792ec6b434a14a1f45d8e27c3db93.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_1c112372e51140a49ae52a64b7e517de", "object": - "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dcc1d9b8707048fe8c164460942cb535", - "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_59bf09da112248c194139c8cee72eb94", - "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_f74107b724334c1695f76a362d6d1354", "object": + "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": + 1, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c50e7434c2b8494cbc89405e54ee777e", + "object": "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_345992a3bb14453ca8c41069addcbbad", + "object": "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - {"id": "sf_3f668f1e39ae405db1363110e7bbe3aa", "object": "ScanForm", "created_at": - "2024-08-15T19:53:44Z", "updated_at": "2024-08-15T19:53:44Z", "tracking_codes": - ["9400100105807075742909"], "address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": - "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20240815/e83ec1b26066284098b743dd4ce2be4594.pdf", - "form_file_type": null, "batch_id": "batch_18fedb84574b4787a77b7f6a3db400ce", - "confirmation": null}, "selected_rate": {"id": "rate_dcc1d9b8707048fe8c164460942cb535", - "object": "Rate", "created_at": "2024-08-15T19:53:43Z", "updated_at": "2024-08-15T19:53:43Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_345992a3bb14453ca8c41069addcbbad", "object": + "Rate", "created_at": "2025-03-07T16:46:11Z", "updated_at": "2025-03-07T16:46:11Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_48c523996d8f45c6a0b267166aea639a", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742909", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:44Z", - "updated_at": "2024-08-15T19:53:44Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:44Z", "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", + 3, "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_7ab5213aaf264b53ab2f296d2efc7e73", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505633", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:12Z", + "updated_at": "2025-03-07T16:46:12Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:12Z", "shipment_id": "shp_b674aad341c24fe18611019a72ff6e84", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:44Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:12Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:44Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:12Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -207,9 +185,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzQ4YzUyMzk5NmQ4ZjQ1YzZhMGIyNjcxNjZhZWE2Mzlh"}, - "to_address": {"id": "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzdhYjUyMTNhYWYyNjRiNTNhYjJmMjk2ZDJlZmM3ZTcz"}, + "to_address": {"id": "adr_acc16571fb7311ef9f45ac1f6bc539aa", "object": "Address", + "created_at": "2025-03-07T16:46:10+00:00", "updated_at": "2025-03-07T16:46:11+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -217,15 +195,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_13606e4d5b4011ef98f0ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:43+00:00", "updated_at": - "2024-08-15T19:53:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_acc761b6fb7311ef98773cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:11+00:00", "updated_at": + "2025-03-07T16:46:11+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_135d56895b4011ef98efac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:53:43+00:00", "updated_at": "2024-08-15T19:53:43+00:00", "name": + "adr_acc16571fb7311ef9f45ac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:46:10+00:00", "updated_at": "2025-03-07T16:46:11+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -234,69 +212,70 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_dce42fde655c4d969c550c16071130c4", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:38Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", + "created_at": "2025-03-07T16:46:07Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742886", "updated_at": "2024-08-15T19:53:39Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_108166455b4011efb6f1ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_642d11e9fb434aa998e00ad920aff76b", - "object": "Parcel", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", + "9400100208303109505626", "updated_at": "2025-03-07T16:46:07Z", "batch_id": + "batch_1da4ef8e3efa4581b366b81ccf81b4f2", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_aa69c593fb7311ef971b3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:07+00:00", "updated_at": + "2025-03-07T16:46:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_d65c73ef0b0741b683c85ae149b4c615", "object": + "Parcel", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_49a1063a6a4d4e369e0c0010e8106f2f", - "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:39Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:38Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f91a9e01da6c4e378d2dce661c4c6911", + "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:07Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e86d824b1d760044a785ef93f8690c3a26.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8534b38912c20459a8afb5b43a2a38f93.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_391276f050354b6fa00b8244b10cee20", "object": - "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_59faed8017f04a3a929537ddda74d7fb", "object": + "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_20891227b5fb432fa0ac80ac0bba6cb5", - "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3f0b282224c94e72bd212ef227f12169", - "object": "Rate", "created_at": "2024-08-15T19:53:38Z", "updated_at": "2024-08-15T19:53:38Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_feb24755f1794a458896fecb8a014f3e", + "object": "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": "submitted", "scan_form": - null, "selected_rate": {"id": "rate_3f0b282224c94e72bd212ef227f12169", "object": - "Rate", "created_at": "2024-08-15T19:53:39Z", "updated_at": "2024-08-15T19:53:39Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9f7170c31a6a4cd4b07a7ee5c114aadc", + "object": "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": {"id": "rate_9f7170c31a6a4cd4b07a7ee5c114aadc", "object": + "Rate", "created_at": "2025-03-07T16:46:07Z", "updated_at": "2025-03-07T16:46:07Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e122e64adc3d4dbe8e17aaceed4c50f1", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742886", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:39Z", - "updated_at": "2024-08-15T19:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:39Z", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", + 3, "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_5b5388ca5edc4c2188e41862ace7cbee", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505626", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:07Z", + "updated_at": "2025-03-07T16:46:07Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:07Z", "shipment_id": "shp_2d1487afd0f541a4bcf9fecc1b02b28d", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:39Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:07Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:39Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:07Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -305,9 +284,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2UxMjJlNjRhZGMzZDRkYmU4ZTE3YWFjZWVkNGM1MGYx"}, - "to_address": {"id": "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzViNTM4OGNhNWVkYzRjMjE4OGU0MTg2MmFjZTdjYmVl"}, + "to_address": {"id": "adr_aa670212fb7311ef9ddfac1f6bc539aa", "object": "Address", + "created_at": "2025-03-07T16:46:07+00:00", "updated_at": "2025-03-07T16:46:07+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -315,15 +294,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_108166455b4011efb6f1ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:38+00:00", "updated_at": - "2024-08-15T19:53:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_aa69c593fb7311ef971b3cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:46:07+00:00", "updated_at": + "2025-03-07T16:46:07+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_107f6add5b4011efa60b3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:38+00:00", "updated_at": "2024-08-15T19:53:38+00:00", "name": + "adr_aa670212fb7311ef9ddfac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:46:07+00:00", "updated_at": "2025-03-07T16:46:07+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -332,70 +311,70 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:28Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_622803c6479446e895b6ec9ffc580f58", + "created_at": "2025-03-07T16:46:03Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742763", "updated_at": "2024-08-15T19:53:29Z", "batch_id": - "batch_0e51f71c3821431d96a77aa333ac05a3", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_0a6ff5b25b4011ef9591ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:28+00:00", "updated_at": - "2024-08-15T19:53:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "9400100208303109505619", "updated_at": "2025-03-07T16:46:04Z", "batch_id": + "batch_b5e1cf8eeb0e45adb7feb089b3d12a46", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_a84fa087fb7311ef9cb3ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:03+00:00", "updated_at": + "2025-03-07T16:46:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_485cf941942d4862967425c0543caa7c", "object": - "Parcel", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", + null, "parcel": {"id": "prcl_5c264ed4432848aaad2545e0dfb8eeb4", "object": + "Parcel", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_767f256490c44ea6bbc52191a19791e1", - "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:29Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:28Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2dd5e193a0874563acda1913359fbef3", + "created_at": "2025-03-07T16:46:04Z", "updated_at": "2025-03-07T16:46:04Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:04Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8aa8c3f4aa4bb4a5fa3744ba0a97f5e98.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e82ca3296f28234c8c963d9042eefecad2.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_a0ffc385a8224b4593b4b168ee624c0e", "object": - "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c6cec8860db147caae7c732ae4d7ce78", - "object": "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_5ad2d3f3665b4343b75e85a5a0fe02de", "object": + "Rate", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a0baddeb6aa84f4e8b3cf41cbf81a4fd", - "object": "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_646a6333c5af49168d64b3df5382e557", + "object": "Rate", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5179687711ef43e2a5188ee7aa89da97", + "object": "Rate", "created_at": "2025-03-07T16:46:03Z", "updated_at": "2025-03-07T16:46:03Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": + 1, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_c6cec8860db147caae7c732ae4d7ce78", "object": - "Rate", "created_at": "2024-08-15T19:53:28Z", "updated_at": "2024-08-15T19:53:28Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_646a6333c5af49168d64b3df5382e557", "object": + "Rate", "created_at": "2025-03-07T16:46:04Z", "updated_at": "2025-03-07T16:46:04Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_24fa66d76fe344e4b291a4df3ca5e2b7", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742763", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:29Z", - "updated_at": "2024-08-15T19:53:29Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:29Z", "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", + 3, "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_11c660ecffdf4b938a1212ec4709662c", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505619", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:04Z", + "updated_at": "2025-03-07T16:46:04Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:04Z", "shipment_id": "shp_622803c6479446e895b6ec9ffc580f58", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:29Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:04Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:29Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:04Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -404,9 +383,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzI0ZmE2NmQ3NmZlMzQ0ZTRiMjkxYTRkZjNjYTVlMmI3"}, - "to_address": {"id": "adr_0a6d29265b4011efb480ac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:53:28+00:00", "updated_at": "2024-08-15T19:53:28+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzExYzY2MGVjZmZkZjRiOTM4YTEyMTJlYzQ3MDk2NjJj"}, + "to_address": {"id": "adr_a84d64eafb7311ef95cf3cecef1b359e", "object": "Address", + "created_at": "2025-03-07T16:46:03+00:00", "updated_at": "2025-03-07T16:46:03+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -414,15 +393,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_0a6ff5b25b4011ef9591ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:28+00:00", "updated_at": - "2024-08-15T19:53:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_a84fa087fb7311ef9cb3ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:03+00:00", "updated_at": + "2025-03-07T16:46:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_0a6d29265b4011efb480ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:28+00:00", "updated_at": "2024-08-15T19:53:28+00:00", "name": + "adr_a84d64eafb7311ef95cf3cecef1b359e", "object": "Address", "created_at": + "2025-03-07T16:46:03+00:00", "updated_at": "2025-03-07T16:46:03+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -431,70 +410,70 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_9af00c32bcff44ea856d808545496d05", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:26Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", + "created_at": "2025-03-07T16:45:59Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742756", "updated_at": "2024-08-15T19:53:27Z", "batch_id": - "batch_9b8905ead5a44f50bef9aa9902c4bff6", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_0942f3e35b4011efb3ddac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:26+00:00", "updated_at": - "2024-08-15T19:53:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "9400100208303109505602", "updated_at": "2025-03-07T16:46:00Z", "batch_id": + "batch_63f493b2b5484ad8a220c9567867732c", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_a6167a17fb7311ef94473cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:45:59+00:00", "updated_at": + "2025-03-07T16:45:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_955cf25ac94d42faafbecfbbb04c8f31", "object": - "Parcel", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", + null, "parcel": {"id": "prcl_c2911b5c7bda49a9803dfba239fad665", "object": + "Parcel", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_e10efa9d02884ecf9fcd62a94618043e", - "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:27Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:26Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d08201d458744a4ebf36695bb79f7dee", + "created_at": "2025-03-07T16:46:00Z", "updated_at": "2025-03-07T16:46:00Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:00Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8eed2a1c6b0a843de89b7507b704cc11d.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8d6cfe7a133ab49f19fdbb00699c16dd0.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_09878437b69843098947ee0768c18997", "object": - "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_048a5125c43b4fc2b2acfd48e3f1ef63", - "object": "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_416b4b8d011b423cbd8bb5ab3226c067", - "object": "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_e62e203a40874c9f9733fbd55e5fe9a8", "object": + "Rate", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": + 3, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_aee96176a0764400a3bc4a6a200b4d17", + "object": "Rate", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ac50b2827b524b9f9ab7a19507dfb541", + "object": "Rate", "created_at": "2025-03-07T16:45:59Z", "updated_at": "2025-03-07T16:45:59Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_416b4b8d011b423cbd8bb5ab3226c067", "object": - "Rate", "created_at": "2024-08-15T19:53:26Z", "updated_at": "2024-08-15T19:53:26Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_aee96176a0764400a3bc4a6a200b4d17", "object": + "Rate", "created_at": "2025-03-07T16:46:00Z", "updated_at": "2025-03-07T16:46:00Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b85437e1f5e440a6b1e16577dd1e0ece", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742756", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:27Z", - "updated_at": "2024-08-15T19:53:27Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:27Z", "shipment_id": "shp_3b55322d17fe4cc09c36c663a54127bc", + 3, "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_49bbcbf123ae4414984b6ee5182fc53b", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505602", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:00Z", + "updated_at": "2025-03-07T16:46:00Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:00Z", "shipment_id": "shp_6b4d00550e884c07985eaeccfbdf4fc1", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:27Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:27Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:00Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -503,9 +482,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2I4NTQzN2UxZjVlNDQwYTZiMWUxNjU3N2RkMWUwZWNl"}, - "to_address": {"id": "adr_094021ea5b4011efb3daac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:53:26+00:00", "updated_at": "2024-08-15T19:53:26+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzQ5YmJjYmYxMjNhZTQ0MTQ5ODRiNmVlNTE4MmZjNTNi"}, + "to_address": {"id": "adr_a613c9f6fb7311ef9555ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-07T16:45:59+00:00", "updated_at": "2025-03-07T16:46:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -513,15 +492,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_0942f3e35b4011efb3ddac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:26+00:00", "updated_at": - "2024-08-15T19:53:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_a6167a17fb7311ef94473cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:45:59+00:00", "updated_at": + "2025-03-07T16:45:59+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_094021ea5b4011efb3daac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:26+00:00", "updated_at": "2024-08-15T19:53:26+00:00", "name": + "adr_a613c9f6fb7311ef9555ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:45:59+00:00", "updated_at": "2025-03-07T16:46:00+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -530,14 +509,13 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_3b55322d17fe4cc09c36c663a54127bc", "object": - "Shipment"}], "has_more": true}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '39979' + - '38221' content-type: - application/json; charset=utf-8 expires: @@ -552,25 +530,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5ccee788622a00175509 + - 6eaaf8fe67cb22dae2aaba21000ade37 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.499342' + - '0.483069' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -590,82 +570,109 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments?before_id=shp_3b55322d17fe4cc09c36c663a54127bc&page_size=5 + uri: https://api.easypost.com/v2/shipments?before_id=shp_6b4d00550e884c07985eaeccfbdf4fc1&page_size=5 response: body: - string: '{"shipments": [{"created_at": "2024-08-15T19:53:24Z", "is_return": - false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": "9400100105807075742732", "updated_at": "2024-08-15T19:53:25Z", - "batch_id": "batch_42704ee9cfb04873bd7014b75b0631cf", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_07ff46795b4011ef8410ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:53:24+00:00", "updated_at": - "2024-08-15T19:53:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_762c6bbcdb004435bcea093d16506a41", "object": - "Parcel", "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53:24Z", + string: '{"shipments": [{"id": "shp_34cd3af0099a4d5c815a44c1a408f095", "created_at": + "2025-03-06T19:48:45Z", "is_return": false, "messages": [], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "delivered", "tracking_code": "9400100208303109500782", + "updated_at": "2025-03-06T19:53:41Z", "batch_id": "batch_05022d9288d947048a4f6196e6f2bf1e", + "batch_status": "postage_purchased", "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_03ff3e3cfac411ef9d26ac1f6bc53342", "object": + "Address", "created_at": "2025-03-06T19:48:45+00:00", "updated_at": "2025-03-06T19:48:45+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c8c3b87b87ab45d291c13b4d1190b878", + "object": "Parcel", "created_at": "2025-03-06T19:48:45Z", "updated_at": "2025-03-06T19:48:45Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9f44b648f3854f60b3f4b941ec5276bf", - "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53:24Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:24Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_00e636dd638e43b9adcaf21eea2733d7", + "created_at": "2025-03-06T19:48:46Z", "updated_at": "2025-03-06T19:48:46Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:46Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e81bafc5973a2d445a9081da08ff84f381.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e86fb2d87f26054a05b9619ca334b254e3.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_db290f579ecd47a08b5d3eee6333d5b8", "object": - "Rate", "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53:24Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_132689fe467d4792b1687a6385453bab", - "object": "Rate", "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53:24Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_f773f65591cb4b8685bbdb9ead3f1e11", "object": + "Rate", "created_at": "2025-03-06T19:48:46Z", "updated_at": "2025-03-06T19:48:46Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3da724b06f3f4835832f4e0f009626c6", - "object": "Rate", "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53:24Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_34cd3af0099a4d5c815a44c1a408f095", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0ec0a4a125bf40038da800ce1f12f523", + "object": "Rate", "created_at": "2025-03-06T19:48:46Z", "updated_at": "2025-03-06T19:48:46Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", "carrier_account_id": + 1, "shipment_id": "shp_34cd3af0099a4d5c815a44c1a408f095", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bf4b36b236824cbf9446371c4d027c65", + "object": "Rate", "created_at": "2025-03-06T19:48:46Z", "updated_at": "2025-03-06T19:48:46Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_34cd3af0099a4d5c815a44c1a408f095", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_132689fe467d4792b1687a6385453bab", "object": - "Rate", "created_at": "2024-08-15T19:53:24Z", "updated_at": "2024-08-15T19:53:24Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_f773f65591cb4b8685bbdb9ead3f1e11", "object": + "Rate", "created_at": "2025-03-06T19:48:46Z", "updated_at": "2025-03-06T19:48:46Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_60780ca4e06a4472bfd2fbcbc28325e8", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742732", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:25Z", - "updated_at": "2024-08-15T19:53:25Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:25Z", "shipment_id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:25Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:25Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": + 3, "shipment_id": "shp_34cd3af0099a4d5c815a44c1a408f095", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_977a3085fc654ae3955af46ac298e43c", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500782", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2025-03-06T19:48:46Z", "updated_at": "2025-03-06T19:51:47Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2025-03-06T19:51:47Z", + "shipment_id": "shp_34cd3af0099a4d5c815a44c1a408f095", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2025-02-06T19:51:47Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": + null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": + "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2025-02-07T08:28:47Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", + "message": "Arrived at USPS Origin Facility", "description": "", "status": + "in_transit", "status_detail": "arrived_at_facility", "datetime": "2025-02-07T18:33:47Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, + {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2025-02-08T20:09:47Z", "source": "USPS", "carrier_code": "", "tracking_location": + {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": + null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at + Post Office", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2025-02-08T23:00:47Z", "source": "USPS", + "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": + "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2025-02-09T04:40:47Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2025-02-09T04:50:47Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2025-02-09T09:42:47Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": "HOUSTON TX, 77001", "origin_tracking_location": - {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": - null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzYwNzgwY2E0ZTA2YTQ0NzJiZmQyZmJjYmMyODMyNWU4"}, - "to_address": {"id": "adr_07fc858c5b4011ef9429ac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:53:24+00:00", "updated_at": "2024-08-15T19:53:24+00:00", + {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": + null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": + {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2025-02-09T09:42:47Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzk3N2EzMDg1ZmM2NTRhZTM5NTVhZjQ2YWMyOThlNDNj"}, + "to_address": {"id": "adr_03fba80cfac411efb8b23cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:48:45+00:00", "updated_at": "2025-03-06T19:48:46+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -673,15 +680,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_07ff46795b4011ef8410ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:53:24+00:00", "updated_at": - "2024-08-15T19:53:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_03ff3e3cfac411ef9d26ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:45+00:00", "updated_at": + "2025-03-06T19:48:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_07fc858c5b4011ef9429ac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:53:24+00:00", "updated_at": "2024-08-15T19:53:24+00:00", "name": + "adr_03fba80cfac411efb8b23cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:45+00:00", "updated_at": "2025-03-06T19:48:46+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -690,81 +697,107 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_cdac342b18bf4225aa4c2f5f317c3d85", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:22Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742718", "updated_at": "2024-08-15T19:53:23Z", "batch_id": - "batch_e71c2a65655041b7990a30979c8e20c6", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_06c1f4c25b4011efb236ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:22+00:00", "updated_at": - "2024-08-15T19:53:22+00:00", "name": "Elizabeth Swan", "company": null, "street1": - "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", - "zip": "90277", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_55a9e9123c944d45b1f31243647e3faf", "object": - "Parcel", "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", + "created_at": "2025-03-06T19:48:42Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": + "9400100208303109500775", "updated_at": "2025-03-06T19:53:10Z", "batch_id": + null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": + {"id": "adr_022dc26ffac411ef8215ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:42+00:00", "updated_at": "2025-03-06T19:48:42+00:00", "name": + "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_f5e430a8cc534f2daf3fa33dba28d22a", + "object": "Parcel", "created_at": "2025-03-06T19:48:42Z", "updated_at": "2025-03-06T19:48:42Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_0ec758cdacc64828863a74c2963db195", - "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:22Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2ad09f05a2e046f1bf32487531f39dee", + "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:43Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e810274fb9b8f4459f9db0a8d493be974f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e862022dfa87524843bc70b0b440b1df21.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_87a5b5e4f61b4fa582ad55e846377113", "object": - "Rate", "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_1dd3fb8f39ed4c8f94c00090bae4e0d6", "object": + "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7577ce92afcc4893bbb5f78a582b48b8", - "object": "Rate", "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_adec718a015c44afa8eea36ab5a40094", - "object": "Rate", "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_136e35c9133f4a7eb8327f429d09c813", + "object": "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_adec718a015c44afa8eea36ab5a40094", "object": - "Rate", "created_at": "2024-08-15T19:53:22Z", "updated_at": "2024-08-15T19:53:22Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eb98f20bfa29451e91eceb7335b89b77", + "object": "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_be6b8f6d7be44b3e94a8a50786e286a1", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742718", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:23Z", - "updated_at": "2024-08-15T19:53:23Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:23Z", "shipment_id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:23Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:23Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": + 3, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": "submitted", "scan_form": + null, "selected_rate": {"id": "rate_eb98f20bfa29451e91eceb7335b89b77", "object": + "Rate", "created_at": "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:48:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_bdaa56e02ed74f6ea2839e6ea6a4f75d", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500775", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2025-03-06T19:48:43Z", "updated_at": "2025-03-06T19:51:43Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2025-03-06T19:51:43Z", + "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2025-02-06T19:51:43Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": + null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": + "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2025-02-07T08:28:43Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", + "message": "Arrived at USPS Origin Facility", "description": "", "status": + "in_transit", "status_detail": "arrived_at_facility", "datetime": "2025-02-07T18:33:43Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, + {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2025-02-08T20:09:43Z", "source": "USPS", "carrier_code": "", "tracking_location": + {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": + null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at + Post Office", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2025-02-08T23:00:43Z", "source": "USPS", + "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": + "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2025-02-09T04:40:43Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2025-02-09T04:50:43Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2025-02-09T09:42:43Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": "HOUSTON TX, 77001", "origin_tracking_location": - {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": - null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2JlNmI4ZjZkN2JlNDRiM2U5NGE4YTUwNzg2ZTI4NmEx"}, - "to_address": {"id": "adr_06be58135b4011ef8305ac1f6bc539ae", "object": "Address", - "created_at": "2024-08-15T19:53:22+00:00", "updated_at": "2024-08-15T19:53:22+00:00", + {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": + null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": + {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2025-02-09T09:42:43Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2JkYWE1NmUwMmVkNzRmNmVhMjgzOWU2ZWE2YTRmNzVk"}, + "to_address": {"id": "adr_022b47a5fac411efb7663cecef1b359e", "object": "Address", + "created_at": "2025-03-06T19:48:42+00:00", "updated_at": "2025-03-06T19:48:43+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -772,15 +805,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_06c1f4c25b4011efb236ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:53:22+00:00", "updated_at": - "2024-08-15T19:53:22+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_022dc26ffac411ef8215ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:42+00:00", "updated_at": + "2025-03-06T19:48:42+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_06be58135b4011ef8305ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:53:22+00:00", "updated_at": "2024-08-15T19:53:22+00:00", "name": + "adr_022b47a5fac411efb7663cecef1b359e", "object": "Address", "created_at": + "2025-03-06T19:48:42+00:00", "updated_at": "2025-03-06T19:48:43+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -789,81 +822,108 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_eaf71966e4f941bdbfe86109f1e6d49e", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:19Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075742701", "updated_at": "2024-08-15T19:53:19Z", "batch_id": - "batch_aa5fe2c31cd7478c9a16a818f277635f", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_04ff067c5b4011ef9209ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:19+00:00", "updated_at": - "2024-08-15T19:53:19+00:00", "name": "Elizabeth Swan", "company": null, "street1": + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_2c32b9ec8aee457092a15eaeac3fd2bf", + "created_at": "2025-03-06T19:48:38Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": + "9400100208303109500768", "updated_at": "2025-03-06T19:53:47Z", "batch_id": + "batch_630f25490b764fb6893a0c4489342140", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_ff44ae10fac311ef9a53ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:38+00:00", "updated_at": + "2025-03-06T19:48:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_99018502d37e40b99972ea647a1685a7", "object": - "Parcel", "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", + null, "parcel": {"id": "prcl_480a79637cf24b8388333f968a8e5832", "object": + "Parcel", "created_at": "2025-03-06T19:48:38Z", "updated_at": "2025-03-06T19:48:38Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_92094987a34d47bd8d634591fb017ce4", - "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:53:19Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_c008e659b44e4ae5b7b608af148502fa", + "created_at": "2025-03-06T19:48:38Z", "updated_at": "2025-03-06T19:48:38Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:38Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8138f9d898bc448ca9c514325eb16e3a6.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e87ae765f615b047d6bd5551dbd2004c6a.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_008e138897df4dd395fe045e2db487eb", "object": - "Rate", "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8be01e27ca3446eda3a811b6e36c4df5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eedc6560b3c34ae8bea6bba95855e576", - "object": "Rate", "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_a7f0f17c3cce42cb8c3104d9a2a00adc", "object": + "Rate", "created_at": "2025-03-06T19:48:38Z", "updated_at": "2025-03-06T19:48:38Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_2c32b9ec8aee457092a15eaeac3fd2bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d80e1e84c445406ca0b837a6ffc9e7dc", + "object": "Rate", "created_at": "2025-03-06T19:48:38Z", "updated_at": "2025-03-06T19:48:38Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8be01e27ca3446eda3a811b6e36c4df5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_92b87381ae5b49d4972c1471d6358822", - "object": "Rate", "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_2c32b9ec8aee457092a15eaeac3fd2bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_eb83719f66fd4f7aa087e85dc6d30d7a", + "object": "Rate", "created_at": "2025-03-06T19:48:38Z", "updated_at": "2025-03-06T19:48:38Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_8be01e27ca3446eda3a811b6e36c4df5", "carrier_account_id": + 1, "shipment_id": "shp_2c32b9ec8aee457092a15eaeac3fd2bf", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_eedc6560b3c34ae8bea6bba95855e576", "object": - "Rate", "created_at": "2024-08-15T19:53:19Z", "updated_at": "2024-08-15T19:53:19Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_d80e1e84c445406ca0b837a6ffc9e7dc", "object": + "Rate", "created_at": "2025-03-06T19:48:38Z", "updated_at": "2025-03-06T19:48:38Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8be01e27ca3446eda3a811b6e36c4df5", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_bf10ec2270834758a9e6bd45bf4fbe90", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742701", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:20Z", - "updated_at": "2024-08-15T19:53:20Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:20Z", "shipment_id": "shp_8be01e27ca3446eda3a811b6e36c4df5", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:20Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:20Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": + 3, "shipment_id": "shp_2c32b9ec8aee457092a15eaeac3fd2bf", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_d9dbe609c13e43cab049e342d82e39c8", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500768", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2025-03-06T19:48:38Z", "updated_at": "2025-03-06T19:51:38Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2025-03-06T19:51:38Z", + "shipment_id": "shp_2c32b9ec8aee457092a15eaeac3fd2bf", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2025-02-06T19:51:38Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": + null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": + "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2025-02-07T08:28:38Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", + "message": "Arrived at USPS Origin Facility", "description": "", "status": + "in_transit", "status_detail": "arrived_at_facility", "datetime": "2025-02-07T18:33:38Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, + {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2025-02-08T20:09:38Z", "source": "USPS", "carrier_code": "", "tracking_location": + {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": + null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at + Post Office", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2025-02-08T23:00:38Z", "source": "USPS", + "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": + "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2025-02-09T04:40:38Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2025-02-09T04:50:38Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2025-02-09T09:42:38Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": "HOUSTON TX, 77001", "origin_tracking_location": - {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": - null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2JmMTBlYzIyNzA4MzQ3NThhOWU2YmQ0NWJmNGZiZTkw"}, - "to_address": {"id": "adr_04fd07235b4011efb102ac1f6bc53342", "object": "Address", - "created_at": "2024-08-15T19:53:19+00:00", "updated_at": "2024-08-15T19:53:19+00:00", + {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": + null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": + {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2025-02-09T09:42:38Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2Q5ZGJlNjA5YzEzZTQzY2FiMDQ5ZTM0MmQ4MmUzOWM4"}, + "to_address": {"id": "adr_ff4275bffac311ef8092ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-06T19:48:37+00:00", "updated_at": "2025-03-06T19:48:38+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -871,15 +931,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_04ff067c5b4011ef9209ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:19+00:00", "updated_at": - "2024-08-15T19:53:19+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_ff44ae10fac311ef9a53ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:38+00:00", "updated_at": + "2025-03-06T19:48:38+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_04fd07235b4011efb102ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:19+00:00", "updated_at": "2024-08-15T19:53:19+00:00", "name": + "adr_ff4275bffac311ef8092ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-06T19:48:37+00:00", "updated_at": "2025-03-06T19:48:38+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -888,212 +948,265 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_8be01e27ca3446eda3a811b6e36c4df5", "object": - "Shipment"}, {"created_at": "2024-08-15T19:53:13Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9434600105807075742697", "updated_at": "2024-08-15T19:53:16Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", "name": - "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_1ec32f65712d4da18891042c8b13a320", - "parcel": {"id": "prcl_825ae02c7a6c4a03bbfb07e3456ef0d6", "object": "Parcel", - "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", - "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 17.5, "mode": "test"}, "postage_label": {"object": "PostageLabel", - "id": "pl_b2144b0eb8784c14a8c4b2186d6520e5", "created_at": "2024-08-15T19:53:16Z", - "updated_at": "2024-08-15T19:53:16Z", "date_advance": 0, "integrated_form": - "none", "label_date": "2024-08-15T19:53:16Z", "label_resolution": 300, "label_size": - "4x6", "label_type": "default", "label_file_type": "image/png", "label_url": - "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e882636a63fd9c4d1c81ad135bf61b6d88.png", + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_43d0816a4bf241d5a702f97b81425f24", + "created_at": "2025-03-06T19:48:36Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": + "9400100208303109500751", "updated_at": "2025-03-06T19:53:16Z", "batch_id": + "batch_79e595508b8249d285297981d837de57", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_fe6f91fcfac311ef8015ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:36+00:00", "updated_at": + "2025-03-06T19:48:36+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_aeedd45070e94837a86fa2e2da97233b", "object": + "Parcel", "created_at": "2025-03-06T19:48:36Z", "updated_at": "2025-03-06T19:48:36Z", + "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9f5cea59bcb042ca98ab8515b7756ae6", + "created_at": "2025-03-06T19:48:37Z", "updated_at": "2025-03-06T19:48:37Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:37Z", + "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e81c696f9c811c493e8e49bf48bc24e6c0.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_12f65c47259b4658b19df702e504a593", "object": - "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_37dd89b2cb32496eab9fa0aad6c724f3", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "37.20", - "currency": "USD", "retail_rate": "42.80", "retail_currency": "USD", "list_rate": - "37.20", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_4344a910832949d09a932e6ef4ae5de6", "object": + "Rate", "created_at": "2025-03-06T19:48:36Z", "updated_at": "2025-03-06T19:48:36Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_46080d7983d6421b8b46245a8246b8d6", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", - "currency": "USD", "retail_rate": "12.50", "retail_currency": "USD", "list_rate": - "8.97", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": + 1, "shipment_id": "shp_43d0816a4bf241d5a702f97b81425f24", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0af220057774417cb477fa4351ed3fdb", + "object": "Rate", "created_at": "2025-03-06T19:48:36Z", "updated_at": "2025-03-06T19:48:36Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_43d0816a4bf241d5a702f97b81425f24", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2b081a49a9dd47629a281dc4024423ef", + "object": "Rate", "created_at": "2025-03-06T19:48:36Z", "updated_at": "2025-03-06T19:48:36Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_43d0816a4bf241d5a702f97b81425f24", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_12f65c47259b4658b19df702e504a593", "object": - "Rate", "created_at": "2024-08-15T19:53:16Z", "updated_at": "2024-08-15T19:53:16Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.33", - "currency": "USD", "retail_rate": "10.80", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_2b081a49a9dd47629a281dc4024423ef", "object": + "Rate", "created_at": "2025-03-06T19:48:37Z", "updated_at": "2025-03-06T19:48:37Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_74a4cf0f407042489d0ef96c14f12467", - "object": "Tracker", "mode": "test", "tracking_code": "9434600105807075742697", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:16Z", - "updated_at": "2024-08-15T19:53:16Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:16Z", "shipment_id": "shp_8c97e92d163a457da27bffbc5311c7c4", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:16Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:16Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": + 3, "shipment_id": "shp_43d0816a4bf241d5a702f97b81425f24", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_d2334116ca1a44d594b097143f314914", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500751", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2025-03-06T19:48:37Z", "updated_at": "2025-03-06T19:51:37Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2025-03-06T19:51:37Z", + "shipment_id": "shp_43d0816a4bf241d5a702f97b81425f24", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2025-02-06T19:51:37Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": + null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": + "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2025-02-07T08:28:37Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", + "message": "Arrived at USPS Origin Facility", "description": "", "status": + "in_transit", "status_detail": "arrived_at_facility", "datetime": "2025-02-07T18:33:37Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, + {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2025-02-08T20:09:37Z", "source": "USPS", "carrier_code": "", "tracking_location": + {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": + null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at + Post Office", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2025-02-08T23:00:37Z", "source": "USPS", + "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": + "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2025-02-09T04:40:37Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2025-02-09T04:50:37Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2025-02-09T09:42:37Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": "HOUSTON TX, 77001", "origin_tracking_location": - {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": - null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzc0YTRjZjBmNDA3MDQyNDg5ZDBlZjk2YzE0ZjEyNDY3"}, - "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": - [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": - true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "6.33000", "charged": true, "refunded": false}], "id": "shp_8c97e92d163a457da27bffbc5311c7c4", - "object": "Shipment"}, {"created_at": "2024-08-15T19:53:13Z", "is_return": - false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", - "tracking_code": "9400100105807075742640", "updated_at": "2024-08-15T19:53:15Z", - "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": + null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": + {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2025-02-09T09:42:37Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2QyMzM0MTE2Y2ExYTQ0ZDU5NGIwOTcxNDNmMzE0OTE0"}, + "to_address": {"id": "adr_fe6c632cfac311ef947aac1f6bc539aa", "object": "Address", + "created_at": "2025-03-06T19:48:36+00:00", "updated_at": "2025-03-06T19:48:36+00:00", + "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", + "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "country": "US", "phone": "", "email": "", "mode": "test", + "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": + null, "verifications": {"zip4": {"success": true, "errors": [], "details": + null}, "delivery": {"success": true, "errors": [], "details": {"latitude": + 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, + "usps_zone": 4, "return_address": {"id": "adr_fe6f91fcfac311ef8015ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-06T19:48:36+00:00", "updated_at": + "2025-03-06T19:48:36+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_fe6c632cfac311ef947aac1f6bc539aa", "object": "Address", "created_at": + "2025-03-06T19:48:36+00:00", "updated_at": "2025-03-06T19:48:36+00:00", "name": + "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": + null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": "order_1ec32f65712d4da18891042c8b13a320", - "parcel": {"id": "prcl_f3ca719456b24d78bb1db4ba34b1fc80", "object": "Parcel", - "created_at": "2024-08-15T19:53:13Z", "updated_at": "2024-08-15T19:53:13Z", - "length": null, "width": null, "height": null, "predefined_package": null, - "weight": 10.2, "mode": "test"}, "postage_label": {"object": "PostageLabel", - "id": "pl_553320f687e9443d866f62d0f6402297", "created_at": "2024-08-15T19:53:15Z", - "updated_at": "2024-08-15T19:53:15Z", "date_advance": 0, "integrated_form": - "none", "label_date": "2024-08-15T19:53:15Z", "label_resolution": 300, "label_size": - "4x6", "label_type": "default", "label_file_type": "image/png", "label_url": - "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8e7f7c416b427496ba2ad5d2d3a5df385.png", + null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": + {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": + true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, + "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", + "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}, {"id": "shp_6f3635c994834c9294c472c755a7d5c8", + "created_at": "2025-03-06T19:48:35Z", "is_return": false, "messages": [], + "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, + "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": + "9400100208303109500744", "updated_at": "2025-03-06T19:52:45Z", "batch_id": + "batch_fcc77d8805f147268168924cffaf2812", "batch_status": "postage_purchased", + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_fd879850fac311ef9967ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:35+00:00", "updated_at": + "2025-03-06T19:48:35+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_729b4515e73243fc8687d858eacbe45a", "object": + "Parcel", "created_at": "2025-03-06T19:48:35Z", "updated_at": "2025-03-06T19:48:35Z", + "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_da056b368571435eaa0778e503274bd9", + "created_at": "2025-03-06T19:48:35Z", "updated_at": "2025-03-06T19:48:35Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-06T19:48:35Z", + "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250306/e89b9cef5543304b1e9e548d764e60e2a6.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_1693bb5466ef4711addcb26cf5b0df5f", "object": - "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4a33c6c437914edb88fd59d8e9378156", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_3cbbb0e14500425cbee1eba143336050", "object": + "Rate", "created_at": "2025-03-06T19:48:35Z", "updated_at": "2025-03-06T19:48:35Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_000bd41b1e6f47af8630c7b5af41c302", - "object": "Rate", "created_at": "2024-08-15T19:53:14Z", "updated_at": "2024-08-15T19:53:14Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_6f3635c994834c9294c472c755a7d5c8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5c22c527001947a1b76178c46929a1d6", + "object": "Rate", "created_at": "2025-03-06T19:48:35Z", "updated_at": "2025-03-06T19:48:35Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6f3635c994834c9294c472c755a7d5c8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ab25722b6f0e4442b4738a5c05b5bcee", + "object": "Rate", "created_at": "2025-03-06T19:48:35Z", "updated_at": "2025-03-06T19:48:35Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": + 1, "shipment_id": "shp_6f3635c994834c9294c472c755a7d5c8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_4a33c6c437914edb88fd59d8e9378156", "object": - "Rate", "created_at": "2024-08-15T19:53:15Z", "updated_at": "2024-08-15T19:53:15Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.07", - "currency": "USD", "retail_rate": "6.70", "retail_currency": "USD", "list_rate": - "5.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_5c22c527001947a1b76178c46929a1d6", "object": + "Rate", "created_at": "2025-03-06T19:48:35Z", "updated_at": "2025-03-06T19:48:35Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_33818a0642104028b9c680342f687137", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_3089cb021793401da4a645e1c4f4379a", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075742640", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:16Z", - "updated_at": "2024-08-15T19:53:16Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:16Z", "shipment_id": "shp_33818a0642104028b9c680342f687137", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:16Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:16Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": + 3, "shipment_id": "shp_6f3635c994834c9294c472c755a7d5c8", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_ec716c707447468ca43e51402edc08e1", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109500744", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2025-03-06T19:48:35Z", "updated_at": "2025-03-06T19:51:36Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2025-03-06T19:51:36Z", + "shipment_id": "shp_6f3635c994834c9294c472c755a7d5c8", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2025-02-06T19:51:36Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": + null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": + "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2025-02-07T08:28:36Z", "source": "USPS", "carrier_code": + "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", + "state": "TX", "country": null, "zip": "77063"}}, {"object": "TrackingDetail", + "message": "Arrived at USPS Origin Facility", "description": "", "status": + "in_transit", "status_detail": "arrived_at_facility", "datetime": "2025-02-07T18:33:36Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "NORTH HOUSTON", "state": "TX", "country": null, "zip": "77315"}}, + {"object": "TrackingDetail", "message": "Arrived at USPS Facility", "description": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2025-02-08T20:09:36Z", "source": "USPS", "carrier_code": "", "tracking_location": + {"object": "TrackingLocation", "city": "COLUMBIA", "state": "SC", "country": + null, "zip": "29201"}}, {"object": "TrackingDetail", "message": "Arrived at + Post Office", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2025-02-08T23:00:36Z", "source": "USPS", + "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": + "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2025-02-09T04:40:36Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2025-02-09T04:50:36Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2025-02-09T09:42:36Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": "HOUSTON TX, 77001", "origin_tracking_location": - {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": - null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": - null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzMwODljYjAyMTc5MzQwMWRhNGE2NDVlMWM0ZjQzNzlh"}, - "to_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_01858ff25b4011ef9e393cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:13+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": - "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": - "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_0183a5095b4011ef9e373cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:53:13+00:00", "updated_at": "2024-08-15T19:53:15+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": + null, "zip": "77315"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": + {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2025-02-09T09:42:36Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2VjNzE2YzcwNzQ0NzQ2OGNhNDNlNTE0MDJlZGMwOGUx"}, + "to_address": {"id": "adr_fd8526defac311ef9965ac1f6bc53342", "object": "Address", + "created_at": "2025-03-06T19:48:35+00:00", "updated_at": "2025-03-06T19:48:35+00:00", + "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", + "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "country": "US", "phone": "", "email": "", "mode": "test", + "carrier_facility": null, "residential": true, "federal_tax_id": null, "state_tax_id": + null, "verifications": {"zip4": {"success": true, "errors": [], "details": + null}, "delivery": {"success": true, "errors": [], "details": {"latitude": + 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, + "usps_zone": 4, "return_address": {"id": "adr_fd879850fac311ef9967ac1f6bc53342", + "object": "Address", "created_at": "2025-03-06T19:48:35+00:00", "updated_at": + "2025-03-06T19:48:35+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": + "adr_fd8526defac311ef9965ac1f6bc53342", "object": "Address", "created_at": + "2025-03-06T19:48:35+00:00", "updated_at": "2025-03-06T19:48:35+00:00", "name": + "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": + null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": false, "federal_tax_id": null, "state_tax_id": null, - "verifications": {"zip4": {"success": true, "errors": [], "details": null}, - "delivery": {"success": true, "errors": [], "details": {"latitude": 33.8436, - "longitude": -118.39177, "time_zone": "America/Los_Angeles"}}}}, "forms": - [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": - true, "refunded": false}, {"object": "Fee", "type": "PostageFee", "amount": - "5.07000", "charged": true, "refunded": false}], "id": "shp_33818a0642104028b9c680342f687137", - "object": "Shipment"}], "has_more": true}' + null, "residential": true, "federal_tax_id": null, "state_tax_id": null, "verifications": + {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": + true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, + "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", + "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '38186' + - '48352' content-type: - application/json; charset=utf-8 expires: @@ -1113,20 +1226,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5ccee788622a0017558f + - 6eaaf8fe67cb22dbe2aaba21000adefc x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb56nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.591390' + - '0.520126' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_insure.yaml b/tests/cassettes/test_shipment_insure.yaml index 8ea99cca..3c0201a0 100644 --- a/tests/cassettes/test_shipment_insure.yaml +++ b/tests/cassettes/test_shipment_insure.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:00Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075743005", "updated_at": "2024-08-15T19:54:00Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_1d5930be5b4011ef8d0eac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_f36369a0dde0487780823c07e8c36224", - "object": "Parcel", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", + string: '{"id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "created_at": "2025-03-07T16:46:24Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505671", "updated_at": + "2025-03-07T16:46:24Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_b49f9c17fb7311efbe65ac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:46:24+00:00", "updated_at": + "2025-03-07T16:46:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_97470acd7a494a24b49be9ee793f584d", "object": + "Parcel", "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9b4ac0d8abea4ad8aaccd27364165e4f", - "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:00Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_df583729b3e9487291232b4ee41a6506", + "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:24Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8fec138e891ff4088bf6231c9a2426a59.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8fdd2a2efa0eb45329181a8f581652f96.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_bf0040375c68403281272531ff46b2ff", "object": - "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d16318d981d24491b3a147fea949359b", - "object": "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_1d2d5ec4f19d4d9a88eaf4e5a178ebfb", "object": + "Rate", "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9069086708e441069225538e6f29be66", - "object": "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4847e8fad6fb4da8b81e7f34ebdfffd0", + "object": "Rate", "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": + 1, "shipment_id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_43c50eba68974b2fbe70f32685c8574e", + "object": "Rate", "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_d16318d981d24491b3a147fea949359b", "object": - "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_1d2d5ec4f19d4d9a88eaf4e5a178ebfb", "object": + "Rate", "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_cfaf3d94fbbb45c1982d8816869afdb5", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743005", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:54:00Z", - "updated_at": "2024-08-15T19:54:00Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier": "USPS", + 3, "shipment_id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b450ba648e2744a09045105d7138dc9a", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505671", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:24Z", + "updated_at": "2025-03-07T16:46:24Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2NmYWYzZDk0ZmJiYjQ1YzE5ODJkODgxNjg2OWFmZGI1"}, - "to_address": {"id": "adr_1d56421c5b4011ef9cdaac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", + "https://track.easypost.com/djE6dHJrX2I0NTBiYTY0OGUyNzQ0YTA5MDQ1MTA1ZDcxMzhkYzlh"}, + "to_address": {"id": "adr_b49cbb25fb7311efbe63ac1f6bc53342", "object": "Address", + "created_at": "2025-03-07T16:46:24+00:00", "updated_at": "2025-03-07T16:46:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_1d5930be5b4011ef8d0eac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:54:00+00:00", "updated_at": - "2024-08-15T19:54:00+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_b49f9c17fb7311efbe65ac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:46:24+00:00", "updated_at": + "2025-03-07T16:46:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_1d56421c5b4011ef9cdaac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", "name": + "adr_b49cbb25fb7311efbe63ac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:46:24+00:00", "updated_at": "2025-03-07T16:46:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_c2b1a9fca18e43bea7c1cad8358623f9 + - /api/v2/shipments/shp_2b8295fe50f048baaaf8378ba1a4b629 pragma: - no-cache referrer-policy: @@ -138,20 +138,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5cd7e788624500175e23 + - 6eaaf8fb67cb22e0e2aabd59000ae6e5 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.061829' + - '0.786268' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -175,70 +175,71 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_c2b1a9fca18e43bea7c1cad8358623f9/insure + uri: https://api.easypost.com/v2/shipments/shp_2b8295fe50f048baaaf8378ba1a4b629/insure response: body: - string: '{"created_at": "2024-08-15T19:54:00Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075743005", "updated_at": "2024-08-15T19:54:00Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_1d5930be5b4011ef8d0eac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_f36369a0dde0487780823c07e8c36224", - "object": "Parcel", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", + string: '{"id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "created_at": "2025-03-07T16:46:24Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505671", "updated_at": + "2025-03-07T16:46:24Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_b49f9c17fb7311efbe65ac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:46:24+00:00", "updated_at": + "2025-03-07T16:46:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": "100.00", "order_id": + null, "parcel": {"id": "prcl_97470acd7a494a24b49be9ee793f584d", "object": + "Parcel", "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9b4ac0d8abea4ad8aaccd27364165e4f", - "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:00Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_df583729b3e9487291232b4ee41a6506", + "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:24Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e8fec138e891ff4088bf6231c9a2426a59.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e8fdd2a2efa0eb45329181a8f581652f96.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_bf0040375c68403281272531ff46b2ff", "object": - "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d16318d981d24491b3a147fea949359b", - "object": "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_1d2d5ec4f19d4d9a88eaf4e5a178ebfb", "object": + "Rate", "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9069086708e441069225538e6f29be66", - "object": "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4847e8fad6fb4da8b81e7f34ebdfffd0", + "object": "Rate", "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": + 1, "shipment_id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_43c50eba68974b2fbe70f32685c8574e", + "object": "Rate", "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_d16318d981d24491b3a147fea949359b", "object": - "Rate", "created_at": "2024-08-15T19:54:00Z", "updated_at": "2024-08-15T19:54:00Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_1d2d5ec4f19d4d9a88eaf4e5a178ebfb", "object": + "Rate", "created_at": "2025-03-07T16:46:24Z", "updated_at": "2025-03-07T16:46:24Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_cfaf3d94fbbb45c1982d8816869afdb5", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743005", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:54:01Z", - "updated_at": "2024-08-15T19:54:01Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:01Z", "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", + 3, "shipment_id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b450ba648e2744a09045105d7138dc9a", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505671", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:25Z", + "updated_at": "2025-03-07T16:46:25Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:25Z", "shipment_id": "shp_2b8295fe50f048baaaf8378ba1a4b629", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:01Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:25Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:01Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:25Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -247,9 +248,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2NmYWYzZDk0ZmJiYjQ1YzE5ODJkODgxNjg2OWFmZGI1"}, - "to_address": {"id": "adr_1d56421c5b4011ef9cdaac1f6bc539aa", "object": "Address", - "created_at": "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2I0NTBiYTY0OGUyNzQ0YTA5MDQ1MTA1ZDcxMzhkYzlh"}, + "to_address": {"id": "adr_b49cbb25fb7311efbe63ac1f6bc53342", "object": "Address", + "created_at": "2025-03-07T16:46:24+00:00", "updated_at": "2025-03-07T16:46:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -257,15 +258,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_1d5930be5b4011ef8d0eac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:54:00+00:00", "updated_at": - "2024-08-15T19:54:00+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_b49f9c17fb7311efbe65ac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:46:24+00:00", "updated_at": + "2025-03-07T16:46:24+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_1d56421c5b4011ef9cdaac1f6bc539aa", "object": "Address", "created_at": - "2024-08-15T19:54:00+00:00", "updated_at": "2024-08-15T19:54:00+00:00", "name": + "adr_b49cbb25fb7311efbe63ac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:46:24+00:00", "updated_at": "2025-03-07T16:46:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -274,10 +275,9 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, "refunded": false}, {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", - "charged": true, "refunded": false}], "id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", - "object": "Shipment"}' + "charged": true, "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -297,27 +297,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5cd9e788624500175f32 + - 6eaaf8fb67cb22e0e2aabd59000ae866 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.257479' + - '0.231941' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_lowest_rate.yaml b/tests/cassettes/test_shipment_lowest_rate.yaml index 728b823e..85771aa6 100644 --- a/tests/cassettes/test_shipment_lowest_rate.yaml +++ b/tests/cassettes/test_shipment_lowest_rate.yaml @@ -31,106 +31,84 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:08Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_e9dc4b01c43d4047989d0844ccc0e90d", "created_at": "2025-03-07T16:46:28Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-08-15T19:54:08Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_5b54733e467e4be2a65876b80d68715c", - "object": "CustomsInfo", "created_at": "2024-08-15T19:54:08Z", "updated_at": - "2024-08-15T19:54:08Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2025-03-07T16:46:28Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_6b3487fe8a534562b0847a9ad5a49b7d", + "object": "CustomsInfo", "created_at": "2025-03-07T16:46:28Z", "updated_at": + "2025-03-07T16:46:28Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_2f5a31e5df2e489a9bd9b7f45ce87b50", "object": "CustomsItem", - "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54:08Z", + [{"id": "cstitem_ce7a4868a5824137b7bda7c60ddaff9d", "object": "CustomsItem", + "created_at": "2025-03-07T16:46:28Z", "updated_at": "2025-03-07T16:46:28Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_22259dc55b4011ef8efbac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": "2024-08-15T19:54:08+00:00", + null}]}, "from_address": {"id": "adr_b71d27defb7311ef9e4b3cecef1b359e", "object": + "Address", "created_at": "2025-03-07T16:46:28+00:00", "updated_at": "2025-03-07T16:46:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_cec685da1e5a460d8882456cffb7dbcb", - "object": "Parcel", "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54:08Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_702dd686084e4e34b74bdd624b9b09f0", + "object": "Parcel", "created_at": "2025-03-07T16:46:28Z", "updated_at": "2025-03-07T16:46:28Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_15aa6eb1df784e2193918d27d2be7f62", - "object": "Rate", "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54:08Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_615f8972ee0c4832b134a56c2ae3ce49", + "object": "Rate", "created_at": "2025-03-07T16:46:28Z", "updated_at": "2025-03-07T16:46:28Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_6591b800c33b4d5baab21efe116ee30d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2689c85aa2c5421b8c12efe2ea37a37a", - "object": "Rate", "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54:08Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_e9dc4b01c43d4047989d0844ccc0e90d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e7e30ac3fd0941ccb694da73ac863596", + "object": "Rate", "created_at": "2025-03-07T16:46:28Z", "updated_at": "2025-03-07T16:46:28Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_6591b800c33b4d5baab21efe116ee30d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a9a96c12427740ceb1a16619d3045e6f", - "object": "Rate", "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54:08Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_e9dc4b01c43d4047989d0844ccc0e90d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_52db8b50a7d5424c83023f3f8051bc5b", + "object": "Rate", "created_at": "2025-03-07T16:46:28Z", "updated_at": "2025-03-07T16:46:28Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_6591b800c33b4d5baab21efe116ee30d", "carrier_account_id": + 1, "shipment_id": "shp_e9dc4b01c43d4047989d0844ccc0e90d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_222367455b4011efacfa3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": - "2024-08-15T19:54:08+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b71a26e0fb7311efa533ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:28+00:00", "updated_at": + "2025-03-07T16:46:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_22259dc55b4011ef8efbac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:54:08+00:00", "updated_at": "2024-08-15T19:54:08+00:00", "name": + {"id": "adr_b71d27defb7311ef9e4b3cecef1b359e", "object": "Address", "created_at": + "2025-03-07T16:46:28+00:00", "updated_at": "2025-03-07T16:46:28+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_222367455b4011efacfa3cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": "2024-08-15T19:54:08+00:00", + {}}, "buyer_address": {"id": "adr_b71a26e0fb7311efa533ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-07T16:46:28+00:00", "updated_at": "2025-03-07T16:46:28+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_6591b800c33b4d5baab21efe116ee30d", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6912' + - '5160' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_6591b800c33b4d5baab21efe116ee30d + - /api/v2/shipments/shp_e9dc4b01c43d4047989d0844ccc0e90d pragma: - no-cache referrer-policy: @@ -146,20 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5ce0e788624c00176708 + - 6eaaf8fd67cb22e4e2aabd76000aed3c x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.654469' + - '0.235585' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_lowest_smart_rate.yaml b/tests/cassettes/test_shipment_lowest_smart_rate.yaml index 342b6481..381d4720 100644 --- a/tests/cassettes/test_shipment_lowest_smart_rate.yaml +++ b/tests/cassettes/test_shipment_lowest_smart_rate.yaml @@ -26,93 +26,73 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:08Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:54:09Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_22ad49b85b4011efbe39ac1f6bc53342", - "object": "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": - "2024-08-15T19:54:08+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_df48cba401d94648b31d702cf67e59d0", "object": - "Parcel", "created_at": "2024-08-15T19:54:08Z", "updated_at": "2024-08-15T19:54:08Z", + string: '{"id": "shp_a4605012cda9465e92bade0b88927a75", "created_at": "2025-03-07T16:51:01Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": null, "updated_at": "2025-03-07T16:51:01Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_5a22dca8fb7411efa497ac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:51:01+00:00", "updated_at": "2025-03-07T16:51:01+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_31755125728340aeaf2818c963d0e8e8", + "object": "Parcel", "created_at": "2025-03-07T16:51:01Z", "updated_at": "2025-03-07T16:51:01Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_afb2b16149ba46c8b39f5e2dd87f4660", - "object": "Rate", "created_at": "2024-08-15T19:54:09Z", "updated_at": "2024-08-15T19:54:09Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_5814100ba2084466be320ba396b61730", + "object": "Rate", "created_at": "2025-03-07T16:51:02Z", "updated_at": "2025-03-07T16:51:02Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a9d48b6177524630829bdbd1c6d99cf9", + "object": "Rate", "created_at": "2025-03-07T16:51:02Z", "updated_at": "2025-03-07T16:51:02Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b20926218bb84440b4362601a01ce0de", - "object": "Rate", "created_at": "2024-08-15T19:54:09Z", "updated_at": "2024-08-15T19:54:09Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_43eb2dca7f5c44ca8d622f129f9b3eae", + "object": "Rate", "created_at": "2025-03-07T16:51:02Z", "updated_at": "2025-03-07T16:51:02Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8219233edb3a49d49f3ef4396e51811e", - "object": "Rate", "created_at": "2024-08-15T19:54:09Z", "updated_at": "2024-08-15T19:54:09Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "carrier_account_id": + 2, "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_22ab2e155b4011ef9ef5ac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": - "2024-08-15T19:54:08+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_5a1fec64fb7411ef84563cecef1b359e", + "object": "Address", "created_at": "2025-03-07T16:51:01+00:00", "updated_at": + "2025-03-07T16:51:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_22ad49b85b4011efbe39ac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:54:08+00:00", "updated_at": "2024-08-15T19:54:08+00:00", "name": + {"id": "adr_5a22dca8fb7411efa497ac1f6bc53342", "object": "Address", "created_at": + "2025-03-07T16:51:01+00:00", "updated_at": "2025-03-07T16:51:01+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_22ab2e155b4011ef9ef5ac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:54:08+00:00", "updated_at": "2024-08-15T19:54:08+00:00", + {}}, "buyer_address": {"id": "adr_5a1fec64fb7411ef84563cecef1b359e", "object": + "Address", "created_at": "2025-03-07T16:51:01+00:00", "updated_at": "2025-03-07T16:51:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_564e911f1b93469eae216295950e97ec", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5804' + - '4325' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_564e911f1b93469eae216295950e97ec + - /api/v2/shipments/shp_a4605012cda9465e92bade0b88927a75 pragma: - no-cache referrer-policy: @@ -128,20 +108,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5ce0e7886264001767f3 + - 6eaaf8fe67cb23f5e2aac23e000c2fe0 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.814878' + - '0.361031' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -161,40 +141,40 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_564e911f1b93469eae216295950e97ec/smartrate + uri: https://api.easypost.com/v2/shipments/shp_a4605012cda9465e92bade0b88927a75/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": - 1, "id": "rate_afb2b16149ba46c8b39f5e2dd87f4660", "list_currency": "USD", - "list_rate": 33.1, "mode": "test", "object": "Rate", "rate": 33.1, "retail_currency": - "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 7}, "updated_at": "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2024-08-15T19:54:09Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 2, "est_delivery_days": 2, "id": "rate_b20926218bb84440b4362601a01ce0de", - "list_currency": "USD", "list_rate": 8.25, "mode": "test", "object": "Rate", - "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": "Priority", - "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": 3}, "updated_at": - "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": + "created_at": "2025-03-07T16:51:02Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_8219233edb3a49d49f3ef4396e51811e", "list_currency": "USD", - "list_rate": 6.4, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", + 3, "id": "rate_5814100ba2084466be320ba396b61730", "list_currency": "USD", + "list_rate": 6.57, "mode": "test", "object": "Rate", "rate": 6.07, "retail_currency": + "USD", "retail_rate": 8.85, "service": "GroundAdvantage", "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2024-08-15T19:54:09Z"}]}' + 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": + 4}, "updated_at": "2025-03-07T16:51:02Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2025-03-07T16:51:02Z", + "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, + "delivery_days": 1, "est_delivery_days": 1, "id": "rate_a9d48b6177524630829bdbd1c6d99cf9", + "list_currency": "USD", "list_rate": 34.15, "mode": "test", "object": "Rate", + "rate": 34.15, "retail_currency": "USD", "retail_rate": 39.1, "service": "Express", + "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": + 3, "percentile_95": 4, "percentile_97": 5, "percentile_99": 8}, "updated_at": + "2025-03-07T16:51:02Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2025-03-07T16:51:02Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": + 2, "id": "rate_43eb2dca7f5c44ca8d622f129f9b3eae", "list_currency": "USD", + "list_rate": 8.34, "mode": "test", "object": "Rate", "rate": 7.42, "retail_currency": + "USD", "retail_rate": 9.9, "service": "Priority", "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 3, "percentile_99": + 4}, "updated_at": "2025-03-07T16:51:02Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '1965' + - '1969' content-type: - application/json; charset=utf-8 expires: @@ -214,20 +194,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5ce1e7886264001768f0 + - 6eaaf8fe67cb23f6e2aac23e000c3051 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.135283' + - '0.090788' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -247,40 +227,40 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_564e911f1b93469eae216295950e97ec/smartrate + uri: https://api.easypost.com/v2/shipments/shp_a4605012cda9465e92bade0b88927a75/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": - 1, "id": "rate_afb2b16149ba46c8b39f5e2dd87f4660", "list_currency": "USD", - "list_rate": 33.1, "mode": "test", "object": "Rate", "rate": 33.1, "retail_currency": - "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 7}, "updated_at": "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2024-08-15T19:54:09Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 2, "est_delivery_days": 2, "id": "rate_b20926218bb84440b4362601a01ce0de", - "list_currency": "USD", "list_rate": 8.25, "mode": "test", "object": "Rate", - "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": "Priority", - "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": 3}, "updated_at": - "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": + "created_at": "2025-03-07T16:51:02Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_8219233edb3a49d49f3ef4396e51811e", "list_currency": "USD", - "list_rate": 6.4, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", + 3, "id": "rate_5814100ba2084466be320ba396b61730", "list_currency": "USD", + "list_rate": 6.57, "mode": "test", "object": "Rate", "rate": 6.07, "retail_currency": + "USD", "retail_rate": 8.85, "service": "GroundAdvantage", "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2024-08-15T19:54:09Z"}]}' + 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": + 4}, "updated_at": "2025-03-07T16:51:02Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2025-03-07T16:51:02Z", + "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, + "delivery_days": 1, "est_delivery_days": 1, "id": "rate_a9d48b6177524630829bdbd1c6d99cf9", + "list_currency": "USD", "list_rate": 34.15, "mode": "test", "object": "Rate", + "rate": 34.15, "retail_currency": "USD", "retail_rate": 39.1, "service": "Express", + "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": + 3, "percentile_95": 4, "percentile_97": 5, "percentile_99": 8}, "updated_at": + "2025-03-07T16:51:02Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2025-03-07T16:51:02Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": + 2, "id": "rate_43eb2dca7f5c44ca8d622f129f9b3eae", "list_currency": "USD", + "list_rate": 8.34, "mode": "test", "object": "Rate", "rate": 7.42, "retail_currency": + "USD", "retail_rate": 9.9, "service": "Priority", "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 3, "percentile_99": + 4}, "updated_at": "2025-03-07T16:51:02Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '1965' + - '1969' content-type: - application/json; charset=utf-8 expires: @@ -300,20 +280,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5ce2e78862640017691a + - 6eaaf8fe67cb23f6e2aac23e000c3066 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.107635' + - '0.107955' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -333,40 +313,40 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_564e911f1b93469eae216295950e97ec/smartrate + uri: https://api.easypost.com/v2/shipments/shp_a4605012cda9465e92bade0b88927a75/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": - 1, "id": "rate_afb2b16149ba46c8b39f5e2dd87f4660", "list_currency": "USD", - "list_rate": 33.1, "mode": "test", "object": "Rate", "rate": 33.1, "retail_currency": - "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": - 7}, "updated_at": "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2024-08-15T19:54:09Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 2, "est_delivery_days": 2, "id": "rate_b20926218bb84440b4362601a01ce0de", - "list_currency": "USD", "list_rate": 8.25, "mode": "test", "object": "Rate", - "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": "Priority", - "shipment_id": "shp_564e911f1b93469eae216295950e97ec", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": 3}, "updated_at": - "2024-08-15T19:54:09Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:09Z", "currency": "USD", "delivery_date": + "created_at": "2025-03-07T16:51:02Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_8219233edb3a49d49f3ef4396e51811e", "list_currency": "USD", - "list_rate": 6.4, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_564e911f1b93469eae216295950e97ec", + 3, "id": "rate_5814100ba2084466be320ba396b61730", "list_currency": "USD", + "list_rate": 6.57, "mode": "test", "object": "Rate", "rate": 6.07, "retail_currency": + "USD", "retail_rate": 8.85, "service": "GroundAdvantage", "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2024-08-15T19:54:09Z"}]}' + 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": + 4}, "updated_at": "2025-03-07T16:51:02Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2025-03-07T16:51:02Z", + "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, + "delivery_days": 1, "est_delivery_days": 1, "id": "rate_a9d48b6177524630829bdbd1c6d99cf9", + "list_currency": "USD", "list_rate": 34.15, "mode": "test", "object": "Rate", + "rate": 34.15, "retail_currency": "USD", "retail_rate": 39.1, "service": "Express", + "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": + 3, "percentile_95": 4, "percentile_97": 5, "percentile_99": 8}, "updated_at": + "2025-03-07T16:51:02Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2025-03-07T16:51:02Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": + 2, "id": "rate_43eb2dca7f5c44ca8d622f129f9b3eae", "list_currency": "USD", + "list_rate": 8.34, "mode": "test", "object": "Rate", "rate": 7.42, "retail_currency": + "USD", "retail_rate": 9.9, "service": "Priority", "shipment_id": "shp_a4605012cda9465e92bade0b88927a75", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 3, "percentile_99": + 4}, "updated_at": "2025-03-07T16:51:02Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '1965' + - '1969' content-type: - application/json; charset=utf-8 expires: @@ -386,20 +366,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5ce2e78862640017693e + - 6eaaf8fe67cb23f6e2aac23e000c3090 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.116067' + - '0.077064' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_recommend_ship_date.yaml b/tests/cassettes/test_shipment_recommend_ship_date.yaml index 4993dbb8..4f239139 100644 --- a/tests/cassettes/test_shipment_recommend_ship_date.yaml +++ b/tests/cassettes/test_shipment_recommend_ship_date.yaml @@ -26,93 +26,73 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:17Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:54:18Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_27b7a9d55b4011ef9183ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:54:17+00:00", "updated_at": - "2024-08-15T19:54:17+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_95ad668b2bfb484690164df7c764f27d", "object": - "Parcel", "created_at": "2024-08-15T19:54:17Z", "updated_at": "2024-08-15T19:54:17Z", + string: '{"id": "shp_bde92a511b4f4ed68a381c2806b75138", "created_at": "2025-03-07T16:46:32Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": null, "updated_at": "2025-03-07T16:46:32Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_b9c6ead5fb7311efa6cfac1f6bc539aa", "object": + "Address", "created_at": "2025-03-07T16:46:32+00:00", "updated_at": "2025-03-07T16:46:32+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_6f513f92240a45379cc5bf8a5744bbe6", + "object": "Parcel", "created_at": "2025-03-07T16:46:32Z", "updated_at": "2025-03-07T16:46:32Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6ce50dbd84f94d7aa188e5a48af78d78", - "object": "Rate", "created_at": "2024-08-15T19:54:18Z", "updated_at": "2024-08-15T19:54:18Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0d02d5e5b0b44359bc223b4ea5173874", + "object": "Rate", "created_at": "2025-03-07T16:46:33Z", "updated_at": "2025-03-07T16:46:33Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3eaa43bdbeb84f6f91406249092e5ec2", - "object": "Rate", "created_at": "2024-08-15T19:54:18Z", "updated_at": "2024-08-15T19:54:18Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_bde92a511b4f4ed68a381c2806b75138", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d79cc46dd49548bcae70d13190fba9f9", + "object": "Rate", "created_at": "2025-03-07T16:46:33Z", "updated_at": "2025-03-07T16:46:33Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c65e390d405c4a648cba5d000bae75fb", - "object": "Rate", "created_at": "2024-08-15T19:54:18Z", "updated_at": "2024-08-15T19:54:18Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_bde92a511b4f4ed68a381c2806b75138", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1e792efb0e784006b58b540a6ec0ae39", + "object": "Rate", "created_at": "2025-03-07T16:46:33Z", "updated_at": "2025-03-07T16:46:33Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", "carrier_account_id": + 3, "shipment_id": "shp_bde92a511b4f4ed68a381c2806b75138", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_27b51e295b4011efaf973cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:54:17+00:00", "updated_at": - "2024-08-15T19:54:17+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b9c4d560fb7311ef816dac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:46:32+00:00", "updated_at": + "2025-03-07T16:46:32+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_27b7a9d55b4011ef9183ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:54:17+00:00", "updated_at": "2024-08-15T19:54:17+00:00", "name": + {"id": "adr_b9c6ead5fb7311efa6cfac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:46:32+00:00", "updated_at": "2025-03-07T16:46:32+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_27b51e295b4011efaf973cecef1b359e", "object": - "Address", "created_at": "2024-08-15T19:54:17+00:00", "updated_at": "2024-08-15T19:54:17+00:00", + {}}, "buyer_address": {"id": "adr_b9c4d560fb7311ef816dac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:32+00:00", "updated_at": "2025-03-07T16:46:32+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_5032c25541b34c509bcb91d44d771828", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5804' + - '4325' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_5032c25541b34c509bcb91d44d771828 + - /api/v2/shipments/shp_bde92a511b4f4ed68a381c2806b75138 pragma: - no-cache referrer-policy: @@ -128,20 +108,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5ce9e788626900177020 + - 6eaaf8fc67cb22e8e2aabd7e000af2fc x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.814040' + - '0.266158' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -161,46 +141,46 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_5032c25541b34c509bcb91d44d771828/smartrate/precision_shipping?desired_delivery_date=2024-08-18 + uri: https://api.easypost.com/v2/shipments/shp_bde92a511b4f4ed68a381c2806b75138/smartrate/precision_shipping?desired_delivery_date=2025-03-08 response: body: string: '{"rates": [{"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": - 1, "percentile_75": 3, "percentile_85": 3, "percentile_90": 4, "percentile_95": - 4, "percentile_97": 5, "percentile_99": 7}, "delivery_date_confidence": 0.01, - "desired_delivery_date": "2024-08-18", "estimated_transit_days": 2, "ship_on_date": - "2024-08-16"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:18Z", "currency": "USD", "delivery_date": + 3, "percentile_75": 3, "percentile_85": 4, "percentile_90": 4, "percentile_95": + 5, "percentile_97": 6, "percentile_99": 8}, "delivery_date_confidence": 0.38, + "desired_delivery_date": "2025-03-08", "estimated_transit_days": 1, "ship_on_date": + "2025-03-07"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2025-03-07T16:46:33Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": - 1, "id": "rate_6ce50dbd84f94d7aa188e5a48af78d78", "list_currency": "USD", - "list_rate": 33.1, "mode": "test", "object": "Rate", "rate": 33.1, "retail_currency": - "USD", "retail_rate": 37.9, "service": "Express", "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", - "updated_at": "2024-08-15T19:54:18Z"}}, {"easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 8}, "delivery_date_confidence": 0.0, "desired_delivery_date": "2024-08-18", - "estimated_transit_days": 3, "ship_on_date": "2024-08-15"}, "rate": {"carrier": + 1, "id": "rate_0d02d5e5b0b44359bc223b4ea5173874", "list_currency": "USD", + "list_rate": 34.15, "mode": "test", "object": "Rate", "rate": 34.15, "retail_currency": + "USD", "retail_rate": 39.1, "service": "Express", "shipment_id": "shp_bde92a511b4f4ed68a381c2806b75138", + "updated_at": "2025-03-07T16:46:33Z"}}, {"easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 3, "percentile_75": 4, "percentile_85": + 5, "percentile_90": 5, "percentile_95": 6, "percentile_97": 7, "percentile_99": + 10}, "delivery_date_confidence": 0.04, "desired_delivery_date": "2025-03-08", + "estimated_transit_days": 1, "ship_on_date": "2025-03-07"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": - "2024-08-15T19:54:18Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_3eaa43bdbeb84f6f91406249092e5ec2", - "list_currency": "USD", "list_rate": 8.25, "mode": "test", "object": "Rate", - "rate": 6.9, "retail_currency": "USD", "retail_rate": 9.8, "service": "Priority", - "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", "updated_at": "2024-08-15T19:54:18Z"}}, + "2025-03-07T16:46:33Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_d79cc46dd49548bcae70d13190fba9f9", + "list_currency": "USD", "list_rate": 8.34, "mode": "test", "object": "Rate", + "rate": 7.42, "retail_currency": "USD", "retail_rate": 9.9, "service": "Priority", + "shipment_id": "shp_bde92a511b4f4ed68a381c2806b75138", "updated_at": "2025-03-07T16:46:33Z"}}, {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, - "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 6, "percentile_99": 8}, "delivery_date_confidence": 0.0, - "desired_delivery_date": "2024-08-18", "estimated_transit_days": 3, "ship_on_date": - "2024-08-15"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:18Z", "currency": "USD", "delivery_date": + "percentile_75": 4, "percentile_85": 5, "percentile_90": 5, "percentile_95": + 6, "percentile_97": 7, "percentile_99": 10}, "delivery_date_confidence": 0.03, + "desired_delivery_date": "2025-03-08", "estimated_transit_days": 1, "ship_on_date": + "2025-03-07"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2025-03-07T16:46:33Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_c65e390d405c4a648cba5d000bae75fb", "list_currency": "USD", - "list_rate": 6.4, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_5032c25541b34c509bcb91d44d771828", - "updated_at": "2024-08-15T19:54:18Z"}}]}' + 3, "id": "rate_1e792efb0e784006b58b540a6ec0ae39", "list_currency": "USD", + "list_rate": 6.57, "mode": "test", "object": "Rate", "rate": 6.07, "retail_currency": + "USD", "retail_rate": 8.85, "service": "GroundAdvantage", "shipment_id": "shp_bde92a511b4f4ed68a381c2806b75138", + "updated_at": "2025-03-07T16:46:33Z"}}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '2463' + - '2471' content-type: - application/json; charset=utf-8 expires: @@ -215,25 +195,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5ceae7886269001770eb + - 6eaaf8fc67cb22e9e2aabd7e000af352 x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.147248' + - '0.108576' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_refund.yaml b/tests/cassettes/test_shipment_refund.yaml index 49d29638..fc18164f 100644 --- a/tests/cassettes/test_shipment_refund.yaml +++ b/tests/cassettes/test_shipment_refund.yaml @@ -27,64 +27,65 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:01Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075743012", "updated_at": "2024-08-15T19:54:02Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_1e5451d45b4011ef8d5fac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_fb8322d78d844972b005ef74f0c6871f", - "object": "Parcel", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", + string: '{"id": "shp_700d2963c43b4847883c955eeb846b13", "created_at": "2025-03-07T16:46:25Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505688", "updated_at": + "2025-03-07T16:46:26Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_b5548f4dfb7311efa435ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:25+00:00", "updated_at": + "2025-03-07T16:46:25+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_ebc830b06aa54635b64e0307cdac29f1", "object": + "Parcel", "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:25Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_93bb4db9efcc44a187d5661dfb2fe528", - "created_at": "2024-08-15T19:54:02Z", "updated_at": "2024-08-15T19:54:02Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:02Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_300a3cd83e644301a0327659610ff50d", + "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:26Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:25Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e80f5700cc639748f9b21a8dee016dd4aa.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e85c1ebac06b434b938dae67e732e189ff.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f2bd1a965bca4a14937a2b05f12f4411", "object": - "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e84c745e21ab42e78cc2d42ea8f90748", - "object": "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6f0ee2b9a4354def82e94eb392af483f", - "object": "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_0f20bf94b65c4fb1b95966ec43487695", "object": + "Rate", "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:25Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": + 1, "shipment_id": "shp_700d2963c43b4847883c955eeb846b13", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c9ead7bfdcff4e33b61bffc577805e01", + "object": "Rate", "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:25Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_700d2963c43b4847883c955eeb846b13", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e3057ccdd9804995a358d91d4595bcf6", + "object": "Rate", "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:25Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_700d2963c43b4847883c955eeb846b13", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": {"id": "rate_e84c745e21ab42e78cc2d42ea8f90748", "object": - "Rate", "created_at": "2024-08-15T19:54:02Z", "updated_at": "2024-08-15T19:54:02Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_e3057ccdd9804995a358d91d4595bcf6", "object": + "Rate", "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:25Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b232ceb8d3e344e18c039a4355e3903b", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743012", - "status": "unknown", "status_detail": "unknown", "created_at": "2024-08-15T19:54:02Z", - "updated_at": "2024-08-15T19:54:02Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier": "USPS", + 3, "shipment_id": "shp_700d2963c43b4847883c955eeb846b13", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_f42bc0761c284d149c58e52307d33810", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505688", + "status": "unknown", "status_detail": "unknown", "created_at": "2025-03-07T16:46:26Z", + "updated_at": "2025-03-07T16:46:26Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_700d2963c43b4847883c955eeb846b13", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2IyMzJjZWI4ZDNlMzQ0ZTE4YzAzOWE0MzU1ZTM5MDNi"}, - "to_address": {"id": "adr_1e51d26c5b4011efab523cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", + "https://track.easypost.com/djE6dHJrX2Y0MmJjMDc2MWMyODRkMTQ5YzU4ZTUyMzA3ZDMzODEw"}, + "to_address": {"id": "adr_b552c393fb7311ef9ea3ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-07T16:46:25+00:00", "updated_at": "2025-03-07T16:46:25+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -92,15 +93,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_1e5451d45b4011ef8d5fac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:54:01+00:00", "updated_at": - "2024-08-15T19:54:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_b5548f4dfb7311efa435ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:25+00:00", "updated_at": + "2025-03-07T16:46:25+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_1e51d26c5b4011efab523cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", "name": + "adr_b552c393fb7311ef9ea3ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:25+00:00", "updated_at": "2025-03-07T16:46:25+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": "", "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -109,9 +110,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -122,7 +122,7 @@ interactions: expires: - '0' location: - - /api/v2/shipments/shp_eaf1958ba61e4ab88129ecf0859f87e3 + - /api/v2/shipments/shp_700d2963c43b4847883c955eeb846b13 pragma: - no-cache referrer-policy: @@ -133,25 +133,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5cd9e788624600175fe0 + - 6eaaf8fa67cb22e1e2aabd5a000ae8ef x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '1.023661' + - '0.863720' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -175,70 +177,71 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_eaf1958ba61e4ab88129ecf0859f87e3/refund + uri: https://api.easypost.com/v2/shipments/shp_700d2963c43b4847883c955eeb846b13/refund response: body: - string: '{"created_at": "2024-08-15T19:54:01Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100105807075743012", "updated_at": "2024-08-15T19:54:02Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_1e5451d45b4011ef8d5fac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", "name": - "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": - null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", - "phone": "", "email": "", "mode": "test", "carrier_facility": - null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_fb8322d78d844972b005ef74f0c6871f", - "object": "Parcel", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", + string: '{"id": "shp_700d2963c43b4847883c955eeb846b13", "created_at": "2025-03-07T16:46:25Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": "9400100208303109505688", "updated_at": + "2025-03-07T16:46:26Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": null, "from_address": {"id": "adr_b5548f4dfb7311efa435ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:25+00:00", "updated_at": + "2025-03-07T16:46:25+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_ebc830b06aa54635b64e0307cdac29f1", "object": + "Parcel", "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:25Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_93bb4db9efcc44a187d5661dfb2fe528", - "created_at": "2024-08-15T19:54:02Z", "updated_at": "2024-08-15T19:54:02Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2024-08-15T19:54:02Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_300a3cd83e644301a0327659610ff50d", + "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:26Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2025-03-07T16:46:25Z", "label_resolution": 300, "label_size": "4x6", "label_type": "default", "label_file_type": - "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20240815/e80f5700cc639748f9b21a8dee016dd4aa.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250307/e85c1ebac06b434b938dae67e732e189ff.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f2bd1a965bca4a14937a2b05f12f4411", "object": - "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e84c745e21ab42e78cc2d42ea8f90748", - "object": "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6f0ee2b9a4354def82e94eb392af483f", - "object": "Rate", "created_at": "2024-08-15T19:54:01Z", "updated_at": "2024-08-15T19:54:01Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null}, "rates": [{"id": "rate_0f20bf94b65c4fb1b95966ec43487695", "object": + "Rate", "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:25Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": + 1, "shipment_id": "shp_700d2963c43b4847883c955eeb846b13", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c9ead7bfdcff4e33b61bffc577805e01", + "object": "Rate", "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:25Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_700d2963c43b4847883c955eeb846b13", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e3057ccdd9804995a358d91d4595bcf6", + "object": "Rate", "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:25Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_700d2963c43b4847883c955eeb846b13", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": "submitted", "scan_form": - null, "selected_rate": {"id": "rate_e84c745e21ab42e78cc2d42ea8f90748", "object": - "Rate", "created_at": "2024-08-15T19:54:02Z", "updated_at": "2024-08-15T19:54:02Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "selected_rate": {"id": "rate_e3057ccdd9804995a358d91d4595bcf6", "object": + "Rate", "created_at": "2025-03-07T16:46:25Z", "updated_at": "2025-03-07T16:46:25Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_b232ceb8d3e344e18c039a4355e3903b", - "object": "Tracker", "mode": "test", "tracking_code": "9400100105807075743012", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:54:02Z", - "updated_at": "2024-08-15T19:54:02Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:02Z", "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", + 3, "shipment_id": "shp_700d2963c43b4847883c955eeb846b13", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_f42bc0761c284d149c58e52307d33810", + "object": "Tracker", "mode": "test", "tracking_code": "9400100208303109505688", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2025-03-07T16:46:26Z", + "updated_at": "2025-03-07T16:46:26Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-07T16:46:26Z", "shipment_id": "shp_700d2963c43b4847883c955eeb846b13", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:02Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T16:46:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:02Z", "source": + "status_detail": "status_update", "datetime": "2025-02-08T05:23:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -247,9 +250,9 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2IyMzJjZWI4ZDNlMzQ0ZTE4YzAzOWE0MzU1ZTM5MDNi"}, - "to_address": {"id": "adr_1e51d26c5b4011efab523cecef1b359e", "object": "Address", - "created_at": "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2Y0MmJjMDc2MWMyODRkMTQ5YzU4ZTUyMzA3ZDMzODEw"}, + "to_address": {"id": "adr_b552c393fb7311ef9ea3ac1f6bc539ae", "object": "Address", + "created_at": "2025-03-07T16:46:25+00:00", "updated_at": "2025-03-07T16:46:25+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", @@ -257,15 +260,15 @@ interactions: null, "verifications": {"zip4": {"success": true, "errors": [], "details": null}, "delivery": {"success": true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, - "usps_zone": 4, "return_address": {"id": "adr_1e5451d45b4011ef8d5fac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:54:01+00:00", "updated_at": - "2024-08-15T19:54:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_b5548f4dfb7311efa435ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:25+00:00", "updated_at": + "2025-03-07T16:46:25+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "buyer_address": {"id": - "adr_1e51d26c5b4011efab523cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:54:01+00:00", "updated_at": "2024-08-15T19:54:01+00:00", "name": + "adr_b552c393fb7311ef9ea3ac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:25+00:00", "updated_at": "2025-03-07T16:46:25+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": @@ -274,9 +277,8 @@ interactions: true, "errors": [], "details": {"latitude": 37.77551, "longitude": -122.39697, "time_zone": "America/Los_Angeles"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, - "refunded": false}], "id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", "object": - "Shipment"}' + {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, + "refunded": false}], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store @@ -301,20 +303,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5cdae788624600176111 + - 6eaaf8fa67cb22e2e2aabd5a000aea47 x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.173737' + - '0.174085' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_regenerate_rates.yaml b/tests/cassettes/test_shipment_regenerate_rates.yaml index 7e93a101..9fbe036a 100644 --- a/tests/cassettes/test_shipment_regenerate_rates.yaml +++ b/tests/cassettes/test_shipment_regenerate_rates.yaml @@ -31,106 +31,84 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:53:53Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_725c14e27c1544a6af0c90d4208f70d3", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_322d89bfe10e4874a31e20e3a001be24", "created_at": "2025-03-07T16:46:21Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-08-15T19:53:54Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_331126213bfd4aabb642c70f13e4b462", - "object": "CustomsInfo", "created_at": "2024-08-15T19:53:53Z", "updated_at": - "2024-08-15T19:53:53Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2025-03-07T16:46:21Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_23612c8c72b3439db1979957ebba631d", + "object": "CustomsInfo", "created_at": "2025-03-07T16:46:21Z", "updated_at": + "2025-03-07T16:46:21Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_9ce699a5ea3146419b6390f86526060b", "object": "CustomsItem", - "created_at": "2024-08-15T19:53:53Z", "updated_at": "2024-08-15T19:53:53Z", + [{"id": "cstitem_a4293957af1b4faf9eaadfe3579c965c", "object": "CustomsItem", + "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_19bb6b285b4011ef8b57ac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:53:53+00:00", "updated_at": "2024-08-15T19:53:53+00:00", + null}]}, "from_address": {"id": "adr_b2bd42b3fb7311ef9cbaac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:21+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_135f339643d34b029a2fcee972a9f4e7", - "object": "Parcel", "created_at": "2024-08-15T19:53:53Z", "updated_at": "2024-08-15T19:53:53Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_8b5c2fafd17a42d6a327469914e121b5", + "object": "Parcel", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_f22d0b552eaa4aa5be8d797b17d20577", - "object": "Rate", "created_at": "2024-08-15T19:53:54Z", "updated_at": "2024-08-15T19:53:54Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_d42bdaff54064c12a24c4ceaa133c72b", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_25fdee81d4c5453596e6d73b3a9aa94e", - "object": "Rate", "created_at": "2024-08-15T19:53:54Z", "updated_at": "2024-08-15T19:53:54Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_322d89bfe10e4874a31e20e3a001be24", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8ee656e6c49244abb5fefeda5567cea9", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5c3569bd98be4606a5c8100cc5e077e0", - "object": "Rate", "created_at": "2024-08-15T19:53:54Z", "updated_at": "2024-08-15T19:53:54Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_322d89bfe10e4874a31e20e3a001be24", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_064e47d5551944c1929fe58c375c579c", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": + 3, "shipment_id": "shp_322d89bfe10e4874a31e20e3a001be24", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_19b8b0cb5b4011ef8b56ac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:53:53+00:00", "updated_at": - "2024-08-15T19:53:53+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b2ba9c36fb7311efa275ac1f6bc539aa", + "object": "Address", "created_at": "2025-03-07T16:46:21+00:00", "updated_at": + "2025-03-07T16:46:21+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_19bb6b285b4011ef8b57ac1f6bc539ae", "object": "Address", "created_at": - "2024-08-15T19:53:53+00:00", "updated_at": "2024-08-15T19:53:53+00:00", "name": + {"id": "adr_b2bd42b3fb7311ef9cbaac1f6bc539ae", "object": "Address", "created_at": + "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:21+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_19b8b0cb5b4011ef8b56ac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:53:53+00:00", "updated_at": "2024-08-15T19:53:53+00:00", + {}}, "buyer_address": {"id": "adr_b2ba9c36fb7311efa275ac1f6bc539aa", "object": + "Address", "created_at": "2025-03-07T16:46:21+00:00", "updated_at": "2025-03-07T16:46:21+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_27faf462ff594b42a8aa0750f52c4d05", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6912' + - '5160' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_27faf462ff594b42a8aa0750f52c4d05 + - /api/v2/shipments/shp_322d89bfe10e4874a31e20e3a001be24 pragma: - no-cache referrer-policy: @@ -146,20 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cd1e78862430017583f + - 6eaaf90167cb22dce2aaba23000ae1cb x-frame-options: - SAMEORIGIN x-node: - - bigweb42nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.969785' + - '0.221309' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -183,30 +161,30 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_27faf462ff594b42a8aa0750f52c4d05/rerate + uri: https://api.easypost.com/v2/shipments/shp_322d89bfe10e4874a31e20e3a001be24/rerate response: body: - string: '{"rates": [{"id": "rate_65e49e1c2d4a4ca8804b3d049a4db6ac", "object": - "Rate", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_21b10e4e62144680abd3e385e1e68223", - "object": "Rate", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + string: '{"rates": [{"id": "rate_8c859e5dd7c24f8686ec63c1029d2c75", "object": + "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b95aa40b3c4e44dd8ac25796bdeca323", - "object": "Rate", "created_at": "2024-08-15T19:53:55Z", "updated_at": "2024-08-15T19:53:55Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_322d89bfe10e4874a31e20e3a001be24", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6174a768b0a54242b201e7d09bd5ef1b", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_27faf462ff594b42a8aa0750f52c4d05", "carrier_account_id": + 3, "shipment_id": "shp_322d89bfe10e4874a31e20e3a001be24", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3a818c29492a46f29c61df1c4f9d7938", + "object": "Rate", "created_at": "2025-03-07T16:46:21Z", "updated_at": "2025-03-07T16:46:21Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_322d89bfe10e4874a31e20e3a001be24", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}]}' headers: cache-control: @@ -234,20 +212,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cd2e788624300175943 + - 6eaaf90167cb22dde2aaba23000ae261 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.729300' + - '0.230324' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_retrieve.yaml b/tests/cassettes/test_shipment_retrieve.yaml index 8e8125b7..a7ef7677 100644 --- a/tests/cassettes/test_shipment_retrieve.yaml +++ b/tests/cassettes/test_shipment_retrieve.yaml @@ -31,106 +31,84 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:53:48Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_8412b33c1ad042049c1f2db46077cad2", "created_at": "2025-03-07T16:46:17Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-08-15T19:53:49Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_09b45e8b65a1479eac2e2178cf7d6ded", - "object": "CustomsInfo", "created_at": "2024-08-15T19:53:48Z", "updated_at": - "2024-08-15T19:53:48Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2025-03-07T16:46:17Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_ea932391af43411a995dd3e2893dac05", + "object": "CustomsInfo", "created_at": "2025-03-07T16:46:17Z", "updated_at": + "2025-03-07T16:46:17Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_338f025195474651b71229bcb3ee25ef", "object": "CustomsItem", - "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", + [{"id": "cstitem_2ce8555331ac4236803a959dcbbeae51", "object": "CustomsItem", + "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_16788f9b5b4011efb95eac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", + null}]}, "from_address": {"id": "adr_b0b6f50dfb7311efa17aac1f6bc539aa", "object": + "Address", "created_at": "2025-03-07T16:46:17+00:00", "updated_at": "2025-03-07T16:46:17+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_93d9310e57c54d569166d4af5f71bf45", - "object": "Parcel", "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_089c8b364e6842ffb142492fe5462cd8", + "object": "Parcel", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c3688783ce824f60a8acecec9a7088a7", - "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0e488701dc6a4037bd8c91d8de68e17f", + "object": "Rate", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d9b6908936bf4d60b7eeca0e75ddc988", - "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_8412b33c1ad042049c1f2db46077cad2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e68f89d1b3f141a5ac4d3578c145d47e", + "object": "Rate", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b7b52e0e818749a587e3a48d8a208535", - "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_8412b33c1ad042049c1f2db46077cad2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d4470be0a8b14ea7aa394bef22db9d1f", + "object": "Rate", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": + 1, "shipment_id": "shp_8412b33c1ad042049c1f2db46077cad2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_16764f2a5b4011ef9a0dac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": - "2024-08-15T19:53:48+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b0b3e045fb7311ef9bbeac1f6bc539ae", + "object": "Address", "created_at": "2025-03-07T16:46:17+00:00", "updated_at": + "2025-03-07T16:46:17+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_16788f9b5b4011efb95eac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", "name": + {"id": "adr_b0b6f50dfb7311efa17aac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:46:17+00:00", "updated_at": "2025-03-07T16:46:17+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_16764f2a5b4011ef9a0dac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", + {}}, "buyer_address": {"id": "adr_b0b3e045fb7311ef9bbeac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:17+00:00", "updated_at": "2025-03-07T16:46:17+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6912' + - '5160' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_ffcb01bbaa904bfc999752cb924bb9cb + - /api/v2/shipments/shp_8412b33c1ad042049c1f2db46077cad2 pragma: - no-cache referrer-policy: @@ -146,20 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5ccce78862280017531c + - 6eaaf90167cb22d9e2aaba1f000adcb1 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.811707' + - '0.252824' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -179,103 +157,81 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_ffcb01bbaa904bfc999752cb924bb9cb + uri: https://api.easypost.com/v2/shipments/shp_8412b33c1ad042049c1f2db46077cad2 response: body: - string: '{"created_at": "2024-08-15T19:53:48Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "UPS", "carrier_account_id": "ca_2b156a7d1fdb444c96fd53ecc409a6fa", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_4f4f19e3b533485296d62721584e096d", "type": "rate_error", "message": "Invalid - Access License number"}], "mode": "test", "options": {"label_format": "PNG", - "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, + string: '{"id": "shp_8412b33c1ad042049c1f2db46077cad2", "created_at": "2025-03-07T16:46:17Z", + "is_return": false, "messages": [], "mode": "test", "options": {"label_format": + "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": "123", "status": "unknown", "tracking_code": - null, "updated_at": "2024-08-15T19:53:49Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": {"id": "cstinfo_09b45e8b65a1479eac2e2178cf7d6ded", - "object": "CustomsInfo", "created_at": "2024-08-15T19:53:48Z", "updated_at": - "2024-08-15T19:53:48Z", "contents_explanation": "", "contents_type": "merchandise", + null, "updated_at": "2025-03-07T16:46:17Z", "batch_id": null, "batch_status": + null, "batch_message": null, "customs_info": {"id": "cstinfo_ea932391af43411a995dd3e2893dac05", + "object": "CustomsInfo", "created_at": "2025-03-07T16:46:17Z", "updated_at": + "2025-03-07T16:46:17Z", "contents_explanation": "", "contents_type": "merchandise", "customs_certify": true, "customs_signer": "Steve Brule", "eel_pfc": "NOEEI 30.37(a)", "non_delivery_option": "return", "restriction_comments": null, "restriction_type": "none", "mode": "test", "declaration": null, "customs_items": - [{"id": "cstitem_338f025195474651b71229bcb3ee25ef", "object": "CustomsItem", - "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", + [{"id": "cstitem_2ce8555331ac4236803a959dcbbeae51", "object": "CustomsItem", + "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", "description": "Sweet shirts", "hs_tariff_number": "654321", "origin_country": "US", "quantity": 2, "value": "23.25", "weight": 11.0, "code": null, "mode": "test", "manufacturer": null, "currency": null, "eccn": null, "printed_commodity_identifier": - null}]}, "from_address": {"id": "adr_16788f9b5b4011efb95eac1f6bc53342", "object": - "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", + null}]}, "from_address": {"id": "adr_b0b6f50dfb7311efa17aac1f6bc539aa", "object": + "Address", "created_at": "2025-03-07T16:46:17+00:00", "updated_at": "2025-03-07T16:46:17+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_93d9310e57c54d569166d4af5f71bf45", - "object": "Parcel", "created_at": "2024-08-15T19:53:48Z", "updated_at": "2024-08-15T19:53:48Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_089c8b364e6842ffb142492fe5462cd8", + "object": "Parcel", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c3688783ce824f60a8acecec9a7088a7", - "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0e488701dc6a4037bd8c91d8de68e17f", + "object": "Rate", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d9b6908936bf4d60b7eeca0e75ddc988", - "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "shipment_id": "shp_8412b33c1ad042049c1f2db46077cad2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e68f89d1b3f141a5ac4d3578c145d47e", + "object": "Rate", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b7b52e0e818749a587e3a48d8a208535", - "object": "Rate", "created_at": "2024-08-15T19:53:49Z", "updated_at": "2024-08-15T19:53:49Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "shipment_id": "shp_8412b33c1ad042049c1f2db46077cad2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d4470be0a8b14ea7aa394bef22db9d1f", + "object": "Rate", "created_at": "2025-03-07T16:46:17Z", "updated_at": "2025-03-07T16:46:17Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", "carrier_account_id": + 1, "shipment_id": "shp_8412b33c1ad042049c1f2db46077cad2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_16764f2a5b4011ef9a0dac1f6bc539aa", - "object": "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": - "2024-08-15T19:53:48+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b0b3e045fb7311ef9bbeac1f6bc539ae", + "object": "Address", "created_at": "2025-03-07T16:46:17+00:00", "updated_at": + "2025-03-07T16:46:17+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_16788f9b5b4011efb95eac1f6bc53342", "object": "Address", "created_at": - "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", "name": + {"id": "adr_b0b6f50dfb7311efa17aac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:46:17+00:00", "updated_at": "2025-03-07T16:46:17+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_16764f2a5b4011ef9a0dac1f6bc539aa", "object": - "Address", "created_at": "2024-08-15T19:53:48+00:00", "updated_at": "2024-08-15T19:53:48+00:00", + {}}, "buyer_address": {"id": "adr_b0b3e045fb7311ef9bbeac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:46:17+00:00", "updated_at": "2025-03-07T16:46:17+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_ffcb01bbaa904bfc999752cb924bb9cb", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6912' + - '5160' content-type: - application/json; charset=utf-8 expires: @@ -295,20 +251,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5ccde78862280017540b + - 6eaaf90167cb22d9e2aaba1f000add3c x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.085065' + - '0.070165' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_retrieve_estimated_delivery_date.yaml b/tests/cassettes/test_shipment_retrieve_estimated_delivery_date.yaml new file mode 100644 index 00000000..81d831a6 --- /dev/null +++ b/tests/cassettes/test_shipment_retrieve_estimated_delivery_date.yaml @@ -0,0 +1,220 @@ +interactions: +- request: + body: '{"shipment": {"from_address": {"name": "Jack Sparrow", "street1": "388 + Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": + "94107", "country": "US", "email": "test@example.com", "phone": "5555555555"}, + "to_address": {"name": "Elizabeth Swan", "street1": "179 N Harbor Dr", "city": + "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", + "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": + 15.4}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '496' + Content-Type: + - application/json + authorization: + - + user-agent: + - + method: POST + uri: https://api.easypost.com/v2/shipments + response: + body: + string: '{"id": "shp_b520511fbb9a4f1fa75b9536da06e248", "created_at": "2025-03-07T16:51:57Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": null, "updated_at": "2025-03-07T16:51:57Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_7b3f51b9fb7411ef9b2a3cecef1b359e", "object": + "Address", "created_at": "2025-03-07T16:51:57+00:00", "updated_at": "2025-03-07T16:51:57+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_97def65dd2794827bb684cd032645cf3", + "object": "Parcel", "created_at": "2025-03-07T16:51:57Z", "updated_at": "2025-03-07T16:51:57Z", + "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_c6ea331ff71441b9a4758b1f4ac9c2ff", + "object": "Rate", "created_at": "2025-03-07T16:51:57Z", "updated_at": "2025-03-07T16:51:57Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_b520511fbb9a4f1fa75b9536da06e248", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6c1c87030515431dab1e1832f48b4635", + "object": "Rate", "created_at": "2025-03-07T16:51:57Z", "updated_at": "2025-03-07T16:51:57Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_b520511fbb9a4f1fa75b9536da06e248", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_509447c9567e4b249c8032e99dbb30dd", + "object": "Rate", "created_at": "2025-03-07T16:51:57Z", "updated_at": "2025-03-07T16:51:57Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_b520511fbb9a4f1fa75b9536da06e248", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_7b3d2dbbfb7411ef9b67ac1f6bc539ae", + "object": "Address", "created_at": "2025-03-07T16:51:57+00:00", "updated_at": + "2025-03-07T16:51:57+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", + "zip": "90277", "country": "US", "phone": "", "email": "", + "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": + null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": + {"id": "adr_7b3f51b9fb7411ef9b2a3cecef1b359e", "object": "Address", "created_at": + "2025-03-07T16:51:57+00:00", "updated_at": "2025-03-07T16:51:57+00:00", "name": + "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "buyer_address": {"id": "adr_7b3d2dbbfb7411ef9b67ac1f6bc539ae", "object": + "Address", "created_at": "2025-03-07T16:51:57+00:00", "updated_at": "2025-03-07T16:51:57+00:00", + "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": + null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", + "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "forms": [], "fees": [], "object": "Shipment"}' + headers: + cache-control: + - private, no-cache, no-store + content-length: + - '4325' + content-type: + - application/json; charset=utf-8 + expires: + - '0' + location: + - /api/v2/shipments/shp_b520511fbb9a4f1fa75b9536da06e248 + pragma: + - no-cache + referrer-policy: + - strict-origin-when-cross-origin + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-backend: + - easypost + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-ep-request-uuid: + - 6eaaf8fa67cb242de2aac2be000c70ff + x-frame-options: + - SAMEORIGIN + x-node: + - bigweb38nuq + x-permitted-cross-domain-policies: + - none + x-proxied: + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 + x-runtime: + - '0.195935' + x-version-label: + - easypost-202503070040-19f686ce32-master + x-xss-protection: + - 1; mode=block + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + authorization: + - + user-agent: + - + method: GET + uri: https://api.easypost.com/v2/shipments/shp_b520511fbb9a4f1fa75b9536da06e248/smartrate/delivery_date?planned_ship_date=2025-03-08 + response: + body: + string: '{"rates": [{"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": + 3, "percentile_75": 4, "percentile_85": 4, "percentile_90": 5, "percentile_95": + 6, "percentile_97": 7, "percentile_99": 10}, "easypost_estimated_delivery_date": + "2025-03-10", "planned_ship_date": "2025-03-08"}, "rate": {"carrier": "USPS", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": + "2025-03-07T16:51:57Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 1, "est_delivery_days": 1, "id": "rate_c6ea331ff71441b9a4758b1f4ac9c2ff", + "list_currency": "USD", "list_rate": 34.15, "mode": "test", "object": "Rate", + "rate": 34.15, "retail_currency": "USD", "retail_rate": 39.1, "service": "Express", + "shipment_id": "shp_b520511fbb9a4f1fa75b9536da06e248", "updated_at": "2025-03-07T16:51:57Z"}}, + {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 3, + "percentile_75": 4, "percentile_85": 4, "percentile_90": 5, "percentile_95": + 6, "percentile_97": 7, "percentile_99": 10}, "easypost_estimated_delivery_date": + "2025-03-11", "planned_ship_date": "2025-03-08"}, "rate": {"carrier": "USPS", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": + "2025-03-07T16:51:57Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_6c1c87030515431dab1e1832f48b4635", + "list_currency": "USD", "list_rate": 8.34, "mode": "test", "object": "Rate", + "rate": 7.42, "retail_currency": "USD", "retail_rate": 9.9, "service": "Priority", + "shipment_id": "shp_b520511fbb9a4f1fa75b9536da06e248", "updated_at": "2025-03-07T16:51:57Z"}}, + {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 3, + "percentile_75": 4, "percentile_85": 5, "percentile_90": 5, "percentile_95": + 6, "percentile_97": 7, "percentile_99": 10}, "easypost_estimated_delivery_date": + "2025-03-11", "planned_ship_date": "2025-03-08"}, "rate": {"carrier": "USPS", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": + "2025-03-07T16:51:57Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_509447c9567e4b249c8032e99dbb30dd", + "list_currency": "USD", "list_rate": 6.57, "mode": "test", "object": "Rate", + "rate": 6.07, "retail_currency": "USD", "retail_rate": 8.85, "service": "GroundAdvantage", + "shipment_id": "shp_b520511fbb9a4f1fa75b9536da06e248", "updated_at": "2025-03-07T16:51:57Z"}}]}' + headers: + cache-control: + - private, no-cache, no-store + content-length: + - '2343' + content-type: + - application/json; charset=utf-8 + expires: + - '0' + pragma: + - no-cache + referrer-policy: + - strict-origin-when-cross-origin + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-backend: + - easypost + x-content-type-options: + - nosniff + x-download-options: + - noopen + x-ep-request-uuid: + - 6eaaf8fa67cb242de2aac2be000c7140 + x-frame-options: + - SAMEORIGIN + x-node: + - bigweb58nuq + x-permitted-cross-domain-policies: + - none + x-proxied: + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 + x-runtime: + - '0.087546' + x-version-label: + - easypost-202503070040-19f686ce32-master + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/cassettes/test_shipment_smart_rate.yaml b/tests/cassettes/test_shipment_smart_rate.yaml index 6a2913d3..c2dd8e42 100644 --- a/tests/cassettes/test_shipment_smart_rate.yaml +++ b/tests/cassettes/test_shipment_smart_rate.yaml @@ -26,93 +26,73 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2024-08-15T19:54:03Z", "is_return": false, "messages": - [{"carrier": "UPS", "carrier_account_id": "ca_4f4f19e3b533485296d62721584e096d", - "type": "rate_error", "message": "Invalid Access License number"}, {"carrier": - "UPS", "carrier_account_id": "ca_725c14e27c1544a6af0c90d4208f70d3", "type": - "rate_error", "message": "Invalid Access License number"}, {"carrier": "UPS", - "carrier_account_id": "ca_bee3d0b00e4844f0bafe77518fecef83", "type": "rate_error", - "message": "Invalid Access License number"}, {"carrier": "UPS", "carrier_account_id": - "ca_2b156a7d1fdb444c96fd53ecc409a6fa", "type": "rate_error", "message": "Invalid - Access License number"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_a5e4cb81d1b4481d812f4511ba8dfbb1", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Invalid credentials"}, {"carrier": "DhlEcs", - "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", - "message": "Invalid credentials"}, {"carrier": "DhlEcs", "carrier_account_id": - "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Invalid - credentials"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Invalid credentials"}], "mode": "test", - "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": - 0}, "reference": null, "status": "unknown", "tracking_code": null, "updated_at": - "2024-08-15T19:54:03Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": null, "from_address": {"id": "adr_1f3a0fba5b4011efabbd3cecef1b359e", - "object": "Address", "created_at": "2024-08-15T19:54:03+00:00", "updated_at": - "2024-08-15T19:54:03+00:00", "name": "Jack Sparrow", "company": null, "street1": - "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": - "CA", "zip": "94107", "country": "US", "phone": "", "email": "", - "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": - null, "state_tax_id": null, "verifications": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_7d75afa8bde04e49ae8beab3bdf17342", "object": - "Parcel", "created_at": "2024-08-15T19:54:03Z", "updated_at": "2024-08-15T19:54:03Z", + string: '{"id": "shp_b5f086f48a4c4373aeb42a7809b62c0e", "created_at": "2025-03-07T16:46:26Z", + "is_return": false, "messages": [], "mode": "test", "options": {"currency": + "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, + "status": "unknown", "tracking_code": null, "updated_at": "2025-03-07T16:46:26Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_b610fa46fb7311efa4acac1f6bc539aa", "object": + "Address", "created_at": "2025-03-07T16:46:26+00:00", "updated_at": "2025-03-07T16:46:26+00:00", + "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": + "US", "phone": "", "email": "", "mode": "test", "carrier_facility": + null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b388179ce8e345dbb0015104d6641375", + "object": "Parcel", "created_at": "2025-03-07T16:46:26Z", "updated_at": "2025-03-07T16:46:26Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_afeef35b7877487dbe5f490646182a94", - "object": "Rate", "created_at": "2024-08-15T19:54:03Z", "updated_at": "2024-08-15T19:54:03Z", - "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", - "currency": "USD", "retail_rate": "8.45", "retail_currency": "USD", "list_rate": - "6.40", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 3, "shipment_id": "shp_ff06f36a6dc14993bf08e237b7598c87", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c3886b80cef6459ab77348600b17cd23", - "object": "Rate", "created_at": "2024-08-15T19:54:03Z", "updated_at": "2024-08-15T19:54:03Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "33.10", - "currency": "USD", "retail_rate": "37.90", "retail_currency": "USD", "list_rate": - "33.10", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0336c431fd744648a5e0970af7c2a044", + "object": "Rate", "created_at": "2025-03-07T16:46:26Z", "updated_at": "2025-03-07T16:46:26Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "34.15", + "currency": "USD", "retail_rate": "39.10", "retail_currency": "USD", "list_rate": + "34.15", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 1, "shipment_id": "shp_ff06f36a6dc14993bf08e237b7598c87", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f858cfb20d9c4229ad565382d27da973", - "object": "Rate", "created_at": "2024-08-15T19:54:03Z", "updated_at": "2024-08-15T19:54:03Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.90", - "currency": "USD", "retail_rate": "9.80", "retail_currency": "USD", "list_rate": - "8.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "shipment_id": "shp_b5f086f48a4c4373aeb42a7809b62c0e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e5d5e96493ec4ef19ea144c3f172fe19", + "object": "Rate", "created_at": "2025-03-07T16:46:26Z", "updated_at": "2025-03-07T16:46:26Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.42", + "currency": "USD", "retail_rate": "9.90", "retail_currency": "USD", "list_rate": + "8.34", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ff06f36a6dc14993bf08e237b7598c87", "carrier_account_id": + 2, "shipment_id": "shp_b5f086f48a4c4373aeb42a7809b62c0e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5a552f4f40a7415cb4df2eb9ca0d9e7b", + "object": "Rate", "created_at": "2025-03-07T16:46:26Z", "updated_at": "2025-03-07T16:46:26Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "6.07", + "currency": "USD", "retail_rate": "8.85", "retail_currency": "USD", "list_rate": + "6.57", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_b5f086f48a4c4373aeb42a7809b62c0e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": - null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_1f3726f95b4011ef8dbeac1f6bc539ae", - "object": "Address", "created_at": "2024-08-15T19:54:03+00:00", "updated_at": - "2024-08-15T19:54:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "selected_rate": null, "tracker": null, "to_address": {"id": "adr_b60df4c4fb7311efbf55ac1f6bc53342", + "object": "Address", "created_at": "2025-03-07T16:46:26+00:00", "updated_at": + "2025-03-07T16:46:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": {}}, "usps_zone": 4, "return_address": - {"id": "adr_1f3a0fba5b4011efabbd3cecef1b359e", "object": "Address", "created_at": - "2024-08-15T19:54:03+00:00", "updated_at": "2024-08-15T19:54:03+00:00", "name": + {"id": "adr_b610fa46fb7311efa4acac1f6bc539aa", "object": "Address", "created_at": + "2025-03-07T16:46:26+00:00", "updated_at": "2025-03-07T16:46:26+00:00", "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "buyer_address": {"id": "adr_1f3726f95b4011ef8dbeac1f6bc539ae", "object": - "Address", "created_at": "2024-08-15T19:54:03+00:00", "updated_at": "2024-08-15T19:54:03+00:00", + {}}, "buyer_address": {"id": "adr_b60df4c4fb7311efbf55ac1f6bc53342", "object": + "Address", "created_at": "2025-03-07T16:46:26+00:00", "updated_at": "2025-03-07T16:46:26+00:00", "name": "Elizabeth Swan", "company": null, "street1": "179 N Harbor Dr", "street2": null, "city": "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "phone": "", "email": "", "mode": "test", "carrier_facility": null, "residential": null, "federal_tax_id": null, "state_tax_id": null, "verifications": - {}}, "forms": [], "fees": [], "id": "shp_ff06f36a6dc14993bf08e237b7598c87", - "object": "Shipment"}' + {}}, "forms": [], "fees": [], "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5804' + - '4325' content-type: - application/json; charset=utf-8 expires: - '0' location: - - /api/v2/shipments/shp_ff06f36a6dc14993bf08e237b7598c87 + - /api/v2/shipments/shp_b5f086f48a4c4373aeb42a7809b62c0e pragma: - no-cache referrer-policy: @@ -128,20 +108,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5cdbe788624700176177 + - 6eaaf8fa67cb22e2e2aabd5b000aead6 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.797086' + - '0.232721' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: @@ -161,40 +141,40 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_ff06f36a6dc14993bf08e237b7598c87/smartrate + uri: https://api.easypost.com/v2/shipments/shp_b5f086f48a4c4373aeb42a7809b62c0e/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:03Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": - 3, "id": "rate_afeef35b7877487dbe5f490646182a94", "list_currency": "USD", - "list_rate": 6.4, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": - "USD", "retail_rate": 8.45, "service": "GroundAdvantage", "shipment_id": "shp_ff06f36a6dc14993bf08e237b7598c87", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2024-08-15T19:54:03Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2024-08-15T19:54:03Z", + "created_at": "2025-03-07T16:46:26Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 1, "est_delivery_days": + 1, "id": "rate_0336c431fd744648a5e0970af7c2a044", "list_currency": "USD", + "list_rate": 34.15, "mode": "test", "object": "Rate", "rate": 34.15, "retail_currency": + "USD", "retail_rate": 39.1, "service": "Express", "shipment_id": "shp_b5f086f48a4c4373aeb42a7809b62c0e", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 4, "percentile_97": 5, "percentile_99": + 8}, "updated_at": "2025-03-07T16:46:26Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2025-03-07T16:46:26Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 1, "est_delivery_days": 1, "id": "rate_c3886b80cef6459ab77348600b17cd23", - "list_currency": "USD", "list_rate": 33.1, "mode": "test", "object": "Rate", - "rate": 33.1, "retail_currency": "USD", "retail_rate": 37.9, "service": "Express", - "shipment_id": "shp_ff06f36a6dc14993bf08e237b7598c87", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 7}, "updated_at": - "2024-08-15T19:54:03Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2024-08-15T19:54:03Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_f858cfb20d9c4229ad565382d27da973", "list_currency": "USD", - "list_rate": 8.25, "mode": "test", "object": "Rate", "rate": 6.9, "retail_currency": - "USD", "retail_rate": 9.8, "service": "Priority", "shipment_id": "shp_ff06f36a6dc14993bf08e237b7598c87", + "delivery_days": 2, "est_delivery_days": 2, "id": "rate_e5d5e96493ec4ef19ea144c3f172fe19", + "list_currency": "USD", "list_rate": 8.34, "mode": "test", "object": "Rate", + "rate": 7.42, "retail_currency": "USD", "retail_rate": 9.9, "service": "Priority", + "shipment_id": "shp_b5f086f48a4c4373aeb42a7809b62c0e", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 2, "percentile_90": + 3, "percentile_95": 3, "percentile_97": 3, "percentile_99": 4}, "updated_at": + "2025-03-07T16:46:26Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2025-03-07T16:46:26Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_5a552f4f40a7415cb4df2eb9ca0d9e7b", "list_currency": "USD", + "list_rate": 6.57, "mode": "test", "object": "Rate", "rate": 6.07, "retail_currency": + "USD", "retail_rate": 8.85, "service": "GroundAdvantage", "shipment_id": "shp_b5f086f48a4c4373aeb42a7809b62c0e", "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2024-08-15T19:54:03Z"}]}' + 4}, "updated_at": "2025-03-07T16:46:26Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '1965' + - '1969' content-type: - application/json; charset=utf-8 expires: @@ -214,20 +194,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5cdbe78862470017626a + - 6eaaf8fa67cb22e2e2aabd5b000aeb45 x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.118570' + - '0.094670' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_smartrate_estimate_delivery_date.yaml b/tests/cassettes/test_smartrate_estimate_delivery_date.yaml index 93b2bd2c..33094ace 100644 --- a/tests/cassettes/test_smartrate_estimate_delivery_date.yaml +++ b/tests/cassettes/test_smartrate_estimate_delivery_date.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"from_zip": "94107", "to_zip": "90277", "planned_ship_date": "2024-08-15", + body: '{"from_zip": "94107", "to_zip": "90277", "planned_ship_date": "2025-03-08", "carriers": ["USPS"]}' headers: Accept: @@ -22,30 +22,30 @@ interactions: response: body: string: '{"carriers_without_tint_estimates": null, "from_zip": "94107", "planned_ship_date": - "2024-08-15", "results": [{"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 4, "percentile_97": 5, "percentile_99": - 6}, "easypost_estimated_delivery_date": "2024-08-16"}, "service": "express"}, + "2025-03-08", "results": [{"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 3, "percentile_75": 4, "percentile_85": + 4, "percentile_90": 5, "percentile_95": 6, "percentile_97": 7, "percentile_99": + 10}, "easypost_estimated_delivery_date": "2025-03-10"}, "service": "express"}, {"carrier": "USPS", "easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": - 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 6, "percentile_99": 8}, "easypost_estimated_delivery_date": - "2024-08-19"}, "service": "groundadvantage"}, {"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 8}, "easypost_estimated_delivery_date": "2024-08-19"}, "service": "librarymail"}, + 3, "percentile_75": 4, "percentile_85": 5, "percentile_90": 5, "percentile_95": + 6, "percentile_97": 7, "percentile_99": 10}, "easypost_estimated_delivery_date": + "2025-03-11"}, "service": "groundadvantage"}, {"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 3, "percentile_75": 4, "percentile_85": + 4, "percentile_90": 5, "percentile_95": 6, "percentile_97": 6, "percentile_99": + 9}, "easypost_estimated_delivery_date": "2025-03-11"}, "service": "librarymail"}, {"carrier": "USPS", "easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": - 4, "percentile_75": 4, "percentile_85": 4, "percentile_90": 4, "percentile_95": - 5, "percentile_97": 6, "percentile_99": 8}, "easypost_estimated_delivery_date": - "2024-08-19"}, "service": "mediamail"}, {"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 8}, "easypost_estimated_delivery_date": "2024-08-19"}, "service": "priority"}], - "saturday_delivery": null, "to_zip": "90277"}' + 3, "percentile_75": 3, "percentile_85": 4, "percentile_90": 5, "percentile_95": + 6, "percentile_97": 6, "percentile_99": 9}, "easypost_estimated_delivery_date": + "2025-03-10"}, "service": "mediamail"}, {"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 3, "percentile_75": 4, "percentile_85": + 4, "percentile_90": 5, "percentile_95": 6, "percentile_97": 7, "percentile_99": + 10}, "easypost_estimated_delivery_date": "2025-03-11"}, "service": "priority"}], + "saturday_delivery": false, "to_zip": "90277"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1496' + - '1500' content-type: - application/json; charset=utf-8 expires: @@ -60,27 +60,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5ceae788626a00177147 + - 6eaaf8fc67cb22e9e2aabd96000af398 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb58nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.064985' + - '0.077031' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_smartrate_recommend_ship_date.yaml b/tests/cassettes/test_smartrate_recommend_ship_date.yaml index 2198200d..1b6d7641 100644 --- a/tests/cassettes/test_smartrate_recommend_ship_date.yaml +++ b/tests/cassettes/test_smartrate_recommend_ship_date.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"from_zip": "94107", "to_zip": "90277", "desired_delivery_date": "2024-08-18", + body: '{"from_zip": "94107", "to_zip": "90277", "desired_delivery_date": "2025-03-08", "carriers": ["USPS"]}' headers: Accept: @@ -22,33 +22,33 @@ interactions: response: body: string: '{"carriers_without_tint_estimates": null, "desired_delivery_date": - "2024-08-18", "from_zip": "94107", "results": [{"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 1, "percentile_75": 3, "percentile_85": - 3, "percentile_90": 4, "percentile_95": 4, "percentile_97": 5, "percentile_99": - 7}, "delivery_date_confidence": 0.01, "estimated_transit_days": 2, "ship_on_date": - "2024-08-16"}, "service": "express"}, {"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 8}, "delivery_date_confidence": 0.0, "estimated_transit_days": 3, "ship_on_date": - "2024-08-15"}, "service": "groundadvantage"}, {"carrier": "USPS", "easypost_time_in_transit_data": + "2025-03-08", "from_zip": "94107", "results": [{"carrier": "USPS", "easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 3, "percentile_75": 3, "percentile_85": 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 8}, "delivery_date_confidence": 0.0, "estimated_transit_days": 2, "ship_on_date": - "2024-08-16"}, "service": "librarymail"}, {"carrier": "USPS", "easypost_time_in_transit_data": + 8}, "delivery_date_confidence": 0.38, "estimated_transit_days": 1, "ship_on_date": + "2025-03-07"}, "service": "express"}, {"carrier": "USPS", "easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 8}, "delivery_date_confidence": 0.0, "estimated_transit_days": 3, "ship_on_date": - "2024-08-15"}, "service": "mediamail"}, {"carrier": "USPS", "easypost_time_in_transit_data": - {"days_in_transit": {"percentile_50": 4, "percentile_75": 4, "percentile_85": - 4, "percentile_90": 4, "percentile_95": 5, "percentile_97": 6, "percentile_99": - 8}, "delivery_date_confidence": 0.0, "estimated_transit_days": 3, "ship_on_date": - "2024-08-15"}, "service": "priority"}], "saturday_delivery": null, "to_zip": + 5, "percentile_90": 5, "percentile_95": 6, "percentile_97": 7, "percentile_99": + 10}, "delivery_date_confidence": 0.03, "estimated_transit_days": 1, "ship_on_date": + "2025-03-07"}, "service": "groundadvantage"}, {"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 3, "percentile_75": 4, "percentile_85": + 5, "percentile_90": 5, "percentile_95": 6, "percentile_97": 7, "percentile_99": + 8}, "delivery_date_confidence": 0.05, "estimated_transit_days": 1, "ship_on_date": + "2025-03-07"}, "service": "librarymail"}, {"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 3, "percentile_75": 4, "percentile_85": + 5, "percentile_90": 5, "percentile_95": 6, "percentile_97": 7, "percentile_99": + 10}, "delivery_date_confidence": 0.03, "estimated_transit_days": 1, "ship_on_date": + "2025-03-07"}, "service": "mediamail"}, {"carrier": "USPS", "easypost_time_in_transit_data": + {"days_in_transit": {"percentile_50": 3, "percentile_75": 4, "percentile_85": + 5, "percentile_90": 5, "percentile_95": 6, "percentile_97": 7, "percentile_99": + 10}, "delivery_date_confidence": 0.04, "estimated_transit_days": 1, "ship_on_date": + "2025-03-07"}, "service": "priority"}], "saturday_delivery": false, "to_zip": "90277"}' headers: cache-control: - private, no-cache, no-store content-length: - - '1691' + - '1699' content-type: - application/json; charset=utf-8 expires: @@ -63,25 +63,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5ceae788626b0017718f + - 6eaaf90067cb22e9e2aabd97000af3cf x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 324e75def6 + - extlb1nuq 99aac35317 x-runtime: - - '0.050614' + - '0.068947' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503070040-19f686ce32-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_all.yaml b/tests/cassettes/test_tracker_all.yaml index 8c02516e..36fec316 100644 --- a/tests/cassettes/test_tracker_all.yaml +++ b/tests/cassettes/test_tracker_all.yaml @@ -16,18 +16,18 @@ interactions: uri: https://api.easypost.com/v2/trackers?page_size=5 response: body: - string: '{"trackers": [{"id": "trk_9df7bdd832bf409b8d061ac5ac4db98f", "object": - "Tracker", "mode": "test", "tracking_code": "9400100105807075743081", "status": - "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:54:15Z", - "updated_at": "2024-08-15T19:54:15Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:15Z", "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", + string: '{"trackers": [{"id": "trk_977a3085fc654ae3955af46ac298e43c", "object": + "Tracker", "mode": "test", "tracking_code": "9400100208303109500782", "status": + "pre_transit", "status_detail": "status_update", "created_at": "2025-03-06T19:48:46Z", + "updated_at": "2025-03-06T19:48:46Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:46Z", "shipment_id": "shp_34cd3af0099a4d5c815a44c1a408f095", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:15Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:46Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:15Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:46Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -36,19 +36,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzlkZjdiZGQ4MzJiZjQwOWI4ZDA2MWFjNWFjNGRiOThm"}, - {"id": "trk_192cc0249a284e6889bee8390cf47341", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075743067", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:54:13Z", "updated_at": - "2024-08-15T19:54:13Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:13Z", "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzk3N2EzMDg1ZmM2NTRhZTM5NTVhZjQ2YWMyOThlNDNj"}, + {"id": "trk_bdaa56e02ed74f6ea2839e6ea6a4f75d", "object": "Tracker", "mode": + "test", "tracking_code": "9400100208303109500775", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:43Z", "updated_at": + "2025-03-06T19:48:43Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:43Z", "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:13Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:43Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:13Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:43Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -57,19 +57,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzE5MmNjMDI0OWEyODRlNjg4OWJlZTgzOTBjZjQ3MzQx"}, - {"id": "trk_b232ceb8d3e344e18c039a4355e3903b", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075743012", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:54:02Z", "updated_at": - "2024-08-15T19:54:02Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:02Z", "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2JkYWE1NmUwMmVkNzRmNmVhMjgzOWU2ZWE2YTRmNzVk"}, + {"id": "trk_d9dbe609c13e43cab049e342d82e39c8", "object": "Tracker", "mode": + "test", "tracking_code": "9400100208303109500768", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:38Z", "updated_at": + "2025-03-06T19:48:38Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:38Z", "shipment_id": "shp_2c32b9ec8aee457092a15eaeac3fd2bf", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:02Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:38Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:02Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:38Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -78,19 +78,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2IyMzJjZWI4ZDNlMzQ0ZTE4YzAzOWE0MzU1ZTM5MDNi"}, - {"id": "trk_cfaf3d94fbbb45c1982d8816869afdb5", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075743005", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:54:01Z", "updated_at": - "2024-08-15T19:54:01Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:01Z", "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2Q5ZGJlNjA5YzEzZTQzY2FiMDQ5ZTM0MmQ4MmUzOWM4"}, + {"id": "trk_d2334116ca1a44d594b097143f314914", "object": "Tracker", "mode": + "test", "tracking_code": "9400100208303109500751", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:37Z", "updated_at": + "2025-03-06T19:48:37Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:37Z", "shipment_id": "shp_43d0816a4bf241d5a702f97b81425f24", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:01Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:37Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:01Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:37Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -99,19 +99,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2NmYWYzZDk0ZmJiYjQ1YzE5ODJkODgxNjg2OWFmZGI1"}, - {"id": "trk_4b0cf8b1afd640158ca7db0b6a167e7a", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075742978", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:53:57Z", "updated_at": - "2024-08-15T19:53:58Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:58Z", "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2QyMzM0MTE2Y2ExYTQ0ZDU5NGIwOTcxNDNmMzE0OTE0"}, + {"id": "trk_ec716c707447468ca43e51402edc08e1", "object": "Tracker", "mode": + "test", "tracking_code": "9400100208303109500744", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:35Z", "updated_at": + "2025-03-06T19:48:35Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:35Z", "shipment_id": "shp_6f3635c994834c9294c472c755a7d5c8", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:58Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:35Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:58Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:35Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -120,7 +120,7 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzRiMGNmOGIxYWZkNjQwMTU4Y2E3ZGIwYjZhMTY3ZTdh"}], + null}, "public_url": "https://track.easypost.com/djE6dHJrX2VjNzE2YzcwNzQ0NzQ2OGNhNDNlNTE0MDJlZGMwOGUx"}], "has_more": true}' headers: cache-control: @@ -146,20 +146,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5cebe788657c00177263 + - 8e8eb62c67c9fc29e2b97ef20018b82c x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.170297' + - '0.188864' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_create.yaml b/tests/cassettes/test_tracker_create.yaml index 33fe8738..c4c7feaa 100644 --- a/tests/cassettes/test_tracker_create.yaml +++ b/tests/cassettes/test_tracker_create.yaml @@ -20,18 +20,18 @@ interactions: uri: https://api.easypost.com/v2/trackers response: body: - string: '{"id": "trk_950faa2a72cc48d5bd099ca52c21dc22", "object": "Tracker", + string: '{"id": "trk_e7e8f143f3eb40d38be9562e3767c36a", "object": "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-06-03T17:50:53Z", "updated_at": - "2024-06-03T17:50:53Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-06-03T17:50:53Z", "shipment_id": null, "carrier": "USPS", "tracking_details": + "status_detail": "status_update", "created_at": "2025-03-06T19:48:26Z", "updated_at": + "2025-03-06T19:48:26Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:26Z", "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": "status_update", - "datetime": "2024-05-03T17:50:53Z", "source": "USPS", "carrier_code": "", + "datetime": "2025-02-06T19:48:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-05-04T06:27:53Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-07T08:25:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -40,7 +40,7 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzk1MGZhYTJhNzJjYzQ4ZDViZDA5OWNhNTJjMjFkYzIy"}' + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2U3ZThmMTQzZjNlYjQwZDM4YmU5NTYyZTM3NjdjMzZh"}' headers: cache-control: - private, no-cache, no-store @@ -51,7 +51,7 @@ interactions: expires: - '0' location: - - /api/v2/trackers/trk_950faa2a72cc48d5bd099ca52c21dc22 + - /api/v2/trackers/trk_e7e8f143f3eb40d38be9562e3767c36a pragma: - no-cache referrer-policy: @@ -67,20 +67,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5cebe788626c001771ba + - 8e8eb62b67c9fc29e2b97ef00018b7bb x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.062082' + - '0.074477' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_get_next_page.yaml b/tests/cassettes/test_tracker_get_next_page.yaml index dd6c42d4..f8b7d347 100644 --- a/tests/cassettes/test_tracker_get_next_page.yaml +++ b/tests/cassettes/test_tracker_get_next_page.yaml @@ -16,18 +16,18 @@ interactions: uri: https://api.easypost.com/v2/trackers?page_size=5 response: body: - string: '{"trackers": [{"id": "trk_9df7bdd832bf409b8d061ac5ac4db98f", "object": - "Tracker", "mode": "test", "tracking_code": "9400100105807075743081", "status": - "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:54:15Z", - "updated_at": "2024-08-15T19:54:15Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:15Z", "shipment_id": "shp_be92641b5b1d422cb0b7d23455463e3b", + string: '{"trackers": [{"id": "trk_977a3085fc654ae3955af46ac298e43c", "object": + "Tracker", "mode": "test", "tracking_code": "9400100208303109500782", "status": + "pre_transit", "status_detail": "status_update", "created_at": "2025-03-06T19:48:46Z", + "updated_at": "2025-03-06T19:48:46Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:46Z", "shipment_id": "shp_34cd3af0099a4d5c815a44c1a408f095", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:15Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:46Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:15Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:46Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -36,19 +36,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzlkZjdiZGQ4MzJiZjQwOWI4ZDA2MWFjNWFjNGRiOThm"}, - {"id": "trk_192cc0249a284e6889bee8390cf47341", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075743067", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:54:13Z", "updated_at": - "2024-08-15T19:54:13Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:13Z", "shipment_id": "shp_c190d06e12f54c1488bcd4e91fa4bd9b", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzk3N2EzMDg1ZmM2NTRhZTM5NTVhZjQ2YWMyOThlNDNj"}, + {"id": "trk_bdaa56e02ed74f6ea2839e6ea6a4f75d", "object": "Tracker", "mode": + "test", "tracking_code": "9400100208303109500775", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:43Z", "updated_at": + "2025-03-06T19:48:43Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:43Z", "shipment_id": "shp_82abbe8e8a1f4746bfbe7c943906c52c", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:13Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:43Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:13Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:43Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -57,19 +57,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzE5MmNjMDI0OWEyODRlNjg4OWJlZTgzOTBjZjQ3MzQx"}, - {"id": "trk_b232ceb8d3e344e18c039a4355e3903b", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075743012", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:54:02Z", "updated_at": - "2024-08-15T19:54:02Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:02Z", "shipment_id": "shp_eaf1958ba61e4ab88129ecf0859f87e3", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2JkYWE1NmUwMmVkNzRmNmVhMjgzOWU2ZWE2YTRmNzVk"}, + {"id": "trk_d9dbe609c13e43cab049e342d82e39c8", "object": "Tracker", "mode": + "test", "tracking_code": "9400100208303109500768", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:38Z", "updated_at": + "2025-03-06T19:48:38Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:38Z", "shipment_id": "shp_2c32b9ec8aee457092a15eaeac3fd2bf", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:02Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:38Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:02Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:38Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -78,19 +78,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2IyMzJjZWI4ZDNlMzQ0ZTE4YzAzOWE0MzU1ZTM5MDNi"}, - {"id": "trk_cfaf3d94fbbb45c1982d8816869afdb5", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075743005", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:54:01Z", "updated_at": - "2024-08-15T19:54:01Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:54:01Z", "shipment_id": "shp_c2b1a9fca18e43bea7c1cad8358623f9", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2Q5ZGJlNjA5YzEzZTQzY2FiMDQ5ZTM0MmQ4MmUzOWM4"}, + {"id": "trk_d2334116ca1a44d594b097143f314914", "object": "Tracker", "mode": + "test", "tracking_code": "9400100208303109500751", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:37Z", "updated_at": + "2025-03-06T19:48:37Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:37Z", "shipment_id": "shp_43d0816a4bf241d5a702f97b81425f24", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:54:01Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:37Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:31:01Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:37Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -99,19 +99,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2NmYWYzZDk0ZmJiYjQ1YzE5ODJkODgxNjg2OWFmZGI1"}, - {"id": "trk_4b0cf8b1afd640158ca7db0b6a167e7a", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075742978", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:53:57Z", "updated_at": - "2024-08-15T19:53:58Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:58Z", "shipment_id": "shp_5cfd3bffbbdc4b3cb82477a2401e2e65", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2QyMzM0MTE2Y2ExYTQ0ZDU5NGIwOTcxNDNmMzE0OTE0"}, + {"id": "trk_ec716c707447468ca43e51402edc08e1", "object": "Tracker", "mode": + "test", "tracking_code": "9400100208303109500744", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:35Z", "updated_at": + "2025-03-06T19:48:35Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:35Z", "shipment_id": "shp_6f3635c994834c9294c472c755a7d5c8", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:58Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:35Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:58Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:35Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -120,7 +120,7 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzRiMGNmOGIxYWZkNjQwMTU4Y2E3ZGIwYjZhMTY3ZTdh"}], + null}, "public_url": "https://track.easypost.com/djE6dHJrX2VjNzE2YzcwNzQ0NzQ2OGNhNDNlNTE0MDJlZGMwOGUx"}], "has_more": true}' headers: cache-control: @@ -141,25 +141,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cece788657d001772ab + - 8e8eb62967c9fc2ae2b97ef30018b871 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.495732' + - '0.202125' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -179,21 +181,21 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/trackers?before_id=trk_4b0cf8b1afd640158ca7db0b6a167e7a&page_size=5 + uri: https://api.easypost.com/v2/trackers?before_id=trk_ec716c707447468ca43e51402edc08e1&page_size=5 response: body: - string: '{"trackers": [{"id": "trk_19e7f422ccd249b5a97ec755230a615d", "object": - "Tracker", "mode": "test", "tracking_code": "9400100105807075742961", "status": - "pre_transit", "status_detail": "status_update", "created_at": "2024-08-15T19:53:53Z", - "updated_at": "2024-08-15T19:53:53Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:53Z", "shipment_id": "shp_5ba7275d2fbe44ee9592f905cfaad5f7", + string: '{"trackers": [{"id": "trk_8a5adf896fbf4684b5db608a20e187d2", "object": + "Tracker", "mode": "test", "tracking_code": "9400100208303109500737", "status": + "pre_transit", "status_detail": "status_update", "created_at": "2025-03-06T19:48:34Z", + "updated_at": "2025-03-06T19:48:34Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:34Z", "shipment_id": "shp_d76a64c356314323a637eb431df56721", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:53Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:34Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:53Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:34Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -202,19 +204,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzE5ZTdmNDIyY2NkMjQ5YjVhOTdlYzc1NTIzMGE2MTVk"}, - {"id": "trk_4919a90d02f04349a34b4d71f8f8f411", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075742923", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:53:46Z", "updated_at": - "2024-08-15T19:53:46Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:46Z", "shipment_id": "shp_5e6513a2c7d34002be90ade89e5eb95e", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzhhNWFkZjg5NmZiZjQ2ODRiNWRiNjA4YTIwZTE4N2Qy"}, + {"id": "trk_90f0033e63f7420f8ce7ded19805e9f6", "object": "Tracker", "mode": + "test", "tracking_code": "9400100208303109500720", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:32Z", "updated_at": + "2025-03-06T19:48:32Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:32Z", "shipment_id": "shp_c472b7b0b457413a9fdf31a7843a199e", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:46Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:32Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:46Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:32Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -223,19 +225,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzQ5MTlhOTBkMDJmMDQzNDlhMzRiNGQ3MWY4ZjhmNDEx"}, - {"id": "trk_48c523996d8f45c6a0b267166aea639a", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075742909", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:53:44Z", "updated_at": - "2024-08-15T19:53:44Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:44Z", "shipment_id": "shp_dce42fde655c4d969c550c16071130c4", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzkwZjAwMzNlNjNmNzQyMGY4Y2U3ZGVkMTk4MDVlOWY2"}, + {"id": "trk_213b27933f19450cbb6096e57a372e0e", "object": "Tracker", "mode": + "test", "tracking_code": "9400100208303109500713", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:30Z", "updated_at": + "2025-03-06T19:48:30Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:30Z", "shipment_id": "shp_9cb9c80740454d9ba08fb92d49256ec9", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:44Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:30Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:44Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:30Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -244,19 +246,19 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzQ4YzUyMzk5NmQ4ZjQ1YzZhMGIyNjcxNjZhZWE2Mzlh"}, - {"id": "trk_e122e64adc3d4dbe8e17aaceed4c50f1", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075742886", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:53:39Z", "updated_at": - "2024-08-15T19:53:39Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:39Z", "shipment_id": "shp_4b07ee8bc6714adfaddbc1d79cc72587", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzIxM2IyNzkzM2YxOTQ1MGNiYjYwOTZlNTdhMzcyZTBl"}, + {"id": "trk_a2af9f98be1f4922abb5bf8c970a86c5", "object": "Tracker", "mode": + "test", "tracking_code": "9434600208303109492683", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2025-03-06T19:48:30Z", "updated_at": + "2025-03-06T19:48:30Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:30Z", "shipment_id": "shp_481597ab57634eea9a07f99e967f6aa5", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:39Z", "source": + "status_detail": "status_update", "datetime": "2025-02-06T19:48:30Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:39Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:30Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -265,19 +267,18 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrX2UxMjJlNjRhZGMzZDRkYmU4ZTE3YWFjZWVkNGM1MGYx"}, - {"id": "trk_24fa66d76fe344e4b291a4df3ca5e2b7", "object": "Tracker", "mode": - "test", "tracking_code": "9400100105807075742763", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-08-15T19:53:29Z", "updated_at": - "2024-08-15T19:53:29Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-08-15T19:53:29Z", "shipment_id": "shp_9af00c32bcff44ea856d808545496d05", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-15T19:53:29Z", "source": - "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2EyYWY5Zjk4YmUxZjQ5MjJhYmI1YmY4Yzk3MGE4NmM1"}, + {"id": "trk_e7e8f143f3eb40d38be9562e3767c36a", "object": "Tracker", "mode": + "test", "tracking_code": "EZ1000000001", "status": "pre_transit", "status_detail": + "status_update", "created_at": "2025-03-06T19:48:26Z", "updated_at": "2025-03-06T19:48:26Z", + "signed_by": null, "weight": null, "est_delivery_date": "2025-03-06T19:48:26Z", + "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", + "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": + "pre_transit", "status_detail": "status_update", "datetime": "2025-02-06T19:48:26Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", - "status_detail": "status_update", "datetime": "2024-07-16T08:30:29Z", "source": + "status_detail": "status_update", "datetime": "2025-02-07T08:25:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class @@ -286,13 +287,13 @@ interactions: {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": - null}, "public_url": "https://track.easypost.com/djE6dHJrXzI0ZmE2NmQ3NmZlMzQ0ZTRiMjkxYTRkZjNjYTVlMmI3"}], + null}, "public_url": "https://track.easypost.com/djE6dHJrX2U3ZThmMTQzZjNlYjQwZDM4YmU5NTYyZTM3NjdjMzZh"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '8220' + - '8176' content-type: - application/json; charset=utf-8 expires: @@ -307,25 +308,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cece788657d00177328 + - 8e8eb62967c9fc2ae2b97ef30018b8a0 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.190018' + - '0.185605' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_retrieve.yaml b/tests/cassettes/test_tracker_retrieve.yaml index fdc04c7c..3ef7c974 100644 --- a/tests/cassettes/test_tracker_retrieve.yaml +++ b/tests/cassettes/test_tracker_retrieve.yaml @@ -20,18 +20,18 @@ interactions: uri: https://api.easypost.com/v2/trackers response: body: - string: '{"id": "trk_950faa2a72cc48d5bd099ca52c21dc22", "object": "Tracker", + string: '{"id": "trk_e7e8f143f3eb40d38be9562e3767c36a", "object": "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-06-03T17:50:53Z", "updated_at": - "2024-06-03T17:50:53Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-06-03T17:50:53Z", "shipment_id": null, "carrier": "USPS", "tracking_details": + "status_detail": "status_update", "created_at": "2025-03-06T19:48:26Z", "updated_at": + "2025-03-06T19:48:26Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:26Z", "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": "status_update", - "datetime": "2024-05-03T17:50:53Z", "source": "USPS", "carrier_code": "", + "datetime": "2025-02-06T19:48:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-05-04T06:27:53Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-07T08:25:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -40,7 +40,7 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "finalized": - true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzk1MGZhYTJhNzJjYzQ4ZDViZDA5OWNhNTJjMjFkYzIy"}' + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2U3ZThmMTQzZjNlYjQwZDM4YmU5NTYyZTM3NjdjMzZh"}' headers: cache-control: - private, no-cache, no-store @@ -51,7 +51,7 @@ interactions: expires: - '0' location: - - /api/v2/trackers/trk_950faa2a72cc48d5bd099ca52c21dc22 + - /api/v2/trackers/trk_e7e8f143f3eb40d38be9562e3767c36a pragma: - no-cache referrer-policy: @@ -67,7 +67,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5cebe788626d001771fd + - 8e8eb62667c9fc29e2b97ef10018b7e5 x-frame-options: - SAMEORIGIN x-node: @@ -75,12 +75,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.069405' + - '0.073847' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -100,21 +100,21 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/trackers/trk_950faa2a72cc48d5bd099ca52c21dc22 + uri: https://api.easypost.com/v2/trackers/trk_e7e8f143f3eb40d38be9562e3767c36a response: body: - string: '{"id": "trk_950faa2a72cc48d5bd099ca52c21dc22", "object": "Tracker", + string: '{"id": "trk_e7e8f143f3eb40d38be9562e3767c36a", "object": "Tracker", "mode": "test", "tracking_code": "EZ1000000001", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2024-06-03T17:50:53Z", "updated_at": - "2024-06-03T17:50:53Z", "signed_by": null, "weight": null, "est_delivery_date": - "2024-06-03T17:50:53Z", "shipment_id": null, "carrier": "USPS", "tracking_details": + "status_detail": "status_update", "created_at": "2025-03-06T19:48:26Z", "updated_at": + "2025-03-06T19:48:26Z", "signed_by": null, "weight": null, "est_delivery_date": + "2025-03-06T19:48:26Z", "shipment_id": null, "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": "status_update", - "datetime": "2024-05-03T17:50:53Z", "source": "USPS", "carrier_code": "", + "datetime": "2025-02-06T19:48:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", "message": "Shipping Label Created", "description": "", "status": "pre_transit", "status_detail": - "status_update", "datetime": "2024-05-04T06:27:53Z", "source": "USPS", "carrier_code": + "status_update", "datetime": "2025-02-07T08:25:26Z", "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}], "fees": [], "carrier_detail": {"object": "CarrierDetail", "service": "First-Class Package Service", "container_type": @@ -123,7 +123,7 @@ interactions: "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}, "destination_location": "CHARLESTON SC, 29401", "destination_tracking_location": null, "guaranteed_delivery_date": null, "alternate_identifier": null, "initial_delivery_attempt": null}, "public_url": - "https://track.easypost.com/djE6dHJrXzk1MGZhYTJhNzJjYzQ4ZDViZDA5OWNhNTJjMjFkYzIy"}' + "https://track.easypost.com/djE6dHJrX2U3ZThmMTQzZjNlYjQwZDM4YmU5NTYyZTM3NjdjMzZh"}' headers: cache-control: - private, no-cache, no-store @@ -148,20 +148,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5cebe788626d0017721f + - 8e8eb62667c9fc29e2b97ef10018b806 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.057013' + - '0.053849' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_unsubscribe_hooks.yaml b/tests/cassettes/test_unsubscribe_hooks.yaml index 4e8bfdd2..ca0311bf 100644 --- a/tests/cassettes/test_unsubscribe_hooks.yaml +++ b/tests/cassettes/test_unsubscribe_hooks.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_01d7ce84347b44cf9ed4356cdbf38a5f", "object": "Parcel", - "created_at": "2024-08-15T19:52:57Z", "updated_at": "2024-08-15T19:52:57Z", + string: '{"id": "prcl_660cf465fc394c1287e6277c20562e27", "object": "Parcel", + "created_at": "2025-03-06T19:48:21Z", "updated_at": "2025-03-06T19:48:21Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -34,7 +34,7 @@ interactions: expires: - '0' location: - - /api/v2/parcels/prcl_01d7ce84347b44cf9ed4356cdbf38a5f + - /api/v2/parcels/prcl_660cf465fc394c1287e6277c20562e27 pragma: - no-cache referrer-policy: @@ -45,27 +45,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5c99e7886163001721db + - 8e8eb62767c9fc05e2b97b1500188fbe x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.032566' + - '0.026539' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_all_children.yaml b/tests/cassettes/test_user_all_children.yaml index f172e61a..9f162ca4 100644 --- a/tests/cassettes/test_user_all_children.yaml +++ b/tests/cassettes/test_user_all_children.yaml @@ -50,27 +50,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5da66be5cf2e788659e001777e7 + - 8e8eb62c67c9fc2ee2b97f120018bbfc x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.189497' + - '0.081047' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_children_get_next_page.yaml b/tests/cassettes/test_user_children_get_next_page.yaml index d667b875..a9e31e01 100644 --- a/tests/cassettes/test_user_children_get_next_page.yaml +++ b/tests/cassettes/test_user_children_get_next_page.yaml @@ -55,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5cf2e788659f00177866 + - 8e8eb62867c9fc2ee2b97f130018bc27 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.075461' + - '0.222282' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_create.yaml b/tests/cassettes/test_user_create.yaml index ff640626..ce9873d9 100644 --- a/tests/cassettes/test_user_create.yaml +++ b/tests/cassettes/test_user_create.yaml @@ -20,14 +20,14 @@ interactions: uri: https://api.easypost.com/v2/users response: body: - string: '{"id": "user_f70e80d019254d46a4cc0c071f2c2287", "object": "User", "parent_id": + string: '{"id": "user_609e5b8141864b9f877f8c4ef6e85685", "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2024-08-15T19:54:21Z", "default_carbon_offset": + "", "verified": true, "created_at": "2025-03-06T19:48:59Z", "default_carbon_offset": false, "has_elevate_access": false, "children": [], "api_keys": [{"object": - "ApiKey", "key": "", "mode": "test", "created_at": "2024-08-15T19:54:21Z", - "active": true, "id": "ak_a5aa3efe3d054c8bbdd8e1c6a5f57394"}, {"object": "ApiKey", - "key": "", "mode": "production", "created_at": "2024-08-15T19:54:21Z", - "active": true, "id": "ak_fbf7ff8159bd4502b6712c91270c9c2d"}]}' + "ApiKey", "key": "", "mode": "test", "created_at": "2025-03-06T19:48:59Z", + "active": true, "id": "ak_11b4fc4f06ec42939c4996055b9f5565"}, {"object": "ApiKey", + "key": "", "mode": "production", "created_at": "2025-03-06T19:48:59Z", + "active": true, "id": "ak_bb682f6cbcc545458268103db6bccc80"}]}' headers: cache-control: - private, no-cache, no-store @@ -52,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5cede788657f001773c1 + - 8e8eb62b67c9fc2ae2b97ef40018b8ee x-frame-options: - SAMEORIGIN x-node: - - bigweb34nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.484531' + - '0.455733' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -87,7 +87,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/users/user_f70e80d019254d46a4cc0c071f2c2287 + uri: https://api.easypost.com/v2/users/user_609e5b8141864b9f877f8c4ef6e85685 response: body: string: '' @@ -109,20 +109,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5ceee788657f00177433 + - 8e8eb62b67c9fc2be2b97ef40018b977 x-frame-options: - SAMEORIGIN x-node: - - bigweb33nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.096002' + - '0.052111' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_delete.yaml b/tests/cassettes/test_user_delete.yaml index db3b97ee..a110ca7d 100644 --- a/tests/cassettes/test_user_delete.yaml +++ b/tests/cassettes/test_user_delete.yaml @@ -20,14 +20,14 @@ interactions: uri: https://api.easypost.com/v2/users response: body: - string: '{"id": "user_22d716f4cb694738b901863285eef43a", "object": "User", "parent_id": + string: '{"id": "user_52052a31d26445e39e298b175d00f70a", "object": "User", "parent_id": "user_54356a6b96c940d8913961a3c7b909f2", "name": "Test User", "phone_number": - "", "verified": true, "created_at": "2024-08-15T19:54:25Z", "default_carbon_offset": + "", "verified": true, "created_at": "2025-03-06T19:49:01Z", "default_carbon_offset": false, "has_elevate_access": false, "children": [], "api_keys": [{"object": - "ApiKey", "key": "", "mode": "test", "created_at": "2024-08-15T19:54:25Z", - "active": true, "id": "ak_88a847255b7747b699fb8d64678003c5"}, {"object": "ApiKey", - "key": "", "mode": "production", "created_at": "2024-08-15T19:54:25Z", - "active": true, "id": "ak_098754e4152e48f0a8ce3416980c037e"}]}' + "ApiKey", "key": "", "mode": "test", "created_at": "2025-03-06T19:49:01Z", + "active": true, "id": "ak_4572bd6453034cfd9308739d57fd59b5"}, {"object": "ApiKey", + "key": "", "mode": "production", "created_at": "2025-03-06T19:49:01Z", + "active": true, "id": "ak_4ccbc18c84cc4b0692ef0bf99361f93d"}]}' headers: cache-control: - private, no-cache, no-store @@ -52,20 +52,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5cf0e78865850017769c + - 8e8eb62967c9fc2ce2b97f100018baf3 x-frame-options: - SAMEORIGIN x-node: - - bigweb53nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.530450' + - '0.472353' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -87,7 +87,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/users/user_22d716f4cb694738b901863285eef43a + uri: https://api.easypost.com/v2/users/user_52052a31d26445e39e298b175d00f70a response: body: string: '' @@ -109,20 +109,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d766be5cf1e78865850017772b + - 8e8eb62967c9fc2de2b97f100018bb54 x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb57nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.123250' + - '0.150000' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_retrieve.yaml b/tests/cassettes/test_user_retrieve.yaml index 85ccc2cd..ddcc7b4b 100644 --- a/tests/cassettes/test_user_retrieve.yaml +++ b/tests/cassettes/test_user_retrieve.yaml @@ -66,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5ceee78865810017747d + - 8e8eb62967c9fc2be2b97ef50018b99b x-frame-options: - SAMEORIGIN x-node: - - bigweb39nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.146401' + - '0.179651' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -152,20 +152,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5ceee7886581001774b6 + - 8e8eb62967c9fc2be2b97ef50018b9d2 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.184341' + - '0.123282' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_retrieve_me.yaml b/tests/cassettes/test_user_retrieve_me.yaml index bcfbcaa0..89fc0edc 100644 --- a/tests/cassettes/test_user_retrieve_me.yaml +++ b/tests/cassettes/test_user_retrieve_me.yaml @@ -66,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5db66be5cefe788658300177593 + - 8e8eb62667c9fc2ce2b97f0e0018ba3f x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.112963' + - '0.137121' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_retrieve_no_id.yaml b/tests/cassettes/test_user_retrieve_no_id.yaml index ce7a84c6..64dc1c7a 100644 --- a/tests/cassettes/test_user_retrieve_no_id.yaml +++ b/tests/cassettes/test_user_retrieve_no_id.yaml @@ -66,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d866be5cefe78865820017751e + - 8e8eb62c67c9fc2be2b97ef60018ba07 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.098807' + - '0.085156' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_update.yaml b/tests/cassettes/test_user_update.yaml index a4d7d869..63acf6a5 100644 --- a/tests/cassettes/test_user_update.yaml +++ b/tests/cassettes/test_user_update.yaml @@ -66,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5cefe7886584001775e7 + - 8e8eb62867c9fc2ce2b97f0f0018ba94 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.137382' + - '0.084156' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -156,20 +156,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5cf0e78865840017762e + - 8e8eb62867c9fc2ce2b97f0f0018babd x-frame-options: - SAMEORIGIN x-node: - - bigweb38nuq + - bigweb59nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.341596' + - '0.114779' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_update_brand.yaml b/tests/cassettes/test_user_update_brand.yaml index e40b0389..37d0ce49 100644 --- a/tests/cassettes/test_user_update_brand.yaml +++ b/tests/cassettes/test_user_update_brand.yaml @@ -61,25 +61,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cf1e788659d00177774 + - 8e8eb62b67c9fc2de2b97f110018bba0 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.091168' + - '0.148950' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -134,7 +136,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dc66be5cf1e788659d0017779c + - 8e8eb62b67c9fc2de2b97f110018bbc4 x-frame-options: - SAMEORIGIN x-node: @@ -142,12 +144,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.094800' + - '0.092006' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_all.yaml b/tests/cassettes/test_webhook_all.yaml index 18447ef1..e1911c81 100644 --- a/tests/cassettes/test_webhook_all.yaml +++ b/tests/cassettes/test_webhook_all.yaml @@ -41,20 +41,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d966be5cf4e78865a200177aa3 + - 8e8eb62c67c9fc30e2b97f160018be35 x-frame-options: - SAMEORIGIN x-node: - - bigweb41nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.035980' + - '0.023394' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_create.yaml b/tests/cassettes/test_webhook_create.yaml index bce56884..784a7f03 100644 --- a/tests/cassettes/test_webhook_create.yaml +++ b/tests/cassettes/test_webhook_create.yaml @@ -21,8 +21,8 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_5086302eeeef11ef883e4736f95f329e", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2025-02-19T18:28:29Z", + string: '{"id": "hook_0dfff13cfac411ef87a6010e985f89d4", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2025-03-06T19:49:03Z", "disabled_at": null, "custom_headers": [{"name": "test", "value": "header"}]}' headers: cache-control: @@ -48,20 +48,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3c3ed33567b622cce2b8e5f1000336bc + - 8e8eb62a67c9fc2ee2b97f140018bc8b x-frame-options: - SAMEORIGIN x-node: - - bigweb40nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb3nuq 51d74985a2 - - extlb2nuq 99aac35317 + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.367575' + - '0.392111' x-version-label: - - easypost-202502191732-9cdc8ea15b-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -83,7 +83,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_5086302eeeef11ef883e4736f95f329e + uri: https://api.easypost.com/v2/webhooks/hook_0dfff13cfac411ef87a6010e985f89d4 response: body: string: '{}' @@ -111,20 +111,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3c3ed33367b622cde2b8e5f200033741 + - 8e8eb62a67c9fc2fe2b97f140018bd0f x-frame-options: - SAMEORIGIN x-node: - - bigweb59nuq + - bigweb55nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb3nuq 51d74985a2 - - extlb2nuq 99aac35317 + - extlb1nuq 99aac35317 x-runtime: - - '0.286270' + - '0.280536' x-version-label: - - easypost-202502191732-9cdc8ea15b-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_delete.yaml b/tests/cassettes/test_webhook_delete.yaml index 7258cea4..44b48794 100644 --- a/tests/cassettes/test_webhook_delete.yaml +++ b/tests/cassettes/test_webhook_delete.yaml @@ -20,14 +20,14 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_2fa3f7085b4011efacad6d6452404a67", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:54:31Z", - "disabled_at": null}' + string: '{"id": "hook_0fcc09e2fac411efbde06158eced6bfc", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2025-03-06T19:49:06Z", + "disabled_at": null, "custom_headers": []}' headers: cache-control: - private, no-cache, no-store content-length: - - '161' + - '181' content-type: - application/json; charset=utf-8 expires: @@ -42,25 +42,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5cf6e78865a400177c62 + - 8e8eb62667c9fc31e2b97f2f0018bf99 x-frame-options: - SAMEORIGIN x-node: - - bigweb36nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.150746' + - '0.176059' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -82,7 +84,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_2fa3f7085b4011efacad6d6452404a67 + uri: https://api.easypost.com/v2/webhooks/hook_0fcc09e2fac411efbde06158eced6bfc response: body: string: '{}' @@ -105,27 +107,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5d666be5cf6e78865a400177c94 + - 8e8eb62667c9fc31e2b97f2f0018bfc8 x-frame-options: - SAMEORIGIN x-node: - - bigweb43nuq + - bigweb53nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.334570' + - '0.375339' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_retrieve.yaml b/tests/cassettes/test_webhook_retrieve.yaml index 6140342e..3e7164ec 100644 --- a/tests/cassettes/test_webhook_retrieve.yaml +++ b/tests/cassettes/test_webhook_retrieve.yaml @@ -20,14 +20,14 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_2de2755c5b4011efac435764850b8a0d", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:54:28Z", - "disabled_at": null}' + string: '{"id": "hook_0e83e2dafac411efac9a1daf3c26a49f", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2025-03-06T19:49:04Z", + "disabled_at": null, "custom_headers": []}' headers: cache-control: - private, no-cache, no-store content-length: - - '161' + - '181' content-type: - application/json; charset=utf-8 expires: @@ -42,27 +42,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5cf3e78865a1001779c1 + - 8e8eb62a67c9fc2fe2b97f150018bd9a x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.179043' + - '0.142343' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -82,17 +80,17 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/webhooks/hook_2de2755c5b4011efac435764850b8a0d + uri: https://api.easypost.com/v2/webhooks/hook_0e83e2dafac411efac9a1daf3c26a49f response: body: - string: '{"id": "hook_2de2755c5b4011efac435764850b8a0d", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2024-08-15T19:54:28Z", - "disabled_at": null}' + string: '{"id": "hook_0e83e2dafac411efac9a1daf3c26a49f", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2025-03-06T19:49:04Z", + "disabled_at": null, "custom_headers": []}' headers: cache-control: - private, no-cache, no-store content-length: - - '161' + - '181' content-type: - application/json; charset=utf-8 expires: @@ -112,7 +110,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5cf3e78865a1001779fe + - 8e8eb62a67c9fc2fe2b97f150018bdd7 x-frame-options: - SAMEORIGIN x-node: @@ -120,12 +118,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb4nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.033937' + - '0.030906' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -147,7 +145,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_2de2755c5b4011efac435764850b8a0d + uri: https://api.easypost.com/v2/webhooks/hook_0e83e2dafac411efac9a1daf3c26a49f response: body: string: '{}' @@ -175,20 +173,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 62c1f5dd66be5cf4e78865a100177a17 + - 8e8eb62a67c9fc2fe2b97f150018bde4 x-frame-options: - SAMEORIGIN x-node: - - bigweb35nuq + - bigweb54nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq c0f5e722d1 - - extlb2nuq b6e1b5034c + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.350575' + - '0.218994' x-version-label: - - easypost-202408151917-1527448f18-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_update.yaml b/tests/cassettes/test_webhook_update.yaml index 66035525..bfe45cb1 100644 --- a/tests/cassettes/test_webhook_update.yaml +++ b/tests/cassettes/test_webhook_update.yaml @@ -20,8 +20,8 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: '{"id": "hook_72e4caf4eeef11efb30a1373530d9838", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2025-02-19T18:29:26Z", + string: '{"id": "hook_0efb3bf0fac411ef8ef87bb79a980ca0", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2025-03-06T19:49:04Z", "disabled_at": null, "custom_headers": []}' headers: cache-control: @@ -42,27 +42,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 3c3ed32f67b62306e2b8e6d800036fff + - 8e8eb62767c9fc30e2b97f170018be5e x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb3nuq 51d74985a2 - - extlb2nuq 99aac35317 + - extlb1nuq 99aac35317 x-runtime: - - '0.121274' + - '0.159288' x-version-label: - - easypost-202502191732-9cdc8ea15b-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -87,11 +85,11 @@ interactions: user-agent: - method: PATCH - uri: https://api.easypost.com/v2/webhooks/hook_72e4caf4eeef11efb30a1373530d9838 + uri: https://api.easypost.com/v2/webhooks/hook_0efb3bf0fac411ef8ef87bb79a980ca0 response: body: - string: '{"id": "hook_72e4caf4eeef11efb30a1373530d9838", "object": "Webhook", - "mode": "test", "url": "http://example.com", "created_at": "2025-02-19T18:29:26Z", + string: '{"id": "hook_0efb3bf0fac411ef8ef87bb79a980ca0", "object": "Webhook", + "mode": "test", "url": "http://example.com", "created_at": "2025-03-06T19:49:04Z", "disabled_at": null, "custom_headers": [{"name": "test", "value": "header"}]}' headers: cache-control: @@ -117,20 +115,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3c3ed32f67b62306e2b8e6d900037029 + - 8e8eb62767c9fc30e2b97f170018be92 x-frame-options: - SAMEORIGIN x-node: - - bigweb56nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb4nuq 51d74985a2 - - extlb2nuq 99aac35317 + - extlb1nuq 99aac35317 x-runtime: - - '0.637407' + - '0.701134' x-version-label: - - easypost-202502191732-9cdc8ea15b-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: @@ -152,7 +150,7 @@ interactions: user-agent: - method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_72e4caf4eeef11efb30a1373530d9838 + uri: https://api.easypost.com/v2/webhooks/hook_0efb3bf0fac411ef8ef87bb79a980ca0 response: body: string: '{}' @@ -175,27 +173,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 3c3ed32e67b62307e2b8e9e9000370f3 + - 8e8eb62767c9fc31e2b97f170018bf41 x-frame-options: - SAMEORIGIN x-node: - - bigweb32nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb4nuq 51d74985a2 - - extlb2nuq 99aac35317 + - intlb3nuq 51d74985a2 + - extlb1nuq 99aac35317 x-runtime: - - '0.326322' + - '0.281700' x-version-label: - - easypost-202502191732-9cdc8ea15b-master + - easypost-202503061913-8f39069a2d-master x-xss-protection: - 1; mode=block status: diff --git a/tests/conftest.py b/tests/conftest.py index be08784e..6ab25d19 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -288,7 +288,7 @@ def basic_pickup(): If you need to re-record cassettes, increment the date below and ensure it is one day in the future, USPS only does "next-day" pickups including Saturday but not Sunday or Holidays. """ - pickup_date = "2024-08-17" + pickup_date = "2025-03-08" pickup_data = read_fixture_data()["pickups"]["basic"] pickup_data["min_datetime"] = pickup_date @@ -373,9 +373,9 @@ def rma_form_options(): @pytest.fixture def planned_ship_date(): - return "2024-08-15" + return "2025-03-08" @pytest.fixture def desired_delivery_date(): - return "2024-08-18" + return "2025-03-08" diff --git a/tests/test_order.py b/tests/test_order.py index 2d89bcaf..4e556179 100644 --- a/tests/test_order.py +++ b/tests/test_order.py @@ -56,13 +56,13 @@ def test_order_lowest_rate(basic_order, test_client): # Test lowest rate with no filters lowest_rate = order.lowest_rate() assert lowest_rate.service == "GroundAdvantage" - assert lowest_rate.rate == "11.40" + assert lowest_rate.rate == "11.74" assert lowest_rate.carrier == "USPS" # Test lowest rate with service filter (this rate is higher than the lowest but should filter) lowest_rate_service = order.lowest_rate(services=["Priority"]) assert lowest_rate_service.service == "Priority" - assert lowest_rate_service.rate == "14.48" + assert lowest_rate_service.rate == "15.64" assert lowest_rate_service.carrier == "USPS" # Test lowest rate with carrier filter (should error due to bad carrier) diff --git a/tests/test_referral_customer.py b/tests/test_referral_customer.py index 94e1cec0..29c9be43 100644 --- a/tests/test_referral_customer.py +++ b/tests/test_referral_customer.py @@ -73,6 +73,7 @@ def test_referral_get_next_page(partner_user_prod_client, page_size): raise Exception(_TEST_FAILED_INTENTIONALLY_ERROR) +@pytest.mark.skip("flow is deprecated, cannot easily be tested due to Stripe changes") # PyVCR is having troubles matching the body of the form-encoded data here, override the default @pytest.mark.vcr( match_on=[ diff --git a/tests/test_shipment.py b/tests/test_shipment.py index a1fda14f..60d84ffa 100644 --- a/tests/test_shipment.py +++ b/tests/test_shipment.py @@ -198,13 +198,13 @@ def test_shipment_lowest_rate(full_shipment, test_client): # Test lowest rate with no filters lowest_rate = shipment.lowest_rate() assert lowest_rate.service == "GroundAdvantage" - assert lowest_rate.rate == "5.93" + assert lowest_rate.rate == "6.07" assert lowest_rate.carrier == "USPS" # Test lowest rate with service filter (this rate is higher than the lowest but should filter) lowest_rate_service = shipment.lowest_rate(services=["Priority"]) assert lowest_rate_service.service == "Priority" - assert lowest_rate_service.rate == "6.90" + assert lowest_rate_service.rate == "7.42" assert lowest_rate_service.carrier == "USPS" # Test lowest rate with carrier filter (should error due to bad carrier) @@ -224,7 +224,7 @@ def test_shipment_lowest_smart_rate(basic_shipment, test_client): delivery_accuracy="percentile_90", ) assert lowest_smart_rate_filters["service"] == "GroundAdvantage" - assert lowest_smart_rate_filters["rate"] == 5.93 + assert lowest_smart_rate_filters["rate"] == 6.07 assert lowest_smart_rate_filters["carrier"] == "USPS" # Test lowest smart_rate with invalid filters (should error due to strict delivery_days) @@ -258,7 +258,7 @@ def test_shipment_get_lowest_smart_rate(basic_shipment, test_client): delivery_accuracy="percentile_90", ) assert lowest_smart_rate_filters["service"] == "GroundAdvantage" - assert lowest_smart_rate_filters["rate"] == 5.93 + assert lowest_smart_rate_filters["rate"] == 6.07 assert lowest_smart_rate_filters["carrier"] == "USPS" # Test lowest smart_rate with invalid filters (should error due to strict delivery_days) @@ -312,7 +312,7 @@ def test_shipment_buy_with_end_shipper_id(ca_address_1, basic_shipment, test_cli @pytest.mark.vcr() -def test_retrieve_estimated_delivery_date(basic_shipment, planned_ship_date, test_client): +def test_shipment_retrieve_estimated_delivery_date(basic_shipment, planned_ship_date, test_client): """Tests that we retrieve time-in-transit data for each of the Rates of a Shipment.""" shipment = test_client.shipment.create(**basic_shipment) From ca446430ad4a292a0ab28c43f2783fd579bf24c4 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Fri, 7 Mar 2025 10:16:33 -0700 Subject: [PATCH 08/10] fix: vcr/urllib versions --- .github/workflows/ci.yml | 2 +- setup.py | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54c787aa..fdbff1c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + pythonversion: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/setup.py b/setup.py index f9d0f70d..fb68d858 100644 --- a/setup.py +++ b/setup.py @@ -9,17 +9,17 @@ ] DEV_REQUIREMENTS = [ - "bandit==1.7.*", # v1.8 requires Python 3.9 - "black==23.*", + "bandit==1.8.*", + "black==25.*", "build==1.2.*", - "flake8==5.*", # v6 requires Python 3.9 - "isort==5.*", # v6 requires Python 3.9 - "mypy==1.14.*", # v1.15 requires Python 3.9 - "pdoc==14.*", # v15 requires Python 3.9 - "pytest-cov==5.*", # v6 requires Python 3.9 + "flake8==6.*", + "isort==6.*", + "mypy==1.15.*", + "pdoc==15.*", + "pytest-cov==6.*", "pytest-vcr==1.*", "pytest==8.*", - "vcrpy==6.*", # v7 requires Python 3.9 + "vcrpy==7.*", ] with open("README.md", encoding="utf-8") as f: @@ -54,12 +54,11 @@ "Tracker": "https://github.com/EasyPost/easypost-python/issues", "Source": "https://github.com/EasyPost/easypost-python", }, - python_requires=">=3.8, <4", + python_requires=">=3.9, <4", classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Programming Language :: Python", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", From edfbf33191d2c8bbd8b85cb94a42861f88dcac44 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Fri, 7 Mar 2025 10:21:31 -0700 Subject: [PATCH 09/10] chore: remove explicit imports for List and Dict now they are builtin --- easypost/easypost_object.py | 25 ++++++----- easypost/errors/api/api_error.py | 12 +++--- easypost/models/order.py | 3 +- easypost/models/pickup.py | 3 +- easypost/models/shipment.py | 3 +- easypost/requestor.py | 42 +++++++++---------- easypost/services/address_service.py | 11 +++-- easypost/services/api_key_service.py | 6 +-- easypost/services/base_service.py | 16 +++++-- easypost/services/batch_service.py | 9 ++-- easypost/services/beta_rate_service.py | 3 +- .../beta_referral_customer_service.py | 7 ++-- easypost/services/billing_service.py | 6 +-- easypost/services/carrier_account_service.py | 6 +-- easypost/services/carrier_metadata_service.py | 8 ++-- easypost/services/claim_service.py | 9 ++-- easypost/services/end_shipper_service.py | 3 +- easypost/services/event_service.py | 11 +++-- easypost/services/insurance_service.py | 9 ++-- easypost/services/pickup_service.py | 9 ++-- .../services/referral_customer_service.py | 15 ++++--- easypost/services/refund_service.py | 9 ++-- easypost/services/report_service.py | 9 ++-- easypost/services/scan_form_service.py | 9 ++-- easypost/services/shipment_service.py | 20 ++++----- easypost/services/smartrate_service.py | 6 +-- easypost/services/tracker_service.py | 9 ++-- easypost/services/user_service.py | 11 +++-- easypost/services/webhook_service.py | 3 +- easypost/util.py | 20 ++++----- tests/conftest.py | 8 ++-- 31 files changed, 146 insertions(+), 174 deletions(-) diff --git a/easypost/easypost_object.py b/easypost/easypost_object.py index abc17d8c..4643ab2e 100644 --- a/easypost/easypost_object.py +++ b/easypost/easypost_object.py @@ -3,15 +3,13 @@ import re from typing import ( Any, - Dict, - List, Optional, ) from easypost.constant import NO_ATTRIBUTE_ERROR -EASYPOST_OBJECT_ID_PREFIX_TO_CLASS_NAME_MAP: Dict[str, Any] = { +EASYPOST_OBJECT_ID_PREFIX_TO_CLASS_NAME_MAP: dict[str, Any] = { "adr": "Address", "ak": "ApiKey", "batch": "Batch", @@ -44,7 +42,7 @@ "user": "User", } -OBJECT_CLASS_NAME_OVERRIDES: Dict[str, Any] = { +OBJECT_CLASS_NAME_OVERRIDES: dict[str, Any] = { "CashFlowReport": "Report", "PaymentLogReport": "Report", "RefundReport": "Report", @@ -55,7 +53,7 @@ def convert_to_easypost_object( - response: Dict[str, Any], + response: dict[str, Any], parent: object = None, name: Optional[str] = None, ): @@ -147,17 +145,17 @@ def __setitem__(self, k, v) -> None: setattr(self, k, v) @property - def keys(self) -> List[str]: + def keys(self) -> list[str]: return self._values.keys() @property - def values(self) -> List[Any]: + def values(self) -> list[Any]: return self._values.keys() @classmethod def construct_from( cls, - values: Dict[str, Any], + values: dict[str, Any], parent: object = None, name: Optional[str] = None, ) -> object: @@ -167,7 +165,7 @@ def construct_from( return instance - def convert_each_value(self, values: Dict[str, Any]) -> None: + def convert_each_value(self, values: dict[str, Any]) -> None: """Convert each value of a response into an EasyPostObject.""" for k, v in sorted(values.items()): if k == "id" and self.id != v: @@ -186,7 +184,12 @@ def __repr__(self) -> str: json_string = json.dumps(obj=self.to_dict(), sort_keys=True, indent=2, cls=EasyPostObjectEncoder) - return "<%s%s at %s> JSON: %s" % (type(self).__name__, type_string, hex(id(self)), json_string) + return "<%s%s at %s> JSON: %s" % ( + type(self).__name__, + type_string, + hex(id(self)), + json_string, + ) def __str__(self) -> str: return self.to_json(indent=2) @@ -200,7 +203,7 @@ def to_json(self, indent: Optional[int] = None) -> str: """Convert current object to json string.""" return json.dumps(obj=self.to_dict(), sort_keys=True, indent=indent, cls=EasyPostObjectEncoder) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Convert current object to a dict.""" def _serialize(o): diff --git a/easypost/errors/api/api_error.py b/easypost/errors/api/api_error.py index 78e08f3c..e8c75db7 100644 --- a/easypost/errors/api/api_error.py +++ b/easypost/errors/api/api_error.py @@ -1,8 +1,6 @@ import json from typing import ( Any, - Dict, - List, Optional, Union, ) @@ -16,15 +14,15 @@ class ApiError(EasyPostError): def __init__( self, message: Union[ - Dict[str, Any], list, str + dict[str, Any], list, str ], # message should be a string but can sometimes incorrectly come back as a list or object - errors: Optional[List[str]] = None, + errors: Optional[list[str]] = None, code: Optional[str] = None, http_status: Optional[int] = None, http_body: Optional[Union[str, bytes]] = None, ): super().__init__(message) # type: ignore - message_list: List[str] = [] + message_list: list[str] = [] self._traverse_json_element(message, message_list) self.message = ", ".join(message_list) self.errors = errors @@ -54,8 +52,8 @@ def __init__( def _traverse_json_element( self, - error_message: Optional[Union[Dict[str, Any], list, str]], - messages_list: List[str], + error_message: Optional[Union[dict[str, Any], list, str]], + messages_list: list[str], ) -> None: """Recursively traverses a JSON object or array and extracts error messages as strings. Adds the extracted messages to the specified messages_list array. diff --git a/easypost/models/order.py b/easypost/models/order.py index 538ed99b..ac97d2fe 100644 --- a/easypost/models/order.py +++ b/easypost/models/order.py @@ -1,5 +1,4 @@ from typing import ( - List, Optional, ) @@ -9,7 +8,7 @@ class Order(EasyPostObject): - def lowest_rate(self, carriers: Optional[List[str]] = None, services: Optional[List[str]] = None) -> Rate: + def lowest_rate(self, carriers: Optional[list[str]] = None, services: Optional[list[str]] = None) -> Rate: """Get the lowest rate of this Order.""" lowest_rate = get_lowest_object_rate(self, carriers, services) diff --git a/easypost/models/pickup.py b/easypost/models/pickup.py index a54175b7..f91ba9af 100644 --- a/easypost/models/pickup.py +++ b/easypost/models/pickup.py @@ -1,5 +1,4 @@ from typing import ( - List, Optional, ) @@ -9,7 +8,7 @@ class Pickup(EasyPostObject): - def lowest_rate(self, carriers: Optional[List[str]] = None, services: Optional[List[str]] = None) -> Rate: + def lowest_rate(self, carriers: Optional[list[str]] = None, services: Optional[list[str]] = None) -> Rate: """Get the lowest rate of this Pickup.""" lowest_rate = get_lowest_object_rate(self, carriers, services, "pickup_rates") diff --git a/easypost/models/shipment.py b/easypost/models/shipment.py index c8f9bef3..5e71b34d 100644 --- a/easypost/models/shipment.py +++ b/easypost/models/shipment.py @@ -1,5 +1,4 @@ from typing import ( - List, Optional, ) @@ -9,7 +8,7 @@ class Shipment(EasyPostObject): - def lowest_rate(self, carriers: Optional[List[str]] = None, services: Optional[List[str]] = None) -> Rate: + def lowest_rate(self, carriers: Optional[list[str]] = None, services: Optional[list[str]] = None) -> Rate: """Get the lowest rate of this shipment.""" lowest_rate = get_lowest_object_rate(self, carriers, services) diff --git a/easypost/requestor.py b/easypost/requestor.py index 5f489bf0..9f22b9e4 100644 --- a/easypost/requestor.py +++ b/easypost/requestor.py @@ -7,8 +7,6 @@ from json import JSONDecodeError from typing import ( Any, - Dict, - List, Optional, Tuple, Union, @@ -49,7 +47,7 @@ ) -STATUS_CODE_TO_ERROR_MAPPING: Dict[int, Any] = { +STATUS_CODE_TO_ERROR_MAPPING: dict[int, Any] = { 400: BadRequestError, 401: UnauthorizedError, 402: PaymentError, @@ -78,7 +76,7 @@ def __init__(self, client): self._client = client @classmethod - def _objects_to_ids(cls, param: Dict[str, Any]) -> Dict[str, Any]: + def _objects_to_ids(cls, param: dict[str, Any]) -> dict[str, Any]: """If providing an object as a parameter to another object, only pass along the ID so the API will use the object reference correctly. """ @@ -97,10 +95,10 @@ def _objects_to_ids(cls, param: Dict[str, Any]) -> Dict[str, Any]: @staticmethod def form_encode_params( - data: Dict[str, Any], - parent_keys: Optional[List[str]] = None, - parent_dict: Optional[Dict[str, Any]] = None, - ) -> Dict: + data: dict[str, Any], + parent_keys: Optional[list[str]] = None, + parent_dict: Optional[dict[str, Any]] = None, + ) -> dict: """Form-encode a multi-layer dictionary to a one-layer dictionary.""" result = parent_dict or {} keys = parent_keys or [] @@ -116,7 +114,7 @@ def form_encode_params( return result @staticmethod - def _build_dict_key(keys: List[str]) -> str: + def _build_dict_key(keys: list[str]) -> str: """Build a dict key from a list of keys. Example: [code, number] -> code[number] """ @@ -131,9 +129,9 @@ def request( self, method: RequestMethod, url: str, - params: Optional[Dict[str, Any]] = None, + params: Optional[dict[str, Any]] = None, beta: bool = False, - ) -> Dict[str, Any]: + ) -> dict[str, Any]: """Make a request to the EasyPost API.""" if params is None: params = {} @@ -153,7 +151,7 @@ def request_raw( self, method: RequestMethod, url: str, - params: Optional[Dict[str, Any]] = None, + params: Optional[dict[str, Any]] = None, beta: bool = False, ) -> Tuple[str, int]: """Internal logic required to make a request to the EasyPost API.""" @@ -239,7 +237,7 @@ def request_raw( return http_body, http_status - def interpret_response(self, http_body: str, http_status: int) -> Dict[str, Any]: + def interpret_response(self, http_body: str, http_status: int) -> dict[str, Any]: """Interpret the response body we receive from the API.""" if http_status == 204: # HTTP 204 does not have any response body and we can just return here @@ -259,9 +257,9 @@ def requests_request( self, method: RequestMethod, abs_url: str, - headers: Dict[str, Any], - params: Dict[str, Any], - ) -> Tuple[str, int, Dict[str, Any]]: + headers: dict[str, Any], + params: dict[str, Any], + ) -> Tuple[str, int, dict[str, Any]]: """Make a request by using the `request` library.""" if method in [RequestMethod.GET, RequestMethod.DELETE]: url_params = params @@ -299,9 +297,9 @@ def urlfetch_request( self, method: RequestMethod, abs_url: str, - headers: Dict[str, Any], - params: Dict[str, Any], - ) -> Tuple[str, int, Dict[str, Any]]: + headers: dict[str, Any], + params: dict[str, Any], + ) -> Tuple[str, int, dict[str, Any]]: """Make a request by using the `urlfetch` library.""" fetch_args = { "method": method.value, @@ -329,7 +327,7 @@ def urlfetch_request( return result.content, result.status_code, result.headers - def handle_api_error(self, http_status: int, http_body: str, response: Dict[str, Any]) -> None: + def handle_api_error(self, http_status: int, http_body: str, response: dict[str, Any]) -> None: """Handles API errors returned from the EasyPost API.""" try: error = response["error"] @@ -357,7 +355,7 @@ def _utf8(self, value: Union[str, bytes]) -> str: return value.decode(encoding="utf-8") return value - def encode_url_params(self, params: Dict[str, Any], method: RequestMethod) -> Union[str, None]: + def encode_url_params(self, params: dict[str, Any], method: RequestMethod) -> Union[str, None]: """Encode params for a URL.""" if method not in [RequestMethod.GET, RequestMethod.DELETE]: raise EasyPostError(INVALID_REQUEST_PARAMETERS_ERROR) @@ -373,7 +371,7 @@ def encode_url_params(self, params: Dict[str, Any], method: RequestMethod) -> Un return urlencode(query=converted_params) - def add_params_to_url(self, url: str, params: Dict[str, Any], method: RequestMethod) -> str: + def add_params_to_url(self, url: str, params: dict[str, Any], method: RequestMethod) -> str: """Add params to the URL.""" if method not in [RequestMethod.GET, RequestMethod.DELETE]: raise EasyPostError(INVALID_REQUEST_PARAMETERS_ERROR) diff --git a/easypost/services/address_service.py b/easypost/services/address_service.py index 43f761e0..42db7fe8 100644 --- a/easypost/services/address_service.py +++ b/easypost/services/address_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -26,7 +25,7 @@ def create( ) -> Address: """Create an Address.""" url = self._class_url(self._model_class) - wrapped_params = {self._snakecase_name(self._model_class): params} # type: Dict[str, Any] + wrapped_params = {self._snakecase_name(self._model_class): params} # type: dict[str, Any] if verify: wrapped_params["verify"] = verify @@ -37,7 +36,7 @@ def create( return convert_to_easypost_object(response=response) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Addresses.""" filters = { "key": "addresses", @@ -68,10 +67,10 @@ def verify(self, id) -> Address: def get_next_page( self, - addresses: Dict[str, Any], + addresses: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve the next page of the list Addresses response.""" self._check_has_next_page(collection=addresses) diff --git a/easypost/services/api_key_service.py b/easypost/services/api_key_service.py index 048ed861..f142cf88 100644 --- a/easypost/services/api_key_service.py +++ b/easypost/services/api_key_service.py @@ -1,7 +1,5 @@ from typing import ( Any, - Dict, - List, ) from easypost.constant import NO_USER_FOUND @@ -20,7 +18,7 @@ def __init__(self, client): self._client = client self._model_class = ApiKey.__name__ - def all(self) -> Dict[str, Any]: + def all(self) -> dict[str, Any]: """Retrieve a list of all API keys.""" url = "/api_keys" @@ -28,7 +26,7 @@ def all(self) -> Dict[str, Any]: return convert_to_easypost_object(response=response) - def retrieve_api_keys_for_user(self, id: str) -> List[ApiKey]: + def retrieve_api_keys_for_user(self, id: str) -> list[ApiKey]: """Retrieve a list of API keys (works for the authenticated User or a child User).""" api_keys = self.all() diff --git a/easypost/services/base_service.py b/easypost/services/base_service.py index b9499d06..cb6b5d76 100644 --- a/easypost/services/base_service.py +++ b/easypost/services/base_service.py @@ -1,7 +1,6 @@ import re from typing import ( Any, - Dict, Optional, ) @@ -52,7 +51,11 @@ def _create_resource(self, class_name: str, beta: bool = False, **params) -> Any return convert_to_easypost_object(response=response) def _all_resources( - self, class_name: str, filters: Optional[Dict[str, Any]] = None, beta: bool = False, **params + self, + class_name: str, + filters: Optional[dict[str, Any]] = None, + beta: bool = False, + **params, ) -> Any: """Retrieve a list of EasyPostObjects from the EasyPost API.""" url = self._class_url(class_name) @@ -72,7 +75,12 @@ def _retrieve_resource(self, class_name: str, id: str, beta: bool = False) -> An return convert_to_easypost_object(response=response) def _update_resource( - self, class_name: str, id: str, method: RequestMethod = RequestMethod.PATCH, beta: bool = False, **params + self, + class_name: str, + id: str, + method: RequestMethod = RequestMethod.PATCH, + beta: bool = False, + **params, ) -> Any: """Update an EasyPost object via the EasyPost API.""" url = self._instance_url(class_name, id) @@ -90,7 +98,7 @@ def _delete_resource(self, class_name: str, id: str, beta: bool = False) -> Any: return convert_to_easypost_object(response=response) - def _check_has_next_page(self, collection: Dict[str, Any]) -> None: + def _check_has_next_page(self, collection: dict[str, Any]) -> None: """Raise exception if there is no next page of a collection.""" if not collection.get("has_more", False): raise EndOfPaginationError(NO_MORE_PAGES_ERROR) diff --git a/easypost/services/batch_service.py b/easypost/services/batch_service.py index ac08efcd..4352f617 100644 --- a/easypost/services/batch_service.py +++ b/easypost/services/batch_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -22,7 +21,7 @@ def create(self, **params) -> Batch: """Create a Batch.""" return self._create_resource(self._model_class, **params) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Batches.""" filters = { "key": "batches", @@ -76,10 +75,10 @@ def create_scan_form(self, id: str, **params) -> Batch: def get_next_page( self, - batches: Dict[str, Any], + batches: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """ Retrieve the next page of the list Batch response. diff --git a/easypost/services/beta_rate_service.py b/easypost/services/beta_rate_service.py index 16822353..82e05356 100644 --- a/easypost/services/beta_rate_service.py +++ b/easypost/services/beta_rate_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, ) from easypost.easypost_object import convert_to_easypost_object @@ -17,7 +16,7 @@ def __init__(self, client): self._client = client self._model_class = Rate.__name__ - def retrieve_stateless_rates(self, **params) -> Dict[str, Any]: + def retrieve_stateless_rates(self, **params) -> dict[str, Any]: """Retrieves stateless rates by passing shipment data.""" url = self._class_url(self._model_class) wrapped_params = {"shipment": params} diff --git a/easypost/services/beta_referral_customer_service.py b/easypost/services/beta_referral_customer_service.py index 95c2df3f..4bfbbf29 100644 --- a/easypost/services/beta_referral_customer_service.py +++ b/easypost/services/beta_referral_customer_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, ) from easypost.easypost_object import convert_to_easypost_object @@ -17,7 +16,7 @@ def add_payment_method( stripe_customer_id: str, payment_method_reference: str, priority: str = "primary", - ) -> Dict[str, Any]: + ) -> dict[str, Any]: """Add a Stripe payment method to your EasyPost account. This endpoint uses a user's personal Stripe account. The `stripe_customer_id` @@ -42,7 +41,7 @@ def add_payment_method( return convert_to_easypost_object(response=response) - def refund_by_amount(self, refund_amount: int) -> Dict[str, Any]: + def refund_by_amount(self, refund_amount: int) -> dict[str, Any]: """Refund a ReferralCustomer wallet by specifying an amount.""" wrapped_params = {"refund_amount": refund_amount} @@ -55,7 +54,7 @@ def refund_by_amount(self, refund_amount: int) -> Dict[str, Any]: return convert_to_easypost_object(response=response) - def refund_by_payment_log(self, payment_log_id: str) -> Dict[str, Any]: + def refund_by_payment_log(self, payment_log_id: str) -> dict[str, Any]: """Refund a ReferralCustomer wallet by specifying a payment log ID to completely refund.""" wrapped_params = {"payment_log_id": payment_log_id} diff --git a/easypost/services/billing_service.py b/easypost/services/billing_service.py index d580c39f..7d80d994 100644 --- a/easypost/services/billing_service.py +++ b/easypost/services/billing_service.py @@ -1,7 +1,5 @@ from typing import ( Any, - Dict, - List, ) from easypost.constant import ( @@ -40,7 +38,7 @@ def delete_payment_method(self, priority: str) -> None: Requestor(self._client).request(method=RequestMethod.DELETE, url=url) - def retrieve_payment_methods(self, **params) -> Dict[str, Any]: + def retrieve_payment_methods(self, **params) -> dict[str, Any]: """Retrieve payment methods.""" response = Requestor(self._client).request( method=RequestMethod.GET, @@ -53,7 +51,7 @@ def retrieve_payment_methods(self, **params) -> Dict[str, Any]: return convert_to_easypost_object(response=response) - def _get_payment_method_info(self, priority: str = "primary") -> List[str]: + def _get_payment_method_info(self, priority: str = "primary") -> list[str]: """Get payment method info (type of the payment method and ID of the payment method)""" payment_methods = self.retrieve_payment_methods() diff --git a/easypost/services/carrier_account_service.py b/easypost/services/carrier_account_service.py index 53d3cead..56258a9f 100644 --- a/easypost/services/carrier_account_service.py +++ b/easypost/services/carrier_account_service.py @@ -1,7 +1,5 @@ from typing import ( Any, - Dict, - List, Optional, ) @@ -42,7 +40,7 @@ def create(self, **params) -> CarrierAccount: return convert_to_easypost_object(response=response) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of CarrierAccounts.""" return self._all_resources(self._model_class, **params) @@ -65,7 +63,7 @@ def delete(self, id: str) -> None: """Delete a CarrierAccount.""" self._delete_resource(self._model_class, id) - def types(self) -> List[Dict[str, Any]]: + def types(self) -> list[dict[str, Any]]: """Get the types of CarrierAccounts available to the User.""" response = Requestor(self._client).request(method=RequestMethod.GET, url="/carrier_types") diff --git a/easypost/services/carrier_metadata_service.py b/easypost/services/carrier_metadata_service.py index 52377cd7..d5f13497 100644 --- a/easypost/services/carrier_metadata_service.py +++ b/easypost/services/carrier_metadata_service.py @@ -1,7 +1,5 @@ from typing import ( Any, - Dict, - List, Optional, ) @@ -19,9 +17,9 @@ def __init__(self, client): def retrieve( self, - carriers: Optional[List[str]] = None, - types: Optional[List[str]] = None, - ) -> List[Dict[str, Any]]: + carriers: Optional[list[str]] = None, + types: Optional[list[str]] = None, + ) -> list[dict[str, Any]]: """Get metadata for all carriers on the EasyPost platform or specify optional filters.""" params = { "carriers": ",".join(carriers) if carriers else None, diff --git a/easypost/services/claim_service.py b/easypost/services/claim_service.py index 8604dd4f..c7925b04 100644 --- a/easypost/services/claim_service.py +++ b/easypost/services/claim_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -26,7 +25,7 @@ def create(self, **params) -> Claim: return convert_to_easypost_object(response=response) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Claims.""" filters = { "key": "claims", @@ -40,10 +39,10 @@ def retrieve(self, id: str) -> Claim: def get_next_page( self, - claims: Dict[str, Any], + claims: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve the next page of the list Claim response.""" self._check_has_next_page(collection=claims) diff --git a/easypost/services/end_shipper_service.py b/easypost/services/end_shipper_service.py index edc565ef..7fd70d76 100644 --- a/easypost/services/end_shipper_service.py +++ b/easypost/services/end_shipper_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, ) from easypost.easypost_object import convert_to_easypost_object @@ -30,7 +29,7 @@ def create(self, **params) -> Address: return convert_to_easypost_object(response=response) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of EndShippers.""" return self._all_resources(self._service_class, **params) diff --git a/easypost/services/event_service.py b/easypost/services/event_service.py index 066ef177..8d0aad3f 100644 --- a/easypost/services/event_service.py +++ b/easypost/services/event_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -25,7 +24,7 @@ def create(self, **params) -> Event: """Create an Event.""" return self._create_resource(self._model_class, **params) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Events.""" filters = { "key": "events", @@ -37,7 +36,7 @@ def retrieve(self, id: str) -> Event: """Retrieve an Event.""" return self._retrieve_resource(self._model_class, id) - def retrieve_all_payloads(self, event_id: str, **params) -> Dict[str, Any]: + def retrieve_all_payloads(self, event_id: str, **params) -> dict[str, Any]: """Retrieve a list of Payloads for an Event.""" url = f"{self._class_url(self._model_class)}/{event_id}/payloads" @@ -55,10 +54,10 @@ def retrieve_payload(self, event_id: str, payload_id: str, **params) -> Payload: def get_next_page( self, - events: Dict[str, Any], + events: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve the next page of the list Events response.""" self._check_has_next_page(collection=events) diff --git a/easypost/services/insurance_service.py b/easypost/services/insurance_service.py index e442efce..c60ea30f 100644 --- a/easypost/services/insurance_service.py +++ b/easypost/services/insurance_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -22,7 +21,7 @@ def create(self, **params) -> Insurance: """Create an Insurance.""" return self._create_resource(self._model_class, **params) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Insurances.""" filters = { "key": "insurances", @@ -36,10 +35,10 @@ def retrieve(self, id: str) -> Insurance: def get_next_page( self, - insurances: Dict[str, Any], + insurances: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve the next page of the list Insurance response.""" self._check_has_next_page(collection=insurances) diff --git a/easypost/services/pickup_service.py b/easypost/services/pickup_service.py index 2102a1bf..b38291ca 100644 --- a/easypost/services/pickup_service.py +++ b/easypost/services/pickup_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -22,7 +21,7 @@ def create(self, **params) -> Pickup: """Create a Pickup.""" return self._create_resource(self._model_class, **params) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Pickups.""" filters = { "key": "pickups", @@ -36,10 +35,10 @@ def retrieve(self, id: str) -> Pickup: def get_next_page( self, - pickups: Dict[str, Any], + pickups: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve the next page of the list Pickup response.""" self._check_has_next_page(collection=pickups) diff --git a/easypost/services/referral_customer_service.py b/easypost/services/referral_customer_service.py index 30fe3918..7049f8ef 100644 --- a/easypost/services/referral_customer_service.py +++ b/easypost/services/referral_customer_service.py @@ -1,7 +1,6 @@ from copy import deepcopy from typing import ( Any, - Dict, Optional, ) @@ -59,7 +58,7 @@ def update_email(self, id: str, email: str) -> None: params=wrapped_params, ) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of referral customers. This function requires the Partner User's API key. @@ -78,10 +77,10 @@ def all(self, **params) -> Dict[str, Any]: def get_next_page( self, - referral_customers: Dict[str, Any], + referral_customers: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve next page of referral customers.""" self._check_has_next_page(collection=referral_customers) @@ -103,7 +102,7 @@ def add_credit_card( expiration_year: int, cvc: str, priority: str = "primary", - ) -> Dict[str, Any]: + ) -> dict[str, Any]: """Add credit card to a referral customer. This function requires the ReferralCustomer User's API key. @@ -145,7 +144,7 @@ def _create_stripe_token( expiration_year: int, cvc: str, easypost_stripe_key: str, - ) -> Dict[str, Any]: + ) -> dict[str, Any]: """Get credit card token from Stripe.""" headers = { # This Stripe endpoint only accepts URL form encoded bodies @@ -179,7 +178,7 @@ def _create_easypost_credit_card( referral_api_key: str, stripe_object_id: str, priority: str = "primary", - ) -> Dict[str, Any]: + ) -> dict[str, Any]: """Submit Stripe credit card token to EasyPost.""" params = { "credit_card": { diff --git a/easypost/services/refund_service.py b/easypost/services/refund_service.py index 16eef656..e9f2fee5 100644 --- a/easypost/services/refund_service.py +++ b/easypost/services/refund_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -17,7 +16,7 @@ def create(self, **params) -> Refund: """Create a Shipment Refund.""" return self._create_resource(self._model_class, **params) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Shipment Refunds.""" filters = { "key": "refunds", @@ -31,10 +30,10 @@ def retrieve(self, id: str) -> Refund: def get_next_page( self, - refunds: Dict[str, Any], + refunds: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve the next page of the list Refund response.""" self._check_has_next_page(collection=refunds) diff --git a/easypost/services/report_service.py b/easypost/services/report_service.py index 4b2b8c49..ac2c2182 100644 --- a/easypost/services/report_service.py +++ b/easypost/services/report_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -36,7 +35,7 @@ def create(self, **params) -> Report: return convert_to_easypost_object(response=response) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Reports.""" # Capture some of the parameters used for later reference filters = { @@ -62,10 +61,10 @@ def retrieve(self, id: str) -> Report: def get_next_page( self, - reports: Dict[str, Any], + reports: dict[str, Any], page_size: Optional[int] = None, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve the next page of the list Report response.""" self._check_has_next_page(collection=reports) diff --git a/easypost/services/scan_form_service.py b/easypost/services/scan_form_service.py index 505c364d..fe5590a5 100644 --- a/easypost/services/scan_form_service.py +++ b/easypost/services/scan_form_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -17,7 +16,7 @@ def create(self, **params) -> ScanForm: """Create a ScanForm.""" return self._create_resource(self._model_class, **params) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of ScanForms.""" filters = { "key": "scan_forms", @@ -31,10 +30,10 @@ def retrieve(self, id: str) -> ScanForm: def get_next_page( self, - scan_forms: Dict[str, Any], + scan_forms: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve the next page of the list ScanForm response.""" self._check_has_next_page(collection=scan_forms) diff --git a/easypost/services/shipment_service.py b/easypost/services/shipment_service.py index 4f33aeff..1f8a0885 100644 --- a/easypost/services/shipment_service.py +++ b/easypost/services/shipment_service.py @@ -1,7 +1,5 @@ from typing import ( Any, - Dict, - List, Optional, ) @@ -35,7 +33,7 @@ def create(self, **params) -> Shipment: return convert_to_easypost_object(response=response) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Shipments.""" filters = { "key": "shipments", @@ -51,10 +49,10 @@ def retrieve(self, id: str) -> Shipment: def get_next_page( self, - shipments: Dict[str, Any], + shipments: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Get next page of shipment collection.""" self._check_has_next_page(collection=shipments) @@ -72,7 +70,7 @@ def get_next_page( return self.all(**params) - def regenerate_rates(self, id: str) -> Dict[str, List[Rate]]: + def regenerate_rates(self, id: str) -> dict[str, list[Rate]]: """Regenerate Rates for a Shipment.""" url = f"{self._instance_url(self._model_class, id)}/rerate" @@ -80,7 +78,7 @@ def regenerate_rates(self, id: str) -> Dict[str, List[Rate]]: return convert_to_easypost_object(response=response) - def get_smart_rates(self, id: str) -> List[Rate]: + def get_smart_rates(self, id: str) -> list[Rate]: """Get SmartRates for a Shipment.""" url = f"{self._instance_url(self._model_class, id)}/smartrate" @@ -134,7 +132,7 @@ def lowest_smart_rate(self, id: str, delivery_days: int, delivery_accuracy: str) return lowest_smart_rate - def generate_form(self, id: str, form_type: str, form_options: Optional[Dict[str, Any]] = {}) -> Shipment: + def generate_form(self, id: str, form_type: str, form_options: Optional[dict[str, Any]] = {}) -> Shipment: """Generate a form for a Shipment.""" params = {"type": form_type} params.update(form_options) # type: ignore @@ -145,7 +143,7 @@ def generate_form(self, id: str, form_type: str, form_options: Optional[Dict[str return convert_to_easypost_object(response=response) - def retrieve_estimated_delivery_date(self, id: str, planned_ship_date: str) -> List[Dict[str, Any]]: + def retrieve_estimated_delivery_date(self, id: str, planned_ship_date: str) -> list[dict[str, Any]]: """Retrieves the estimated delivery date of each Rate via SmartRate.""" url = f"{self._instance_url(self._model_class, id)}/smartrate/delivery_date" wrapped_params = {"planned_ship_date": planned_ship_date} @@ -154,7 +152,7 @@ def retrieve_estimated_delivery_date(self, id: str, planned_ship_date: str) -> L return convert_to_easypost_object(response=response.get("rates", [])) - def recommend_ship_date(self, id: str, desired_delivery_date: str) -> List[Dict[str, Any]]: + def recommend_ship_date(self, id: str, desired_delivery_date: str) -> list[dict[str, Any]]: """Retrieve a recommended ship date for an existing Shipment via the Precision Shipping API, based on a specific desired delivery date. """ diff --git a/easypost/services/smartrate_service.py b/easypost/services/smartrate_service.py index 666cb7e6..9bb30f68 100644 --- a/easypost/services/smartrate_service.py +++ b/easypost/services/smartrate_service.py @@ -1,7 +1,5 @@ from typing import ( Any, - Dict, - List, ) from easypost.easypost_object import convert_to_easypost_object @@ -17,7 +15,7 @@ def __init__(self, client): self._client = client self._model_class = "SmartRate" - def estimate_delivery_date(self, **params) -> List[Dict[str, Any]]: + def estimate_delivery_date(self, **params) -> list[dict[str, Any]]: """Retrieve the estimated delivery date of each carrier-service level combination via the Smart Deliver By API, based on a specific ship date and origin-destination postal code pair. """ @@ -27,7 +25,7 @@ def estimate_delivery_date(self, **params) -> List[Dict[str, Any]]: return convert_to_easypost_object(response=response) - def recommend_ship_date(self, **params) -> List[Dict[str, Any]]: + def recommend_ship_date(self, **params) -> list[dict[str, Any]]: """Retrieve a recommended ship date for each carrier-service level combination via the Smart Deliver On API, based on a specific delivery date and origin-destination postal code pair. """ diff --git a/easypost/services/tracker_service.py b/easypost/services/tracker_service.py index 09d717af..5395dcd3 100644 --- a/easypost/services/tracker_service.py +++ b/easypost/services/tracker_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -18,7 +17,7 @@ def create(self, **params) -> Tracker: """Create a Tracker.""" return self._create_resource(self._model_class, **params) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Trackers.""" filters = { "key": "trackers", @@ -35,10 +34,10 @@ def retrieve(self, id: str) -> Tracker: def get_next_page( self, - trackers: Dict[str, Any], + trackers: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve the next page of the list Tracker response.""" self._check_has_next_page(collection=trackers) diff --git a/easypost/services/user_service.py b/easypost/services/user_service.py index 1ad9b932..dfeea029 100644 --- a/easypost/services/user_service.py +++ b/easypost/services/user_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, Optional, ) @@ -22,7 +21,7 @@ def create(self, **params) -> User: """Create a User.""" return self._create_resource(self._model_class, **params) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Users.""" return self._all_resources(self._model_class, **params) @@ -74,7 +73,7 @@ def update_brand(self, id: str, **params) -> User: return convert_to_easypost_object(response=response) - def all_children(self, **params) -> Dict[str, Any]: + def all_children(self, **params) -> dict[str, Any]: """Retrieve a paginated list of children from the API.""" url = "/users/children" response = Requestor(self._client).request( @@ -87,10 +86,10 @@ def all_children(self, **params) -> Dict[str, Any]: def get_next_page_of_children( self, - children: Dict[str, Any], + children: dict[str, Any], page_size: int, - optional_params: Optional[Dict[str, Any]] = None, - ) -> Dict[str, Any]: + optional_params: Optional[dict[str, Any]] = None, + ) -> dict[str, Any]: """Retrieve the next page of the list Children response.""" self._check_has_next_page(collection=children) diff --git a/easypost/services/webhook_service.py b/easypost/services/webhook_service.py index 4e2ef885..13cdbba4 100644 --- a/easypost/services/webhook_service.py +++ b/easypost/services/webhook_service.py @@ -1,6 +1,5 @@ from typing import ( Any, - Dict, ) from easypost.easypost_object import convert_to_easypost_object @@ -21,7 +20,7 @@ def create(self, **params) -> Webhook: """Create a Webhook.""" return self._create_resource(self._model_class, **params) - def all(self, **params) -> Dict[str, Any]: + def all(self, **params) -> dict[str, Any]: """Retrieve a list of Webhooks.""" return self._all_resources(self._model_class, **params) diff --git a/easypost/util.py b/easypost/util.py index da1a9f35..f8ee9fed 100644 --- a/easypost/util.py +++ b/easypost/util.py @@ -4,8 +4,6 @@ import unicodedata from typing import ( Any, - Dict, - List, Optional, Union, ) @@ -29,9 +27,9 @@ def get_lowest_object_rate( - easypost_object: Union[EasyPostObject, Dict[str, Any]], - carriers: Optional[List[str]] = None, - services: Optional[List[str]] = None, + easypost_object: Union[EasyPostObject, dict[str, Any]], + carriers: Optional[list[str]] = None, + services: Optional[list[str]] = None, rates_key: str = "rates", ) -> Rate: """Gets the lowest rate of an EasyPost object such as a Shipment, Order, or Pickup.""" @@ -55,7 +53,7 @@ def get_lowest_object_rate( return lowest_rate -def get_lowest_smart_rate(smart_rates: List[Rate], delivery_days: int, delivery_accuracy: str) -> Rate: +def get_lowest_smart_rate(smart_rates: list[Rate], delivery_days: int, delivery_accuracy: str) -> Rate: """Get the lowest SmartRate from a list of SmartRates.""" valid_delivery_accuracy_values = { "percentile_50", @@ -84,10 +82,10 @@ def get_lowest_smart_rate(smart_rates: List[Rate], delivery_days: int, delivery_ def get_lowest_stateless_rate( - stateless_rates: List[Dict[str, Any]], - carriers: Optional[List[str]] = None, - services: Optional[List[str]] = None, -) -> Dict[str, Any]: + stateless_rates: list[dict[str, Any]], + carriers: Optional[list[str]] = None, + services: Optional[list[str]] = None, +) -> dict[str, Any]: """Get the lowest stateless rate.""" carriers = carriers or [] services = services or [] @@ -116,7 +114,7 @@ def receive_event(raw_input: str): return convert_to_easypost_object(response=json.loads(raw_input)) -def validate_webhook(event_body: bytes, headers: Dict[str, Any], webhook_secret: str) -> Dict[str, Any]: +def validate_webhook(event_body: bytes, headers: dict[str, Any], webhook_secret: str) -> dict[str, Any]: """Validate a webhook by comparing the HMAC signature header sent from EasyPost to your shared secret. If the signatures do not match, an error will be raised signifying the webhook either did not originate from EasyPost or the secrets do not match. If the signatures do match, the `event_body` will be returned diff --git a/tests/conftest.py b/tests/conftest.py index 6ab25d19..5f072fa6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -4,8 +4,6 @@ import warnings from typing import ( Any, - Dict, - List, Tuple, ) @@ -19,8 +17,8 @@ REFERRAL_CUSTOMER_PROD_API_KEY = os.getenv("REFERRAL_CUSTOMER_PROD_API_KEY", "123") SCRUBBED_STRING = "" -SCRUBBED_ARRAY: List = [] -SCRUBBED_DICT: Dict = {} +SCRUBBED_ARRAY: list = [] +SCRUBBED_DICT: dict = {} def pytest_sessionstart(session): @@ -98,7 +96,7 @@ def vcr_config(): } -def scrub_response_bodies(scrubbers: List[Tuple[str, Any]]) -> Any: +def scrub_response_bodies(scrubbers: list[Tuple[str, Any]]) -> Any: """Scrub sensitive data from response bodies prior to recording the cassette.""" def before_record_response(response: Any) -> Any: From 409b87e1d212da750f3ef8f7b1c35f461f848077 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Fri, 7 Mar 2025 10:24:20 -0700 Subject: [PATCH 10/10] docs: update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbf079b6..4376c96e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Next Release -- Drops support for Python 3.7 +- Drops support for Python 3.7 and 3.8 - Fixes the payload wrapping for updating a webhook - Removes deprecated `user.all_api_keys` and `user.api_keys`, use `api_key.all` and `api_key.retrieve_api_keys_for_user` respectively - Bumps all dev dependencies