diff --git a/CHANGELOG.md b/CHANGELOG.md index d7b3177e..55533e34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## Next major release + +- Removed `withCarbonOffset` parameter from `create`, `buy`, and `regenerateRates` functions of the Shipment service as EasyPost now offers Carbon Neutral shipments by default for free + ## v8.2.1 (2023-10-30) - Fixes a bug where `get_next_page` functions threw an error, preventing users from retrieving the final page of results diff --git a/easypost/services/shipment_service.py b/easypost/services/shipment_service.py index f26a566e..aa85bc93 100644 --- a/easypost/services/shipment_service.py +++ b/easypost/services/shipment_service.py @@ -24,12 +24,11 @@ def __init__(self, client): self._client = client self._model_class = Shipment.__name__ - def create(self, with_carbon_offset: Optional[bool] = False, **params) -> Shipment: + def create(self, **params) -> Shipment: """Create a Shipment.""" url = self._class_url(self._model_class) wrapped_params = { self._snakecase_name(self._model_class): params, - "carbon_offset": with_carbon_offset, } response = Requestor(self._client).request(method=RequestMethod.POST, url=url, params=wrapped_params) @@ -73,12 +72,11 @@ def get_next_page( return self.all(**params) - def regenerate_rates(self, id: str, with_carbon_offset: Optional[bool] = False) -> Shipment: + def regenerate_rates(self, id: str) -> Shipment: """Regenerate Rates for a Shipment.""" url = f"{self._instance_url(self._model_class, id)}/rerate" - wrapped_params = {"carbon_offset": with_carbon_offset} - response = Requestor(self._client).request(method=RequestMethod.POST, url=url, params=wrapped_params) + response = Requestor(self._client).request(method=RequestMethod.POST, url=url) return convert_to_easypost_object(response=response) @@ -93,13 +91,11 @@ def get_smart_rates(self, id: str) -> List[Rate]: def buy( self, id: str, - with_carbon_offset: Optional[bool] = False, end_shipper_id: Optional[str] = None, **params, ) -> Shipment: """Buy a Shipment.""" url = f"{self._instance_url(self._model_class, id)}/buy" - params["carbon_offset"] = with_carbon_offset if end_shipper_id: params["end_shipper_id"] = end_shipper_id diff --git a/tests/cassettes/test_batch_add_remove_shipment.yaml b/tests/cassettes/test_batch_add_remove_shipment.yaml index 31ca7bd6..d6a01138 100644 --- a/tests/cassettes/test_batch_add_remove_shipment.yaml +++ b/tests/cassettes/test_batch_add_remove_shipment.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-12T19:30:45Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:03:01Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262209120052", "updated_at": "2023-05-12T19:30:46Z", "batch_id": + "9400100105442285862483", "updated_at": "2023-11-28T22:03:02Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_7db7da8bf0fb11ed92bbac1f6bc72124", "object": "Address", "created_at": - "2023-05-12T19:30:45+00:00", "updated_at": "2023-05-12T19:30:45+00:00", "name": + {"id": "adr_e5cb8c0b8e3911ee82aeac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:03:01+00:00", "updated_at": "2023-11-28T22:03: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_4ecc88df16394f2486d0344062fcdffd", - "object": "Parcel", "created_at": "2023-05-12T19:30:45Z", "updated_at": "2023-05-12T19:30:45Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_63f070c6388441c4b01c3c1da0a745d9", + "object": "Parcel", "created_at": "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6eed3126506944cd9a29b642445a066c", - "created_at": "2023-05-12T19:30:46Z", "updated_at": "2023-05-12T19:30:46Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-12T19:30:46Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_86e568f700b9496a80bd642385a115ab", + "created_at": "2023-11-28T22:03:02Z", "updated_at": "2023-11-28T22:03:02Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03: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/20230512/7736c388a3af43e6ae9e70ad698e3770.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e80812d2cab6b44946858845eda77e7a1c.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_1335eb5c26a54e2faaea7a4a6ee40443", "object": - "Rate", "created_at": "2023-05-12T19:30:45Z", "updated_at": "2023-05-12T19:30:45Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + null}, "rates": [{"id": "rate_a27773ee8059489d872853365b91b1ae", "object": + "Rate", "created_at": "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_24674f390e7d43af8dd8e62ff6793688", + "object": "Rate", "created_at": "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", + "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": + "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fa047dd2d82142cfa50cacc6b68c1433", + "object": "Rate", "created_at": "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e0d2c38dcfb74bd289337224d75b2c6e", + "object": "Rate", "created_at": "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_1b408c39c0da44f09703bcebc8f2d4d4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_c567ef417ad844ada9ff78a1f98c0163", "object": "Rate", "created_at": - "2023-05-12T19:30:45Z", "updated_at": "2023-05-12T19:30:45Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_1b408c39c0da44f09703bcebc8f2d4d4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_c718d808735e48f4b2e6641e41a3b34c", "object": "Rate", "created_at": - "2023-05-12T19:30:45Z", "updated_at": "2023-05-12T19:30:45Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_1b408c39c0da44f09703bcebc8f2d4d4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e707af71bd3e4e448c427bae57e12cd1", "object": "Rate", "created_at": - "2023-05-12T19:30:45Z", "updated_at": "2023-05-12T19:30:45Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_1b408c39c0da44f09703bcebc8f2d4d4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_1335eb5c26a54e2faaea7a4a6ee40443", - "object": "Rate", "created_at": "2023-05-12T19:30:46Z", "updated_at": "2023-05-12T19:30:46Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e46f3ef120bc4ca49623df4f85f43a97", "object": "Rate", "created_at": + "2023-11-28T22:03:01Z", "updated_at": "2023-11-28T22:03:01Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_1b408c39c0da44f09703bcebc8f2d4d4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_9e4f5b21d296400ba5463811a3dd6f00", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262209120052", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-12T19:30:46Z", "updated_at": - "2023-05-12T19:30:46Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_1b408c39c0da44f09703bcebc8f2d4d4", "carrier": "USPS", + "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_e0d2c38dcfb74bd289337224d75b2c6e", + "object": "Rate", "created_at": "2023-11-28T22:03:02Z", "updated_at": "2023-11-28T22:03:02Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_129804c22dff4b169421954d207647a9", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285862483", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:03:02Z", "updated_at": + "2023-11-28T22:03:02Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_4d6dfe4ee73e4ad186981f843799897e", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzllNGY1YjIxZDI5NjQwMGJhNTQ2MzgxMWEzZGQ2ZjAw"}, - "to_address": {"id": "adr_7db53057f0fb11edbaf9ac1f6bc7b362", "object": "Address", - "created_at": "2023-05-12T19:30:45+00:00", "updated_at": "2023-05-12T19:30:45+00:00", + "https://track.easypost.com/djE6dHJrXzEyOTgwNGMyMmRmZjRiMTY5NDIxOTU0ZDIwNzY0N2E5"}, + "to_address": {"id": "adr_e5c835918e3911ee8665ac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T22:03:01+00:00", "updated_at": "2023-11-28T22:03:01+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_7db7da8bf0fb11ed92bbac1f6bc72124", - "object": "Address", "created_at": "2023-05-12T19:30:45+00:00", "updated_at": - "2023-05-12T19:30:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_e5cb8c0b8e3911ee82aeac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T22:03:01+00:00", "updated_at": + "2023-11-28T22:03: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": {}}, "buyer_address": {"id": - "adr_7db53057f0fb11edbaf9ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-12T19:30:45+00:00", "updated_at": "2023-05-12T19:30:45+00:00", "name": + "adr_e5c835918e3911ee8665ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:03:01+00:00", "updated_at": "2023-11-28T22:03:01+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_1b408c39c0da44f09703bcebc8f2d4d4", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_4d6dfe4ee73e4ad186981f843799897e", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"fed31f5b3658bccf62db9c95df6cfb04" expires: - '0' location: - - /api/v2/shipments/shp_1b408c39c0da44f09703bcebc8f2d4d4 + - /api/v2/shipments/shp_4d6dfe4ee73e4ad186981f843799897e pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b55645e93e5e2cc31820006231b + - ae35d0b765666395e78a9786003e6858 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb31nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '1.073051' + - '0.981107' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -186,9 +191,9 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: '{"id": "batch_7c95d5d8bfd247d1981ffdfdf2ee32d5", "object": "Batch", + string: '{"id": "batch_03abf3335a2648728a9698f886321587", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 0, "reference": null, - "created_at": "2023-05-12T19:30:46Z", "updated_at": "2023-05-12T19:30:46Z", + "created_at": "2023-11-28T22:03:02Z", "updated_at": "2023-11-28T22:03:02Z", "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}' @@ -199,8 +204,6 @@ interactions: - '383' content-type: - application/json; charset=utf-8 - etag: - - W/"248d39ef72fc9c8e05ee7b42e56d4c8d" expires: - '0' pragma: @@ -213,34 +216,32 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 52975b55645e93e6e2cc318200062379 + - ae35d0b765666396e78a9786003e69e3 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.044823' + - '0.035028' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"shipments": [{"id": "shp_1b408c39c0da44f09703bcebc8f2d4d4"}]}' + body: '{"shipments": [{"id": "shp_4d6dfe4ee73e4ad186981f843799897e"}]}' headers: Accept: - '*/*' @@ -257,15 +258,15 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_7c95d5d8bfd247d1981ffdfdf2ee32d5/add_shipments + uri: https://api.easypost.com/v2/batches/batch_03abf3335a2648728a9698f886321587/add_shipments response: body: - string: '{"id": "batch_7c95d5d8bfd247d1981ffdfdf2ee32d5", "object": "Batch", + string: '{"id": "batch_03abf3335a2648728a9698f886321587", "object": "Batch", "mode": "test", "state": "created", "num_shipments": 1, "reference": null, - "created_at": "2023-05-12T19:30:46Z", "updated_at": "2023-05-12T19:30:46Z", + "created_at": "2023-11-28T22:03:02Z", "updated_at": "2023-11-28T22:03:02Z", "scan_form": null, "shipments": [{"batch_status": "postage_purchased", "batch_message": - null, "reference": null, "tracking_code": "9400100104262209120052", "id": - "shp_1b408c39c0da44f09703bcebc8f2d4d4"}], "status": {"created": 0, "queued_for_purchase": + null, "reference": null, "tracking_code": "9400100105442285862483", "id": + "shp_4d6dfe4ee73e4ad186981f843799897e"}], "status": {"created": 0, "queued_for_purchase": 0, "creation_failed": 0, "postage_purchased": 1, "postage_purchase_failed": 0}, "pickup": null, "label_url": null}' headers: @@ -275,8 +276,6 @@ interactions: - '542' content-type: - application/json; charset=utf-8 - etag: - - W/"bc6ff30d99ea814213b07eda8c207004" expires: - '0' pragma: @@ -294,27 +293,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 52975b55645e93e6e2cc318200062383 + - ae35d0b765666396e78a9786003e6a1e x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.123487' + - '0.069987' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"shipments": [{"id": "shp_1b408c39c0da44f09703bcebc8f2d4d4"}]}' + body: '{"shipments": [{"id": "shp_4d6dfe4ee73e4ad186981f843799897e"}]}' headers: Accept: - '*/*' @@ -331,12 +330,12 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/batches/batch_7c95d5d8bfd247d1981ffdfdf2ee32d5/remove_shipments + uri: https://api.easypost.com/v2/batches/batch_03abf3335a2648728a9698f886321587/remove_shipments response: body: - string: '{"id": "batch_7c95d5d8bfd247d1981ffdfdf2ee32d5", "object": "Batch", + string: '{"id": "batch_03abf3335a2648728a9698f886321587", "object": "Batch", "mode": "test", "state": "purchased", "num_shipments": 0, "reference": null, - "created_at": "2023-05-12T19:30:46Z", "updated_at": "2023-05-12T19:30:46Z", + "created_at": "2023-11-28T22:03:02Z", "updated_at": "2023-11-28T22:03:02Z", "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}' @@ -347,8 +346,6 @@ interactions: - '385' content-type: - application/json; charset=utf-8 - etag: - - W/"0dd133284f20cbc85b0ec83482863cfa" expires: - '0' pragma: @@ -361,25 +358,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 52975b55645e93e7e2cc3182000623a7 + - ae35d0b765666396e78a9786003e6a5d x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.052476' + - '0.045995' x-version-label: - - easypost-202305121849-b449e9bf47-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_error.yaml b/tests/cassettes/test_error.yaml index 1d7313c6..30eb98c3 100644 --- a/tests/cassettes/test_error.yaml +++ b/tests/cassettes/test_error.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"shipment": {}, "carbon_offset": false}' + body: '{"shipment": {}}' headers: Accept: - '*/*' @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive Content-Length: - - '40' + - '16' Content-Type: - application/json authorization: @@ -41,25 +41,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - b4a2ea09646523c3e2b9045d00039312 + - ae35d0b865666398e78a9788003e6bcc x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.038655' + - '0.037568' x-version-label: - - easypost-202305171805-88442329bc-master + - easypost-202311250013-a0f06fbc2c-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 d078e1b9..0585b884 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_9490959cd728452b985e41c2a7e9e591", "object": + string: '{"insurances": [{"id": "ins_11815503dde74592ab2efba19b0ee7ab", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_a859ad85f34611edb81fac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T17:33:51+00:00", "updated_at": "2023-05-15T17:33:51+00:00", "name": + "adr_412a603f8e3911eea073ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58: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": @@ -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_a85ee05af34611ed82ddac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-15T17:33:51+00:00", "updated_at": "2023-05-15T17:33:51+00:00", "name": + {"id": "adr_41300cdf8e3911eea079ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58: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": @@ -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_2c76559389a844f2a36479b0a131e677", "object": "Tracker", "mode": "test", - "tracking_code": "9400100104262209986269", "status": "error", "status_detail": - null, "created_at": "2023-05-15T17:33:51Z", "updated_at": "2023-05-15T17:33:51Z", + "trk_245ad918d85e43bb924f6d3803d6a196", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105442285851814", "status": "error", "status_detail": + null, "created_at": "2023-11-28T21:58:25Z", "updated_at": "2023-11-28T21:58:25Z", "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": - null, "status": "error", "status_detail": null, "datetime": "2023-05-15T17:33:51Z", - "source": "ProcessingError", "carrier_code": null, "tracking_location": {"object": + "", "status": "error", "status_detail": null, "datetime": "2023-11-28T21:58:25Z", + "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/djE6dHJrXzJjNzY1NTkzODlhODQ0ZjJhMzY0NzliMGExMzFlNjc3", - "fees": []}, "tracking_code": "9400100104262209986269", "fee": {"object": + "https://track.easypost.com/djE6dHJrXzI0NWFkOTE4ZDg1ZTQzYmI5MjRmNmQzODAzZDZhMTk2", + "fees": []}, "tracking_code": "9400100105442285851814", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-05-15T17:33:51Z", "updated_at": - "2023-05-15T17:33:51Z"}, {"id": "ins_e60e5e24549648c78069269b3ade5e42", "object": + false}, "messages": [], "created_at": "2023-11-28T21:58:25Z", "updated_at": + "2023-11-28T21:58:25Z"}, {"id": "ins_0ffcd38dd4a04b9d97eb5d6aad7a4533", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_a93ebda3f34611edbb1c3cecef1b359e", "object": "Address", "created_at": - "2023-05-15T17:33:53+00:00", "updated_at": "2023-05-15T17:33:53+00:00", "name": + "adr_4244261b8e3911ee9d51ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+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_a943c199f34611edbb203cecef1b359e", "object": "Address", "created_at": - "2023-05-15T17:33:53+00:00", "updated_at": "2023-05-15T17:33:53+00:00", "name": + {"id": "adr_42495c3e8e3911ee91863cecef1b359e", "object": "Address", "created_at": + "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+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,31 +73,29 @@ 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_8b28077df755477c92df4122d2797f73", "object": "Tracker", "mode": "test", - "tracking_code": "9400100104262209986283", "status": "error", "status_detail": - null, "created_at": "2023-05-15T17:33:53Z", "updated_at": "2023-05-15T17:33:53Z", + "trk_b66e456ceda6498d9693ef37a81d4b8e", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105442285851890", "status": "error", "status_detail": + null, "created_at": "2023-11-28T21:58:27Z", "updated_at": "2023-11-28T21:58:27Z", "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": - null, "status": "error", "status_detail": null, "datetime": "2023-05-15T17:33:53Z", - "source": "ProcessingError", "carrier_code": null, "tracking_location": {"object": + "", "status": "error", "status_detail": null, "datetime": "2023-11-28T21:58:27Z", + "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/djE6dHJrXzhiMjgwNzdkZjc1NTQ3N2M5MmRmNDEyMmQyNzk3Zjcz", - "fees": []}, "tracking_code": "9400100104262209986283", "fee": {"object": + "https://track.easypost.com/djE6dHJrX2I2NmU0NTZjZWRhNjQ5OGQ5NjkzZWYzN2E4MWQ0Yjhl", + "fees": []}, "tracking_code": "9400100105442285851890", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-05-15T17:33:53Z", "updated_at": - "2023-05-15T17:33:53Z"}], "has_more": false}' + false}, "messages": [], "created_at": "2023-11-28T21:58:27Z", "updated_at": + "2023-11-28T21:58:27Z"}], "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '5355' + - '5347' content-type: - application/json; charset=utf-8 - etag: - - W/"36c367a5e230654b6e9af24383f83138" expires: - '0' pragma: @@ -115,20 +113,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495af64626d01e78744810020682e + - ae35d0b865666283e78a938d003d1ec4 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb31nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.113227' + - '0.128904' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202311250013-a0f06fbc2c-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 3acdd35a..eb8aed59 100644 --- a/tests/cassettes/test_insurance_create.yaml +++ b/tests/cassettes/test_insurance_create.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-15T17:33:50Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T21:58:24Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262209986269", "updated_at": "2023-05-15T17:33:51Z", "batch_id": + "9400100105442285851814", "updated_at": "2023-11-28T21:58:24Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_a7a292e5f34611edba4b3cecef1b359e", "object": "Address", "created_at": - "2023-05-15T17:33:50+00:00", "updated_at": "2023-05-15T17:33:50+00:00", "name": + {"id": "adr_4076ee1a8e3911eea675ac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T21:58:24+00:00", "updated_at": "2023-11-28T21:58: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_a2b0f7adb5d2479fa4f8d002ed1bf337", - "object": "Parcel", "created_at": "2023-05-15T17:33:50Z", "updated_at": "2023-05-15T17:33:50Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_733bae54d2cb42ccbacdcc221c93a3c8", + "object": "Parcel", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_88ddacc6ea954d43be0894e88282d642", - "created_at": "2023-05-15T17:33:50Z", "updated_at": "2023-05-15T17:33:51Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-15T17:33:50Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_b676af131dc8485ea2aee7ee90ae7040", + "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T21:58: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/20230515/58c4d8c4921a4f84b373c5d3032ea5c9.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e81fae8e14de21404abb454a0d7b03cfa3.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_41917db5e0ca40e5aa884b433c7f76cd", "object": - "Rate", "created_at": "2023-05-15T17:33:50Z", "updated_at": "2023-05-15T17:33:50Z", + null}, "rates": [{"id": "rate_4561f63fbda042ff87a22b574d391f0f", "object": + "Rate", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_ae6a9deef3164b13a091ec0c2059276b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bb39bb072d474cf88cb3f1589d4e2478", - "object": "Rate", "created_at": "2023-05-15T17:33:50Z", "updated_at": "2023-05-15T17:33:50Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_ae6a9deef3164b13a091ec0c2059276b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f1dbd4d6a2f401b89d2baf799098500", - "object": "Rate", "created_at": "2023-05-15T17:33:50Z", "updated_at": "2023-05-15T17:33:50Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null, "shipment_id": "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dca8baad26784846824f16f52ef44435", + "object": "Rate", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ae6a9deef3164b13a091ec0c2059276b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_03c501f1ad354215bf3c0ca53aee6d77", - "object": "Rate", "created_at": "2023-05-15T17:33:50Z", "updated_at": "2023-05-15T17:33:50Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_52c6b9a02dd04ab4a0e02158aa20627f", + "object": "Rate", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_05dc8c204e6e4794a0ac03cb7273e539", + "object": "Rate", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ae6a9deef3164b13a091ec0c2059276b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_03c501f1ad354215bf3c0ca53aee6d77", - "object": "Rate", "created_at": "2023-05-15T17:33:50Z", "updated_at": "2023-05-15T17:33:50Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_5f3aa67bdad441b1b12d93e2d52f1935", "object": "Rate", "created_at": + "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ae6a9deef3164b13a091ec0c2059276b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_4dde628b754e45f48451f4cf34dce13b", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262209986269", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-15T17:33:51Z", "updated_at": - "2023-05-15T17:33:51Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_ae6a9deef3164b13a091ec0c2059276b", "carrier": "USPS", + "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_05dc8c204e6e4794a0ac03cb7273e539", + "object": "Rate", "created_at": "2023-11-28T21:58:24Z", "updated_at": "2023-11-28T21:58:24Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_374f321e6f8f4f549c25360cce633ff1", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285851814", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T21:58:24Z", "updated_at": + "2023-11-28T21:58:24Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzRkZGU2MjhiNzU0ZTQ1ZjQ4NDUxZjRjZjM0ZGNlMTNi"}, - "to_address": {"id": "adr_a7a0b95ef34611edaa53ac1f6bc72124", "object": "Address", - "created_at": "2023-05-15T17:33:50+00:00", "updated_at": "2023-05-15T17:33:50+00:00", + "https://track.easypost.com/djE6dHJrXzM3NGYzMjFlNmY4ZjRmNTQ5YzI1MzYwY2NlNjMzZmYx"}, + "to_address": {"id": "adr_4074b9858e3911ee9ffeac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T21:58:24+00:00", "updated_at": "2023-11-28T21:58:24+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_a7a292e5f34611edba4b3cecef1b359e", - "object": "Address", "created_at": "2023-05-15T17:33:50+00:00", "updated_at": - "2023-05-15T17:33:50+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_4076ee1a8e3911eea675ac1f6bc539ae", + "object": "Address", "created_at": "2023-11-28T21:58:24+00:00", "updated_at": + "2023-11-28T21:58: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_a7a0b95ef34611edaa53ac1f6bc72124", "object": "Address", "created_at": - "2023-05-15T17:33:50+00:00", "updated_at": "2023-05-15T17:33:50+00:00", "name": + "adr_4074b9858e3911ee9ffeac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T21:58:24+00:00", "updated_at": "2023-11-28T21:58: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": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_ae6a9deef3164b13a091ec0c2059276b", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_800d9b4d653549eeb3ef1c3b6c647305", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"b3be0c9cbdef087d8dd20f4cfd16c187" expires: - '0' location: - - /api/v2/shipments/shp_ae6a9deef3164b13a091ec0c2059276b + - /api/v2/shipments/shp_800d9b4d653549eeb3ef1c3b6c647305 pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b364626cfee787447f002066bf + - ae35d0b665666280e78a938b003d1b1d x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '1.028327' + - '0.931188' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -172,7 +177,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": - "9400100104262209986269"}}' + "9400100105442285851814"}}' headers: Accept: - '*/*' @@ -192,19 +197,19 @@ interactions: uri: https://api.easypost.com/v2/insurances response: body: - string: '{"id": "ins_9490959cd728452b985e41c2a7e9e591", "object": "Insurance", + string: '{"id": "ins_11815503dde74592ab2efba19b0ee7ab", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_a859ad85f34611edb81fac1f6bc7b362", - "object": "Address", "created_at": "2023-05-15T17:33:51+00:00", "updated_at": - "2023-05-15T17:33:51+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_412a603f8e3911eea073ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T21:58:25+00:00", "updated_at": + "2023-11-28T21:58:25+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"}}}}, - "from_address": {"id": "adr_a85ee05af34611ed82ddac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-15T17:33:51+00:00", "updated_at": "2023-05-15T17:33:51+00:00", + "from_address": {"id": "adr_41300cdf8e3911eea079ac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58: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", @@ -212,19 +217,19 @@ 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_4dde628b754e45f48451f4cf34dce13b", - "object": "Tracker", "mode": "test", "tracking_code": "9400100104262209986269", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2023-05-15T17:33:51Z", - "updated_at": "2023-05-15T17:33:51Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-15T17:33:51Z", "shipment_id": "shp_ae6a9deef3164b13a091ec0c2059276b", + "shipment_id": null, "tracker": {"id": "trk_374f321e6f8f4f549c25360cce633ff1", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285851814", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2023-11-28T21:58:25Z", + "updated_at": "2023-11-28T21:58:25Z", "signed_by": null, "weight": null, "est_delivery_date": + "2023-11-28T21:58:25Z", "shipment_id": "shp_800d9b4d653549eeb3ef1c3b6c647305", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-15T17:33:51Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T21:58:25Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T06:10:51Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:35:25Z", "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": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": @@ -232,24 +237,22 @@ 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/djE6dHJrXzRkZGU2MjhiNzU0ZTQ1ZjQ4NDUxZjRjZjM0ZGNlMTNi", - "fees": []}, "tracking_code": "9400100104262209986269", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrXzM3NGYzMjFlNmY4ZjRmNTQ5YzI1MzYwY2NlNjMzZmYx", + "fees": []}, "tracking_code": "9400100105442285851814", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-05-15T17:33:51Z", "updated_at": - "2023-05-15T17:33:51Z"}' + false}, "messages": [], "created_at": "2023-11-28T21:58:25Z", "updated_at": + "2023-11-28T21:58:25Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '3428' + - '3420' content-type: - application/json; charset=utf-8 - etag: - - W/"05ae98731482eb64a8f6875068ec6e24" expires: - '0' location: - - /api/v2/insurances/ins_9490959cd728452b985e41c2a7e9e591 + - /api/v2/insurances/ins_11815503dde74592ab2efba19b0ee7ab pragma: - no-cache referrer-policy: @@ -265,20 +268,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b364626cffe787447f00206726 + - ae35d0b665666281e78a938b003d1c29 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.255881' + - '0.172876' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202311250013-a0f06fbc2c-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 fee76df9..256754df 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_9490959cd728452b985e41c2a7e9e591", "object": + string: '{"insurances": [{"id": "ins_11815503dde74592ab2efba19b0ee7ab", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_a859ad85f34611edb81fac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T17:33:51+00:00", "updated_at": "2023-05-15T17:33:51+00:00", "name": + "adr_412a603f8e3911eea073ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58: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": @@ -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_a85ee05af34611ed82ddac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-15T17:33:51+00:00", "updated_at": "2023-05-15T17:33:51+00:00", "name": + {"id": "adr_41300cdf8e3911eea079ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58: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": @@ -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_2c76559389a844f2a36479b0a131e677", "object": "Tracker", "mode": "test", - "tracking_code": "9400100104262209986269", "status": "error", "status_detail": - null, "created_at": "2023-05-15T17:33:51Z", "updated_at": "2023-05-15T17:33:51Z", + "trk_245ad918d85e43bb924f6d3803d6a196", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105442285851814", "status": "error", "status_detail": + null, "created_at": "2023-11-28T21:58:25Z", "updated_at": "2023-11-28T21:58:25Z", "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": - null, "status": "error", "status_detail": null, "datetime": "2023-05-15T17:33:51Z", - "source": "ProcessingError", "carrier_code": null, "tracking_location": {"object": + "", "status": "error", "status_detail": null, "datetime": "2023-11-28T21:58:25Z", + "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/djE6dHJrXzJjNzY1NTkzODlhODQ0ZjJhMzY0NzliMGExMzFlNjc3", - "fees": []}, "tracking_code": "9400100104262209986269", "fee": {"object": + "https://track.easypost.com/djE6dHJrXzI0NWFkOTE4ZDg1ZTQzYmI5MjRmNmQzODAzZDZhMTk2", + "fees": []}, "tracking_code": "9400100105442285851814", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-05-15T17:33:51Z", "updated_at": - "2023-05-15T17:33:51Z"}, {"id": "ins_e60e5e24549648c78069269b3ade5e42", "object": + false}, "messages": [], "created_at": "2023-11-28T21:58:25Z", "updated_at": + "2023-11-28T21:58:25Z"}, {"id": "ins_0ffcd38dd4a04b9d97eb5d6aad7a4533", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", "provider": "easypost", "provider_id": null, "to_address": {"id": - "adr_a93ebda3f34611edbb1c3cecef1b359e", "object": "Address", "created_at": - "2023-05-15T17:33:53+00:00", "updated_at": "2023-05-15T17:33:53+00:00", "name": + "adr_4244261b8e3911ee9d51ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+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_a943c199f34611edbb203cecef1b359e", "object": "Address", "created_at": - "2023-05-15T17:33:53+00:00", "updated_at": "2023-05-15T17:33:53+00:00", "name": + {"id": "adr_42495c3e8e3911ee91863cecef1b359e", "object": "Address", "created_at": + "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+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,31 +73,29 @@ 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_8b28077df755477c92df4122d2797f73", "object": "Tracker", "mode": "test", - "tracking_code": "9400100104262209986283", "status": "error", "status_detail": - null, "created_at": "2023-05-15T17:33:53Z", "updated_at": "2023-05-15T17:33:53Z", + "trk_b66e456ceda6498d9693ef37a81d4b8e", "object": "Tracker", "mode": "test", + "tracking_code": "9400100105442285851890", "status": "error", "status_detail": + null, "created_at": "2023-11-28T21:58:27Z", "updated_at": "2023-11-28T21:58:27Z", "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": - null, "status": "error", "status_detail": null, "datetime": "2023-05-15T17:33:53Z", - "source": "ProcessingError", "carrier_code": null, "tracking_location": {"object": + "", "status": "error", "status_detail": null, "datetime": "2023-11-28T21:58:27Z", + "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/djE6dHJrXzhiMjgwNzdkZjc1NTQ3N2M5MmRmNDEyMmQyNzk3Zjcz", - "fees": []}, "tracking_code": "9400100104262209986283", "fee": {"object": + "https://track.easypost.com/djE6dHJrX2I2NmU0NTZjZWRhNjQ5OGQ5NjkzZWYzN2E4MWQ0Yjhl", + "fees": []}, "tracking_code": "9400100105442285851890", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-05-15T17:33:53Z", "updated_at": - "2023-05-15T17:33:53Z"}], "has_more": false}' + false}, "messages": [], "created_at": "2023-11-28T21:58:27Z", "updated_at": + "2023-11-28T21:58:27Z"}], "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '5355' + - '5347' content-type: - application/json; charset=utf-8 - etag: - - W/"36c367a5e230654b6e9af24383f83138" expires: - '0' pragma: @@ -115,20 +113,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b164626d02e787448200206856 + - ae35d0ba65666284e78a938e003d1f50 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.103378' + - '0.130021' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202311250013-a0f06fbc2c-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 56f012da..ca52e35a 100644 --- a/tests/cassettes/test_insurance_retrieve.yaml +++ b/tests/cassettes/test_insurance_retrieve.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-15T17:33:52Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T21:58:25Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262209986283", "updated_at": "2023-05-15T17:33:52Z", "batch_id": + "9400100105442285851890", "updated_at": "2023-11-28T21:58:26Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_a89a30a5f34611ed82f7ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-15T17:33:52+00:00", "updated_at": "2023-05-15T17:33:52+00:00", "name": + {"id": "adr_418251128e3911ee9cddac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58: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_bc4117cf408a4b4ca0c703b954fb32d4", - "object": "Parcel", "created_at": "2023-05-15T17:33:52Z", "updated_at": "2023-05-15T17:33:52Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7b8149d0b2734690bb89244ae8c7591d", + "object": "Parcel", "created_at": "2023-11-28T21:58:25Z", "updated_at": "2023-11-28T21:58:25Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_624cd66a325e444697fafe3331035a90", - "created_at": "2023-05-15T17:33:52Z", "updated_at": "2023-05-15T17:33:52Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-15T17:33:52Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_40d45098bf324183aa4e1b60d49f7df2", + "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T21:58:26Z", "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/20230515/525e4859777347f5abbb7b8bc1cc6540.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8d85ba30daa6844d9aff8ddcb208354ae.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_1c1ec814812742beb8b5ac2a1e071ee4", "object": - "Rate", "created_at": "2023-05-15T17:33:52Z", "updated_at": "2023-05-15T17:33:52Z", + null}, "rates": [{"id": "rate_34d22a58366149168e62dab13e6ce733", "object": + "Rate", "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_6887a83cb31044d098c08710ba7624b6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f0c0d52b0e624c4ca1a5df9e8ca04b0b", - "object": "Rate", "created_at": "2023-05-15T17:33:52Z", "updated_at": "2023-05-15T17:33:52Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_6887a83cb31044d098c08710ba7624b6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_36919ce86bed42f5bccd958f102c09b4", - "object": "Rate", "created_at": "2023-05-15T17:33:52Z", "updated_at": "2023-05-15T17:33:52Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null, "shipment_id": "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d40554647ed54a108767e06682b3af7c", + "object": "Rate", "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_6887a83cb31044d098c08710ba7624b6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f47f05c0d36e4568b3a02ec5c97c13bf", - "object": "Rate", "created_at": "2023-05-15T17:33:52Z", "updated_at": "2023-05-15T17:33:52Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_58e59b3ea17b45f1aa749694e5aa554c", + "object": "Rate", "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9a47a1c4883a470aad3663891f5622cf", + "object": "Rate", "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6887a83cb31044d098c08710ba7624b6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_f47f05c0d36e4568b3a02ec5c97c13bf", - "object": "Rate", "created_at": "2023-05-15T17:33:52Z", "updated_at": "2023-05-15T17:33:52Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_f4de1d35f5ef4331be35c60d80853fca", "object": "Rate", "created_at": + "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6887a83cb31044d098c08710ba7624b6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_0bc209b0f7224a94a8b1fe55407d0ba9", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262209986283", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-15T17:33:52Z", "updated_at": - "2023-05-15T17:33:52Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_6887a83cb31044d098c08710ba7624b6", "carrier": "USPS", + "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_9a47a1c4883a470aad3663891f5622cf", + "object": "Rate", "created_at": "2023-11-28T21:58:26Z", "updated_at": "2023-11-28T21:58:26Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_b83cd338b47842969a7d9a2d3b726f3d", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285851890", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T21:58:26Z", "updated_at": + "2023-11-28T21:58:26Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzBiYzIwOWIwZjcyMjRhOTRhOGIxZmU1NTQwN2QwYmE5"}, - "to_address": {"id": "adr_a897b726f34611edaae1ac1f6bc72124", "object": "Address", - "created_at": "2023-05-15T17:33:52+00:00", "updated_at": "2023-05-15T17:33:52+00:00", + "https://track.easypost.com/djE6dHJrX2I4M2NkMzM4YjQ3ODQyOTY5YTdkOWEyZDNiNzI2ZjNk"}, + "to_address": {"id": "adr_418004308e3911eea0b5ac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58:26+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_a89a30a5f34611ed82f7ac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-15T17:33:52+00:00", "updated_at": - "2023-05-15T17:33:52+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_418251128e3911ee9cddac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T21:58:25+00:00", "updated_at": + "2023-11-28T21:58: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_a897b726f34611edaae1ac1f6bc72124", "object": "Address", "created_at": - "2023-05-15T17:33:52+00:00", "updated_at": "2023-05-15T17:33:52+00:00", "name": + "adr_418004308e3911eea0b5ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T21:58:25+00:00", "updated_at": "2023-11-28T21:58:26+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_6887a83cb31044d098c08710ba7624b6", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_c2f3f9bed1444ee8963e8703930d462f", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"8647c5e4f5d237760199e0d5cf4d858c" expires: - '0' location: - - /api/v2/shipments/shp_6887a83cb31044d098c08710ba7624b6 + - /api/v2/shipments/shp_c2f3f9bed1444ee8963e8703930d462f pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b064626cffe78744800020676b + - 88ad7b9265666281e78a938c003ca785 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.989256' + - '1.136140' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -172,7 +177,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": - "9400100104262209986283"}}' + "9400100105442285851890"}}' headers: Accept: - '*/*' @@ -192,19 +197,19 @@ interactions: uri: https://api.easypost.com/v2/insurances response: body: - string: '{"id": "ins_e60e5e24549648c78069269b3ade5e42", "object": "Insurance", + string: '{"id": "ins_0ffcd38dd4a04b9d97eb5d6aad7a4533", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_a93ebda3f34611edbb1c3cecef1b359e", - "object": "Address", "created_at": "2023-05-15T17:33:53+00:00", "updated_at": - "2023-05-15T17:33:53+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_4244261b8e3911ee9d51ac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T21:58:27+00:00", "updated_at": + "2023-11-28T21:58:27+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"}}}}, - "from_address": {"id": "adr_a943c199f34611edbb203cecef1b359e", "object": "Address", - "created_at": "2023-05-15T17:33:53+00:00", "updated_at": "2023-05-15T17:33:53+00:00", + "from_address": {"id": "adr_42495c3e8e3911ee91863cecef1b359e", "object": "Address", + "created_at": "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+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", @@ -212,19 +217,19 @@ 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_0bc209b0f7224a94a8b1fe55407d0ba9", - "object": "Tracker", "mode": "test", "tracking_code": "9400100104262209986283", - "status": "pre_transit", "status_detail": "status_update", "created_at": "2023-05-15T17:33:53Z", - "updated_at": "2023-05-15T17:33:53Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-15T17:33:53Z", "shipment_id": "shp_6887a83cb31044d098c08710ba7624b6", + "shipment_id": null, "tracker": {"id": "trk_b83cd338b47842969a7d9a2d3b726f3d", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285851890", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2023-11-28T21:58:27Z", + "updated_at": "2023-11-28T21:58:27Z", "signed_by": null, "weight": null, "est_delivery_date": + "2023-11-28T21:58:27Z", "shipment_id": "shp_c2f3f9bed1444ee8963e8703930d462f", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-15T17:33:53Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T21:58:27Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T06:10:53Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:35:27Z", "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": null, "est_delivery_date_local": null, "est_delivery_time_local": null, "origin_location": @@ -232,24 +237,22 @@ 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/djE6dHJrXzBiYzIwOWIwZjcyMjRhOTRhOGIxZmU1NTQwN2QwYmE5", - "fees": []}, "tracking_code": "9400100104262209986283", "fee": {"object": + true, "is_return": false, "public_url": "https://track.easypost.com/djE6dHJrX2I4M2NkMzM4YjQ3ODQyOTY5YTdkOWEyZDNiNzI2ZjNk", + "fees": []}, "tracking_code": "9400100105442285851890", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-05-15T17:33:53Z", "updated_at": - "2023-05-15T17:33:53Z"}' + false}, "messages": [], "created_at": "2023-11-28T21:58:27Z", "updated_at": + "2023-11-28T21:58:27Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '3428' + - '3420' content-type: - application/json; charset=utf-8 - etag: - - W/"8f4917270bd320faab73ff3f58e1a8ad" expires: - '0' location: - - /api/v2/insurances/ins_e60e5e24549648c78069269b3ade5e42 + - /api/v2/insurances/ins_0ffcd38dd4a04b9d97eb5d6aad7a4533 pragma: - no-cache referrer-policy: @@ -265,20 +268,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b064626d01e7874480002067da + - 88ad7b9265666283e78a938c003ca88f x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.169373' + - '0.181146' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -298,22 +301,22 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/insurances/ins_e60e5e24549648c78069269b3ade5e42 + uri: https://api.easypost.com/v2/insurances/ins_0ffcd38dd4a04b9d97eb5d6aad7a4533 response: body: - string: '{"id": "ins_e60e5e24549648c78069269b3ade5e42", "object": "Insurance", + string: '{"id": "ins_0ffcd38dd4a04b9d97eb5d6aad7a4533", "object": "Insurance", "mode": "test", "reference": null, "status": "pending", "amount": "100.00000", - "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_a93ebda3f34611edbb1c3cecef1b359e", - "object": "Address", "created_at": "2023-05-15T17:33:53+00:00", "updated_at": - "2023-05-15T17:33:53+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": + "provider": "easypost", "provider_id": null, "to_address": {"id": "adr_4244261b8e3911ee9d51ac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T21:58:27+00:00", "updated_at": + "2023-11-28T21:58:27+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_a943c199f34611edbb203cecef1b359e", "object": "Address", - "created_at": "2023-05-15T17:33:53+00:00", "updated_at": "2023-05-15T17:33:53+00:00", + "from_address": {"id": "adr_42495c3e8e3911ee91863cecef1b359e", "object": "Address", + "created_at": "2023-11-28T21:58:27+00:00", "updated_at": "2023-11-28T21:58:27+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", @@ -321,31 +324,29 @@ 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_8b28077df755477c92df4122d2797f73", - "object": "Tracker", "mode": "test", "tracking_code": "9400100104262209986283", - "status": "error", "status_detail": null, "created_at": "2023-05-15T17:33:53Z", - "updated_at": "2023-05-15T17:33:53Z", "signed_by": null, "weight": null, "est_delivery_date": + "shipment_id": null, "tracker": {"id": "trk_b66e456ceda6498d9693ef37a81d4b8e", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285851890", + "status": "error", "status_detail": null, "created_at": "2023-11-28T21:58:27Z", + "updated_at": "2023-11-28T21:58:27Z", "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": null, "status": "error", "status_detail": null, "datetime": - "2023-05-15T17:33:53Z", "source": "ProcessingError", "carrier_code": null, - "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/djE6dHJrXzhiMjgwNzdkZjc1NTQ3N2M5MmRmNDEyMmQyNzk3Zjcz", - "fees": []}, "tracking_code": "9400100104262209986283", "fee": {"object": + "description": "", "status": "error", "status_detail": null, "datetime": "2023-11-28T21:58:27Z", + "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/djE6dHJrX2I2NmU0NTZjZWRhNjQ5OGQ5NjkzZWYzN2E4MWQ0Yjhl", + "fees": []}, "tracking_code": "9400100105442285851890", "fee": {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", "charged": true, "refunded": - false}, "messages": [], "created_at": "2023-05-15T17:33:53Z", "updated_at": - "2023-05-15T17:33:53Z"}' + false}, "messages": [], "created_at": "2023-11-28T21:58:27Z", "updated_at": + "2023-11-28T21:58:27Z"}' headers: cache-control: - private, no-cache, no-store content-length: - - '2660' + - '2656' content-type: - application/json; charset=utf-8 - etag: - - W/"a3211c88d72968be07a3122c90b5e041" expires: - '0' pragma: @@ -363,20 +364,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495b064626d01e78744800020680d + - 88ad7b9265666283e78a938c003ca8cb x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.074946' + - '0.076884' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202311250013-a0f06fbc2c-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 e6650d63..414936cd 100644 --- a/tests/cassettes/test_pickup_all.yaml +++ b/tests/cassettes/test_pickup_all.yaml @@ -16,91 +16,73 @@ interactions: uri: https://api.easypost.com/v2/pickups?page_size=5 response: body: - string: '{"pickups": [{"id": "pickup_c7ab5738c30444868e61f0d3fef0ff95", "object": - "Pickup", "created_at": "2023-05-15T21:50:06Z", "updated_at": "2023-05-15T21:50:06Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"pickups": [{"id": "pickup_9860cb6ae0bd4f149c53248ff9048351", "object": + "Pickup", "created_at": "2023-11-28T22:00:12Z", "updated_at": "2023-11-28T22:00:12Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", + "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_74406669f36a11edb3daac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-15T21:50:06+00:00", "updated_at": "2023-05-15T21:50:06+00:00", "name": + "adr_80c1cd288e3911eeb61a3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:00:11+00:00", "updated_at": "2023-11-28T22:00:11+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": "2023-05-15T21:50:06Z", - "updated_at": "2023-05-15T21:50:06Z", "carrier": "USPS", "pickup_id": "pickup_c7ab5738c30444868e61f0d3fef0ff95", - "id": "pickuprate_a1a991d35f9f4688a290e08548bb8755", "object": "PickupRate"}]}, - {"id": "pickup_dce2c5e15e9547f199c75e1b4a92725c", "object": "Pickup", "created_at": - "2023-05-15T21:50:01Z", "updated_at": "2023-05-15T21:50:04Z", "mode": "test", - "status": "canceled", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:12Z", + "updated_at": "2023-11-28T22:00:12Z", "carrier": "USPS", "pickup_id": "pickup_9860cb6ae0bd4f149c53248ff9048351", + "id": "pickuprate_d3971cc0f27b4af3a1b9ef31c419a1e8", "object": "PickupRate"}]}, + {"id": "pickup_d49471d988984148ae3138550e148a94", "object": "Pickup", "created_at": + "2023-11-28T21:58:39Z", "updated_at": "2023-11-28T21:58:39Z", "mode": "test", + "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": "WTC62976246", "address": - {"id": "adr_71a8e849f36a11ed82c8ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-15T21:50:01+00:00", "updated_at": "2023-05-15T21:50:01+00:00", "name": + "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": + "adr_49e2f6fd8e3911ee966a3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T21:58:39+00:00", "updated_at": "2023-11-28T21:58: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": - {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-15T21:50:02Z", - "updated_at": "2023-05-15T21:50:02Z", "carrier": "USPS", "pickup_id": "pickup_dce2c5e15e9547f199c75e1b4a92725c", - "id": "pickuprate_8888d57350794b868dde14933836cf2b", "object": "PickupRate"}]}, - {"id": "pickup_5460a38ba2cd4d889d2e01958584a74e", "object": "Pickup", "created_at": - "2023-05-15T21:49:58Z", "updated_at": "2023-05-15T21:50:00Z", "mode": "test", - "status": "scheduled", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_cad32c3f692a4d0cb29668e5b08a2de2", + "object": "Pickup", "created_at": "2023-11-28T21:58:37Z", "updated_at": "2023-11-28T21:58:37Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": "WTC62976244", "address": - {"id": "adr_6f9e2bd2f36a11eda045ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T21:49:58+00:00", "updated_at": "2023-05-15T21:49:58+00:00", "name": + "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": + "adr_489be89c8e3911ee95813cecef1b359e", "object": "Address", "created_at": + "2023-11-28T21:58:37+00:00", "updated_at": "2023-11-28T21:58: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": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-15T21:49:59Z", - "updated_at": "2023-05-15T21:49:59Z", "carrier": "USPS", "pickup_id": "pickup_5460a38ba2cd4d889d2e01958584a74e", - "id": "pickuprate_b884f42434724eabb45d9c70f311e4bf", "object": "PickupRate"}]}, - {"id": "pickup_f7bf2fbb95c54d979eba5344be21d46e", "object": "Pickup", "created_at": - "2023-05-15T21:49:55Z", "updated_at": "2023-05-15T21:49:55Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_b6285245bcb44a898242d20d0c0675f8", + "object": "Pickup", "created_at": "2023-11-28T21:58:35Z", "updated_at": "2023-11-28T21:58:35Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_6dfcf608f36a11ed99deac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T21:49:55+00:00", "updated_at": "2023-05-15T21:49:55+00:00", "name": + "adr_476155358e3911eea42eac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T21:58:35+00:00", "updated_at": "2023-11-28T21:58: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": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-15T21:49:56Z", - "updated_at": "2023-05-15T21:49:56Z", "carrier": "USPS", "pickup_id": "pickup_f7bf2fbb95c54d979eba5344be21d46e", - "id": "pickuprate_152867bbc5014534b67be86918ad8b10", "object": "PickupRate"}]}, - {"id": "pickup_0c2c33d249cc4982a1bc78c2c1a8d210", "object": "Pickup", "created_at": - "2023-05-15T21:49:53Z", "updated_at": "2023-05-15T21:49:53Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_4e99467097794cf1aa6421c58173a05e", + "object": "Pickup", "created_at": "2023-11-28T21:58:33Z", "updated_at": "2023-11-28T21:58:33Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_6c6df1a4f36a11ed94ac3cecef1b359e", "object": "Address", "created_at": - "2023-05-15T21:49:52+00:00", "updated_at": "2023-05-15T21:49:52+00:00", "name": + "adr_460a0a0b8e3911ee9f86ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T21:58:33+00:00", "updated_at": "2023-11-28T21:58:33+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": "2023-05-15T21:49:54Z", - "updated_at": "2023-05-15T21:49:54Z", "carrier": "USPS", "pickup_id": "pickup_0c2c33d249cc4982a1bc78c2c1a8d210", - "id": "pickuprate_9cb256a78fbc459483c538f961df8ee1", "object": "PickupRate"}]}], - "has_more": true}' + {}}, "carrier_accounts": [], "pickup_rates": []}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '5840' + - '4691' content-type: - application/json; charset=utf-8 - etag: - - W/"ec77104841c0adabf3a2344f12760f72" expires: - '0' pragma: @@ -118,20 +100,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3ecd17966462a949e2b98c5a0008a47a + - 88ad7b8f656662ede78a93cf003d0c08 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.156798' + - '0.224201' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-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 bb352867..5a7f353a 100644 --- a/tests/cassettes/test_pickup_buy.yaml +++ b/tests/cassettes/test_pickup_buy.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-15T21:49:57Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:00:17Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210071015", "updated_at": "2023-05-15T21:49:57Z", "batch_id": + "9400100105442285856291", "updated_at": "2023-11-28T22:00:18Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_6ef113aff36a11ed9d9dac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T21:49:57+00:00", "updated_at": "2023-05-15T21:49:57+00:00", "name": + {"id": "adr_83f170d58e3911ee873eac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:00:17+00:00", "updated_at": "2023-11-28T22:00: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": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_cf8b315bf7614419b20e0ded093bddc9", - "object": "Parcel", "created_at": "2023-05-15T21:49:57Z", "updated_at": "2023-05-15T21:49:57Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_011a5106c63a4a869af1574a9cb1295b", + "object": "Parcel", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_ad9c837d5b53414dbac2979c2a243e9d", - "created_at": "2023-05-15T21:49:57Z", "updated_at": "2023-05-15T21:49:57Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-15T21:49:57Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_ce835644536345aca77e9c8f6c23fd69", + "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:18Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:00:17Z", "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/20230515/3905bc1b882d4c65ac324f4a451921a6.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e80e3b6e6784ad421b9f5d0d2020208171.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_59f770a5b8bb4f5089a1c21f3931325c", "object": - "Rate", "created_at": "2023-05-15T21:49:57Z", "updated_at": "2023-05-15T21:49:57Z", + null}, "rates": [{"id": "rate_757b5f5fbdd3400c88098d392284b948", "object": + "Rate", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_481204234455466cbca4f9ad3d7424c6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_26589708ab134a6da8b581143b164fff", - "object": "Rate", "created_at": "2023-05-15T21:49:57Z", "updated_at": "2023-05-15T21:49:57Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null, "shipment_id": "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a3405beda1794a3d90fc677ddce4a333", + "object": "Rate", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_481204234455466cbca4f9ad3d7424c6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_06e57e8730d04128a6fbaa44f8765199", - "object": "Rate", "created_at": "2023-05-15T21:49:57Z", "updated_at": "2023-05-15T21:49:57Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_481204234455466cbca4f9ad3d7424c6", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a40e00a539bd4ff0a49a48b058412b57", - "object": "Rate", "created_at": "2023-05-15T21:49:57Z", "updated_at": "2023-05-15T21:49:57Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6ad812b5a2534024a39a20136ac02305", + "object": "Rate", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_33fc2f8fc15f4fb9bb8048f35565561d", + "object": "Rate", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_481204234455466cbca4f9ad3d7424c6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_a40e00a539bd4ff0a49a48b058412b57", - "object": "Rate", "created_at": "2023-05-15T21:49:57Z", "updated_at": "2023-05-15T21:49:57Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_b1e00e330b5f4451845098815861c084", "object": "Rate", "created_at": + "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_481204234455466cbca4f9ad3d7424c6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_d3a6f11ebf5c496e994261044a4c0893", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210071015", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-15T21:49:58Z", "updated_at": - "2023-05-15T21:49:58Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_481204234455466cbca4f9ad3d7424c6", "carrier": "USPS", + "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_33fc2f8fc15f4fb9bb8048f35565561d", + "object": "Rate", "created_at": "2023-11-28T22:00:17Z", "updated_at": "2023-11-28T22:00:17Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_48c9c1b2c59549bd98ed677edf228e3d", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285856291", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:00:18Z", "updated_at": + "2023-11-28T22:00:18Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_92808ee9dfe448e6967aca69cc5b10ee", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2QzYTZmMTFlYmY1YzQ5NmU5OTQyNjEwNDRhNGMwODkz"}, - "to_address": {"id": "adr_6eeed0eff36a11edbbafac1f6bc7bdc6", "object": "Address", - "created_at": "2023-05-15T21:49:57+00:00", "updated_at": "2023-05-15T21:49:57+00:00", + "https://track.easypost.com/djE6dHJrXzQ4YzljMWIyYzU5NTQ5YmQ5OGVkNjc3ZWRmMjI4ZTNk"}, + "to_address": {"id": "adr_83eebd748e3911ee873cac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T22:00:17+00:00", "updated_at": "2023-11-28T22:00:17+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_6ef113aff36a11ed9d9dac1f6bc7b362", - "object": "Address", "created_at": "2023-05-15T21:49:57+00:00", "updated_at": - "2023-05-15T21:49:57+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_83f170d58e3911ee873eac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:00:17+00:00", "updated_at": + "2023-11-28T22:00: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": {}}, "buyer_address": {"id": - "adr_6eeed0eff36a11edbbafac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-15T21:49:57+00:00", "updated_at": "2023-05-15T21:49:57+00:00", "name": + "adr_83eebd748e3911ee873cac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:00:17+00:00", "updated_at": "2023-11-28T22:00:17+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_481204234455466cbca4f9ad3d7424c6", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_92808ee9dfe448e6967aca69cc5b10ee", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"195c16e126f90a0d0e7f7381e879fd84" expires: - '0' location: - - /api/v2/shipments/shp_481204234455466cbca4f9ad3d7424c6 + - /api/v2/shipments/shp_92808ee9dfe448e6967aca69cc5b10ee pragma: - no-cache referrer-policy: @@ -141,28 +146,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 477e8d806462a905e2b98c360035a430 + - ae35d0b4656662f1e78a93e9003d98dc x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - intlb1wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.946397' + - '1.077627' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -172,8 +174,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": - "2023-05-17", "max_datetime": "2023-05-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_481204234455466cbca4f9ad3d7424c6"}}}' + "2023-12-17", "max_datetime": "2023-12-17", "instructions": "Pickup at front + door", "shipment": {"id": "shp_92808ee9dfe448e6967aca69cc5b10ee"}}}' headers: Accept: - '*/*' @@ -193,21 +195,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_5460a38ba2cd4d889d2e01958584a74e", "object": "Pickup", - "created_at": "2023-05-15T21:49:58Z", "updated_at": "2023-05-15T21:49:58Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_0484cf545d724d24b56591a64bb5b9da", "object": "Pickup", + "created_at": "2023-11-28T22:00:18Z", "updated_at": "2023-11-28T22:00:18Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", + "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_6f9e2bd2f36a11eda045ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T21:49:58+00:00", "updated_at": "2023-05-15T21:49:58+00:00", "name": + "adr_84a793d78e3911ee8ed2ac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:00:18+00:00", "updated_at": "2023-11-28T22:00:18+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": "2023-05-15T21:49:59Z", - "updated_at": "2023-05-15T21:49:59Z", "carrier": "USPS", "pickup_id": "pickup_5460a38ba2cd4d889d2e01958584a74e", - "id": "pickuprate_b884f42434724eabb45d9c70f311e4bf", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:19Z", + "updated_at": "2023-11-28T22:00:19Z", "carrier": "USPS", "pickup_id": "pickup_0484cf545d724d24b56591a64bb5b9da", + "id": "pickuprate_114fca71b6c1493993f617050a05517c", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -215,8 +217,6 @@ interactions: - '1157' content-type: - application/json; charset=utf-8 - etag: - - W/"5ca2b55389bce3ef35a8c51e64c765a0" expires: - '0' pragma: @@ -234,21 +234,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 477e8d806462a906e2b98c360035a478 + - ae35d0b4656662f2e78a93e9003d9a80 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb1wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.764613' + - '0.771089' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -272,24 +271,24 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/pickups/pickup_5460a38ba2cd4d889d2e01958584a74e/buy + uri: https://api.easypost.com/v2/pickups/pickup_0484cf545d724d24b56591a64bb5b9da/buy response: body: - string: '{"id": "pickup_5460a38ba2cd4d889d2e01958584a74e", "object": "Pickup", - "created_at": "2023-05-15T21:49:58Z", "updated_at": "2023-05-15T21:50:00Z", + string: '{"id": "pickup_0484cf545d724d24b56591a64bb5b9da", "object": "Pickup", + "created_at": "2023-11-28T22:00:18Z", "updated_at": "2023-11-28T22:00:20Z", "mode": "test", "status": "scheduled", "reference": null, "min_datetime": - "2023-05-17T00:00:00Z", "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": + "2023-12-17T00:00:00Z", "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": - "WTC62976244", "address": {"id": "adr_6f9e2bd2f36a11eda045ac1f6bc7b362", "object": - "Address", "created_at": "2023-05-15T21:49:58+00:00", "updated_at": "2023-05-15T21:49:58+00:00", + "WTC63763636", "address": {"id": "adr_84a793d78e3911ee8ed2ac1f6bc539ae", "object": + "Address", "created_at": "2023-11-28T22:00:18+00:00", "updated_at": "2023-11-28T22:00:18+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": "2023-05-15T21:49:59Z", - "updated_at": "2023-05-15T21:49:59Z", "carrier": "USPS", "pickup_id": "pickup_5460a38ba2cd4d889d2e01958584a74e", - "id": "pickuprate_b884f42434724eabb45d9c70f311e4bf", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:19Z", + "updated_at": "2023-11-28T22:00:19Z", "carrier": "USPS", "pickup_id": "pickup_0484cf545d724d24b56591a64bb5b9da", + "id": "pickuprate_114fca71b6c1493993f617050a05517c", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -297,8 +296,6 @@ interactions: - '1168' content-type: - application/json; charset=utf-8 - etag: - - W/"ee2fa752f03d2ae85073cf3afb0ad3d1" expires: - '0' pragma: @@ -316,21 +313,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 477e8d806462a907e2b98c360035a4a2 + - ae35d0b4656662f3e78a93e9003d9b8c x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb2wdc a29e4ad05c - - extlb3wdc 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.983197' + - '0.833980' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-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 1cacc851..dce1fe7e 100644 --- a/tests/cassettes/test_pickup_cancel.yaml +++ b/tests/cassettes/test_pickup_cancel.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T22:16:57Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:00:20Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210420189", "updated_at": "2023-05-16T22:16:58Z", "batch_id": + "9400100105442285856390", "updated_at": "2023-11-28T22:00:21Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_5f549f97f43711ed8c103cecef1b359e", "object": "Address", "created_at": - "2023-05-16T22:16:57+00:00", "updated_at": "2023-05-16T22:16:57+00:00", "name": + {"id": "adr_85f19f718e3911ee8561ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:00:20+00:00", "updated_at": "2023-11-28T22:00: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_3c7c85e785064fd1a449a660b9cde3eb", - "object": "Parcel", "created_at": "2023-05-16T22:16:57Z", "updated_at": "2023-05-16T22:16:57Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_3a4aab299b3c467e979d8bb41c3ee9d2", + "object": "Parcel", "created_at": "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7a54090c13d742d3a2bcba4326f7b78a", - "created_at": "2023-05-16T22:16:58Z", "updated_at": "2023-05-16T22:16:58Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T22:16:58Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_93993460e7a34e77832be1069d648f0e", + "created_at": "2023-11-28T22:00:21Z", "updated_at": "2023-11-28T22:00:21Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:00: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/20230516/589016f34cdf4997971e7afa7f0edfcb.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e87454851fbe5849e2b5fc5fae9174ec6b.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f45d0a1343544a828f1c476cb7033a4c", "object": - "Rate", "created_at": "2023-05-16T22:16:58Z", "updated_at": "2023-05-16T22:16:58Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_ddc18136160e4c79a41bfe75623ac793", "object": + "Rate", "created_at": "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6e1e5258e6274da488b65daee0d7f4cb", + "object": "Rate", "created_at": "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_a98dcc81667747e59ed9607391eeeed0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_12aff88bdbde45aaac1fd232d79c68cd", - "object": "Rate", "created_at": "2023-05-16T22:16:58Z", "updated_at": "2023-05-16T22:16:58Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ac05b7aab1e149c39e1fb2f35a9e8019", + "object": "Rate", "created_at": "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_240f44cb070c4ee582a0a8e37e5accf0", + "object": "Rate", "created_at": "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_a98dcc81667747e59ed9607391eeeed0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_a2ca96273f804676950fe037182889fc", "object": "Rate", "created_at": - "2023-05-16T22:16:58Z", "updated_at": "2023-05-16T22:16:58Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_a98dcc81667747e59ed9607391eeeed0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_45e34c35108d4039b5721c8b44c9b421", "object": "Rate", "created_at": - "2023-05-16T22:16:58Z", "updated_at": "2023-05-16T22:16:58Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_a98dcc81667747e59ed9607391eeeed0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_12aff88bdbde45aaac1fd232d79c68cd", - "object": "Rate", "created_at": "2023-05-16T22:16:58Z", "updated_at": "2023-05-16T22:16:58Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_2cd7db1b2f4d4bd6ad17dac873809c8b", "object": "Rate", "created_at": + "2023-11-28T22:00:20Z", "updated_at": "2023-11-28T22:00:20Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_a98dcc81667747e59ed9607391eeeed0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_aed42d9516194cf8a4ddf76e709664eb", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210420189", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T22:16:58Z", "updated_at": - "2023-05-16T22:16:58Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_a98dcc81667747e59ed9607391eeeed0", "carrier": "USPS", + "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_240f44cb070c4ee582a0a8e37e5accf0", + "object": "Rate", "created_at": "2023-11-28T22:00:21Z", "updated_at": "2023-11-28T22:00:21Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_261832bc405f4d9f888ca518cfbffd28", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285856390", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:00:21Z", "updated_at": + "2023-11-28T22:00:21Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_29934ccbddf5474f9fc6efecb61038ee", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2FlZDQyZDk1MTYxOTRjZjhhNGRkZjc2ZTcwOTY2NGVi"}, - "to_address": {"id": "adr_5f525862f43711ed8c0b3cecef1b359e", "object": "Address", - "created_at": "2023-05-16T22:16:57+00:00", "updated_at": "2023-05-16T22:16:58+00:00", + "https://track.easypost.com/djE6dHJrXzI2MTgzMmJjNDA1ZjRkOWY4ODhjYTUxOGNmYmZmZDI4"}, + "to_address": {"id": "adr_85ef4d3b8e3911eeb9933cecef1b359e", "object": "Address", + "created_at": "2023-11-28T22:00:20+00:00", "updated_at": "2023-11-28T22:00:20+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_5f549f97f43711ed8c103cecef1b359e", - "object": "Address", "created_at": "2023-05-16T22:16:57+00:00", "updated_at": - "2023-05-16T22:16:57+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_85f19f718e3911ee8561ac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T22:00:20+00:00", "updated_at": + "2023-11-28T22:00: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_5f525862f43711ed8c0b3cecef1b359e", "object": "Address", "created_at": - "2023-05-16T22:16:57+00:00", "updated_at": "2023-05-16T22:16:58+00:00", "name": + "adr_85ef4d3b8e3911eeb9933cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:00:20+00:00", "updated_at": "2023-11-28T22:00: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": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_a98dcc81667747e59ed9607391eeeed0", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_29934ccbddf5474f9fc6efecb61038ee", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"0245a7635feec40e6990db69665e8801" expires: - '0' location: - - /api/v2/shipments/shp_a98dcc81667747e59ed9607391eeeed0 + - /api/v2/shipments/shp_29934ccbddf5474f9fc6efecb61038ee pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e7646400d9e78961860045637a + - ae35d0ba656662f4e78a93eb003d9d02 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb31nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '1.082075' + - '0.924878' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -169,8 +174,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": - "2023-05-17", "max_datetime": "2023-05-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_a98dcc81667747e59ed9607391eeeed0"}}}' + "2023-12-17", "max_datetime": "2023-12-17", "instructions": "Pickup at front + door", "shipment": {"id": "shp_29934ccbddf5474f9fc6efecb61038ee"}}}' headers: Accept: - '*/*' @@ -190,21 +195,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_c80e64ad84eb4691b32685a00cbe8329", "object": "Pickup", - "created_at": "2023-05-16T22:16:59Z", "updated_at": "2023-05-16T22:16:59Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_1b8515273ea447e48be96c49087cf664", "object": "Pickup", + "created_at": "2023-11-28T22:00:21Z", "updated_at": "2023-11-28T22:00:21Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", + "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_6004d6a2f43711ed9c4bac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T22:16:58+00:00", "updated_at": "2023-05-16T22:16:58+00:00", "name": + "adr_86aa9e3e8e3911ee8912ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:00:21+00:00", "updated_at": "2023-11-28T22:00: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": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-16T22:17:00Z", - "updated_at": "2023-05-16T22:17:00Z", "carrier": "USPS", "pickup_id": "pickup_c80e64ad84eb4691b32685a00cbe8329", - "id": "pickuprate_8946fd2a381842a0895d70a051de4256", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:22Z", + "updated_at": "2023-11-28T22:00:22Z", "carrier": "USPS", "pickup_id": "pickup_1b8515273ea447e48be96c49087cf664", + "id": "pickuprate_917f9e0990cf412784a112af398b0c2a", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -212,8 +217,6 @@ interactions: - '1157' content-type: - application/json; charset=utf-8 - etag: - - W/"beef27479e5dae273e4399f21a40ed20" expires: - '0' pragma: @@ -231,20 +234,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e7646400dae7896186004563dd + - ae35d0ba656662f5e78a93eb003d9e8d x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '1.460661' + - '0.689800' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -268,24 +271,24 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/pickups/pickup_c80e64ad84eb4691b32685a00cbe8329/buy + uri: https://api.easypost.com/v2/pickups/pickup_1b8515273ea447e48be96c49087cf664/buy response: body: - string: '{"id": "pickup_c80e64ad84eb4691b32685a00cbe8329", "object": "Pickup", - "created_at": "2023-05-16T22:16:59Z", "updated_at": "2023-05-16T22:17:02Z", + string: '{"id": "pickup_1b8515273ea447e48be96c49087cf664", "object": "Pickup", + "created_at": "2023-11-28T22:00:21Z", "updated_at": "2023-11-28T22:00:23Z", "mode": "test", "status": "scheduled", "reference": null, "min_datetime": - "2023-05-17T00:00:00Z", "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": + "2023-12-17T00:00:00Z", "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": - "WTC62980280", "address": {"id": "adr_6004d6a2f43711ed9c4bac1f6bc7b362", "object": - "Address", "created_at": "2023-05-16T22:16:58+00:00", "updated_at": "2023-05-16T22:16:58+00:00", + "WTC63763598", "address": {"id": "adr_86aa9e3e8e3911ee8912ac1f6bc53342", "object": + "Address", "created_at": "2023-11-28T22:00:21+00:00", "updated_at": "2023-11-28T22:00: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": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-16T22:17:00Z", - "updated_at": "2023-05-16T22:17:00Z", "carrier": "USPS", "pickup_id": "pickup_c80e64ad84eb4691b32685a00cbe8329", - "id": "pickuprate_8946fd2a381842a0895d70a051de4256", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:22Z", + "updated_at": "2023-11-28T22:00:22Z", "carrier": "USPS", "pickup_id": "pickup_1b8515273ea447e48be96c49087cf664", + "id": "pickuprate_917f9e0990cf412784a112af398b0c2a", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -293,8 +296,6 @@ interactions: - '1168' content-type: - application/json; charset=utf-8 - etag: - - W/"72dc5855b58f7c4061508070933d146a" expires: - '0' pragma: @@ -312,20 +313,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e7646400dce78961860045645d + - ae35d0ba656662f6e78a93eb003d9fa0 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb31nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '1.736335' + - '0.871288' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -349,24 +350,24 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/pickups/pickup_c80e64ad84eb4691b32685a00cbe8329/cancel + uri: https://api.easypost.com/v2/pickups/pickup_1b8515273ea447e48be96c49087cf664/cancel response: body: - string: '{"id": "pickup_c80e64ad84eb4691b32685a00cbe8329", "object": "Pickup", - "created_at": "2023-05-16T22:16:59Z", "updated_at": "2023-05-16T22:17:03Z", - "mode": "test", "status": "canceled", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": "WTC62980280", "address": - {"id": "adr_6004d6a2f43711ed9c4bac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T22:16:58+00:00", "updated_at": "2023-05-16T22:16:58+00:00", "name": + string: '{"id": "pickup_1b8515273ea447e48be96c49087cf664", "object": "Pickup", + "created_at": "2023-11-28T22:00:21Z", "updated_at": "2023-11-28T22:00:24Z", + "mode": "test", "status": "canceled", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", + "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": "WTC63763598", "address": + {"id": "adr_86aa9e3e8e3911ee8912ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:00:21+00:00", "updated_at": "2023-11-28T22:00: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": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-16T22:17:00Z", - "updated_at": "2023-05-16T22:17:00Z", "carrier": "USPS", "pickup_id": "pickup_c80e64ad84eb4691b32685a00cbe8329", - "id": "pickuprate_8946fd2a381842a0895d70a051de4256", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:22Z", + "updated_at": "2023-11-28T22:00:22Z", "carrier": "USPS", "pickup_id": "pickup_1b8515273ea447e48be96c49087cf664", + "id": "pickuprate_917f9e0990cf412784a112af398b0c2a", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -374,8 +375,6 @@ interactions: - '1167' content-type: - application/json; charset=utf-8 - etag: - - W/"6a002b345fca663d1634ff5f4773714a" expires: - '0' pragma: @@ -393,20 +392,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e7646400dee7896186004564e3 + - ae35d0ba656662f7e78a93eb003da0f6 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.957197' + - '0.763746' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202311250013-a0f06fbc2c-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 2f41d29f..90a1bf81 100644 --- a/tests/cassettes/test_pickup_create.yaml +++ b/tests/cassettes/test_pickup_create.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-15T21:49:51Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:00:10Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210070940", "updated_at": "2023-05-15T21:49:52Z", "batch_id": + "9400100105442285856031", "updated_at": "2023-11-28T22:00:11Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_6b762f44f36a11ed8279ac1f6bc72124", "object": "Address", "created_at": - "2023-05-15T21:49:51+00:00", "updated_at": "2023-05-15T21:49:51+00:00", "name": + {"id": "adr_80129b778e3911ee8bbdac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:00:10+00:00", "updated_at": "2023-11-28T22:00:10+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_2f6e70599b424c10ba32dc2d05213870", - "object": "Parcel", "created_at": "2023-05-15T21:49:51Z", "updated_at": "2023-05-15T21:49:51Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_0aa05c178d434b66b8355e41b841dd3e", + "object": "Parcel", "created_at": "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_dffd4bead34c4eccbd3f8f8b63573957", - "created_at": "2023-05-15T21:49:52Z", "updated_at": "2023-05-15T21:49:52Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-15T21:49:52Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f289e8f296bc4773bacfce758cc83dda", + "created_at": "2023-11-28T22:00:11Z", "updated_at": "2023-11-28T22:00:11Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:00: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/20230515/ae55b2b2ffbf464dbfa3c9bf6ed99e86.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8e631372555ce4e20b3e456243e6ddb7f.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_da446c8160994a159cd41e82dbce16bb", "object": - "Rate", "created_at": "2023-05-15T21:49:51Z", "updated_at": "2023-05-15T21:49:51Z", + null}, "rates": [{"id": "rate_2f3670e74d5b422e8d129ddf64a51c05", "object": + "Rate", "created_at": "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_bd7a625f2f5e430f960e4b435b49052d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_71bd605e26684d569ce88ce56f284101", - "object": "Rate", "created_at": "2023-05-15T21:49:51Z", "updated_at": "2023-05-15T21:49:51Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_bd7a625f2f5e430f960e4b435b49052d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e733fbcd7f074bea8ffc16b6ae5c4759", - "object": "Rate", "created_at": "2023-05-15T21:49:51Z", "updated_at": "2023-05-15T21:49:51Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null, "shipment_id": "shp_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_319c30426b7e481c92c8f71a07ef75be", + "object": "Rate", "created_at": "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_bd7a625f2f5e430f960e4b435b49052d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a1a288eb38324043a41b94b271849355", - "object": "Rate", "created_at": "2023-05-15T21:49:51Z", "updated_at": "2023-05-15T21:49:51Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_77f3df4a2cf24339b545b11b8f9b8e96", + "object": "Rate", "created_at": "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a9e1db6711da4fadbd79d5fe17338473", + "object": "Rate", "created_at": "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_bd7a625f2f5e430f960e4b435b49052d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_a1a288eb38324043a41b94b271849355", - "object": "Rate", "created_at": "2023-05-15T21:49:52Z", "updated_at": "2023-05-15T21:49:52Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_4ca6cc37ff4a4622bb3b7e7fdc3b9443", "object": "Rate", "created_at": + "2023-11-28T22:00:10Z", "updated_at": "2023-11-28T22:00:10Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_bd7a625f2f5e430f960e4b435b49052d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_1d6d74983da4469cb09a339b7245ec29", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210070940", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-15T21:49:52Z", "updated_at": - "2023-05-15T21:49:52Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_bd7a625f2f5e430f960e4b435b49052d", "carrier": "USPS", + "shp_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_a9e1db6711da4fadbd79d5fe17338473", + "object": "Rate", "created_at": "2023-11-28T22:00:11Z", "updated_at": "2023-11-28T22:00:11Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_d02507b251604bceb84b99c16ee9dd89", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_73d131e31b1b4b6d909f704864d00f28", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285856031", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:00:11Z", "updated_at": + "2023-11-28T22:00:11Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_d02507b251604bceb84b99c16ee9dd89", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzFkNmQ3NDk4M2RhNDQ2OWNiMDlhMzM5YjcyNDVlYzI5"}, - "to_address": {"id": "adr_6b6e1244f36a11ed8fc5ac1f6bc7b362", "object": "Address", - "created_at": "2023-05-15T21:49:51+00:00", "updated_at": "2023-05-15T21:49:51+00:00", + "https://track.easypost.com/djE6dHJrXzczZDEzMWUzMWIxYjRiNmQ5MDlmNzA0ODY0ZDAwZjI4"}, + "to_address": {"id": "adr_800f829c8e3911eeb5a63cecef1b359e", "object": "Address", + "created_at": "2023-11-28T22:00:10+00:00", "updated_at": "2023-11-28T22:00:11+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_6b762f44f36a11ed8279ac1f6bc72124", - "object": "Address", "created_at": "2023-05-15T21:49:51+00:00", "updated_at": - "2023-05-15T21:49:51+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_80129b778e3911ee8bbdac1f6bc539ae", + "object": "Address", "created_at": "2023-11-28T22:00:10+00:00", "updated_at": + "2023-11-28T22:00:10+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_6b6e1244f36a11ed8fc5ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T21:49:51+00:00", "updated_at": "2023-05-15T21:49:51+00:00", "name": + "adr_800f829c8e3911eeb5a63cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:00:10+00:00", "updated_at": "2023-11-28T22:00: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": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_bd7a625f2f5e430f960e4b435b49052d", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_d02507b251604bceb84b99c16ee9dd89", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"b7e585a06f3348555fa485bcfbe8b8a8" expires: - '0' location: - - /api/v2/shipments/shp_bd7a625f2f5e430f960e4b435b49052d + - /api/v2/shipments/shp_d02507b251604bceb84b99c16ee9dd89 pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3ecd17946462a8ffe2b98c340008917d + - ae35d0b8656662eae78a93ce003d913f x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '1.545815' + - '0.983982' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -169,8 +174,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": - "2023-05-17", "max_datetime": "2023-05-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_bd7a625f2f5e430f960e4b435b49052d"}}}' + "2023-12-17", "max_datetime": "2023-12-17", "instructions": "Pickup at front + door", "shipment": {"id": "shp_d02507b251604bceb84b99c16ee9dd89"}}}' headers: Accept: - '*/*' @@ -190,21 +195,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_0c2c33d249cc4982a1bc78c2c1a8d210", "object": "Pickup", - "created_at": "2023-05-15T21:49:53Z", "updated_at": "2023-05-15T21:49:53Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_9860cb6ae0bd4f149c53248ff9048351", "object": "Pickup", + "created_at": "2023-11-28T22:00:12Z", "updated_at": "2023-11-28T22:00:12Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", + "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_6c6df1a4f36a11ed94ac3cecef1b359e", "object": "Address", "created_at": - "2023-05-15T21:49:52+00:00", "updated_at": "2023-05-15T21:49:52+00:00", "name": + "adr_80c1cd288e3911eeb61a3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:00:11+00:00", "updated_at": "2023-11-28T22:00:11+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": "2023-05-15T21:49:54Z", - "updated_at": "2023-05-15T21:49:54Z", "carrier": "USPS", "pickup_id": "pickup_0c2c33d249cc4982a1bc78c2c1a8d210", - "id": "pickuprate_9cb256a78fbc459483c538f961df8ee1", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:12Z", + "updated_at": "2023-11-28T22:00:12Z", "carrier": "USPS", "pickup_id": "pickup_9860cb6ae0bd4f149c53248ff9048351", + "id": "pickuprate_d3971cc0f27b4af3a1b9ef31c419a1e8", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -212,8 +217,6 @@ interactions: - '1157' content-type: - application/json; charset=utf-8 - etag: - - W/"f002ace5802a47aa70b31e84fc506349" expires: - '0' pragma: @@ -231,20 +234,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3ecd17946462a900e2b98c34000891d5 + - ae35d0b8656662ebe78a93ce003d9288 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '1.522076' + - '0.921440' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-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 332049db..83899efe 100644 --- a/tests/cassettes/test_pickup_get_next_page.yaml +++ b/tests/cassettes/test_pickup_get_next_page.yaml @@ -16,91 +16,73 @@ interactions: uri: https://api.easypost.com/v2/pickups?page_size=5 response: body: - string: '{"pickups": [{"id": "pickup_c7ab5738c30444868e61f0d3fef0ff95", "object": - "Pickup", "created_at": "2023-05-15T21:50:06Z", "updated_at": "2023-05-15T21:50:06Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"pickups": [{"id": "pickup_9860cb6ae0bd4f149c53248ff9048351", "object": + "Pickup", "created_at": "2023-11-28T22:00:12Z", "updated_at": "2023-11-28T22:00:12Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", + "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_74406669f36a11edb3daac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-15T21:50:06+00:00", "updated_at": "2023-05-15T21:50:06+00:00", "name": + "adr_80c1cd288e3911eeb61a3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:00:11+00:00", "updated_at": "2023-11-28T22:00:11+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": "2023-05-15T21:50:06Z", - "updated_at": "2023-05-15T21:50:06Z", "carrier": "USPS", "pickup_id": "pickup_c7ab5738c30444868e61f0d3fef0ff95", - "id": "pickuprate_a1a991d35f9f4688a290e08548bb8755", "object": "PickupRate"}]}, - {"id": "pickup_dce2c5e15e9547f199c75e1b4a92725c", "object": "Pickup", "created_at": - "2023-05-15T21:50:01Z", "updated_at": "2023-05-15T21:50:04Z", "mode": "test", - "status": "canceled", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:12Z", + "updated_at": "2023-11-28T22:00:12Z", "carrier": "USPS", "pickup_id": "pickup_9860cb6ae0bd4f149c53248ff9048351", + "id": "pickuprate_d3971cc0f27b4af3a1b9ef31c419a1e8", "object": "PickupRate"}]}, + {"id": "pickup_d49471d988984148ae3138550e148a94", "object": "Pickup", "created_at": + "2023-11-28T21:58:39Z", "updated_at": "2023-11-28T21:58:39Z", "mode": "test", + "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": "WTC62976246", "address": - {"id": "adr_71a8e849f36a11ed82c8ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-15T21:50:01+00:00", "updated_at": "2023-05-15T21:50:01+00:00", "name": + "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": + "adr_49e2f6fd8e3911ee966a3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T21:58:39+00:00", "updated_at": "2023-11-28T21:58: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": - {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-15T21:50:02Z", - "updated_at": "2023-05-15T21:50:02Z", "carrier": "USPS", "pickup_id": "pickup_dce2c5e15e9547f199c75e1b4a92725c", - "id": "pickuprate_8888d57350794b868dde14933836cf2b", "object": "PickupRate"}]}, - {"id": "pickup_5460a38ba2cd4d889d2e01958584a74e", "object": "Pickup", "created_at": - "2023-05-15T21:49:58Z", "updated_at": "2023-05-15T21:50:00Z", "mode": "test", - "status": "scheduled", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_cad32c3f692a4d0cb29668e5b08a2de2", + "object": "Pickup", "created_at": "2023-11-28T21:58:37Z", "updated_at": "2023-11-28T21:58:37Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": "WTC62976244", "address": - {"id": "adr_6f9e2bd2f36a11eda045ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T21:49:58+00:00", "updated_at": "2023-05-15T21:49:58+00:00", "name": + "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": + "adr_489be89c8e3911ee95813cecef1b359e", "object": "Address", "created_at": + "2023-11-28T21:58:37+00:00", "updated_at": "2023-11-28T21:58: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": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-15T21:49:59Z", - "updated_at": "2023-05-15T21:49:59Z", "carrier": "USPS", "pickup_id": "pickup_5460a38ba2cd4d889d2e01958584a74e", - "id": "pickuprate_b884f42434724eabb45d9c70f311e4bf", "object": "PickupRate"}]}, - {"id": "pickup_f7bf2fbb95c54d979eba5344be21d46e", "object": "Pickup", "created_at": - "2023-05-15T21:49:55Z", "updated_at": "2023-05-15T21:49:55Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_b6285245bcb44a898242d20d0c0675f8", + "object": "Pickup", "created_at": "2023-11-28T21:58:35Z", "updated_at": "2023-11-28T21:58:35Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_6dfcf608f36a11ed99deac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T21:49:55+00:00", "updated_at": "2023-05-15T21:49:55+00:00", "name": + "adr_476155358e3911eea42eac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T21:58:35+00:00", "updated_at": "2023-11-28T21:58: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": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-15T21:49:56Z", - "updated_at": "2023-05-15T21:49:56Z", "carrier": "USPS", "pickup_id": "pickup_f7bf2fbb95c54d979eba5344be21d46e", - "id": "pickuprate_152867bbc5014534b67be86918ad8b10", "object": "PickupRate"}]}, - {"id": "pickup_0c2c33d249cc4982a1bc78c2c1a8d210", "object": "Pickup", "created_at": - "2023-05-15T21:49:53Z", "updated_at": "2023-05-15T21:49:53Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_4e99467097794cf1aa6421c58173a05e", + "object": "Pickup", "created_at": "2023-11-28T21:58:33Z", "updated_at": "2023-11-28T21:58:33Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_6c6df1a4f36a11ed94ac3cecef1b359e", "object": "Address", "created_at": - "2023-05-15T21:49:52+00:00", "updated_at": "2023-05-15T21:49:52+00:00", "name": + "adr_460a0a0b8e3911ee9f86ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T21:58:33+00:00", "updated_at": "2023-11-28T21:58:33+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": "2023-05-15T21:49:54Z", - "updated_at": "2023-05-15T21:49:54Z", "carrier": "USPS", "pickup_id": "pickup_0c2c33d249cc4982a1bc78c2c1a8d210", - "id": "pickuprate_9cb256a78fbc459483c538f961df8ee1", "object": "PickupRate"}]}], - "has_more": true}' + {}}, "carrier_accounts": [], "pickup_rates": []}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '5840' + - '4691' content-type: - application/json; charset=utf-8 - etag: - - W/"ec77104841c0adabf3a2344f12760f72" expires: - '0' pragma: @@ -118,20 +100,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3ecd17926462a949e2b98c5b0008a490 + - 88ad7b91656662ede78a93d0003d0d1c x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.086538' + - '0.074946' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -151,94 +133,88 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/pickups?before_id=pickup_0c2c33d249cc4982a1bc78c2c1a8d210&page_size=5 + uri: https://api.easypost.com/v2/pickups?before_id=pickup_4e99467097794cf1aa6421c58173a05e&page_size=5 response: body: - string: '{"pickups": [{"id": "pickup_6feb7eb816d74b9ea251ad274942c3cd", "object": - "Pickup", "created_at": "2022-09-29T15:50:22Z", "updated_at": "2022-09-29T15:50:24Z", - "mode": "test", "status": "scheduled", "reference": null, "min_datetime": - "2022-09-30T00:00:00Z", "max_datetime": "2022-09-30T00:00:00Z", "is_account_address": - false, "instructions": "Pickup at front door", "messages": [], "confirmation": - "WTC62243946", "address": {"id": "adr_6d421e5d400e11edb3fdac1f6b0a0d1e", "object": - "Address", "created_at": "2022-09-29T15:50:22+00:00", "updated_at": "2022-09-29T15:50:22+00:00", - "name": "Jack Sparrow", "company": null, "street1": "388 Townsend St", "street2": + string: '{"pickups": [{"id": "pickup_27c38e8fcb994e4199e14100e66e7681", "object": + "Pickup", "created_at": "2023-11-28T21:58:30Z", "updated_at": "2023-11-28T21:58:30Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", + "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": + "adr_442a32548e3911ee92893cecef1b359e", "object": "Address", "created_at": + "2023-11-28T21:58:30+00:00", "updated_at": "2023-11-28T21:58: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": - {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2022-09-29T15:50:23Z", - "updated_at": "2022-09-29T15:50:23Z", "carrier": "USPS", "pickup_id": "pickup_6feb7eb816d74b9ea251ad274942c3cd", - "id": "pickuprate_49850f8695684c92a6ea34b4870110d3", "object": "PickupRate"}]}, - {"id": "pickup_5f422c9099b344dcbf88e0a348c612c3", "object": "Pickup", "created_at": - "2022-09-29T15:47:48Z", "updated_at": "2022-09-29T15:47:51Z", "mode": "test", - "status": "scheduled", "reference": null, "min_datetime": "2022-09-30T00:00:00Z", - "max_datetime": "2022-09-30T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": "WTC62243938", "address": - {"id": "adr_1187308d400e11edb6b7ac1f6bc7b362", "object": "Address", "created_at": - "2022-09-29T15:47:48+00:00", "updated_at": "2022-09-29T15:47:48+00:00", "name": + {}}, "carrier_accounts": [], "pickup_rates": []}, {"id": "pickup_c0107a914f7b4341a75ebaf7b844543a", + "object": "Pickup", "created_at": "2023-05-19T19:46:12Z", "updated_at": "2023-05-19T19:46:12Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-23T00:00:00Z", + "max_datetime": "2023-05-23T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": + "adr_cee7428ef67d11eda4303cecef1b359e", "object": "Address", "created_at": + "2023-05-19T19:46:12+00:00", "updated_at": "2023-05-19T19: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": "2022-09-29T15:47:50Z", - "updated_at": "2022-09-29T15:47:50Z", "carrier": "USPS", "pickup_id": "pickup_5f422c9099b344dcbf88e0a348c612c3", - "id": "pickuprate_588895ee61ba4c99b889f9bb631911a7", "object": "PickupRate"}]}, - {"id": "pickup_0dd9c976197b4cc18c9a017a64e6946c", "object": "Pickup", "created_at": - "2022-09-09T17:18:08Z", "updated_at": "2022-09-09T17:18:09Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2022-10-17T00:00:00Z", - "max_datetime": "2022-10-17T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_5fc75633306311edb805ac1f6bc7b362", "object": "Address", "created_at": - "2022-09-09T17:18:08+00:00", "updated_at": "2022-09-09T17:18:08+00:00", "name": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-19T19:46:12Z", + "updated_at": "2023-05-19T19:46:12Z", "carrier": "USPS", "pickup_id": "pickup_c0107a914f7b4341a75ebaf7b844543a", + "id": "pickuprate_779cb55ed0884c02b0e608a129b14c21", "object": "PickupRate"}]}, + {"id": "pickup_f440a7166a12487eaec7a497888d25c4", "object": "Pickup", "created_at": + "2023-05-19T19:46:08Z", "updated_at": "2023-05-19T19:46:10Z", "mode": "test", + "status": "canceled", "reference": null, "min_datetime": "2023-05-23T00:00:00Z", + "max_datetime": "2023-05-23T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": "WTC62991670", "address": + {"id": "adr_cc9e8cb4f67d11ed97ce3cecef1b359e", "object": "Address", "created_at": + "2023-05-19T19:46:08+00:00", "updated_at": "2023-05-19T19: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": "2022-09-09T17:18:09Z", - "updated_at": "2022-09-09T17:18:09Z", "carrier": "USPS", "pickup_id": "pickup_0dd9c976197b4cc18c9a017a64e6946c", - "id": "pickuprate_ea8c36e082754264845c0e0f34dcc571", "object": "PickupRate"}]}, - {"id": "pickup_cfc0ccd3f0f94c17898e2363b95e026a", "object": "Pickup", "created_at": - "2022-09-08T21:10:04Z", "updated_at": "2022-09-08T21:10:05Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2022-10-17T00:00:00Z", - "max_datetime": "2022-10-17T00:00:00Z", "is_account_address": false, "instructions": - "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_9c08382c2fba11edb56fac1f6bc72124", "object": "Address", "created_at": - "2022-09-08T21:10:04+00:00", "updated_at": "2022-09-08T21:10:04+00:00", "name": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-19T19:46:09Z", + "updated_at": "2023-05-19T19:46:09Z", "carrier": "USPS", "pickup_id": "pickup_f440a7166a12487eaec7a497888d25c4", + "id": "pickuprate_c511b1b885094fd2b251fa133882a8ca", "object": "PickupRate"}]}, + {"id": "pickup_d2dd1156c2fd41fa979436e3c792d5bd", "object": "Pickup", "created_at": + "2023-05-19T19:46:04Z", "updated_at": "2023-05-19T19:46:06Z", "mode": "test", + "status": "scheduled", "reference": null, "min_datetime": "2023-05-23T00:00:00Z", + "max_datetime": "2023-05-23T00:00:00Z", "is_account_address": false, "instructions": + "Pickup at front door", "messages": [], "confirmation": "WTC62991668", "address": + {"id": "adr_ca4c24acf67d11ed8b843cecef1b359e", "object": "Address", "created_at": + "2023-05-19T19:46:04+00:00", "updated_at": "2023-05-19T19: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": "2022-09-08T21:10:05Z", - "updated_at": "2022-09-08T21:10:05Z", "carrier": "USPS", "pickup_id": "pickup_cfc0ccd3f0f94c17898e2363b95e026a", - "id": "pickuprate_95a127b2e60e4148ab1e40a677b6bce7", "object": "PickupRate"}]}, - {"id": "pickup_9118820e33eb4f2bbc27212e1c28716c", "object": "Pickup", "created_at": - "2022-09-08T21:09:27Z", "updated_at": "2022-09-08T21:09:29Z", "mode": "test", - "status": "unknown", "reference": null, "min_datetime": "2022-10-17T00:00:00Z", - "max_datetime": "2022-10-17T00:00:00Z", "is_account_address": false, "instructions": + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-19T19:46:05Z", + "updated_at": "2023-05-19T19:46:05Z", "carrier": "USPS", "pickup_id": "pickup_d2dd1156c2fd41fa979436e3c792d5bd", + "id": "pickuprate_422229d2c51349d2aa661751facce9bd", "object": "PickupRate"}]}, + {"id": "pickup_1665ec0a4a90436986087d72d5b05a23", "object": "Pickup", "created_at": + "2023-05-19T19:46:01Z", "updated_at": "2023-05-19T19:46:01Z", "mode": "test", + "status": "unknown", "reference": null, "min_datetime": "2023-05-23T00:00:00Z", + "max_datetime": "2023-05-23T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_8600c2042fba11eda531ac1f6b0a0d1e", "object": "Address", "created_at": - "2022-09-08T21:09:27+00:00", "updated_at": "2022-09-08T21:09:27+00:00", "name": + "adr_c89612f3f67d11ed96e9ac1f6bc539aa", "object": "Address", "created_at": + "2023-05-19T19:46:01+00:00", "updated_at": "2023-05-19T19:46: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": {}}, "carrier_accounts": [], "pickup_rates": [{"mode": "test", "service": - "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2022-09-08T21:09:29Z", - "updated_at": "2022-09-08T21:09:29Z", "carrier": "USPS", "pickup_id": "pickup_9118820e33eb4f2bbc27212e1c28716c", - "id": "pickuprate_5ecc7ea8475d4134b9fd6a6d15b122f1", "object": "PickupRate"}]}], + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-05-19T19:46:02Z", + "updated_at": "2023-05-19T19:46:02Z", "carrier": "USPS", "pickup_id": "pickup_1665ec0a4a90436986087d72d5b05a23", + "id": "pickuprate_e660ed4589e3469cb6765ce1ed7023c3", "object": "PickupRate"}]}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '5841' + - '5558' content-type: - application/json; charset=utf-8 - etag: - - W/"13484b6456056f4979a7b7df603c3505" expires: - '0' pragma: @@ -256,20 +232,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 3ecd17926462a949e2b98c5b0008a49a + - 88ad7b91656662eee78a93d0003d0d71 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.102829' + - '0.105036' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-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 79f087b4..e9e07016 100644 --- a/tests/cassettes/test_pickup_lowest_rate.yaml +++ b/tests/cassettes/test_pickup_lowest_rate.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T22:21:05Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:00:24Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210420523", "updated_at": "2023-05-16T22:21:06Z", "batch_id": + "9400100105442285856574", "updated_at": "2023-11-28T22:00:25Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_f32f699af43711ed9d30ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T22:21:05+00:00", "updated_at": "2023-05-16T22:21:05+00:00", "name": + {"id": "adr_887a884c8e3911ee874bac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:00:24+00:00", "updated_at": "2023-11-28T22:00: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_1c0f1bc7f8704282bf473e5ee6866a05", - "object": "Parcel", "created_at": "2023-05-16T22:21:05Z", "updated_at": "2023-05-16T22:21:05Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_85ed9c66f6e5466b93b43763933e7bac", + "object": "Parcel", "created_at": "2023-11-28T22:00:24Z", "updated_at": "2023-11-28T22:00:24Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9fb46ba11eba4326b270b943762bea56", - "created_at": "2023-05-16T22:21:06Z", "updated_at": "2023-05-16T22:21:06Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T22:21:06Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_023dda07058b4197a41369ce6b8a49c8", + "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:00: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/20230516/c0f7ec48c6d84e6ebcd667f2014584a3.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e846a296a5b9f8402b891a19d814d87aac.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_30105ff3ff5c4168839245d483a56d74", "object": - "Rate", "created_at": "2023-05-16T22:21:06Z", "updated_at": "2023-05-16T22:21:06Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_f5055ec96bc44acea01aa6cfe8b1c27b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_159b0659d04c496ab3d9e40033f9315d", - "object": "Rate", "created_at": "2023-05-16T22:21:06Z", "updated_at": "2023-05-16T22:21:06Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_b3cfa727dc3d442fa869beb567702a9f", "object": + "Rate", "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_30e89149fb234990814a794c0e298303", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4777bdf9ff9a4d658c0ba0428e9df454", + "object": "Rate", "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_f5055ec96bc44acea01aa6cfe8b1c27b", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7510862d474f48f88bcebdb0500c9617", - "object": "Rate", "created_at": "2023-05-16T22:21:06Z", "updated_at": "2023-05-16T22:21:06Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_30e89149fb234990814a794c0e298303", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_53f7005f57894a1d8ede3131d15ba18b", + "object": "Rate", "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_30e89149fb234990814a794c0e298303", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dd53d24df8a34b14b03caf7ea0f8d462", + "object": "Rate", "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_f5055ec96bc44acea01aa6cfe8b1c27b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_d63c1bd8c4da4504ab9b8ad53c3c61e7", "object": "Rate", "created_at": - "2023-05-16T22:21:06Z", "updated_at": "2023-05-16T22:21:06Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_f5055ec96bc44acea01aa6cfe8b1c27b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_7510862d474f48f88bcebdb0500c9617", - "object": "Rate", "created_at": "2023-05-16T22:21:06Z", "updated_at": "2023-05-16T22:21:06Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_30e89149fb234990814a794c0e298303", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_af00fd82df3c430da6ab9e680ec97324", "object": "Rate", "created_at": + "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_f5055ec96bc44acea01aa6cfe8b1c27b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_779bb9eeb4bd46d4b778b6da328161b9", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210420523", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T22:21:06Z", "updated_at": - "2023-05-16T22:21:06Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_f5055ec96bc44acea01aa6cfe8b1c27b", "carrier": "USPS", + "shp_30e89149fb234990814a794c0e298303", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_dd53d24df8a34b14b03caf7ea0f8d462", + "object": "Rate", "created_at": "2023-11-28T22:00:25Z", "updated_at": "2023-11-28T22:00:25Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_30e89149fb234990814a794c0e298303", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_e5657bfb0f2e4c56a622181940bb81c6", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285856574", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:00:25Z", "updated_at": + "2023-11-28T22:00:25Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_30e89149fb234990814a794c0e298303", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzc3OWJiOWVlYjRiZDQ2ZDRiNzc4YjZkYTMyODE2MWI5"}, - "to_address": {"id": "adr_f32c8e16f43711ed9d2fac1f6bc7b362", "object": "Address", - "created_at": "2023-05-16T22:21:05+00:00", "updated_at": "2023-05-16T22:21:06+00:00", + "https://track.easypost.com/djE6dHJrX2U1NjU3YmZiMGYyZTRjNTZhNjIyMTgxOTQwYmI4MWM2"}, + "to_address": {"id": "adr_8876e9c48e3911ee874aac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:00:24+00:00", "updated_at": "2023-11-28T22:00:25+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_f32f699af43711ed9d30ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-16T22:21:05+00:00", "updated_at": - "2023-05-16T22:21:05+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_887a884c8e3911ee874bac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T22:00:24+00:00", "updated_at": + "2023-11-28T22:00: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_f32c8e16f43711ed9d2fac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T22:21:05+00:00", "updated_at": "2023-05-16T22:21:06+00:00", "name": + "adr_8876e9c48e3911ee874aac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:00:24+00:00", "updated_at": "2023-11-28T22:00: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": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_f5055ec96bc44acea01aa6cfe8b1c27b", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_30e89149fb234990814a794c0e298303", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"93c8f1ed5af1c9b38f109f144b733991" expires: - '0' location: - - /api/v2/shipments/shp_f5055ec96bc44acea01aa6cfe8b1c27b + - /api/v2/shipments/shp_30e89149fb234990814a794c0e298303 pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e06646401d1e789651c0049adbe + - ae35d0b3656662f8e78a93ec003da2a3 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.946503' + - '0.941602' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -169,8 +174,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": - "2023-05-17", "max_datetime": "2023-05-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_f5055ec96bc44acea01aa6cfe8b1c27b"}}}' + "2023-12-17", "max_datetime": "2023-12-17", "instructions": "Pickup at front + door", "shipment": {"id": "shp_30e89149fb234990814a794c0e298303"}}}' headers: Accept: - '*/*' @@ -190,21 +195,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_53c300439dd54b05b9686bb944c16f61", "object": "Pickup", - "created_at": "2023-05-16T22:21:06Z", "updated_at": "2023-05-16T22:21:06Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_2f77b4a0470e472386161d641f199c77", "object": "Pickup", + "created_at": "2023-11-28T22:00:26Z", "updated_at": "2023-11-28T22:00:26Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", + "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_f3cccb21f43711edbbc4ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T22:21:06+00:00", "updated_at": "2023-05-16T22:21:06+00:00", "name": + "adr_891f3f558e3911ee87bdac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:00:25+00:00", "updated_at": "2023-11-28T22:00:25+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": "2023-05-16T22:21:07Z", - "updated_at": "2023-05-16T22:21:07Z", "carrier": "USPS", "pickup_id": "pickup_53c300439dd54b05b9686bb944c16f61", - "id": "pickuprate_1f178014abab481eb444b4fb67b78cfd", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:26Z", + "updated_at": "2023-11-28T22:00:26Z", "carrier": "USPS", "pickup_id": "pickup_2f77b4a0470e472386161d641f199c77", + "id": "pickuprate_d5205496394a4329be2ae3ea953bdc5a", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -212,8 +217,6 @@ interactions: - '1157' content-type: - application/json; charset=utf-8 - etag: - - W/"c59b26599f8a56a2df366d7b37d967a8" expires: - '0' pragma: @@ -231,20 +234,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e06646401d2e789651c0049ae14 + - ae35d0b3656662f9e78a93ec003da41a x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '1.181698' + - '0.713474' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202311250013-a0f06fbc2c-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 2e7a16a4..3ea9abdc 100644 --- a/tests/cassettes/test_pickup_retrieve.yaml +++ b/tests/cassettes/test_pickup_retrieve.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-15T21:49:54Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:00:14Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210070971", "updated_at": "2023-05-15T21:49:55Z", "batch_id": + "9400100105442285856185", "updated_at": "2023-11-28T22:00:15Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_6d71d260f36a11edb801ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-15T21:49:54+00:00", "updated_at": "2023-05-15T21:49:54+00:00", "name": + {"id": "adr_8267bef28e3911eeb71c3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:00:14+00:00", "updated_at": "2023-11-28T22:00: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_2d06640b6b6248009451d5649fb2495e", - "object": "Parcel", "created_at": "2023-05-15T21:49:54Z", "updated_at": "2023-05-15T21:49:54Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_e58fa1e44068409da3ff95fc6c169234", + "object": "Parcel", "created_at": "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_cadcb6bd5a814c3aad39d0dfc7525906", - "created_at": "2023-05-15T21:49:55Z", "updated_at": "2023-05-15T21:49:55Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-15T21:49:55Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9ca2e253956f4ea1909138d76fd7cde6", + "created_at": "2023-11-28T22:00:15Z", "updated_at": "2023-11-28T22:00:15Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:00: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/20230515/cc3a20d052114a76aa1c3cf478ffe1b4.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e893844c1736304c4a80c2c2b90623d35a.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_64dd45a3f36f437291400ccbcb2e5975", "object": - "Rate", "created_at": "2023-05-15T21:49:54Z", "updated_at": "2023-05-15T21:49:54Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + null}, "rates": [{"id": "rate_04a634017aa64b92a24e935718a44961", "object": + "Rate", "created_at": "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_32b293473e6c454b93fadd9d8f8aa72c", + "object": "Rate", "created_at": "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", + "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": + "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b97dc66243cb4e298dd20307aa11351b", + "object": "Rate", "created_at": "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2f63665321374e79b9f65d662f489339", + "object": "Rate", "created_at": "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_a21f7364ac0444fe94a5d6f39f77183e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_524f05a09ee94b42b372656e0fd5cf4a", "object": "Rate", "created_at": - "2023-05-15T21:49:54Z", "updated_at": "2023-05-15T21:49:54Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_a21f7364ac0444fe94a5d6f39f77183e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_c31d2f723e824d2ca74a784730d8866c", "object": "Rate", "created_at": - "2023-05-15T21:49:54Z", "updated_at": "2023-05-15T21:49:54Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_a21f7364ac0444fe94a5d6f39f77183e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b7159ceb1c184f72875ab3d6a6ee9dae", "object": "Rate", "created_at": - "2023-05-15T21:49:54Z", "updated_at": "2023-05-15T21:49:54Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_a21f7364ac0444fe94a5d6f39f77183e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_64dd45a3f36f437291400ccbcb2e5975", - "object": "Rate", "created_at": "2023-05-15T21:49:55Z", "updated_at": "2023-05-15T21:49:55Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e8c3d898924d4ff1bc3441ae633b6dac", "object": "Rate", "created_at": + "2023-11-28T22:00:14Z", "updated_at": "2023-11-28T22:00:14Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_a21f7364ac0444fe94a5d6f39f77183e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_8eebb304a36147e19650f7f81ccfaca9", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210070971", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-15T21:49:55Z", "updated_at": - "2023-05-15T21:49:55Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_a21f7364ac0444fe94a5d6f39f77183e", "carrier": "USPS", + "shp_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_2f63665321374e79b9f65d662f489339", + "object": "Rate", "created_at": "2023-11-28T22:00:15Z", "updated_at": "2023-11-28T22:00:15Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_efb368da208749e9a7b35b30ae928ffe", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_50e1d355a61a41079ae368cd389f2dcf", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285856185", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:00:15Z", "updated_at": + "2023-11-28T22:00:15Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_efb368da208749e9a7b35b30ae928ffe", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzhlZWJiMzA0YTM2MTQ3ZTE5NjUwZjdmODFjY2ZhY2E5"}, - "to_address": {"id": "adr_6d6f1356f36a11ed98583cecef1b359e", "object": "Address", - "created_at": "2023-05-15T21:49:54+00:00", "updated_at": "2023-05-15T21:49:54+00:00", + "https://track.easypost.com/djE6dHJrXzUwZTFkMzU1YTYxYTQxMDc5YWUzNjhjZDM4OWYyZGNm"}, + "to_address": {"id": "adr_82657f858e3911ee8620ac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T22:00:14+00:00", "updated_at": "2023-11-28T22:00:14+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_6d71d260f36a11edb801ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-15T21:49:54+00:00", "updated_at": - "2023-05-15T21:49:54+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_8267bef28e3911eeb71c3cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:00:14+00:00", "updated_at": + "2023-11-28T22:00: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_6d6f1356f36a11ed98583cecef1b359e", "object": "Address", "created_at": - "2023-05-15T21:49:54+00:00", "updated_at": "2023-05-15T21:49:54+00:00", "name": + "adr_82657f858e3911ee8620ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:00:14+00:00", "updated_at": "2023-11-28T22:00:14+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_a21f7364ac0444fe94a5d6f39f77183e", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_efb368da208749e9a7b35b30ae928ffe", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"970ec211963e5315f7a0de3e6f5cac6f" expires: - '0' location: - - /api/v2/shipments/shp_a21f7364ac0444fe94a5d6f39f77183e + - /api/v2/shipments/shp_efb368da208749e9a7b35b30ae928ffe pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495ae6462a902e2b98c350039c87f + - ae35d0b8656662eee78a93e8003d95ad x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.878786' + - '1.003851' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -169,8 +174,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": - "2023-05-17", "max_datetime": "2023-05-17", "instructions": "Pickup at front - door", "shipment": {"id": "shp_a21f7364ac0444fe94a5d6f39f77183e"}}}' + "2023-12-17", "max_datetime": "2023-12-17", "instructions": "Pickup at front + door", "shipment": {"id": "shp_efb368da208749e9a7b35b30ae928ffe"}}}' headers: Accept: - '*/*' @@ -190,21 +195,21 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id": "pickup_f7bf2fbb95c54d979eba5344be21d46e", "object": "Pickup", - "created_at": "2023-05-15T21:49:55Z", "updated_at": "2023-05-15T21:49:55Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_b0962a07f371415291338e3c8040339f", "object": "Pickup", + "created_at": "2023-11-28T22:00:15Z", "updated_at": "2023-11-28T22:00:15Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", + "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_6dfcf608f36a11ed99deac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T21:49:55+00:00", "updated_at": "2023-05-15T21:49:55+00:00", "name": + "adr_8313b39b8e3911ee8347ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:00:15+00:00", "updated_at": "2023-11-28T22:00: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": "2023-05-15T21:49:56Z", - "updated_at": "2023-05-15T21:49:56Z", "carrier": "USPS", "pickup_id": "pickup_f7bf2fbb95c54d979eba5344be21d46e", - "id": "pickuprate_152867bbc5014534b67be86918ad8b10", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:16Z", + "updated_at": "2023-11-28T22:00:16Z", "carrier": "USPS", "pickup_id": "pickup_b0962a07f371415291338e3c8040339f", + "id": "pickuprate_a9d66347d51f43dcbcb2e0e97af0da76", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -212,8 +217,6 @@ interactions: - '1157' content-type: - application/json; charset=utf-8 - etag: - - W/"67da1cfbc8a0b52d64a396bf7e4ce3e5" expires: - '0' pragma: @@ -226,25 +229,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 44e495ae6462a903e2b98c350039c8cd + - ae35d0b8656662efe78a93e8003d96ff x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '1.097157' + - '0.805456' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -264,24 +269,24 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/pickups/pickup_f7bf2fbb95c54d979eba5344be21d46e + uri: https://api.easypost.com/v2/pickups/pickup_b0962a07f371415291338e3c8040339f response: body: - string: '{"id": "pickup_f7bf2fbb95c54d979eba5344be21d46e", "object": "Pickup", - "created_at": "2023-05-15T21:49:55Z", "updated_at": "2023-05-15T21:49:55Z", - "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-05-17T00:00:00Z", - "max_datetime": "2023-05-17T00:00:00Z", "is_account_address": false, "instructions": + string: '{"id": "pickup_b0962a07f371415291338e3c8040339f", "object": "Pickup", + "created_at": "2023-11-28T22:00:15Z", "updated_at": "2023-11-28T22:00:15Z", + "mode": "test", "status": "unknown", "reference": null, "min_datetime": "2023-12-17T00:00:00Z", + "max_datetime": "2023-12-17T00:00:00Z", "is_account_address": false, "instructions": "Pickup at front door", "messages": [], "confirmation": null, "address": {"id": - "adr_6dfcf608f36a11ed99deac1f6bc7b362", "object": "Address", "created_at": - "2023-05-15T21:49:55+00:00", "updated_at": "2023-05-15T21:49:55+00:00", "name": + "adr_8313b39b8e3911ee8347ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:00:15+00:00", "updated_at": "2023-11-28T22:00: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": "2023-05-15T21:49:56Z", - "updated_at": "2023-05-15T21:49:56Z", "carrier": "USPS", "pickup_id": "pickup_f7bf2fbb95c54d979eba5344be21d46e", - "id": "pickuprate_152867bbc5014534b67be86918ad8b10", "object": "PickupRate"}]}' + "NextDay", "rate": "0.00", "currency": "USD", "created_at": "2023-11-28T22:00:16Z", + "updated_at": "2023-11-28T22:00:16Z", "carrier": "USPS", "pickup_id": "pickup_b0962a07f371415291338e3c8040339f", + "id": "pickuprate_a9d66347d51f43dcbcb2e0e97af0da76", "object": "PickupRate"}]}' headers: cache-control: - private, no-cache, no-store @@ -289,8 +294,6 @@ interactions: - '1157' content-type: - application/json; charset=utf-8 - etag: - - W/"67da1cfbc8a0b52d64a396bf7e4ce3e5" expires: - '0' pragma: @@ -303,27 +306,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 44e495ae6462a904e2b98c350039c91e + - ae35d0b8656662f0e78a93e8003d983c x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.124861' + - '0.049223' x-version-label: - - easypost-202305152107-770224374c-master + - easypost-202311250013-a0f06fbc2c-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 b73a7007..760459fb 100644 --- a/tests/cassettes/test_rate_retrieve.yaml +++ b/tests/cassettes/test_rate_retrieve.yaml @@ -6,7 +6,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"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}}, "carbon_offset": false}' + 15.4}}}' headers: Accept: - '*/*' @@ -15,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '520' + - '496' Content-Type: - application/json authorization: @@ -26,95 +26,100 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-15T18:11:04Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + string: '{"created_at": "2023-11-28T22:03:05Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-15T18:11:05Z", "batch_id": null, "batch_status": + null, "updated_at": "2023-11-28T22:03:05Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_db21d518f34b11ed8e63ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-15T18:11:04+00:00", "updated_at": "2023-05-15T18:11:04+00:00", "name": + "adr_e7e63b478e3911ee8e65ac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:03:04+00:00", "updated_at": "2023-11-28T22:03: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_f5a7d63d9d064e7ea095cac03d658c90", - "object": "Parcel", "created_at": "2023-05-15T18:11:04Z", "updated_at": "2023-05-15T18:11:04Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_3010e359999e4d3c9d811014eca7fc43", + "object": "Parcel", "created_at": "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_7a4ca00785d84f26adeffde144851009", - "object": "Rate", "created_at": "2023-05-15T18:11:05Z", "updated_at": "2023-05-15T18:11:05Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_c8d674f4c09146dfa38ce27c9407c866", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c83acc4163b546e78216f0ed2ced2b15", - "object": "Rate", "created_at": "2023-05-15T18:11:05Z", "updated_at": "2023-05-15T18:11:05Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_48c9b3a844974166b9894bd64bccaeb3", + "object": "Rate", "created_at": "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1132b97a503449c28cfc7c1c9aefb065", + "object": "Rate", "created_at": "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_c8d674f4c09146dfa38ce27c9407c866", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d69fdc7be5624ef888f980a06d5f9bd2", - "object": "Rate", "created_at": "2023-05-15T18:11:05Z", "updated_at": "2023-05-15T18:11:05Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6b57b8b7f82141f7a2ab70ac9978033a", + "object": "Rate", "created_at": "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_11044f506652442c948aeb0a4861003b", + "object": "Rate", "created_at": "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_c8d674f4c09146dfa38ce27c9407c866", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_1dd6bae25d9744d1908d3aee7de10bd3", "object": "Rate", "created_at": - "2023-05-15T18:11:05Z", "updated_at": "2023-05-15T18:11:05Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_c8d674f4c09146dfa38ce27c9407c866", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_ccc6fa0610294a4a92ceecc80701a4ca", "object": "Rate", "created_at": + "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_db1f9331f34b11ed866dac1f6bc7bdc6", "object": - "Address", "created_at": "2023-05-15T18:11:04+00:00", "updated_at": "2023-05-15T18:11:04+00:00", + null, "to_address": {"id": "adr_e7e3d7ea8e3911ee8442ac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:04+00:00", "updated_at": "2023-11-28T22:03: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": - {}}, "usps_zone": 4, "return_address": {"id": "adr_db21d518f34b11ed8e63ac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-15T18:11:04+00:00", "updated_at": - "2023-05-15T18:11:04+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_e7e63b478e3911ee8e65ac1f6bc539ae", + "object": "Address", "created_at": "2023-11-28T22:03:04+00:00", "updated_at": + "2023-11-28T22:03: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": {}}, "buyer_address": {"id": - "adr_db1f9331f34b11ed866dac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-15T18:11:04+00:00", "updated_at": "2023-05-15T18:11:04+00:00", "name": + "adr_e7e3d7ea8e3911ee8442ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:03:04+00:00", "updated_at": "2023-11-28T22:03: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": - {}}, "forms": [], "fees": [], "id": "shp_c8d674f4c09146dfa38ce27c9407c866", + {}}, "forms": [], "fees": [], "id": "shp_03ed93eb66f6411e8017bcee5bb14481", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5851' + - '6394' content-type: - application/json; charset=utf-8 - etag: - - W/"771d160f7d8c6f346fd3a8f6e166db96" expires: - '0' location: - - /api/v2/shipments/shp_c8d674f4c09146dfa38ce27c9407c866 + - /api/v2/shipments/shp_03ed93eb66f6411e8017bcee5bb14481 pragma: - no-cache referrer-policy: @@ -130,20 +135,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 44e495af646275b8e78751e90023fc43 + - ae35d0b665666398e78a9789003e6cd6 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb31nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.926748' + - '0.701225' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -163,25 +168,23 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/rates/rate_7a4ca00785d84f26adeffde144851009 + uri: https://api.easypost.com/v2/rates/rate_48c9b3a844974166b9894bd64bccaeb3 response: body: - string: '{"id": "rate_7a4ca00785d84f26adeffde144851009", "object": "Rate", "created_at": - "2023-05-15T18:11:05Z", "updated_at": "2023-05-15T18:11:05Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_c8d674f4c09146dfa38ce27c9407c866", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}' + string: '{"id": "rate_48c9b3a844974166b9894bd64bccaeb3", "object": "Rate", "created_at": + "2023-11-28T22:03:05Z", "updated_at": "2023-11-28T22:03:05Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_03ed93eb66f6411e8017bcee5bb14481", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}' headers: cache-control: - private, no-cache, no-store content-length: - - '539' + - '543' content-type: - application/json; charset=utf-8 - etag: - - W/"5be323f32739ace01ee4d9280fe22914" expires: - '0' pragma: @@ -194,25 +197,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 44e495af646275b9e78751e90023fca2 + - ae35d0b66566639ae78a9789003e6e5f x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.186967' + - '0.214577' x-version-label: - - easypost-202305151637-e5ce91ee24-master + - easypost-202311250013-a0f06fbc2c-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 2a9ae80b..f6859136 100644 --- a/tests/cassettes/test_refund_create.yaml +++ b/tests/cassettes/test_refund_create.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T15:09:01Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:04:14Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210314976", "updated_at": "2023-05-16T15:09:02Z", "batch_id": + "9400100105442285865323", "updated_at": "2023-11-28T22:04:14Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_97548187f3fb11edaf24ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T15:09:01+00:00", "updated_at": "2023-05-16T15:09:01+00:00", "name": + {"id": "adr_112114878e3a11ee94313cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04: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_5fb09d738fa042868319f04c06619388", - "object": "Parcel", "created_at": "2023-05-16T15:09:01Z", "updated_at": "2023-05-16T15:09:01Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c14abe119b4b47cca0eaffefa64ec311", + "object": "Parcel", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_882b473b3d8744c6961e2e0d7dbfc235", - "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T15:09:02Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f5482c5ee9694dc2aaf344cd96b84259", + "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:04:14Z", "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/20230516/6707c012152345928040d50307869170.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8c8b82e8339f94b608d71b001b7c22082.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_053b9306842b41c6a11342e2eade3dda", "object": - "Rate", "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_705a363033894072a568a34daa8dc7de", - "object": "Rate", "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a90c2a5c4ac244fcb967fa765e27b49e", - "object": "Rate", "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_f7fc0d50e1c54a7f94d19d07d83527e2", "object": + "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f8d3858e00544c2ba89f54d11fb6cd5c", - "object": "Rate", "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f1537b73e7b445b86a0a34b139a0bbc", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9543343d31b44ec4863e3679570d73c2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_f8d3858e00544c2ba89f54d11fb6cd5c", - "object": "Rate", "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_252d16804f6a4914990c7927640dc139", "object": "Rate", "created_at": + "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9543343d31b44ec4863e3679570d73c2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_45f92a81b4174285b025d8f29e1d87ab", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210314976", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T15:09:02Z", "updated_at": - "2023-05-16T15:09:02Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2", "carrier": "USPS", + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_550711dcaca14d96a311eedb314dbb30", "object": "Rate", "created_at": + "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_f7228e9b353c4d22820956036c86fcc8", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285865323", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:04:15Z", "updated_at": + "2023-11-28T22:04:15Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzQ1ZjkyYTgxYjQxNzQyODViMDI1ZDhmMjllMWQ4N2Fi"}, - "to_address": {"id": "adr_9751eebdf3fb11eda524ac1f6bc7b362", "object": "Address", - "created_at": "2023-05-16T15:09:01+00:00", "updated_at": "2023-05-16T15:09:02+00:00", + "https://track.easypost.com/djE6dHJrX2Y3MjI4ZTliMzUzYzRkMjI4MjA5NTYwMzZjODZmY2M4"}, + "to_address": {"id": "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_97548187f3fb11edaf24ac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-16T15:09:01+00:00", "updated_at": - "2023-05-16T15:09:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_112114878e3a11ee94313cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": + "2023-11-28T22:04: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_9751eebdf3fb11eda524ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T15:09:01+00:00", "updated_at": "2023-05-16T15:09:02+00:00", "name": + "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_9543343d31b44ec4863e3679570d73c2", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_389b05acbbff44bfa104ee937676bace", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"59c8ae47e3ad6a94a1ef61808dcb4bff" expires: - '0' location: - - /api/v2/shipments/shp_9543343d31b44ec4863e3679570d73c2 + - /api/v2/shipments/shp_389b05acbbff44bfa104ee937676bace pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e364639c8de786a7370020087d + - 88ad7b8f656663dee78a97f0003e3c61 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '1.039921' + - '0.933412' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -179,77 +184,84 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_9543343d31b44ec4863e3679570d73c2 + uri: https://api.easypost.com/v2/shipments/shp_389b05acbbff44bfa104ee937676bace response: body: - string: '{"created_at": "2023-05-16T15:09:01Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:04:14Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210314976", "updated_at": "2023-05-16T15:09:02Z", "batch_id": + "9400100105442285865323", "updated_at": "2023-11-28T22:04:14Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_97548187f3fb11edaf24ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T15:09:01+00:00", "updated_at": "2023-05-16T15:09:01+00:00", "name": + {"id": "adr_112114878e3a11ee94313cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04: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_5fb09d738fa042868319f04c06619388", - "object": "Parcel", "created_at": "2023-05-16T15:09:01Z", "updated_at": "2023-05-16T15:09:01Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c14abe119b4b47cca0eaffefa64ec311", + "object": "Parcel", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_882b473b3d8744c6961e2e0d7dbfc235", - "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T15:09:02Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f5482c5ee9694dc2aaf344cd96b84259", + "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:04:14Z", "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/20230516/6707c012152345928040d50307869170.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8c8b82e8339f94b608d71b001b7c22082.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_053b9306842b41c6a11342e2eade3dda", "object": - "Rate", "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_705a363033894072a568a34daa8dc7de", - "object": "Rate", "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a90c2a5c4ac244fcb967fa765e27b49e", - "object": "Rate", "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_f7fc0d50e1c54a7f94d19d07d83527e2", "object": + "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f8d3858e00544c2ba89f54d11fb6cd5c", - "object": "Rate", "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f1537b73e7b445b86a0a34b139a0bbc", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_252d16804f6a4914990c7927640dc139", "object": "Rate", "created_at": + "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9543343d31b44ec4863e3679570d73c2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_f8d3858e00544c2ba89f54d11fb6cd5c", - "object": "Rate", "created_at": "2023-05-16T15:09:02Z", "updated_at": "2023-05-16T15:09:02Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_550711dcaca14d96a311eedb314dbb30", "object": "Rate", "created_at": + "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9543343d31b44ec4863e3679570d73c2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_45f92a81b4174285b025d8f29e1d87ab", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210314976", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-05-16T15:09:03Z", "updated_at": - "2023-05-16T15:09:03Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-16T15:09:03Z", "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2", + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_f7228e9b353c4d22820956036c86fcc8", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285865323", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2023-11-28T22:04:15Z", "updated_at": + "2023-11-28T22:04:15Z", "signed_by": null, "weight": null, "est_delivery_date": + "2023-11-28T22:04:15Z", "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T15:09:03Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:04:15Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T03:46:03Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:41: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 Package Service", "container_type": null, "est_delivery_date_local": null, @@ -257,9 +269,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/djE6dHJrXzQ1ZjkyYTgxYjQxNzQyODViMDI1ZDhmMjllMWQ4N2Fi"}, - "to_address": {"id": "adr_9751eebdf3fb11eda524ac1f6bc7b362", "object": "Address", - "created_at": "2023-05-16T15:09:01+00:00", "updated_at": "2023-05-16T15:09:02+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2Y3MjI4ZTliMzUzYzRkMjI4MjA5NTYwMzZjODZmY2M4"}, + "to_address": {"id": "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+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", @@ -267,15 +279,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_97548187f3fb11edaf24ac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-16T15:09:01+00:00", "updated_at": - "2023-05-16T15:09:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_112114878e3a11ee94313cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": + "2023-11-28T22:04: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_9751eebdf3fb11eda524ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T15:09:01+00:00", "updated_at": "2023-05-16T15:09:02+00:00", "name": + "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+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": @@ -284,18 +296,16 @@ 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": "6.07000", "charged": true, - "refunded": false}], "id": "shp_9543343d31b44ec4863e3679570d73c2", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_389b05acbbff44bfa104ee937676bace", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8119' + - '8656' content-type: - application/json; charset=utf-8 - etag: - - W/"12d69ff56c9b46e73ebb342e9b694ba6" expires: - '0' pragma: @@ -313,27 +323,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e364639c8fe786a737002008d1 + - 88ad7b8f656663dfe78a97f0003e3d9d x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.152610' + - '0.136542' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"refund": {"carrier": "USPS", "tracking_codes": ["9400100104262210314976"]}}' + body: '{"refund": {"carrier": "USPS", "tracking_codes": ["9400100105442285865323"]}}' headers: Accept: - '*/*' @@ -353,10 +363,10 @@ interactions: uri: https://api.easypost.com/v2/refunds response: body: - string: '[{"id": "rfnd_bad47afb0a9743b6acbf1ecfad761aa5", "object": "Refund", - "created_at": "2023-05-16T15:09:03Z", "updated_at": "2023-05-16T15:09:03Z", - "tracking_code": "9400100104262210314976", "confirmation_number": null, "status": - "submitted", "carrier": "USPS", "shipment_id": "shp_9543343d31b44ec4863e3679570d73c2"}]' + string: '[{"id": "rfnd_88027fb7873d4632b55b7d9eb370ce5f", "object": "Refund", + "created_at": "2023-11-28T22:04:15Z", "updated_at": "2023-11-28T22:04:15Z", + "tracking_code": "9400100105442285865323", "confirmation_number": null, "status": + "submitted", "carrier": "USPS", "shipment_id": "shp_389b05acbbff44bfa104ee937676bace"}]' headers: cache-control: - private, no-cache, no-store @@ -364,8 +374,6 @@ interactions: - '297' content-type: - application/json; charset=utf-8 - etag: - - W/"413dcb5155378096d15b1f16151671c3" expires: - '0' pragma: @@ -378,25 +386,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e364639c8fe786a737002008e0 + - 88ad7b8f656663dfe78a97f0003e3e20 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.064801' + - '0.090559' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 index b6c1498a..29181c9a 100644 --- a/tests/cassettes/test_retrieve_estimated_delivery_date.yaml +++ b/tests/cassettes/test_retrieve_estimated_delivery_date.yaml @@ -6,7 +6,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"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}}, "carbon_offset": false}' + 15.4}}}' headers: Accept: - '*/*' @@ -15,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '520' + - '496' Content-Type: - application/json authorization: @@ -26,85 +26,100 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-04-26T17:24:23Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2023-11-28T22:10:30Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-04-26T17:24:24Z", "batch_id": null, "batch_status": + null, "updated_at": "2023-11-28T22:10:31Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_301dd00ae45711edb6c9ac1f6bc7b362", "object": "Address", "created_at": - "2023-04-26T17:24:23+00:00", "updated_at": "2023-04-26T17:24:23+00:00", "name": + "adr_f169d0918e3a11eea0813cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:10:30+00:00", "updated_at": "2023-11-28T22:10: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": null, "parcel": {"id": "prcl_90578957d2ec4cb9970bde9a47848294", - "object": "Parcel", "created_at": "2023-04-26T17:24:23Z", "updated_at": "2023-04-26T17:24:23Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_be4399c1a66940a0bdb3181dd1dc351b", + "object": "Parcel", "created_at": "2023-11-28T22:10:30Z", "updated_at": "2023-11-28T22:10:30Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_9ecc079d24f24ad491f4f3fe976c744b", - "object": "Rate", "created_at": "2023-04-26T17:24:24Z", "updated_at": "2023-04-26T17:24:24Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_1afa9ef87b38400fb36f536c94103626", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_61603072e1e24bc9a65babb125691d01", - "object": "Rate", "created_at": "2023-04-26T17:24:24Z", "updated_at": "2023-04-26T17:24:24Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "7.75", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_1afa9ef87b38400fb36f536c94103626", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_739ce4e66e0947b4932f8a58a33147ad", - "object": "Rate", "created_at": "2023-04-26T17:24:24Z", "updated_at": "2023-04-26T17:24:24Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.58", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_1afa9ef87b38400fb36f536c94103626", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_446b930d2aa74a44a15076a787a73f79", - "object": "Rate", "created_at": "2023-04-26T17:24:24Z", "updated_at": "2023-04-26T17:24:24Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_fccd2abdf2324cf9bbf43299c9d005f9", + "object": "Rate", "created_at": "2023-11-28T22:10:31Z", "updated_at": "2023-11-28T22:10:31Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_d7e364778ec44a6da37e617e5285aaf7", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_392b84979edf44fe9702cabd1a19f4d0", + "object": "Rate", "created_at": "2023-11-28T22:10:31Z", "updated_at": "2023-11-28T22:10:31Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_d7e364778ec44a6da37e617e5285aaf7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_b232baab37914941b0f3314a780aba4e", "object": "Rate", "created_at": + "2023-11-28T22:10:31Z", "updated_at": "2023-11-28T22:10:31Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_1afa9ef87b38400fb36f536c94103626", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_d7e364778ec44a6da37e617e5285aaf7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_c01a1fbe51e9462da3d91a5f5c96ac97", "object": "Rate", "created_at": + "2023-11-28T22:10:31Z", "updated_at": "2023-11-28T22:10:31Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_d7e364778ec44a6da37e617e5285aaf7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_5021b4da9be645e49a72190327e4247e", "object": "Rate", "created_at": + "2023-11-28T22:10:31Z", "updated_at": "2023-11-28T22:10:31Z", "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", + "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_d7e364778ec44a6da37e617e5285aaf7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_301b2d5be45711ed9d33ac1f6bc7bdc6", "object": - "Address", "created_at": "2023-04-26T17:24:23+00:00", "updated_at": "2023-04-26T17:24:23+00:00", + null, "to_address": {"id": "adr_f16734208e3a11eeaf20ac1f6bc53342", "object": + "Address", "created_at": "2023-11-28T22:10:30+00:00", "updated_at": "2023-11-28T22:10: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_301dd00ae45711edb6c9ac1f6bc7b362", - "object": "Address", "created_at": "2023-04-26T17:24:23+00:00", "updated_at": - "2023-04-26T17:24:23+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_f169d0918e3a11eea0813cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:10:30+00:00", "updated_at": + "2023-11-28T22:10: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_301b2d5be45711ed9d33ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-04-26T17:24:23+00:00", "updated_at": "2023-04-26T17:24:23+00:00", "name": + "adr_f16734208e3a11eeaf20ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:10:30+00:00", "updated_at": "2023-11-28T22:10: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_1afa9ef87b38400fb36f536c94103626", + {}}, "forms": [], "fees": [], "id": "shp_d7e364778ec44a6da37e617e5285aaf7", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5026' + - '6394' content-type: - application/json; charset=utf-8 - etag: - - W/"6e6b698446f9bd489232df70f9f05dff" expires: - '0' location: - - /api/v2/shipments/shp_1afa9ef87b38400fb36f536c94103626 + - /api/v2/shipments/shp_d7e364778ec44a6da37e617e5285aaf7 pragma: - no-cache referrer-policy: @@ -120,20 +135,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - e7308c8064495e47e7873cc400192f63 + - 88ad7b9265666556e78a9fab003fca20 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq a29e4ad05c + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.712924' + - '0.752599' x-version-label: - - easypost-202304252326-79950b6035-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -153,58 +168,66 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_1afa9ef87b38400fb36f536c94103626/smartrate/delivery_date?planned_ship_date=2023-04-28 + uri: https://api.easypost.com/v2/shipments/shp_d7e364778ec44a6da37e617e5285aaf7/smartrate/delivery_date?planned_ship_date=2023-12-28 response: body: string: '{"rates": [{"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": - 1, "percentile_75": 3, "percentile_85": 3, "percentile_90": 3, "percentile_95": - 3, "percentile_97": 3, "percentile_99": 5}, "easypost_estimated_delivery_date": - "2023-04-29", "planned_ship_date": "2023-04-28"}, "rate": {"carrier": "USPS", + 2, "percentile_75": 5, "percentile_85": 5, "percentile_90": 5, "percentile_95": + 5, "percentile_97": 5, "percentile_99": 7}, "easypost_estimated_delivery_date": + "2023-12-30", "planned_ship_date": "2023-12-28"}, "rate": {"carrier": "USPS", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": + "2023-11-28T22:10:31Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_fccd2abdf2324cf9bbf43299c9d005f9", + "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", + "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "GroundAdvantage", + "shipment_id": "shp_d7e364778ec44a6da37e617e5285aaf7", "updated_at": "2023-11-28T22:10:31Z"}}, + {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 2, + "percentile_75": 5, "percentile_85": 5, "percentile_90": 5, "percentile_95": + 5, "percentile_97": 5, "percentile_99": 7}, "easypost_estimated_delivery_date": + "2023-12-30", "planned_ship_date": "2023-12-28"}, "rate": {"carrier": "USPS", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": + "2023-11-28T22:10:31Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_392b84979edf44fe9702cabd1a19f4d0", + "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", + "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", + "shipment_id": "shp_d7e364778ec44a6da37e617e5285aaf7", "updated_at": "2023-11-28T22:10:31Z"}}, + {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 2, + "percentile_75": 5, "percentile_85": 5, "percentile_90": 5, "percentile_95": + 5, "percentile_97": 5, "percentile_99": 7}, "easypost_estimated_delivery_date": + "2023-12-30", "planned_ship_date": "2023-12-28"}, "rate": {"carrier": "USPS", + "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": + "2023-11-28T22:10:31Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_b232baab37914941b0f3314a780aba4e", + "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", + "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "ParcelSelect", + "shipment_id": "shp_d7e364778ec44a6da37e617e5285aaf7", "updated_at": "2023-11-28T22:10:31Z"}}, + {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 1, + "percentile_75": 2, "percentile_85": 5, "percentile_90": 5, "percentile_95": + 5, "percentile_97": 5, "percentile_99": 7}, "easypost_estimated_delivery_date": + "2023-12-29", "planned_ship_date": "2023-12-28"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": - "2023-04-26T17:24:24Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": null, "est_delivery_days": null, "id": "rate_9ecc079d24f24ad491f4f3fe976c744b", + "2023-11-28T22:10:31Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": null, "est_delivery_days": null, "id": "rate_c01a1fbe51e9462da3d91a5f5c96ac97", "list_currency": "USD", "list_rate": 31.25, "mode": "test", "object": "Rate", "rate": 31.25, "retail_currency": "USD", "retail_rate": 35.8, "service": "Express", - "shipment_id": "shp_1afa9ef87b38400fb36f536c94103626", "updated_at": "2023-04-26T17:24:24Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 3, - "percentile_75": 3, "percentile_85": 3, "percentile_90": 3, "percentile_95": - 3, "percentile_97": 4, "percentile_99": 5}, "easypost_estimated_delivery_date": - "2023-05-01", "planned_ship_date": "2023-04-28"}, "rate": {"carrier": "USPS", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": - "2023-04-26T17:24:24Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": 5, "est_delivery_days": 5, "id": "rate_61603072e1e24bc9a65babb125691d01", - "list_currency": "USD", "list_rate": 7.75, "mode": "test", "object": "Rate", - "rate": 7.75, "retail_currency": "USD", "retail_rate": 7.75, "service": "ParcelSelect", - "shipment_id": "shp_1afa9ef87b38400fb36f536c94103626", "updated_at": "2023-04-26T17:24:24Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 3, - "percentile_75": 3, "percentile_85": 3, "percentile_90": 3, "percentile_95": - 3, "percentile_97": 3, "percentile_99": 5}, "easypost_estimated_delivery_date": - "2023-05-01", "planned_ship_date": "2023-04-28"}, "rate": {"carrier": "USPS", + "shipment_id": "shp_d7e364778ec44a6da37e617e5285aaf7", "updated_at": "2023-11-28T22:10:31Z"}}, + {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 2, + "percentile_75": 5, "percentile_85": 5, "percentile_90": 5, "percentile_95": + 5, "percentile_97": 5, "percentile_99": 7}, "easypost_estimated_delivery_date": + "2023-12-30", "planned_ship_date": "2023-12-28"}, "rate": {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": - "2023-04-26T17:24:24Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_739ce4e66e0947b4932f8a58a33147ad", + "2023-11-28T22:10:31Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": + false, "delivery_days": 2, "est_delivery_days": 2, "id": "rate_5021b4da9be645e49a72190327e4247e", "list_currency": "USD", "list_rate": 8.24, "mode": "test", "object": "Rate", - "rate": 7.58, "retail_currency": "USD", "retail_rate": 10.2, "service": "Priority", - "shipment_id": "shp_1afa9ef87b38400fb36f536c94103626", "updated_at": "2023-04-26T17:24:24Z"}}, - {"easypost_time_in_transit_data": {"days_in_transit": {"percentile_50": 3, - "percentile_75": 3, "percentile_85": 3, "percentile_90": 3, "percentile_95": - 3, "percentile_97": 3, "percentile_99": 5}, "easypost_estimated_delivery_date": - "2023-05-01", "planned_ship_date": "2023-04-28"}, "rate": {"carrier": "USPS", - "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": - "2023-04-26T17:24:24Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": - false, "delivery_days": 3, "est_delivery_days": 3, "id": "rate_446b930d2aa74a44a15076a787a73f79", - "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 6.07, "retail_currency": "USD", "retail_rate": 6.07, "service": "First", - "shipment_id": "shp_1afa9ef87b38400fb36f536c94103626", "updated_at": "2023-04-26T17:24:24Z"}}]}' + "rate": 6.95, "retail_currency": "USD", "retail_rate": 10.2, "service": "Priority", + "shipment_id": "shp_d7e364778ec44a6da37e617e5285aaf7", "updated_at": "2023-11-28T22:10:31Z"}}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '3115' + - '3893' content-type: - application/json; charset=utf-8 - etag: - - W/"12ebf01d89c011646e2cba6bab592b58" expires: - '0' pragma: @@ -222,20 +245,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - e7308c8064495e48e7873cc400192fd3 + - 88ad7b9265666557e78a9fab003fcb78 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq a29e4ad05c + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.156419' + - '0.139837' x-version-label: - - easypost-202304252326-79950b6035-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_scanform_all.yaml b/tests/cassettes/test_scanform_all.yaml index 0501fda0..a3df910d 100644 --- a/tests/cassettes/test_scanform_all.yaml +++ b/tests/cassettes/test_scanform_all.yaml @@ -16,49 +16,36 @@ interactions: uri: https://api.easypost.com/v2/scan_forms?page_size=5 response: body: - string: '{"scan_forms": [{"id": "sf_e797f779358a41eeacdf12f050f4f736", "object": - "ScanForm", "created_at": "2023-05-12T19:37:53Z", "updated_at": "2023-05-12T19:37:54Z", - "tracking_codes": ["9400100104262209121370"], "address": {"id": "adr_76d1aec4f0fc11edb6f73cecef1b359e", - "object": "Address", "created_at": "2023-05-12T19:37:43+00:00", "updated_at": - "2023-05-12T19:37:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"scan_forms": [{"id": "sf_3c5c5b35c1144bfa9c39bd22b52fce2d", "object": + "ScanForm", "created_at": "2023-11-28T22:03:08Z", "updated_at": "2023-11-28T22:03:08Z", + "tracking_codes": ["9400100105442285862681"], "address": {"id": "adr_e91b8c6b8e3911ee88f6ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:07+00:00", "updated_at": + "2023-11-28T22:03: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": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20230512/96fdbb0435bf46028353bb4bc0e6589e.pdf", - "form_file_type": null, "batch_id": "batch_93bbd242fffd456899d0874728667ca6", - "confirmation": null}, {"id": "sf_4bc2f73b448747db89c9023c0dcfc53a", "object": - "ScanForm", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "tracking_codes": ["9400100104262210322148"], "address": {"id": "adr_4af61f14f3ff11edb181ac1f6bc72124", - "object": "Address", "created_at": "2023-05-16T15:35:31+00:00", "updated_at": - "2023-05-16T15:35:31+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8240f3ff9915040b8ad655e32c484d477.pdf", + "form_file_type": null, "batch_id": "batch_5f9ca1835aab47edbd73da98526f75c0", + "confirmation": null}, {"id": "sf_5dc8f81867614bec9b3c7c3278d521c5", "object": + "ScanForm", "created_at": "2023-11-28T22:03:10Z", "updated_at": "2023-11-28T22:03:10Z", + "tracking_codes": ["9400100105442285862766"], "address": {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:08+00:00", "updated_at": + "2023-11-28T22:03:08+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/20230516/5b62bfdffb694512ac744379dac2b304.pdf", - "form_file_type": null, "batch_id": "batch_1556ea8d81c94d07911dd0eab99ec9fe", - "confirmation": null}, {"id": "sf_3e24eda871db4cbf9af092c5399f5adc", "object": - "ScanForm", "created_at": "2023-05-16T15:35:34Z", "updated_at": "2023-05-16T15:35:35Z", - "tracking_codes": ["9400100104262210322155"], "address": {"id": "adr_4c10c15ef3ff11edbb43ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T15:35:33+00:00", "updated_at": - "2023-05-16T15:35:33+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/20230516/2244428c081045f9b846b5a3cc89b2fd.pdf", - "form_file_type": null, "batch_id": "batch_0897e22d382a43c4910829b48a77ed84", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8ef6b7a1c3e7c449fa4374c55428bcfe1.pdf", + "form_file_type": null, "batch_id": "batch_15e72ce6345940cbada8abfaf380f37b", "confirmation": null}], "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '2745' + - '1845' content-type: - application/json; charset=utf-8 - etag: - - W/"eea309b1d9ffb70f9747250c82dfbfbe" expires: - '0' pragma: @@ -76,20 +63,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e036463a2c7e786b3dc002511da + - ae35d0b66566639fe78a978c003e74da x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.118964' + - '0.145189' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 89d89ea4..ce2b8102 100644 --- a/tests/cassettes/test_scanform_create.yaml +++ b/tests/cassettes/test_scanform_create.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T15:35:31Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:03:07Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210322148", "updated_at": "2023-05-16T15:35:32Z", "batch_id": + "9400100105442285862681", "updated_at": "2023-11-28T22:03:07Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_4af61f14f3ff11edb181ac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T15:35:31+00:00", "updated_at": "2023-05-16T15:35:31+00:00", "name": + {"id": "adr_e91b8c6b8e3911ee88f6ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:03:07+00:00", "updated_at": "2023-11-28T22:03: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_97a9b127466144618d467aa475905b33", - "object": "Parcel", "created_at": "2023-05-16T15:35:31Z", "updated_at": "2023-05-16T15:35:31Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_8ea8d4a879fe4aa594ccc47cab13ae7a", + "object": "Parcel", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_99b94a85b2234933a2e3f2d90752e96a", - "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T15:35:32Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6b83022b69f6419db90e7a63eda23e1d", + "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03: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/20230516/ceff03b2653c4b36850eb2081fadeb7f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8e7f13c1c311b49399defba60e68b3525.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_264cf6b604004861aec1bdfe9c752977", "object": - "Rate", "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", + null}, "rates": [{"id": "rate_cf35b9fa5f8243419e9d99daf91c3e7a", "object": + "Rate", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_ecb4968651e7484eabaed3825d1100ed", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ab93efcacbc7424e8c19a4612902c982", - "object": "Rate", "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_ecb4968651e7484eabaed3825d1100ed", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_142b77c6d9e9485e865fecb816825970", - "object": "Rate", "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null, "shipment_id": "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0370cd6af9b7441189ff1425ab0d3849", + "object": "Rate", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ecb4968651e7484eabaed3825d1100ed", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_159ad3a23fa641dbb2f33bb9bfbbafdc", - "object": "Rate", "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1f4c4fe7c2a0450fb23974899bf0d758", + "object": "Rate", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9be88ec5a3bf4475a6bc3e3af45f618c", + "object": "Rate", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ecb4968651e7484eabaed3825d1100ed", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_159ad3a23fa641dbb2f33bb9bfbbafdc", - "object": "Rate", "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_93e91a08a94641408f8d9ba08ebdab5a", "object": "Rate", "created_at": + "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ecb4968651e7484eabaed3825d1100ed", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_73bffbfc8c0a4eefab463dd925395cfe", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210322148", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T15:35:32Z", "updated_at": - "2023-05-16T15:35:32Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_ecb4968651e7484eabaed3825d1100ed", "carrier": "USPS", + "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_9be88ec5a3bf4475a6bc3e3af45f618c", + "object": "Rate", "created_at": "2023-11-28T22:03:07Z", "updated_at": "2023-11-28T22:03:07Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_deab6ef3e7864284ad8e0f5d1b4ef848", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285862681", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:03:07Z", "updated_at": + "2023-11-28T22:03:07Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_3b18a7335d8144e8951c37fb8e9a3828", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzczYmZmYmZjOGMwYTRlZWZhYjQ2M2RkOTI1Mzk1Y2Zl"}, - "to_address": {"id": "adr_4af3f434f3ff11edb17dac1f6bc72124", "object": "Address", - "created_at": "2023-05-16T15:35:31+00:00", "updated_at": "2023-05-16T15:35:32+00:00", + "https://track.easypost.com/djE6dHJrX2RlYWI2ZWYzZTc4NjQyODRhZDhlMGY1ZDFiNGVmODQ4"}, + "to_address": {"id": "adr_e91979be8e3911ee88eeac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T22:03:07+00:00", "updated_at": "2023-11-28T22:03:07+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_4af61f14f3ff11edb181ac1f6bc72124", - "object": "Address", "created_at": "2023-05-16T15:35:31+00:00", "updated_at": - "2023-05-16T15:35:31+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_e91b8c6b8e3911ee88f6ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:07+00:00", "updated_at": + "2023-11-28T22:03: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_4af3f434f3ff11edb17dac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T15:35:31+00:00", "updated_at": "2023-05-16T15:35:32+00:00", "name": + "adr_e91979be8e3911ee88eeac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:03:07+00:00", "updated_at": "2023-11-28T22:03: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": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_ecb4968651e7484eabaed3825d1100ed", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_3b18a7335d8144e8951c37fb8e9a3828", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"780f5f44d89d99eb296ade65940a69d6" expires: - '0' location: - - /api/v2/shipments/shp_ecb4968651e7484eabaed3825d1100ed + - /api/v2/shipments/shp_3b18a7335d8144e8951c37fb8e9a3828 pragma: - no-cache referrer-policy: @@ -146,27 +151,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e046463a2c3e786b3da00251097 + - ae35d0b36566639ae78a978a003e6f76 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '1.196224' + - '1.024325' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"scan_form": {"shipment": [{"id": "shp_ecb4968651e7484eabaed3825d1100ed"}]}}' + body: '{"scan_form": {"shipment": [{"id": "shp_3b18a7335d8144e8951c37fb8e9a3828"}]}}' headers: Accept: - '*/*' @@ -186,27 +191,25 @@ interactions: uri: https://api.easypost.com/v2/scan_forms response: body: - string: '{"id": "sf_4bc2f73b448747db89c9023c0dcfc53a", "object": "ScanForm", - "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "tracking_codes": ["9400100104262210322148"], "address": {"id": "adr_4af61f14f3ff11edb181ac1f6bc72124", - "object": "Address", "created_at": "2023-05-16T15:35:31+00:00", "updated_at": - "2023-05-16T15:35:31+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"id": "sf_3c5c5b35c1144bfa9c39bd22b52fce2d", "object": "ScanForm", + "created_at": "2023-11-28T22:03:08Z", "updated_at": "2023-11-28T22:03:08Z", + "tracking_codes": ["9400100105442285862681"], "address": {"id": "adr_e91b8c6b8e3911ee88f6ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:07+00:00", "updated_at": + "2023-11-28T22:03: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": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20230516/5b62bfdffb694512ac744379dac2b304.pdf", - "form_file_type": null, "batch_id": "batch_1556ea8d81c94d07911dd0eab99ec9fe", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8240f3ff9915040b8ad655e32c484d477.pdf", + "form_file_type": null, "batch_id": "batch_5f9ca1835aab47edbd73da98526f75c0", "confirmation": null}' headers: cache-control: - private, no-cache, no-store content-length: - - '903' + - '905' content-type: - application/json; charset=utf-8 - etag: - - W/"5ee033e6280694807472ab060a3d0f0a" expires: - '0' pragma: @@ -224,20 +227,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e046463a2c5e786b3da00251108 + - ae35d0b36566639ce78a978a003e7109 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.314620' + - '0.358192' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 d95d445c..e84a1fa0 100644 --- a/tests/cassettes/test_scanform_get_next_page.yaml +++ b/tests/cassettes/test_scanform_get_next_page.yaml @@ -16,49 +16,36 @@ interactions: uri: https://api.easypost.com/v2/scan_forms?page_size=5 response: body: - string: '{"scan_forms": [{"id": "sf_e797f779358a41eeacdf12f050f4f736", "object": - "ScanForm", "created_at": "2023-05-12T19:37:53Z", "updated_at": "2023-05-12T19:37:54Z", - "tracking_codes": ["9400100104262209121370"], "address": {"id": "adr_76d1aec4f0fc11edb6f73cecef1b359e", - "object": "Address", "created_at": "2023-05-12T19:37:43+00:00", "updated_at": - "2023-05-12T19:37:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"scan_forms": [{"id": "sf_3c5c5b35c1144bfa9c39bd22b52fce2d", "object": + "ScanForm", "created_at": "2023-11-28T22:03:08Z", "updated_at": "2023-11-28T22:03:08Z", + "tracking_codes": ["9400100105442285862681"], "address": {"id": "adr_e91b8c6b8e3911ee88f6ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:07+00:00", "updated_at": + "2023-11-28T22:03: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": {}}, "status": "created", "message": - null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20230512/96fdbb0435bf46028353bb4bc0e6589e.pdf", - "form_file_type": null, "batch_id": "batch_93bbd242fffd456899d0874728667ca6", - "confirmation": null}, {"id": "sf_4bc2f73b448747db89c9023c0dcfc53a", "object": - "ScanForm", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "tracking_codes": ["9400100104262210322148"], "address": {"id": "adr_4af61f14f3ff11edb181ac1f6bc72124", - "object": "Address", "created_at": "2023-05-16T15:35:31+00:00", "updated_at": - "2023-05-16T15:35:31+00:00", "name": "Elizabeth Swan", "company": null, "street1": + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8240f3ff9915040b8ad655e32c484d477.pdf", + "form_file_type": null, "batch_id": "batch_5f9ca1835aab47edbd73da98526f75c0", + "confirmation": null}, {"id": "sf_5dc8f81867614bec9b3c7c3278d521c5", "object": + "ScanForm", "created_at": "2023-11-28T22:03:10Z", "updated_at": "2023-11-28T22:03:10Z", + "tracking_codes": ["9400100105442285862766"], "address": {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:08+00:00", "updated_at": + "2023-11-28T22:03:08+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/20230516/5b62bfdffb694512ac744379dac2b304.pdf", - "form_file_type": null, "batch_id": "batch_1556ea8d81c94d07911dd0eab99ec9fe", - "confirmation": null}, {"id": "sf_3e24eda871db4cbf9af092c5399f5adc", "object": - "ScanForm", "created_at": "2023-05-16T15:35:34Z", "updated_at": "2023-05-16T15:35:35Z", - "tracking_codes": ["9400100104262210322155"], "address": {"id": "adr_4c10c15ef3ff11edbb43ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T15:35:33+00:00", "updated_at": - "2023-05-16T15:35:33+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/20230516/2244428c081045f9b846b5a3cc89b2fd.pdf", - "form_file_type": null, "batch_id": "batch_0897e22d382a43c4910829b48a77ed84", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8ef6b7a1c3e7c449fa4374c55428bcfe1.pdf", + "form_file_type": null, "batch_id": "batch_15e72ce6345940cbada8abfaf380f37b", "confirmation": null}], "has_more": false}' headers: cache-control: - private, no-cache, no-store content-length: - - '2745' + - '1845' content-type: - application/json; charset=utf-8 - etag: - - W/"eea309b1d9ffb70f9747250c82dfbfbe" expires: - '0' pragma: @@ -76,20 +63,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e016463a2c7e786b3dd002511ff + - ae35d0b96566639fe78a978d003e7588 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.042839' + - '0.053858' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 5b47aeda..4fbe5f23 100644 --- a/tests/cassettes/test_scanform_retrieve.yaml +++ b/tests/cassettes/test_scanform_retrieve.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T15:35:33Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:03:08Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210322155", "updated_at": "2023-05-16T15:35:34Z", "batch_id": + "9400100105442285862766", "updated_at": "2023-11-28T22:03:09Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_4c10c15ef3ff11edbb43ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T15:35:33+00:00", "updated_at": "2023-05-16T15:35:33+00:00", "name": + {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:03:08+00:00", "updated_at": "2023-11-28T22:03:08+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_f90962fc4acd47b9b5008e7f08ba33fc", - "object": "Parcel", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_48bf017aed174b99baaabac1ef33c392", + "object": "Parcel", "created_at": "2023-11-28T22:03:08Z", "updated_at": "2023-11-28T22:03:08Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7b6c47a83d794f24b88d7a10b1fd332d", - "created_at": "2023-05-16T15:35:34Z", "updated_at": "2023-05-16T15:35:34Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T15:35:34Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_161393c8e85e43f8b8090064263276f3", + "created_at": "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:09Z", "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/20230516/ccc578993f1e4d41a2f46a2721a56982.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e853e39d8d485a49328b0d5a2058a03d24.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_2779ff61f3dc4f63a486b6d6f1a04c6a", "object": - "Rate", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_e75df861742345299c7c79743f8d40e8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8b1babb654e74212ad25c8fcffe8af62", - "object": "Rate", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_e75df861742345299c7c79743f8d40e8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8969a7b87c9e451a888226dc9deed52b", - "object": "Rate", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_266a2b59f55c4c249eea34747ca3d85b", "object": + "Rate", "created_at": "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_e75df861742345299c7c79743f8d40e8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_04d55ba308964270bca1ff2fbd98ecd9", - "object": "Rate", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9181631826794a97bbd9a35fffedfd4a", + "object": "Rate", "created_at": "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1800001cfb0e4792a89cede0281c6c9c", + "object": "Rate", "created_at": "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_e75df861742345299c7c79743f8d40e8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_04d55ba308964270bca1ff2fbd98ecd9", - "object": "Rate", "created_at": "2023-05-16T15:35:34Z", "updated_at": "2023-05-16T15:35:34Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_256dbfd84ea14c41a68ed0cd3418c648", "object": "Rate", "created_at": + "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_e75df861742345299c7c79743f8d40e8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_b050765bf01c47119b433af5f2f5fafc", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210322155", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T15:35:34Z", "updated_at": - "2023-05-16T15:35:34Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_e75df861742345299c7c79743f8d40e8", "carrier": "USPS", + "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_3cd2509052804549bcfc6ad64b702271", "object": "Rate", "created_at": + "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_1800001cfb0e4792a89cede0281c6c9c", + "object": "Rate", "created_at": "2023-11-28T22:03:09Z", "updated_at": "2023-11-28T22:03:09Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_a4c6e6afbb634ad1a9d1a6728391cc4f", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285862766", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:03:09Z", "updated_at": + "2023-11-28T22:03:09Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_ee741f4b8f924740a0c5f7266556e64f", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2IwNTA3NjViZjAxYzQ3MTE5YjQzM2FmNWYyZjVmYWZj"}, - "to_address": {"id": "adr_4c0e7406f3ff11eda517ac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-16T15:35:33+00:00", "updated_at": "2023-05-16T15:35:33+00:00", + "https://track.easypost.com/djE6dHJrX2E0YzZlNmFmYmI2MzRhZDFhOWQxYTY3MjgzOTFjYzRm"}, + "to_address": {"id": "adr_ea3eb67c8e3911ee861bac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:03:08+00:00", "updated_at": "2023-11-28T22:03:09+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_4c10c15ef3ff11edbb43ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T15:35:33+00:00", "updated_at": - "2023-05-16T15:35:33+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:08+00:00", "updated_at": + "2023-11-28T22:03:08+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_4c0e7406f3ff11eda517ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T15:35:33+00:00", "updated_at": "2023-05-16T15:35:33+00:00", "name": + "adr_ea3eb67c8e3911ee861bac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:03:08+00:00", "updated_at": "2023-11-28T22:03:09+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_e75df861742345299c7c79743f8d40e8", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_ee741f4b8f924740a0c5f7266556e64f", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"527b77547314acf0a4edfe7c70332338" expires: - '0' location: - - /api/v2/shipments/shp_e75df861742345299c7c79743f8d40e8 + - /api/v2/shipments/shp_ee741f4b8f924740a0c5f7266556e64f pragma: - no-cache referrer-policy: @@ -146,27 +151,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e066463a2c5e786b3db00251136 + - ae35d0b96566639ce78a978b003e7208 x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.993849' + - '1.006833' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"scan_form": {"shipment": [{"id": "shp_e75df861742345299c7c79743f8d40e8"}]}}' + body: '{"scan_form": {"shipment": [{"id": "shp_ee741f4b8f924740a0c5f7266556e64f"}]}}' headers: Accept: - '*/*' @@ -186,27 +191,25 @@ interactions: uri: https://api.easypost.com/v2/scan_forms response: body: - string: '{"id": "sf_3e24eda871db4cbf9af092c5399f5adc", "object": "ScanForm", - "created_at": "2023-05-16T15:35:34Z", "updated_at": "2023-05-16T15:35:35Z", - "tracking_codes": ["9400100104262210322155"], "address": {"id": "adr_4c10c15ef3ff11edbb43ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T15:35:33+00:00", "updated_at": - "2023-05-16T15:35:33+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"id": "sf_5dc8f81867614bec9b3c7c3278d521c5", "object": "ScanForm", + "created_at": "2023-11-28T22:03:10Z", "updated_at": "2023-11-28T22:03:10Z", + "tracking_codes": ["9400100105442285862766"], "address": {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:08+00:00", "updated_at": + "2023-11-28T22:03:08+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/20230516/2244428c081045f9b846b5a3cc89b2fd.pdf", - "form_file_type": null, "batch_id": "batch_0897e22d382a43c4910829b48a77ed84", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8ef6b7a1c3e7c449fa4374c55428bcfe1.pdf", + "form_file_type": null, "batch_id": "batch_15e72ce6345940cbada8abfaf380f37b", "confirmation": null}' headers: cache-control: - private, no-cache, no-store content-length: - - '903' + - '905' content-type: - application/json; charset=utf-8 - etag: - - W/"7c25106a05eb57e5d4b3abdb3964699d" expires: - '0' pragma: @@ -224,20 +227,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e066463a2c6e786b3db002511a2 + - ae35d0b96566639ee78a978b003e737c x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.278241' + - '0.446976' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -257,30 +260,28 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/scan_forms/sf_3e24eda871db4cbf9af092c5399f5adc + uri: https://api.easypost.com/v2/scan_forms/sf_5dc8f81867614bec9b3c7c3278d521c5 response: body: - string: '{"id": "sf_3e24eda871db4cbf9af092c5399f5adc", "object": "ScanForm", - "created_at": "2023-05-16T15:35:34Z", "updated_at": "2023-05-16T15:35:35Z", - "tracking_codes": ["9400100104262210322155"], "address": {"id": "adr_4c10c15ef3ff11edbb43ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T15:35:33+00:00", "updated_at": - "2023-05-16T15:35:33+00:00", "name": "Elizabeth Swan", "company": null, "street1": + string: '{"id": "sf_5dc8f81867614bec9b3c7c3278d521c5", "object": "ScanForm", + "created_at": "2023-11-28T22:03:10Z", "updated_at": "2023-11-28T22:03:10Z", + "tracking_codes": ["9400100105442285862766"], "address": {"id": "adr_ea42de328e3911ee89e0ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:08+00:00", "updated_at": + "2023-11-28T22:03:08+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/20230516/2244428c081045f9b846b5a3cc89b2fd.pdf", - "form_file_type": null, "batch_id": "batch_0897e22d382a43c4910829b48a77ed84", + null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20231128/e8ef6b7a1c3e7c449fa4374c55428bcfe1.pdf", + "form_file_type": null, "batch_id": "batch_15e72ce6345940cbada8abfaf380f37b", "confirmation": null}' headers: cache-control: - private, no-cache, no-store content-length: - - '903' + - '905' content-type: - application/json; charset=utf-8 - etag: - - W/"7c25106a05eb57e5d4b3abdb3964699d" expires: - '0' pragma: @@ -298,20 +299,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - de846e066463a2c7e786b3db002511c6 + - ae35d0b96566639ee78a978b003e744f x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb1nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.038477' + - '0.044670' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 3407ddf8..316e3ccd 100644 --- a/tests/cassettes/test_shipment_all.yaml +++ b/tests/cassettes/test_shipment_all.yaml @@ -16,123 +16,106 @@ interactions: uri: https://api.easypost.com/v2/shipments?page_size=5 response: body: - string: '{"shipments": [{"created_at": "2023-05-16T16:22:22Z", "is_return": - false, "messages": [{"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_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"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "delivered", "tracking_code": "9400100104262210337456", - "updated_at": "2023-05-16T16:26:43Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_582daaed61af4385af1ab69afbe4bf31", - "object": "CustomsInfo", "created_at": "2023-05-16T16:22:22Z", "updated_at": - "2023-05-16T16:22:22Z", "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_6533bee6732d4f66a02caa1e542d47f5", "object": "CustomsItem", - "created_at": "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", - "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_d62fb718f40511edb00fac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:22:22+00:00", "updated_at": "2023-05-16T16:22:22+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": + string: '{"shipments": [{"created_at": "2023-11-28T22:04:14Z", "is_return": + false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": + {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", + "tracking_code": "9400100105442285865323", "updated_at": "2023-11-28T22:07:49Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_112114878e3a11ee94313cecef1b359e", "object": + "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04: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_29edd0beab3f49e8ab6d4414e6f99d08", - "object": "Parcel", "created_at": "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c14abe119b4b47cca0eaffefa64ec311", + "object": "Parcel", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_e606290bed134b98895b549d34a38416", - "created_at": "2023-05-16T16:22:23Z", "updated_at": "2023-05-16T16:22:25Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:22:23Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f5482c5ee9694dc2aaf344cd96b84259", + "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:04:14Z", "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/20230516/a9d19fca8ee5479591a317db0a9fba3d.png", - "label_pdf_url": null, "label_zpl_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20230516/397e83243d82404f98cd64718d68b8cf.zpl", - "label_epl2_url": null, "label_file": null}, "rates": [{"id": "rate_a4152cbf9403418d808e0ba0c7e05370", - "object": "Rate", "created_at": "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_44dcc5ae48194b65aaaf88aa31e930f4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6320d535e8514d00826c079ae685e70d", - "object": "Rate", "created_at": "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8c8b82e8339f94b608d71b001b7c22082.png", + "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": + null}, "rates": [{"id": "rate_f7fc0d50e1c54a7f94d19d07d83527e2", "object": + "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_44dcc5ae48194b65aaaf88aa31e930f4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_49c195d15ca84b5ea9fb470985118855", - "object": "Rate", "created_at": "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f1537b73e7b445b86a0a34b139a0bbc", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_252d16804f6a4914990c7927640dc139", "object": "Rate", "created_at": + "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_44dcc5ae48194b65aaaf88aa31e930f4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_221474bca29a41ae9f57e21ce626c3ee", "object": "Rate", "created_at": - "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", "mode": "test", + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_550711dcaca14d96a311eedb314dbb30", "object": "Rate", "created_at": + "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_44dcc5ae48194b65aaaf88aa31e930f4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_49c195d15ca84b5ea9fb470985118855", - "object": "Rate", "created_at": "2023-05-16T16:22:23Z", "updated_at": "2023-05-16T16:22:23Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": "submitted", "scan_form": null, "selected_rate": {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_44dcc5ae48194b65aaaf88aa31e930f4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_1c2c2fcd8ebd43c2abb6e526a2b39760", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210337456", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:22:23Z", - "updated_at": "2023-05-16T16:25:24Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:25:24Z", "shipment_id": "shp_44dcc5ae48194b65aaaf88aa31e930f4", + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_f7228e9b353c4d22820956036c86fcc8", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285865323", "status": "delivered", + "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:04:15Z", + "updated_at": "2023-11-28T22:07:15Z", "signed_by": "John Tester", "weight": + null, "est_delivery_date": "2023-11-28T22:07:15Z", "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:25:24Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:07:15Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:02:24Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:44:15Z", "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": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:07:24Z", "source": "USPS", "carrier_code": null, "tracking_location": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2023-10-29T20:49:15Z", "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": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:43:24Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:34:24Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:14:24Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:24:24Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2023-10-30T22:25:15Z", "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": "2023-10-31T01:16:15Z", + "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": "2023-10-31T06:56:15Z", + "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": "2023-10-31T07:06:15Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:16:24Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:58:15Z", + "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, @@ -141,140 +124,148 @@ interactions: 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": "2023-04-19T06:16:24Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzFjMmMyZmNkOGViZDQzYzJhYmI2ZTUyNmEyYjM5NzYw"}, - "to_address": {"id": "adr_d62da3cff40511ed80c03cecef1b359e", "object": "Address", - "created_at": "2023-05-16T16:22:22+00:00", "updated_at": "2023-05-16T16:22: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"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_d62fb718f40511edb00fac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:22:22+00:00", "updated_at": "2023-05-16T16:22:22+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_d62da3cff40511ed80c03cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:22:22+00:00", "updated_at": "2023-05-16T16:22:23+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + null, "initial_delivery_attempt": "2023-10-31T11:58:15Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2Y3MjI4ZTliMzUzYzRkMjI4MjA5NTYwMzZjODZmY2M4"}, + "to_address": {"id": "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+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_112114878e3a11ee94313cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": + "2023-11-28T22:04: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_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+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": - "6.07000", "charged": true, "refunded": false}], "id": "shp_44dcc5ae48194b65aaaf88aa31e930f4", - "object": "Shipment"}, {"created_at": "2023-05-16T16:21:05Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + 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": "5.93000", "charged": true, + "refunded": false}], "id": "shp_389b05acbbff44bfa104ee937676bace", "object": + "Shipment"}, {"created_at": "2023-11-28T22:03:47Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100104262210337050", "updated_at": "2023-05-16T16:25:45Z", "batch_id": + "9400100105442285864357", "updated_at": "2023-11-28T22:07:56Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_a873eee6f40511ed9213ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T16:21:05+00:00", "updated_at": "2023-05-16T16:21:05+00:00", "name": + {"id": "adr_010914128e3a11ee9588ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:47+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_3fbe7beb867a4b4889872877a790d9c7", - "object": "Parcel", "created_at": "2023-05-16T16:21:05Z", "updated_at": "2023-05-16T16:21:05Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7c35fa7769554f47a95634acda4077f8", + "object": "Parcel", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_a97b131316284b03a144dc2bcf3a6f90", - "created_at": "2023-05-16T16:21:07Z", "updated_at": "2023-05-16T16:21:07Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:21:07Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_45b959020cec4c9382ea8582011ca45a", + "created_at": "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:03:48Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:48Z", "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/20230516/1b13765f6faf4183a9f65ee56be5309f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8f508ea72234845a19614dc7b80747ec6.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_671eafd934504d4f98a24c74399c4dee", "object": - "Rate", "created_at": "2023-05-16T16:21:06Z", "updated_at": "2023-05-16T16:21:06Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_d10fdd17bcc24102ba1a58b072850c64", "object": + "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8bdd5c31c7034669b0980cb1811a90b7", + "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_36d0b9cd93734d3fbcdeab3f3b14739e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_56f6cc7dd57348958884d0c2c418e76f", - "object": "Rate", "created_at": "2023-05-16T16:21:06Z", "updated_at": "2023-05-16T16:21:06Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c56f73ba16274416bc45a3f3f07c2729", + "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_63f66147f39d4a4ea83538d74e47d427", + "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_36d0b9cd93734d3fbcdeab3f3b14739e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_81ed2dfd0b384e9fb71a6f9040ad535a", "object": "Rate", "created_at": - "2023-05-16T16:21:06Z", "updated_at": "2023-05-16T16:21:06Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_36d0b9cd93734d3fbcdeab3f3b14739e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_55628363de664009aec93b85250179b7", "object": "Rate", "created_at": - "2023-05-16T16:21:06Z", "updated_at": "2023-05-16T16:21:06Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_36d0b9cd93734d3fbcdeab3f3b14739e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_56f6cc7dd57348958884d0c2c418e76f", - "object": "Rate", "created_at": "2023-05-16T16:21:07Z", "updated_at": "2023-05-16T16:21:07Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_7d0a166002ba410686b84e853c434f8d", "object": "Rate", "created_at": + "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_36d0b9cd93734d3fbcdeab3f3b14739e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_04e23cace8034b7695f49811da9a37cc", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210337050", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:21:07Z", - "updated_at": "2023-05-16T16:24:07Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:24:07Z", "shipment_id": "shp_36d0b9cd93734d3fbcdeab3f3b14739e", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:24:07Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:01:07Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:06:07Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:42:07Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:33:07Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:13:07Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:23:07Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_c56f73ba16274416bc45a3f3f07c2729", + "object": "Rate", "created_at": "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:03:48Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e91af09aa32d41f3ada2c0e30df3c4f0", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285864357", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:06:49Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:49Z", + "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2023-10-28T22:06:49Z", "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": "2023-10-29T10:43:49Z", "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": "2023-10-29T20:48:49Z", + "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": + "2023-10-30T22:24:49Z", "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": "2023-10-31T01:15:49Z", "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": "2023-10-31T06:55:49Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:15:07Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:49Z", + "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": "2023-10-31T11:57:49Z", + "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, @@ -283,9 +274,9 @@ interactions: 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": "2023-04-19T06:15:07Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzA0ZTIzY2FjZTgwMzRiNzY5NWY0OTgxMWRhOWEzN2Nj"}, - "to_address": {"id": "adr_a87158f6f40511ed9151ac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-16T16:21:05+00:00", "updated_at": "2023-05-16T16:21:06+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:49Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2U5MWFmMDlhYTMyZDQxZjNhZGEyYzBlMzBkZjNjNGYw"}, + "to_address": {"id": "adr_01063a4a8e3a11ee9586ac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:48+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": @@ -293,14 +284,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_a873eee6f40511ed9213ac1f6bc7bdc6", "object": - "Address", "created_at": "2023-05-16T16:21:05+00:00", "updated_at": "2023-05-16T16:21:05+00:00", + 4, "return_address": {"id": "adr_010914128e3a11ee9588ac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:47+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_a87158f6f40511ed9151ac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:21:05+00:00", "updated_at": "2023-05-16T16:21:06+00:00", + {}}, "buyer_address": {"id": "adr_01063a4a8e3a11ee9586ac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:48+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": @@ -310,101 +301,107 @@ 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.07000", "charged": true, "refunded": false}], "id": "shp_36d0b9cd93734d3fbcdeab3f3b14739e", - "object": "Shipment"}, {"created_at": "2023-05-16T16:21:03Z", "is_return": + "5.93000", "charged": true, "refunded": false}], "id": "shp_ad5656f792d74fe2862fe497c75c1eb5", + "object": "Shipment"}, {"created_at": "2023-11-28T22:03:45Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", - "tracking_code": "9400100104262210337043", "updated_at": "2023-05-16T16:25:44Z", + "tracking_code": "9400100105442285864272", "updated_at": "2023-11-28T22:08:03Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_a729f763f40511ed8c1aac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:21:03+00:00", "updated_at": "2023-05-16T16:21:03+00:00", + null, "from_address": {"id": "adr_000c6eb58e3a11ee94ffac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03: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_7046a1815ffc47d7b9d86055a62c4f37", - "object": "Parcel", "created_at": "2023-05-16T16:21:03Z", "updated_at": "2023-05-16T16:21:03Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_5180a2c1a65848329e6508142539ca9d", + "object": "Parcel", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9ceb180e70d54d7aa9b2776826753975", - "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:21:04Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_5dc65162838f41ae87512e6502ecf8bb", + "created_at": "2023-11-28T22:03:46Z", "updated_at": "2023-11-28T22:03:46Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03: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/20230516/92a7fa8af51548b5aed37a91569301e7.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8eca41f0a3e5743d7af07c30f4b27d774.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_814adb421bca4e6faebf760e90c224c3", "object": - "Rate", "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_2c633f7b7b42407e950ef0941c189e68", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5baf23f138e84074bd2c005e3b91a58d", - "object": "Rate", "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_2c633f7b7b42407e950ef0941c189e68", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_24bd73a25bae4892af25a5f8513e6ab0", - "object": "Rate", "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_2c633f7b7b42407e950ef0941c189e68", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1b7f764cffa6475c860423b54bc975da", - "object": "Rate", "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + null}, "rates": [{"id": "rate_f5688ca555764090a241d1d727ede196", "object": + "Rate", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_acee1b00d2ad4d4ab90867200fefc534", + "object": "Rate", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_2c633f7b7b42407e950ef0941c189e68", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_d8db44bccbcd497bb1262510cc379364", - "object": "Rate", "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e8b77d984d3a4221868fab95ca984af5", "object": "Rate", "created_at": + "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_1d09e97dd8894ba6bf7fca2299639a12", "object": "Rate", "created_at": + "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e3eab61c56b3487c875fccb3e4f3f7aa", "object": "Rate", "created_at": + "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", + "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_acee1b00d2ad4d4ab90867200fefc534", + "object": "Rate", "created_at": "2023-11-28T22:03:46Z", "updated_at": "2023-11-28T22:03:46Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_2c633f7b7b42407e950ef0941c189e68", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_8444901e342242c5809763e4130d1cd9", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210337043", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:21:04Z", - "updated_at": "2023-05-16T16:24:04Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:24:04Z", "shipment_id": "shp_2c633f7b7b42407e950ef0941c189e68", + "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_32eeddfa17d44033961783d1b52f5790", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285864272", "status": "delivered", + "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:46Z", + "updated_at": "2023-11-28T22:06:46Z", "signed_by": "John Tester", "weight": + null, "est_delivery_date": "2023-11-28T22:06:46Z", "shipment_id": "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:24:04Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:06:46Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:01:04Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:43:46Z", "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": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:06:04Z", "source": "USPS", "carrier_code": null, "tracking_location": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2023-10-29T20:48:46Z", "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": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:42:04Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:33:04Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:13:04Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:23:04Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2023-10-30T22:24:46Z", "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": "2023-10-31T01:15:46Z", + "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": "2023-10-31T06:55:46Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:15:04Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:46Z", + "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": "2023-10-31T11:57:46Z", + "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, @@ -413,9 +410,9 @@ interactions: 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": "2023-04-19T06:15:04Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzg0NDQ5MDFlMzQyMjQyYzU4MDk3NjNlNDEzMGQxY2Q5"}, - "to_address": {"id": "adr_a7273923f40511ed8c0fac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-16T16:21:03+00:00", "updated_at": "2023-05-16T16:21:03+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:46Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzMyZWVkZGZhMTdkNDQwMzM5NjE3ODNkMWI1MmY1Nzkw"}, + "to_address": {"id": "adr_000a6db08e3a11ee89b63cecef1b359e", "object": "Address", + "created_at": "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03:45+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", @@ -423,15 +420,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_a729f763f40511ed8c1aac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-16T16:21:03+00:00", "updated_at": - "2023-05-16T16:21:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_000c6eb58e3a11ee94ffac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T22:03:45+00:00", "updated_at": + "2023-11-28T22:03: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_a7273923f40511ed8c0fac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:21:03+00:00", "updated_at": "2023-05-16T16:21:03+00:00", "name": + "adr_000a6db08e3a11ee89b63cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03:45+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": @@ -440,102 +437,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": "6.07000", "charged": true, - "refunded": false}], "id": "shp_2c633f7b7b42407e950ef0941c189e68", "object": - "Shipment"}, {"created_at": "2023-05-16T16:21:01Z", "is_return": false, "messages": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_00f27ebd8cef472d9cd32faddbc7f445", "object": + "Shipment"}, {"created_at": "2023-11-28T22:03:43Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100104262210337036", "updated_at": "2023-05-16T16:25:46Z", "batch_id": + "9400100105442285864203", "updated_at": "2023-11-28T22:08:25Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_a63b8900f40511ed929fac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T16:21:01+00:00", "updated_at": "2023-05-16T16:21:01+00:00", "name": + {"id": "adr_ff0756f38e3911ee9e62ac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03: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_8ac4fabb4a8d40c7986154d37aa33350", - "object": "Parcel", "created_at": "2023-05-16T16:21:01Z", "updated_at": "2023-05-16T16:21:01Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_2e49adf3e35b46c48725a6ae20197f38", + "object": "Parcel", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f813dd28e3f94059aa447739dab01641", - "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:21:02Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_ac700070142c425aafad1497b357d4d0", + "created_at": "2023-11-28T22:03:44Z", "updated_at": "2023-11-28T22:03:44Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:44Z", "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/20230516/fbb018d920c9467b8efafbea99b7c189.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8fce3cc3313264a158f9ca2b86bca1e9b.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_24d6dd80f86b407e9d3db6c8fe8bf06f", "object": - "Rate", "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", + null}, "rates": [{"id": "rate_c7a5afeb9df745f2847d2f92918e9c9a", "object": + "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_ef08e475e134404e8870828a410b8325", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3799f23dff1c46c7b8e106c6d94d4640", - "object": "Rate", "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_ef08e475e134404e8870828a410b8325", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_62a7d8f9d7df4660b07fc1ec5e4bf63d", - "object": "Rate", "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null, "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a14e357b0cbb4203b1d4d2d448804ab6", + "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ef08e475e134404e8870828a410b8325", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c0107337ff73445889af69527f669b05", - "object": "Rate", "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_81c91d416993451991803e544bf4a5d9", + "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bc8c2bfec1bb47cd9ba910ecaf9274a2", + "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_233ffa51537f4c05bb9ff89be0477aa6", "object": "Rate", "created_at": + "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ef08e475e134404e8870828a410b8325", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_c0107337ff73445889af69527f669b05", - "object": "Rate", "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_bc8c2bfec1bb47cd9ba910ecaf9274a2", + "object": "Rate", "created_at": "2023-11-28T22:03:44Z", "updated_at": "2023-11-28T22:03:44Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ef08e475e134404e8870828a410b8325", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_069b6b07e43144a0aca47b6590e52652", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210337036", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:21:03Z", - "updated_at": "2023-05-16T16:24:03Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:24:03Z", "shipment_id": "shp_ef08e475e134404e8870828a410b8325", + "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_416f71cd090045c0a6590a8b6c4845b0", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285864203", "status": "delivered", + "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:44Z", + "updated_at": "2023-11-28T22:06:45Z", "signed_by": "John Tester", "weight": + null, "est_delivery_date": "2023-11-28T22:06:45Z", "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:24:03Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:06:45Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:01:03Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:43:45Z", "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": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:06:03Z", "source": "USPS", "carrier_code": null, "tracking_location": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2023-10-29T20:48:45Z", "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": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:42:03Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:33:03Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:13:03Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:23:03Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2023-10-30T22:24:45Z", "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": "2023-10-31T01:15:45Z", + "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": "2023-10-31T06:55:45Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:15:03Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:45Z", + "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": "2023-10-31T11:57:45Z", + "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, @@ -544,9 +547,9 @@ interactions: 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": "2023-04-19T06:15:03Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzA2OWI2YjA3ZTQzMTQ0YTBhY2E0N2I2NTkwZTUyNjUy"}, - "to_address": {"id": "adr_a638b4ebf40511ed87ecac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-16T16:21:01+00:00", "updated_at": "2023-05-16T16:21:02+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:45Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzQxNmY3MWNkMDkwMDQ1YzBhNjU5MGE4YjZjNDg0NWIw"}, + "to_address": {"id": "adr_ff04cc778e3911ee9e61ac1f6bc539ae", "object": "Address", + "created_at": "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03:44+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", @@ -554,15 +557,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_a63b8900f40511ed929fac1f6bc72124", - "object": "Address", "created_at": "2023-05-16T16:21:01+00:00", "updated_at": - "2023-05-16T16:21:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_ff0756f38e3911ee9e62ac1f6bc539ae", + "object": "Address", "created_at": "2023-11-28T22:03:43+00:00", "updated_at": + "2023-11-28T22:03: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": {}}, "buyer_address": {"id": - "adr_a638b4ebf40511ed87ecac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:21:01+00:00", "updated_at": "2023-05-16T16:21:02+00:00", "name": + "adr_ff04cc778e3911ee9e61ac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03:44+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": @@ -571,115 +574,121 @@ 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": "6.07000", "charged": true, - "refunded": false}, {"object": "Fee", "type": "CarbonOffsetFee", "amount": - "0.11000", "charged": true, "refunded": false}], "id": "shp_ef08e475e134404e8870828a410b8325", - "object": "Shipment"}, {"created_at": "2023-05-16T16:20:59Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "object": + "Shipment"}, {"created_at": "2023-11-28T22:03:41Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100104262210337029", "updated_at": "2023-05-16T16:25:09Z", "batch_id": + "9400100105442285864142", "updated_at": "2023-11-28T22:08:41Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_a4879739f40511ed96723cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:20:59+00:00", "updated_at": "2023-05-16T16:20:59+00:00", "name": + {"id": "adr_fdc32ad38e3911ee9351ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:41+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_6922e9cbc89b4f9fb8a7b3e080ecebc9", - "object": "Parcel", "created_at": "2023-05-16T16:20:59Z", "updated_at": "2023-05-16T16:20:59Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_fb734727e45d4b77bc13c3fc1030c723", + "object": "Parcel", "created_at": "2023-11-28T22:03:41Z", "updated_at": "2023-11-28T22:03:41Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6a53f92ccdfe4fe0848339a84afda561", - "created_at": "2023-05-16T16:21:00Z", "updated_at": "2023-05-16T16:21:01Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:21:00Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2fe5e816594b43218703f77389572490", + "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:42Z", "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/20230516/a7c244af57b04f5f8fd597e7adc81378.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e85a55642621d44e798cbb97b6d0af8f5d.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_c2df9308a3a14666ae9fac7e9d19a117", "object": - "Rate", "created_at": "2023-05-16T16:20:59Z", "updated_at": "2023-05-16T16:20:59Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_ce2e6e834db243d380d656f90837d4e3", "object": + "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5efc9f87bef5468691e1aa0e0cb7c085", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6a649176a57b41a290d5df207bacf437", - "object": "Rate", "created_at": "2023-05-16T16:20:59Z", "updated_at": "2023-05-16T16:20:59Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8931502ae8114e968453808984c31074", + "object": "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f2d5681a865e4a1ebeeb1990012d7abe", + "object": "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_bcf67383de3843e69ef42cb3a498506e", "object": "Rate", "created_at": + "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_5efc9f87bef5468691e1aa0e0cb7c085", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_bce0261c9b8e438aa2dc870e2a75240e", "object": "Rate", "created_at": - "2023-05-16T16:20:59Z", "updated_at": "2023-05-16T16:20:59Z", "mode": "test", + "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_757766f725db4db1917319b3abe867a1", "object": "Rate", "created_at": + "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_5efc9f87bef5468691e1aa0e0cb7c085", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_00efbcd87088402ba1d57dca1914a51f", "object": "Rate", "created_at": - "2023-05-16T16:20:59Z", "updated_at": "2023-05-16T16:20:59Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_5efc9f87bef5468691e1aa0e0cb7c085", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_6a649176a57b41a290d5df207bacf437", - "object": "Rate", "created_at": "2023-05-16T16:21:00Z", "updated_at": "2023-05-16T16:21:00Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_5efc9f87bef5468691e1aa0e0cb7c085", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_a3a240fb1a054cda94ceddd844b2d980", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210337029", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:21:01Z", - "updated_at": "2023-05-16T16:24:01Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:24:01Z", "shipment_id": "shp_5efc9f87bef5468691e1aa0e0cb7c085", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:24:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:01:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:06:01Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:42:01Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:33:01Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:13:01Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:23:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_8931502ae8114e968453808984c31074", + "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_5f3a0e7cfb304d7f9cd4a1d1952aa200", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285864142", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:06:43Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:43Z", + "shipment_id": "shp_9deca390f9a3470cb1c3062b004527c0", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2023-10-28T22:06: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": "2023-10-29T10:43: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": "2023-10-29T20:48: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": + "2023-10-30T22:24: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": "2023-10-31T01:15: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": "2023-10-31T06:55: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": "2023-10-31T07:05:43Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:15:01Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57: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, @@ -688,9 +697,9 @@ interactions: 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": "2023-04-19T06:15:01Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2EzYTI0MGZiMWEwNTRjZGE5NGNlZGRkODQ0YjJkOTgw"}, - "to_address": {"id": "adr_a4815838f40511ed90e6ac1f6bc72124", "object": "Address", - "created_at": "2023-05-16T16:20:59+00:00", "updated_at": "2023-05-16T16:21:00+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:43Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzVmM2EwZTdjZmIzMDRkN2Y5Y2Q0YTFkMTk1MmFhMjAw"}, + "to_address": {"id": "adr_fdc041eb8e3911ee934fac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:42+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": @@ -698,14 +707,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_a4879739f40511ed96723cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:20:59+00:00", "updated_at": "2023-05-16T16:20:59+00:00", + 4, "return_address": {"id": "adr_fdc32ad38e3911ee9351ac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:41+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_a4815838f40511ed90e6ac1f6bc72124", "object": - "Address", "created_at": "2023-05-16T16:20:59+00:00", "updated_at": "2023-05-16T16:21:00+00:00", + {}}, "buyer_address": {"id": "adr_fdc041eb8e3911ee934fac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:42+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": @@ -715,19 +724,15 @@ 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.07000", "charged": true, "refunded": false}, {"object": "Fee", "type": - "CarbonOffsetFee", "amount": "0.11000", "charged": true, "refunded": false}], - "id": "shp_5efc9f87bef5468691e1aa0e0cb7c085", "object": "Shipment"}], "has_more": - true}' + "5.93000", "charged": true, "refunded": false}], "id": "shp_9deca390f9a3470cb1c3062b004527c0", + "object": "Shipment"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '55045' + - '55484' content-type: - application/json; charset=utf-8 - etag: - - W/"cd9715f54594174309f7466458f77bcc" expires: - '0' pragma: @@ -745,20 +750,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e66463afe0e7872f590027a268 + - 88ad7b8d656664f1e78a9c6d003f5c4d x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.415823' + - '0.524884' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 cdf35342..d293d02d 100644 --- a/tests/cassettes/test_shipment_buy.yaml +++ b/tests/cassettes/test_shipment_buy.yaml @@ -11,7 +11,7 @@ interactions: "", "restriction_type": "none", "non_delivery_option": "return", "customs_items": [{"description": "Sweet shirts", "quantity": 2, "weight": 11, "value": 23.25, "hs_tariff_number": "654321", "origin_country": "US"}]}, "options": {"label_format": - "PNG", "invoice_number": "123"}, "reference": "123"}, "carbon_offset": false}' + "PNG", "invoice_number": "123"}, "reference": "123"}}' headers: Accept: - '*/*' @@ -20,7 +20,7 @@ interactions: Connection: - keep-alive Content-Length: - - '978' + - '954' Content-Type: - application/json authorization: @@ -31,10 +31,10 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T22:18:41Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2023-11-28T22:08:51Z", "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_b1a0a1bc45844159812e0224d53948ea", + 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: @@ -47,90 +47,95 @@ interactions: field required"}], "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": - "2023-05-16T22:18:42Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_b1c4c2af09fc4ef295c9bddd01131e69", "object": - "CustomsInfo", "created_at": "2023-05-16T22:18:41Z", "updated_at": "2023-05-16T22:18:41Z", + "2023-11-28T22:08:52Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": {"id": "cstinfo_ff16ae235b604835afd852671d978466", "object": + "CustomsInfo", "created_at": "2023-11-28T22:08:51Z", "updated_at": "2023-11-28T22:08:51Z", "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_fe79c845223c4425974154387fc1e38c", - "object": "CustomsItem", "created_at": "2023-05-16T22:18:41Z", "updated_at": - "2023-05-16T22:18:41Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_a3ffd67db51f4a1fbd82d152929d2534", + "object": "CustomsItem", "created_at": "2023-11-28T22:08:51Z", "updated_at": + "2023-11-28T22:08:51Z", "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_9d61dd38f43711eda5d7ac1f6bc53342", "object": "Address", "created_at": - "2023-05-16T22:18:41+00:00", "updated_at": "2023-05-16T22:18:41+00:00", "name": + "adr_b695bd4d8e3a11eebc8e3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08: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": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_ad90a97bc2774ec59f182cfe5ff223f1", - "object": "Parcel", "created_at": "2023-05-16T22:18:41Z", "updated_at": "2023-05-16T22:18:41Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_ae833112b5d74b3297d87aae96793a7e", + "object": "Parcel", "created_at": "2023-11-28T22:08:51Z", "updated_at": "2023-11-28T22:08:51Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_136c5eba86434379bfeacbe3a3e8a6f1", - "object": "Rate", "created_at": "2023-05-16T22:18:42Z", "updated_at": "2023-05-16T22:18:42Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_05676ca6d03141dd94a067b45335a41d", + "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7eb8606e070a4df19b70de813f9bea9d", + "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_2c24e761a8454f54bf34cb87869c5f2a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2d131482797945a4bfe126c656b838fb", - "object": "Rate", "created_at": "2023-05-16T22:18:42Z", "updated_at": "2023-05-16T22:18:42Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b936eae682e543b1a6550ea120e81a3e", + "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_edd8a843891d49c195c76c6a06790d4c", + "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_2c24e761a8454f54bf34cb87869c5f2a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e1a21e1635784685bdeaaa435ecf2662", "object": "Rate", "created_at": - "2023-05-16T22:18:42Z", "updated_at": "2023-05-16T22:18:42Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_2c24e761a8454f54bf34cb87869c5f2a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e555d8dc9ddf46d2818ff3292d92129f", "object": "Rate", "created_at": - "2023-05-16T22:18:42Z", "updated_at": "2023-05-16T22:18:42Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_2c24e761a8454f54bf34cb87869c5f2a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_3d1f945a2d4043f1bcbc28b029dd7140", "object": "Rate", "created_at": + "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_9d5ed99bf43711eda7e3ac1f6bc539ae", "object": - "Address", "created_at": "2023-05-16T22:18:41+00:00", "updated_at": "2023-05-16T22:18:41+00:00", + null, "to_address": {"id": "adr_b691befe8e3a11ee92c2ac1f6bc539ae", "object": + "Address", "created_at": "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:51+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_9d61dd38f43711eda5d7ac1f6bc53342", - "object": "Address", "created_at": "2023-05-16T22:18:41+00:00", "updated_at": - "2023-05-16T22:18:41+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_b695bd4d8e3a11eebc8e3cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:08:51+00:00", "updated_at": + "2023-11-28T22:08: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": {}}, "buyer_address": {"id": - "adr_9d5ed99bf43711eda7e3ac1f6bc539ae", "object": "Address", "created_at": - "2023-05-16T22:18:41+00:00", "updated_at": "2023-05-16T22:18:41+00:00", "name": + "adr_b691befe8e3a11ee92c2ac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:51+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_2c24e761a8454f54bf34cb87869c5f2a", + {}}, "forms": [], "fees": [], "id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6722' + - '7265' content-type: - application/json; charset=utf-8 - etag: - - W/"fb023969f6ee23045a3ba25335963c82" expires: - '0' location: - - /api/v2/shipments/shp_2c24e761a8454f54bf34cb87869c5f2a + - /api/v2/shipments/shp_9af92e0bdd6a428f8aba267686ab9cae pragma: - no-cache referrer-policy: @@ -146,28 +151,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e364640141e78964da004580ff + - 88ad7b8d656664f3e78a9c6f003f5eb1 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.611733' + - '0.448540' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_2d131482797945a4bfe126c656b838fb"}, "carbon_offset": - false}' + body: '{"rate": {"id": "rate_b936eae682e543b1a6550ea120e81a3e"}}' headers: Accept: - '*/*' @@ -176,7 +180,7 @@ interactions: Connection: - keep-alive Content-Length: - - '81' + - '57' Content-Type: - application/json authorization: @@ -184,13 +188,13 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_2c24e761a8454f54bf34cb87869c5f2a/buy + uri: https://api.easypost.com/v2/shipments/shp_9af92e0bdd6a428f8aba267686ab9cae/buy response: body: - string: '{"created_at": "2023-05-16T22:18:41Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2023-11-28T22:08:51Z", "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_b1a0a1bc45844159812e0224d53948ea", + 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: @@ -202,95 +206,102 @@ interactions: "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": "9400100104262210420264", - "updated_at": "2023-05-16T22:18:43Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_b1c4c2af09fc4ef295c9bddd01131e69", - "object": "CustomsInfo", "created_at": "2023-05-16T22:18:41Z", "updated_at": - "2023-05-16T22:18:41Z", "contents_explanation": "", "contents_type": "merchandise", + "reference": "123", "status": "unknown", "tracking_code": "9400100105442285876350", + "updated_at": "2023-11-28T22:08:53Z", "batch_id": null, "batch_status": null, + "batch_message": null, "customs_info": {"id": "cstinfo_ff16ae235b604835afd852671d978466", + "object": "CustomsInfo", "created_at": "2023-11-28T22:08:51Z", "updated_at": + "2023-11-28T22:08:51Z", "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_fe79c845223c4425974154387fc1e38c", "object": "CustomsItem", - "created_at": "2023-05-16T22:18:41Z", "updated_at": "2023-05-16T22:18:41Z", + [{"id": "cstitem_a3ffd67db51f4a1fbd82d152929d2534", "object": "CustomsItem", + "created_at": "2023-11-28T22:08:51Z", "updated_at": "2023-11-28T22:08:51Z", "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_9d61dd38f43711eda5d7ac1f6bc53342", "object": - "Address", "created_at": "2023-05-16T22:18:41+00:00", "updated_at": "2023-05-16T22:18:41+00:00", + null}]}, "from_address": {"id": "adr_b695bd4d8e3a11eebc8e3cecef1b359e", "object": + "Address", "created_at": "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08: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": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_ad90a97bc2774ec59f182cfe5ff223f1", - "object": "Parcel", "created_at": "2023-05-16T22:18:41Z", "updated_at": "2023-05-16T22:18:41Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_ae833112b5d74b3297d87aae96793a7e", + "object": "Parcel", "created_at": "2023-11-28T22:08:51Z", "updated_at": "2023-11-28T22:08:51Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_dca790b9e97a43d1b054103cf4dfc2e7", - "created_at": "2023-05-16T22:18:42Z", "updated_at": "2023-05-16T22:18:43Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T22:18:42Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6ba46db52970487f941269647927a63c", + "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:08:52Z", "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/20230516/ab9494ef0ee34c1f859a310dd5398417.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8befd4ff12e134ac6a31282975b6e7251.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_136c5eba86434379bfeacbe3a3e8a6f1", "object": - "Rate", "created_at": "2023-05-16T22:18:42Z", "updated_at": "2023-05-16T22:18:42Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_05676ca6d03141dd94a067b45335a41d", "object": + "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7eb8606e070a4df19b70de813f9bea9d", + "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_2c24e761a8454f54bf34cb87869c5f2a", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2d131482797945a4bfe126c656b838fb", - "object": "Rate", "created_at": "2023-05-16T22:18:42Z", "updated_at": "2023-05-16T22:18:42Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b936eae682e543b1a6550ea120e81a3e", + "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_edd8a843891d49c195c76c6a06790d4c", + "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_2c24e761a8454f54bf34cb87869c5f2a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e1a21e1635784685bdeaaa435ecf2662", "object": "Rate", "created_at": - "2023-05-16T22:18:42Z", "updated_at": "2023-05-16T22:18:42Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_2c24e761a8454f54bf34cb87869c5f2a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_e555d8dc9ddf46d2818ff3292d92129f", "object": "Rate", "created_at": - "2023-05-16T22:18:42Z", "updated_at": "2023-05-16T22:18:42Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_2c24e761a8454f54bf34cb87869c5f2a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_2d131482797945a4bfe126c656b838fb", - "object": "Rate", "created_at": "2023-05-16T22:18:42Z", "updated_at": "2023-05-16T22:18:42Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_3d1f945a2d4043f1bcbc28b029dd7140", "object": "Rate", "created_at": + "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_2c24e761a8454f54bf34cb87869c5f2a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_2b686db57fac4498b8e7c2daca08ed2e", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210420264", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T22:18:43Z", "updated_at": - "2023-05-16T22:18:43Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_2c24e761a8454f54bf34cb87869c5f2a", "carrier": "USPS", + "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_b936eae682e543b1a6550ea120e81a3e", + "object": "Rate", "created_at": "2023-11-28T22:08:52Z", "updated_at": "2023-11-28T22:08:52Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_1ddd9a69b5d0487ebfc3941639b11b18", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285876350", + "status": "unknown", "status_detail": "unknown", "created_at": "2023-11-28T22:08:53Z", + "updated_at": "2023-11-28T22:08:53Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzJiNjg2ZGI1N2ZhYzQ0OThiOGU3YzJkYWNhMDhlZDJl"}, - "to_address": {"id": "adr_9d5ed99bf43711eda7e3ac1f6bc539ae", "object": "Address", - "created_at": "2023-05-16T22:18:41+00:00", "updated_at": "2023-05-16T22:18:42+00:00", + "https://track.easypost.com/djE6dHJrXzFkZGQ5YTY5YjVkMDQ4N2ViZmMzOTQxNjM5YjExYjE4"}, + "to_address": {"id": "adr_b691befe8e3a11ee92c2ac1f6bc539ae", "object": "Address", + "created_at": "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:52+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "", "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_9d61dd38f43711eda5d7ac1f6bc53342", "object": - "Address", "created_at": "2023-05-16T22:18:41+00:00", "updated_at": "2023-05-16T22:18:41+00:00", + 4, "return_address": {"id": "adr_b695bd4d8e3a11eebc8e3cecef1b359e", "object": + "Address", "created_at": "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08: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": - {}}, "buyer_address": {"id": "adr_9d5ed99bf43711eda7e3ac1f6bc539ae", "object": - "Address", "created_at": "2023-05-16T22:18:41+00:00", "updated_at": "2023-05-16T22:18:42+00:00", + {}}, "buyer_address": {"id": "adr_b691befe8e3a11ee92c2ac1f6bc539ae", "object": + "Address", "created_at": "2023-11-28T22:08:51+00:00", "updated_at": "2023-11-28T22:08:52+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "", "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}, @@ -298,17 +309,15 @@ 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.07000", "charged": true, "refunded": false}], "id": "shp_2c24e761a8454f54bf34cb87869c5f2a", + "5.93000", "charged": true, "refunded": false}], "id": "shp_9af92e0bdd6a428f8aba267686ab9cae", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8839' + - '9390' content-type: - application/json; charset=utf-8 - etag: - - W/"edef1888dadbc58ed148b9855fd6e8f7" expires: - '0' pragma: @@ -326,20 +335,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e364640142e78964da00458130 + - 88ad7b8d656664f4e78a9c6f003f5f41 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.846385' + - '0.817356' x-version-label: - - easypost-202305162013-ad43550112-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_buy_with_carbon_offset.yaml b/tests/cassettes/test_shipment_buy_with_carbon_offset.yaml deleted file mode 100644 index 5990fac0..00000000 --- a/tests/cassettes/test_shipment_buy_with_carbon_offset.yaml +++ /dev/null @@ -1,327 +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}}, "carbon_offset": false}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '520' - Content-Type: - - application/json - authorization: - - - user-agent: - - - method: POST - uri: https://api.easypost.com/v2/shipments - response: - body: - string: '{"created_at": "2023-05-16T16:33:59Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-16T16:34:00Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_759e6b2cf40711ed99e0ac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T16:33:59+00:00", "updated_at": "2023-05-16T16:33: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_61fc44884c2145e7bd694856ef569a2a", - "object": "Parcel", "created_at": "2023-05-16T16:33:59Z", "updated_at": "2023-05-16T16:33:59Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_3bd772f2c9b6439aafac36be6c8262e1", - "object": "Rate", "created_at": "2023-05-16T16:34:00Z", "updated_at": "2023-05-16T16:34:00Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_bed157bf505f4c4a82302cc9e09619e4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4f692cc924b142c9834f530229aca885", - "object": "Rate", "created_at": "2023-05-16T16:34:00Z", "updated_at": "2023-05-16T16:34:00Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_bed157bf505f4c4a82302cc9e09619e4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_590702d0d1dc45faaed73c570f862993", - "object": "Rate", "created_at": "2023-05-16T16:34:00Z", "updated_at": "2023-05-16T16:34:00Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_bed157bf505f4c4a82302cc9e09619e4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7284d63430504e2bbff7da9ee9a6deae", "object": "Rate", "created_at": - "2023-05-16T16:34:00Z", "updated_at": "2023-05-16T16:34:00Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_bed157bf505f4c4a82302cc9e09619e4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_759c3386f40711ed99d2ac1f6bc72124", "object": - "Address", "created_at": "2023-05-16T16:33:59+00:00", "updated_at": "2023-05-16T16:33: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_759e6b2cf40711ed99e0ac1f6bc72124", - "object": "Address", "created_at": "2023-05-16T16:33:59+00:00", "updated_at": - "2023-05-16T16:33: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_759c3386f40711ed99d2ac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T16:33:59+00:00", "updated_at": "2023-05-16T16:33: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_bed157bf505f4c4a82302cc9e09619e4", - "object": "Shipment"}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '5851' - content-type: - - application/json; charset=utf-8 - etag: - - W/"13668ec660a3eaf47b095929227a574e" - expires: - - '0' - location: - - /api/v2/shipments/shp_bed157bf505f4c4a82302cc9e09619e4 - 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: - - 23bee7e66463b077e78733360027d4d5 - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb2nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 - x-runtime: - - '0.890033' - x-version-label: - - easypost-202305152249-750e1e7d95-master - x-xss-protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: '{"rate": {"id": "rate_590702d0d1dc45faaed73c570f862993"}, "carbon_offset": - true}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '80' - Content-Type: - - application/json - authorization: - - - user-agent: - - - method: POST - uri: https://api.easypost.com/v2/shipments/shp_bed157bf505f4c4a82302cc9e09619e4/buy - response: - body: - string: '{"created_at": "2023-05-16T16:33:59Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210342375", "updated_at": "2023-05-16T16:34:01Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_759e6b2cf40711ed99e0ac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T16:33:59+00:00", "updated_at": "2023-05-16T16:33: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_61fc44884c2145e7bd694856ef569a2a", - "object": "Parcel", "created_at": "2023-05-16T16:33:59Z", "updated_at": "2023-05-16T16:33:59Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_28c069a20da94e7b891555d9d01bbda2", - "created_at": "2023-05-16T16:34:00Z", "updated_at": "2023-05-16T16:34:01Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:34: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/20230516/164e24cfdd1a4d289d0f343086555e8f.png", - "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_3bd772f2c9b6439aafac36be6c8262e1", "object": - "Rate", "created_at": "2023-05-16T16:34:00Z", "updated_at": "2023-05-16T16:34:00Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_bed157bf505f4c4a82302cc9e09619e4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}, {"id": "rate_4f692cc924b142c9834f530229aca885", - "object": "Rate", "created_at": "2023-05-16T16:34:00Z", "updated_at": "2023-05-16T16:34:00Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_bed157bf505f4c4a82302cc9e09619e4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}, {"id": "rate_590702d0d1dc45faaed73c570f862993", - "object": "Rate", "created_at": "2023-05-16T16:34:00Z", "updated_at": "2023-05-16T16:34:00Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_bed157bf505f4c4a82302cc9e09619e4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "carbon_offset": {"object": "CarbonOffset", "grams": 36, "price": "0.11", - "currency": "USD"}}, {"id": "rate_7284d63430504e2bbff7da9ee9a6deae", "object": - "Rate", "created_at": "2023-05-16T16:34:00Z", "updated_at": "2023-05-16T16:34:00Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_bed157bf505f4c4a82302cc9e09619e4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}], "refund_status": null, - "scan_form": null, "selected_rate": {"id": "rate_590702d0d1dc45faaed73c570f862993", - "object": "Rate", "created_at": "2023-05-16T16:34:00Z", "updated_at": "2023-05-16T16:34:00Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_bed157bf505f4c4a82302cc9e09619e4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_1c719471026e4f858de8762ac10884f4", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210342375", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T16:34:01Z", "updated_at": - "2023-05-16T16:34:01Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_bed157bf505f4c4a82302cc9e09619e4", "carrier": "USPS", - "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzFjNzE5NDcxMDI2ZTRmODU4ZGU4NzYyYWMxMDg4NGY0"}, - "to_address": {"id": "adr_759c3386f40711ed99d2ac1f6bc72124", "object": "Address", - "created_at": "2023-05-16T16:33:59+00:00", "updated_at": "2023-05-16T16:34:00+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_759e6b2cf40711ed99e0ac1f6bc72124", "object": - "Address", "created_at": "2023-05-16T16:33:59+00:00", "updated_at": "2023-05-16T16:33: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_759c3386f40711ed99d2ac1f6bc72124", "object": - "Address", "created_at": "2023-05-16T16:33:59+00:00", "updated_at": "2023-05-16T16:34:00+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.07000", "charged": true, "refunded": false}, {"object": "Fee", "type": - "CarbonOffsetFee", "amount": "0.11000", "charged": true, "refunded": false}], - "id": "shp_bed157bf505f4c4a82302cc9e09619e4", "object": "Shipment"}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '8401' - content-type: - - application/json; charset=utf-8 - etag: - - W/"27f575aeca647b9007448e81852a218c" - 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: - - 23bee7e66463b078e78733360027d524 - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb5nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 - x-runtime: - - '1.194118' - x-version-label: - - easypost-202305152249-750e1e7d95-master - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 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 d47a4cfa..060909b0 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_9436e2c633524a3285266b3b88840d7f", "object": "EndShipper", - "mode": "test", "created_at": "2023-05-16T16:31:55+00:00", "updated_at": "2023-05-16T16:31:55+00:00", + string: '{"id": "es_ef7e352a39984f23bbad509378f88a5e", "object": "EndShipper", + "mode": "test", "created_at": "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09: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": ""}' @@ -34,8 +34,6 @@ interactions: - '365' content-type: - application/json; charset=utf-8 - etag: - - W/"fdac6bcfce7c4b28af0397db86c11466" expires: - '0' pragma: @@ -53,20 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e46463affbe7872fa10027ab77 + - 88ad7b8e6566650be78a9f8a003f7324 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.044325' + - '0.053791' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -79,7 +77,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"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}}, "carbon_offset": false}' + 15.4}}}' headers: Accept: - '*/*' @@ -88,7 +86,7 @@ interactions: Connection: - keep-alive Content-Length: - - '520' + - '496' Content-Type: - application/json authorization: @@ -99,95 +97,100 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:55Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2023-11-28T22:09:15Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-16T16:31:55Z", "batch_id": null, "batch_status": + null, "updated_at": "2023-11-28T22:09:16Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_2b9b0a33f40711ed87f1ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T16:31:55+00:00", "updated_at": "2023-05-16T16:31:55+00:00", "name": + "adr_c4fea2578e3a11ee9360ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09: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_461560bd4e2c44c58fde701ae5274a63", - "object": "Parcel", "created_at": "2023-05-16T16:31:55Z", "updated_at": "2023-05-16T16:31:55Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_e046da82c6bd4acbbf770fe146bdfb7b", + "object": "Parcel", "created_at": "2023-11-28T22:09:15Z", "updated_at": "2023-11-28T22:09:15Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6901e6a3790546ff91679ad2e1d659ff", - "object": "Rate", "created_at": "2023-05-16T16:31:55Z", "updated_at": "2023-05-16T16:31:55Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_9fd8372a9e274d25bb150a4c480733dc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c4810533818d48638f4e323b280d4cfe", - "object": "Rate", "created_at": "2023-05-16T16:31:55Z", "updated_at": "2023-05-16T16:31:55Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_9fd8372a9e274d25bb150a4c480733dc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_91720658907244019d48d70842485177", - "object": "Rate", "created_at": "2023-05-16T16:31:55Z", "updated_at": "2023-05-16T16:31:55Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_bb9eaf29829f41869b9bf69de2e39bc8", + "object": "Rate", "created_at": "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_905c6624ef184d6bb3e89896db708eee", + "object": "Rate", "created_at": "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9fd8372a9e274d25bb150a4c480733dc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_397effc556b14681b2f7e8aa487ab06a", "object": "Rate", "created_at": - "2023-05-16T16:31:55Z", "updated_at": "2023-05-16T16:31:55Z", "mode": "test", + "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_dc05694f93ae4a0695c1196cbe3b698d", "object": "Rate", "created_at": + "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_86e4f814b5ac4b1f90c12091f4814e07", "object": "Rate", "created_at": + "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_9fd8372a9e274d25bb150a4c480733dc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e072214dca194acaaf6b9098925051e4", "object": "Rate", "created_at": + "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", + "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_2b989604f40711edb8893cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:31:55+00:00", "updated_at": "2023-05-16T16:31:55+00:00", + null, "to_address": {"id": "adr_c4fa61fa8e3a11ee853c3cecef1b359e", "object": + "Address", "created_at": "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09: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_2b9b0a33f40711ed87f1ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T16:31:55+00:00", "updated_at": - "2023-05-16T16:31:55+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_c4fea2578e3a11ee9360ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:09:15+00:00", "updated_at": + "2023-11-28T22:09: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_2b989604f40711edb8893cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:55+00:00", "updated_at": "2023-05-16T16:31:55+00:00", "name": + "adr_c4fa61fa8e3a11ee853c3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09: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_9fd8372a9e274d25bb150a4c480733dc", + {}}, "forms": [], "fees": [], "id": "shp_6fc0b9c1df2e462388f869ab9b3194fa", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5851' + - '6394' content-type: - application/json; charset=utf-8 - etag: - - W/"8ca60ac0732c5a2dee30785e020f4c35" expires: - '0' location: - - /api/v2/shipments/shp_9fd8372a9e274d25bb150a4c480733dc + - /api/v2/shipments/shp_6fc0b9c1df2e462388f869ab9b3194fa pragma: - no-cache referrer-policy: @@ -203,28 +206,28 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e46463affbe7872fa10027ab83 + - 88ad7b8e6566650be78a9f8a003f73a1 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.708012' + - '0.864003' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_91720658907244019d48d70842485177"}, "carbon_offset": - false, "end_shipper_id": "es_9436e2c633524a3285266b3b88840d7f"}' + body: '{"rate": {"id": "rate_bb9eaf29829f41869b9bf69de2e39bc8"}, "end_shipper_id": + "es_ef7e352a39984f23bbad509378f88a5e"}' headers: Accept: - '*/*' @@ -233,7 +236,7 @@ interactions: Connection: - keep-alive Content-Length: - - '138' + - '114' Content-Type: - application/json authorization: @@ -241,102 +244,109 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_9fd8372a9e274d25bb150a4c480733dc/buy + uri: https://api.easypost.com/v2/shipments/shp_6fc0b9c1df2e462388f869ab9b3194fa/buy response: body: - string: '{"created_at": "2023-05-16T16:31:55Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + string: '{"created_at": "2023-11-28T22:09:15Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210341828", "updated_at": "2023-05-16T16:31:56Z", "batch_id": + "9400100105442285877234", "updated_at": "2023-11-28T22:09:17Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_2b9b0a33f40711ed87f1ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T16:31:55+00:00", "updated_at": "2023-05-16T16:31:55+00:00", "name": + {"id": "adr_c4fea2578e3a11ee9360ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09: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_461560bd4e2c44c58fde701ae5274a63", - "object": "Parcel", "created_at": "2023-05-16T16:31:55Z", "updated_at": "2023-05-16T16:31:55Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_e046da82c6bd4acbbf770fe146bdfb7b", + "object": "Parcel", "created_at": "2023-11-28T22:09:15Z", "updated_at": "2023-11-28T22:09:15Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_ffe1d0c74b9f4223b15ce9a32f1ab4c7", - "created_at": "2023-05-16T16:31:56Z", "updated_at": "2023-05-16T16:31:56Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:31:56Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_0b8f00c80db84f10835e64747c186d55", + "created_at": "2023-11-28T22:09:17Z", "updated_at": "2023-11-28T22:09:17Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:09:17Z", "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/20230516/7e8e1873cadb4f2690b512ae762cbb0f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e86948b379378c4548b2b1e22034ce8392.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_6901e6a3790546ff91679ad2e1d659ff", "object": - "Rate", "created_at": "2023-05-16T16:31:55Z", "updated_at": "2023-05-16T16:31:55Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_9fd8372a9e274d25bb150a4c480733dc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c4810533818d48638f4e323b280d4cfe", - "object": "Rate", "created_at": "2023-05-16T16:31:55Z", "updated_at": "2023-05-16T16:31:55Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_9fd8372a9e274d25bb150a4c480733dc", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_91720658907244019d48d70842485177", - "object": "Rate", "created_at": "2023-05-16T16:31:55Z", "updated_at": "2023-05-16T16:31:55Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + null}, "rates": [{"id": "rate_bb9eaf29829f41869b9bf69de2e39bc8", "object": + "Rate", "created_at": "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_905c6624ef184d6bb3e89896db708eee", + "object": "Rate", "created_at": "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9fd8372a9e274d25bb150a4c480733dc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_397effc556b14681b2f7e8aa487ab06a", "object": "Rate", "created_at": - "2023-05-16T16:31:55Z", "updated_at": "2023-05-16T16:31:55Z", "mode": "test", + "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_dc05694f93ae4a0695c1196cbe3b698d", "object": "Rate", "created_at": + "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_86e4f814b5ac4b1f90c12091f4814e07", "object": "Rate", "created_at": + "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_9fd8372a9e274d25bb150a4c480733dc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_91720658907244019d48d70842485177", - "object": "Rate", "created_at": "2023-05-16T16:31:56Z", "updated_at": "2023-05-16T16:31:56Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9fd8372a9e274d25bb150a4c480733dc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_4f2f427fc4554663b6a6121710218198", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210341828", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T16:31:56Z", "updated_at": - "2023-05-16T16:31:56Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_9fd8372a9e274d25bb150a4c480733dc", "carrier": "USPS", + "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e072214dca194acaaf6b9098925051e4", "object": "Rate", "created_at": + "2023-11-28T22:09:16Z", "updated_at": "2023-11-28T22:09:16Z", "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", + "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_bb9eaf29829f41869b9bf69de2e39bc8", + "object": "Rate", "created_at": "2023-11-28T22:09:17Z", "updated_at": "2023-11-28T22:09:17Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_165f78d9ddbf4847a158fcae85425335", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285877234", + "status": "unknown", "status_detail": "unknown", "created_at": "2023-11-28T22:09:17Z", + "updated_at": "2023-11-28T22:09:17Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_6fc0b9c1df2e462388f869ab9b3194fa", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzRmMmY0MjdmYzQ1NTQ2NjNiNmE2MTIxNzEwMjE4MTk4"}, - "to_address": {"id": "adr_2b989604f40711edb8893cecef1b359e", "object": "Address", - "created_at": "2023-05-16T16:31:55+00:00", "updated_at": "2023-05-16T16:31:56+00:00", + "https://track.easypost.com/djE6dHJrXzE2NWY3OGQ5ZGRiZjQ4NDdhMTU4ZmNhZTg1NDI1MzM1"}, + "to_address": {"id": "adr_c4fa61fa8e3a11ee853c3cecef1b359e", "object": "Address", + "created_at": "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09:17+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "", "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_2b9b0a33f40711ed87f1ac1f6bc7bdc6", "object": - "Address", "created_at": "2023-05-16T16:31:55+00:00", "updated_at": "2023-05-16T16:31:55+00:00", + 4, "return_address": {"id": "adr_c4fea2578e3a11ee9360ac1f6bc53342", "object": + "Address", "created_at": "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09: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_2b989604f40711edb8893cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:31:55+00:00", "updated_at": "2023-05-16T16:31:56+00:00", + {}}, "buyer_address": {"id": "adr_c4fa61fa8e3a11ee853c3cecef1b359e", "object": + "Address", "created_at": "2023-11-28T22:09:15+00:00", "updated_at": "2023-11-28T22:09:17+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "", "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}, @@ -344,17 +354,15 @@ 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.07000", "charged": true, "refunded": false}], "id": "shp_9fd8372a9e274d25bb150a4c480733dc", + "5.93000", "charged": true, "refunded": false}], "id": "shp_6fc0b9c1df2e462388f869ab9b3194fa", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '7968' + - '8519' content-type: - application/json; charset=utf-8 - etag: - - W/"6e089f40726e1a938ace44572c998b35" expires: - '0' pragma: @@ -372,20 +380,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e46463affbe7872fa10027abc3 + - 88ad7b8e6566650ce78a9f8a003f74bc x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb31nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.917019' + - '0.916769' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 8ff79903..9d0f7107 100644 --- a/tests/cassettes/test_shipment_convert_label.yaml +++ b/tests/cassettes/test_shipment_convert_label.yaml @@ -11,7 +11,7 @@ interactions: "", "restriction_type": "none", "non_delivery_option": "return", "customs_items": [{"description": "Sweet shirts", "quantity": 2, "weight": 11, "value": 23.25, "hs_tariff_number": "654321", "origin_country": "US"}]}, "options": {"label_format": - "PNG", "invoice_number": "123"}, "reference": "123"}, "carbon_offset": false}' + "PNG", "invoice_number": "123"}, "reference": "123"}}' headers: Accept: - '*/*' @@ -20,7 +20,7 @@ interactions: Connection: - keep-alive Content-Length: - - '978' + - '954' Content-Type: - application/json authorization: @@ -31,12 +31,12 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:32:36Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + string: '{"created_at": "2023-11-28T22:08:55Z", "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_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + 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_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: @@ -47,90 +47,95 @@ interactions: field required"}], "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": - "2023-05-16T16:32:37Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_b5d055e0c31a46419aae2adf72f0f7aa", "object": - "CustomsInfo", "created_at": "2023-05-16T16:32:36Z", "updated_at": "2023-05-16T16:32:36Z", + "2023-11-28T22:08:55Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": {"id": "cstinfo_813acea118d64a3d95d48c466a9fd193", "object": + "CustomsInfo", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "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_5a1694f0169948fd9fd777c34fe11b03", - "object": "CustomsItem", "created_at": "2023-05-16T16:32:36Z", "updated_at": - "2023-05-16T16:32:36Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_c3b8b380d14940919b6ca9c46c865366", + "object": "CustomsItem", "created_at": "2023-11-28T22:08:55Z", "updated_at": + "2023-11-28T22:08:55Z", "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_445aca48f40711ed89daac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:36+00:00", "name": + "adr_b8b061aa8e3a11ee8c0bac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+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_7e9c14657c774d08ae27525a8cecb6e5", - "object": "Parcel", "created_at": "2023-05-16T16:32:36Z", "updated_at": "2023-05-16T16:32:36Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_78f8ce6006b4410ebe73090326813d6f", + "object": "Parcel", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_7c2821c30ca9468282ac6b5a6bc29354", - "object": "Rate", "created_at": "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_e673920ca4934fb8bbaa55d1f0ce9848", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0aed4cd02b724572b8f37a6adae3526d", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6cd7641821b24e768998d9c1fb8c0782", - "object": "Rate", "created_at": "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_18e00efb68c84acf9bc2b764b36ab949", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7c2573955a774db6b8a623f6824bd326", "object": "Rate", "created_at": - "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_9ac91107d4394d08a896a8e36d1d9015", "object": "Rate", "created_at": - "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_63e3f3d8537b4619939e11613133e651", "object": "Rate", "created_at": + "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_4457cb1bf40711ed9bba3cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:36+00:00", + null, "to_address": {"id": "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+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_445aca48f40711ed89daac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-16T16:32:36+00:00", "updated_at": - "2023-05-16T16:32:36+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_b8b061aa8e3a11ee8c0bac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": + "2023-11-28T22:08:55+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_4457cb1bf40711ed9bba3cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:36+00:00", "name": + "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+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_73a181c595d24125a958ea82288c2248", + {}}, "forms": [], "fees": [], "id": "shp_0773b823aa1941a693279145aa0c387a", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6722' + - '7265' content-type: - application/json; charset=utf-8 - etag: - - W/"7184452c653ac11d166138efcb326f42" expires: - '0' location: - - /api/v2/shipments/shp_73a181c595d24125a958ea82288c2248 + - /api/v2/shipments/shp_0773b823aa1941a693279145aa0c387a pragma: - no-cache referrer-policy: @@ -141,33 +146,34 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e76463b024e78730020027b9ed + - 88ad7b90656664f7e78a9c71003f61fb x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.668006' + - '0.474838' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_6cd7641821b24e768998d9c1fb8c0782"}, "carbon_offset": - false}' + body: '{"rate": {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8"}}' headers: Accept: - '*/*' @@ -176,7 +182,7 @@ interactions: Connection: - keep-alive Content-Length: - - '81' + - '57' Content-Type: - application/json authorization: @@ -184,15 +190,15 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_73a181c595d24125a958ea82288c2248/buy + uri: https://api.easypost.com/v2/shipments/shp_0773b823aa1941a693279145aa0c387a/buy response: body: - string: '{"created_at": "2023-05-16T16:32:36Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + string: '{"created_at": "2023-11-28T22:08:55Z", "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_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + 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_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: @@ -202,95 +208,102 @@ interactions: "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": "9400100104262210342023", - "updated_at": "2023-05-16T16:32:38Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_b5d055e0c31a46419aae2adf72f0f7aa", - "object": "CustomsInfo", "created_at": "2023-05-16T16:32:36Z", "updated_at": - "2023-05-16T16:32:36Z", "contents_explanation": "", "contents_type": "merchandise", + "reference": "123", "status": "unknown", "tracking_code": "9400100105442285876503", + "updated_at": "2023-11-28T22:08:56Z", "batch_id": null, "batch_status": null, + "batch_message": null, "customs_info": {"id": "cstinfo_813acea118d64a3d95d48c466a9fd193", + "object": "CustomsInfo", "created_at": "2023-11-28T22:08:55Z", "updated_at": + "2023-11-28T22:08:55Z", "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_5a1694f0169948fd9fd777c34fe11b03", "object": "CustomsItem", - "created_at": "2023-05-16T16:32:36Z", "updated_at": "2023-05-16T16:32:36Z", + [{"id": "cstitem_c3b8b380d14940919b6ca9c46c865366", "object": "CustomsItem", + "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "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_445aca48f40711ed89daac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:36+00:00", + null}]}, "from_address": {"id": "adr_b8b061aa8e3a11ee8c0bac1f6bc53342", "object": + "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+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_7e9c14657c774d08ae27525a8cecb6e5", - "object": "Parcel", "created_at": "2023-05-16T16:32:36Z", "updated_at": "2023-05-16T16:32:36Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_78f8ce6006b4410ebe73090326813d6f", + "object": "Parcel", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d9e70df4e7dd43f19726992851c722c4", - "created_at": "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:38Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:32:37Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_a391feaafe2e40288e9afe00b241f198", + "created_at": "2023-11-28T22:08:56Z", "updated_at": "2023-11-28T22:08:56Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:08:56Z", "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/20230516/71f9b103274f4befa387d119311ef73e.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e812edf03731e6436f85c4d5f9375dba74.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_7c2821c30ca9468282ac6b5a6bc29354", "object": - "Rate", "created_at": "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_e673920ca4934fb8bbaa55d1f0ce9848", "object": + "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0aed4cd02b724572b8f37a6adae3526d", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6cd7641821b24e768998d9c1fb8c0782", - "object": "Rate", "created_at": "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_18e00efb68c84acf9bc2b764b36ab949", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7c2573955a774db6b8a623f6824bd326", "object": "Rate", "created_at": - "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_9ac91107d4394d08a896a8e36d1d9015", "object": "Rate", "created_at": - "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_6cd7641821b24e768998d9c1fb8c0782", - "object": "Rate", "created_at": "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_63e3f3d8537b4619939e11613133e651", "object": "Rate", "created_at": + "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_e1f75c88864041ef92d1ba0fd4c9a7ed", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210342023", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T16:32:38Z", "updated_at": - "2023-05-16T16:32:38Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_73a181c595d24125a958ea82288c2248", "carrier": "USPS", + "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8", + "object": "Rate", "created_at": "2023-11-28T22:08:56Z", "updated_at": "2023-11-28T22:08:56Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_2c304110b0a348eca2995f3176644987", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285876503", + "status": "unknown", "status_detail": "unknown", "created_at": "2023-11-28T22:08:56Z", + "updated_at": "2023-11-28T22:08:56Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2UxZjc1Yzg4ODY0MDQxZWY5MmQxYmEwZmQ0YzlhN2Vk"}, - "to_address": {"id": "adr_4457cb1bf40711ed9bba3cecef1b359e", "object": "Address", - "created_at": "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:37+00:00", + "https://track.easypost.com/djE6dHJrXzJjMzA0MTEwYjBhMzQ4ZWNhMjk5NWYzMTc2NjQ0OTg3"}, + "to_address": {"id": "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "", "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_445aca48f40711ed89daac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:36+00:00", + 4, "return_address": {"id": "adr_b8b061aa8e3a11ee8c0bac1f6bc53342", "object": + "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+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_4457cb1bf40711ed9bba3cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:37+00:00", + {}}, "buyer_address": {"id": "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+00:00", "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + "", "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}, @@ -298,17 +311,15 @@ 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.07000", "charged": true, "refunded": false}], "id": "shp_73a181c595d24125a958ea82288c2248", + "5.93000", "charged": true, "refunded": false}], "id": "shp_0773b823aa1941a693279145aa0c387a", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8839' + - '9390' content-type: - application/json; charset=utf-8 - etag: - - W/"a7434d32544ee54278a2993807398061" expires: - '0' pragma: @@ -326,20 +337,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e76463b025e78730020027ba26 + - 88ad7b90656664f7e78a9c71003f629d x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb31nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.858344' + - '1.024556' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -359,15 +370,15 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_73a181c595d24125a958ea82288c2248/label?file_format=ZPL + uri: https://api.easypost.com/v2/shipments/shp_0773b823aa1941a693279145aa0c387a/label?file_format=ZPL response: body: - string: '{"created_at": "2023-05-16T16:32:36Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + string: '{"created_at": "2023-11-28T22:08:55Z", "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_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + 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_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: @@ -377,82 +388,89 @@ interactions: "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "unknown", "tracking_code": "9400100104262210342023", - "updated_at": "2023-05-16T16:32:38Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_b5d055e0c31a46419aae2adf72f0f7aa", - "object": "CustomsInfo", "created_at": "2023-05-16T16:32:36Z", "updated_at": - "2023-05-16T16:32:36Z", "contents_explanation": "", "contents_type": "merchandise", + "reference": "123", "status": "unknown", "tracking_code": "9400100105442285876503", + "updated_at": "2023-11-28T22:08:56Z", "batch_id": null, "batch_status": null, + "batch_message": null, "customs_info": {"id": "cstinfo_813acea118d64a3d95d48c466a9fd193", + "object": "CustomsInfo", "created_at": "2023-11-28T22:08:55Z", "updated_at": + "2023-11-28T22:08:55Z", "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_5a1694f0169948fd9fd777c34fe11b03", "object": "CustomsItem", - "created_at": "2023-05-16T16:32:36Z", "updated_at": "2023-05-16T16:32:36Z", + [{"id": "cstitem_c3b8b380d14940919b6ca9c46c865366", "object": "CustomsItem", + "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "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_445aca48f40711ed89daac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:36+00:00", + null}]}, "from_address": {"id": "adr_b8b061aa8e3a11ee8c0bac1f6bc53342", "object": + "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+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_7e9c14657c774d08ae27525a8cecb6e5", - "object": "Parcel", "created_at": "2023-05-16T16:32:36Z", "updated_at": "2023-05-16T16:32:36Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_78f8ce6006b4410ebe73090326813d6f", + "object": "Parcel", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d9e70df4e7dd43f19726992851c722c4", - "created_at": "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:39Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:32:37Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_a391feaafe2e40288e9afe00b241f198", + "created_at": "2023-11-28T22:08:56Z", "updated_at": "2023-11-28T22:08:58Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:08:56Z", "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/20230516/71f9b103274f4befa387d119311ef73e.png", - "label_pdf_url": null, "label_zpl_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20230516/ae065c1afa5a427d823f161e4250ad9b.zpl", - "label_epl2_url": null, "label_file": null}, "rates": [{"id": "rate_7c2821c30ca9468282ac6b5a6bc29354", - "object": "Rate", "created_at": "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e812edf03731e6436f85c4d5f9375dba74.png", + "label_pdf_url": null, "label_zpl_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20231128/894c0f6f53e646bbb9ee1248f3f4bc47.zpl", + "label_epl2_url": null, "label_file": null}, "rates": [{"id": "rate_e673920ca4934fb8bbaa55d1f0ce9848", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0aed4cd02b724572b8f37a6adae3526d", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6cd7641821b24e768998d9c1fb8c0782", - "object": "Rate", "created_at": "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_18e00efb68c84acf9bc2b764b36ab949", + "object": "Rate", "created_at": "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_7c2573955a774db6b8a623f6824bd326", "object": "Rate", "created_at": - "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_9ac91107d4394d08a896a8e36d1d9015", "object": "Rate", "created_at": - "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_6cd7641821b24e768998d9c1fb8c0782", - "object": "Rate", "created_at": "2023-05-16T16:32:37Z", "updated_at": "2023-05-16T16:32:37Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_63e3f3d8537b4619939e11613133e651", "object": "Rate", "created_at": + "2023-11-28T22:08:55Z", "updated_at": "2023-11-28T22:08:55Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_73a181c595d24125a958ea82288c2248", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_e1f75c88864041ef92d1ba0fd4c9a7ed", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210342023", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-05-16T16:32:38Z", "updated_at": - "2023-05-16T16:32:38Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-16T16:32:38Z", "shipment_id": "shp_73a181c595d24125a958ea82288c2248", + "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_cd8b10a9221e45698ff0c15df836f7c8", + "object": "Rate", "created_at": "2023-11-28T22:08:56Z", "updated_at": "2023-11-28T22:08:56Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_2c304110b0a348eca2995f3176644987", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285876503", + "status": "pre_transit", "status_detail": "status_update", "created_at": "2023-11-28T22:08:56Z", + "updated_at": "2023-11-28T22:08:56Z", "signed_by": null, "weight": null, "est_delivery_date": + "2023-11-28T22:08:56Z", "shipment_id": "shp_0773b823aa1941a693279145aa0c387a", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:32:38Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:08:56Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:09:38Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:45:56Z", "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": null, "est_delivery_date_local": null, @@ -460,9 +478,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/djE6dHJrX2UxZjc1Yzg4ODY0MDQxZWY5MmQxYmEwZmQ0YzlhN2Vk"}, - "to_address": {"id": "adr_4457cb1bf40711ed9bba3cecef1b359e", "object": "Address", - "created_at": "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:37+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzJjMzA0MTEwYjBhMzQ4ZWNhMjk5NWYzMTc2NjQ0OTg3"}, + "to_address": {"id": "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+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": @@ -470,14 +488,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_445aca48f40711ed89daac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:36+00:00", + 4, "return_address": {"id": "adr_b8b061aa8e3a11ee8c0bac1f6bc53342", "object": + "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+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_4457cb1bf40711ed9bba3cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:32:36+00:00", "updated_at": "2023-05-16T16:32:37+00:00", + {}}, "buyer_address": {"id": "adr_b8adfcf08e3a11ee895aac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:08:55+00:00", "updated_at": "2023-11-28T22:08:55+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": @@ -487,17 +505,15 @@ 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.07000", "charged": true, "refunded": false}], "id": "shp_73a181c595d24125a958ea82288c2248", + "5.93000", "charged": true, "refunded": false}], "id": "shp_0773b823aa1941a693279145aa0c387a", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '10086' + - '10633' content-type: - application/json; charset=utf-8 - etag: - - W/"9472e327a8b068d93fddef9f3c363542" expires: - '0' pragma: @@ -515,20 +531,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e76463b026e78730020027ba70 + - 88ad7b90656664f9e78a9c71003f638d x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '1.537237' + - '1.551822' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 1c86bc05..b53f839d 100644 --- a/tests/cassettes/test_shipment_create.yaml +++ b/tests/cassettes/test_shipment_create.yaml @@ -11,7 +11,7 @@ interactions: "", "restriction_type": "none", "non_delivery_option": "return", "customs_items": [{"description": "Sweet shirts", "quantity": 2, "weight": 11, "value": 23.25, "hs_tariff_number": "654321", "origin_country": "US"}]}, "options": {"label_format": - "PNG", "invoice_number": "123"}, "reference": "123"}, "carbon_offset": false}' + "PNG", "invoice_number": "123"}, "reference": "123"}}' headers: Accept: - '*/*' @@ -20,7 +20,7 @@ interactions: Connection: - keep-alive Content-Length: - - '978' + - '954' Content-Type: - application/json authorization: @@ -31,106 +31,111 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:26Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + string: '{"created_at": "2023-11-28T22:08:46Z", "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_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_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + 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_c7b4cfaf671b4984b84023d77561394a", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}], "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": - "2023-05-16T16:31:27Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_994a2568673740cba69fb9c41726d6c3", "object": - "CustomsInfo", "created_at": "2023-05-16T16:31:26Z", "updated_at": "2023-05-16T16:31:26Z", + "2023-11-28T22:08:47Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": {"id": "cstinfo_0327d13c2d894f24a229494f641637e0", "object": + "CustomsInfo", "created_at": "2023-11-28T22:08:46Z", "updated_at": "2023-11-28T22:08:46Z", "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_ae6bbbd3195c42c6b1879d3b253f0264", - "object": "CustomsItem", "created_at": "2023-05-16T16:31:26Z", "updated_at": - "2023-05-16T16:31:26Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_2de8abdbcc1f436f800d9dea6ee97276", + "object": "CustomsItem", "created_at": "2023-11-28T22:08:46Z", "updated_at": + "2023-11-28T22:08:46Z", "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_1a99cd8af40711edb1d4ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:26+00:00", "updated_at": "2023-05-16T16:31:26+00:00", "name": + "adr_b3a97c158e3a11ee88c8ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:08:46+00:00", "updated_at": "2023-11-28T22:08:46+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_440119c05e614c7fb3d544380c235c43", - "object": "Parcel", "created_at": "2023-05-16T16:31:26Z", "updated_at": "2023-05-16T16:31:26Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_d69d061286f64f82988aad80b5a6327e", + "object": "Parcel", "created_at": "2023-11-28T22:08:46Z", "updated_at": "2023-11-28T22:08:46Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_122aaef1a4ae4e5c8cb7605ea01cb569", - "object": "Rate", "created_at": "2023-05-16T16:31:27Z", "updated_at": "2023-05-16T16:31:27Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_3672644215a9461b8eb342a3f219f0ac", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6fc92da586f54f68a537f6d2ba0eb89f", - "object": "Rate", "created_at": "2023-05-16T16:31:27Z", "updated_at": "2023-05-16T16:31:27Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_3672644215a9461b8eb342a3f219f0ac", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b29b1808b8bd47b2b8b351d05a541abb", - "object": "Rate", "created_at": "2023-05-16T16:31:27Z", "updated_at": "2023-05-16T16:31:27Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_e141f919c6c7422cbb0601abb82ba2a5", + "object": "Rate", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_3672644215a9461b8eb342a3f219f0ac", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e8f47c58258e4ff6ab88c74917e2c79a", - "object": "Rate", "created_at": "2023-05-16T16:31:27Z", "updated_at": "2023-05-16T16:31:27Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_8a8edce284194529b188ccc7721cfea4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_39490b03c05c45c2b41df3073183258b", + "object": "Rate", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_8a8edce284194529b188ccc7721cfea4", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cc7a86f6df8e465ca07a67c6059593e3", + "object": "Rate", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_8a8edce284194529b188ccc7721cfea4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_b88b7e03c1f640a18bfbdc034292b529", "object": "Rate", "created_at": + "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3672644215a9461b8eb342a3f219f0ac", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_8a8edce284194529b188ccc7721cfea4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_fbbc571f1cc44fedbda02154f24c6a81", "object": "Rate", "created_at": + "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_8a8edce284194529b188ccc7721cfea4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_1a959c8df40711ed96783cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:31:26+00:00", "updated_at": "2023-05-16T16:31:26+00:00", + null, "to_address": {"id": "adr_b3a7617c8e3a11ee8622ac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:08:46+00:00", "updated_at": "2023-11-28T22:08:46+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_1a99cd8af40711edb1d4ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-16T16:31:26+00:00", "updated_at": - "2023-05-16T16:31:26+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_b3a97c158e3a11ee88c8ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:08:46+00:00", "updated_at": + "2023-11-28T22:08:46+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_1a959c8df40711ed96783cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:26+00:00", "updated_at": "2023-05-16T16:31:26+00:00", "name": + "adr_b3a7617c8e3a11ee8622ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:08:46+00:00", "updated_at": "2023-11-28T22:08:46+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_3672644215a9461b8eb342a3f219f0ac", + {}}, "forms": [], "fees": [], "id": "shp_8a8edce284194529b188ccc7721cfea4", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6722' + - '7265' content-type: - application/json; charset=utf-8 - etag: - - W/"48d191271c9a5d4f6d2f8f7f010b54fe" expires: - '0' location: - - /api/v2/shipments/shp_3672644215a9461b8eb342a3f219f0ac + - /api/v2/shipments/shp_8a8edce284194529b188ccc7721cfea4 pragma: - no-cache referrer-policy: @@ -148,20 +153,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e26463afdee7872f570027a1bc + - ae35d0b8656664eee78a9c6b003fe922 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.603554' + - '0.483215' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202311250013-a0f06fbc2c-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 92101098..2d2329d7 100644 --- a/tests/cassettes/test_shipment_create_empty_objects.yaml +++ b/tests/cassettes/test_shipment_create_empty_objects.yaml @@ -7,7 +7,7 @@ interactions: "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "customs_info": {}, "options": null, "tax_identifiers": null, "reference": - ""}, "carbon_offset": false}' + ""}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '599' + - '575' Content-Type: - application/json authorization: @@ -27,95 +27,100 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:40Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + string: '{"created_at": "2023-11-28T22:09:04Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-16T16:31:41Z", "batch_id": null, "batch_status": + null, "updated_at": "2023-11-28T22:09:05Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_23176c10f40711ed99113cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:40+00:00", "updated_at": "2023-05-16T16:31:40+00:00", "name": + "adr_be52ee708e3a11ee81593cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:09:04+00:00", "updated_at": "2023-11-28T22:09: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_44a2f6b4a91b4ecd83b21da5e5b93c6d", - "object": "Parcel", "created_at": "2023-05-16T16:31:40Z", "updated_at": "2023-05-16T16:31:40Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c698a59382f84452a6870bedb3b3acc2", + "object": "Parcel", "created_at": "2023-11-28T22:09:04Z", "updated_at": "2023-11-28T22:09:04Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_54d99b19d719480e8e0e41348c9ecf6f", - "object": "Rate", "created_at": "2023-05-16T16:31:41Z", "updated_at": "2023-05-16T16:31:41Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_6b58000596a1410cb683c886c5d3e153", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ef1cc87c2f98443ca90529a70b41642a", - "object": "Rate", "created_at": "2023-05-16T16:31:41Z", "updated_at": "2023-05-16T16:31:41Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_6b58000596a1410cb683c886c5d3e153", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6db9842202fd46c7940c0db418f7a49c", - "object": "Rate", "created_at": "2023-05-16T16:31:41Z", "updated_at": "2023-05-16T16:31:41Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0e5e450f33f24e92819e5bcce174e7d8", + "object": "Rate", "created_at": "2023-11-28T22:09:05Z", "updated_at": "2023-11-28T22:09:05Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_6b58000596a1410cb683c886c5d3e153", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2db10f2e8fba4318ac2a92594630d7c0", - "object": "Rate", "created_at": "2023-05-16T16:31:41Z", "updated_at": "2023-05-16T16:31:41Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_f5391fd31308465db9776743f146db4c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_57c76e997c8f4e6a8c859e8806c16011", + "object": "Rate", "created_at": "2023-11-28T22:09:05Z", "updated_at": "2023-11-28T22:09:05Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_f5391fd31308465db9776743f146db4c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2541091a96e3444090065f80670bf531", + "object": "Rate", "created_at": "2023-11-28T22:09:05Z", "updated_at": "2023-11-28T22:09:05Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_f5391fd31308465db9776743f146db4c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_32778cf969a94025b181d89826689cb4", "object": "Rate", "created_at": + "2023-11-28T22:09:05Z", "updated_at": "2023-11-28T22:09:05Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6b58000596a1410cb683c886c5d3e153", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_f5391fd31308465db9776743f146db4c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_27ff349984ba4d4d9d424ae8df0cc437", "object": "Rate", "created_at": + "2023-11-28T22:09:05Z", "updated_at": "2023-11-28T22:09:05Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_f5391fd31308465db9776743f146db4c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_23151d47f40711ed99103cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:31:40+00:00", "updated_at": "2023-05-16T16:31:40+00:00", + null, "to_address": {"id": "adr_be50371a8e3a11ee9773ac1f6bc539ae", "object": + "Address", "created_at": "2023-11-28T22:09:04+00:00", "updated_at": "2023-11-28T22:09: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": - {}}, "usps_zone": 4, "return_address": {"id": "adr_23176c10f40711ed99113cecef1b359e", - "object": "Address", "created_at": "2023-05-16T16:31:40+00:00", "updated_at": - "2023-05-16T16:31:40+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_be52ee708e3a11ee81593cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:09:04+00:00", "updated_at": + "2023-11-28T22:09: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": {}}, "buyer_address": {"id": - "adr_23151d47f40711ed99103cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:40+00:00", "updated_at": "2023-05-16T16:31:40+00:00", "name": + "adr_be50371a8e3a11ee9773ac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:09:04+00:00", "updated_at": "2023-11-28T22:09: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": - {}}, "forms": [], "fees": [], "id": "shp_6b58000596a1410cb683c886c5d3e153", + {}}, "forms": [], "fees": [], "id": "shp_f5391fd31308465db9776743f146db4c", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5851' + - '6394' content-type: - application/json; charset=utf-8 - etag: - - W/"e20fada0452013bea41fb951d4f7c860" expires: - '0' location: - - /api/v2/shipments/shp_6b58000596a1410cb683c886c5d3e153 + - /api/v2/shipments/shp_f5391fd31308465db9776743f146db4c pragma: - no-cache referrer-policy: @@ -131,20 +136,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e06463afece7872f7e0027a679 + - 88ad7b9265666500e78a9f83003f69bb x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.851051' + - '0.800244' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 75db9fc7..5445080b 100644 --- a/tests/cassettes/test_shipment_create_tax_identifier.yaml +++ b/tests/cassettes/test_shipment_create_tax_identifier.yaml @@ -7,7 +7,7 @@ interactions: "Redondo Beach", "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "tax_identifiers": [{"entity": "SENDER", "tax_id_type": "IOSS", "tax_id": - "12345", "issuing_country": "GB"}]}, "carbon_offset": false}' + "12345", "issuing_country": "GB"}]}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '630' + - '606' Content-Type: - application/json authorization: @@ -27,96 +27,101 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:42Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + string: '{"created_at": "2023-11-28T22:09:06Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-16T16:31:42Z", "batch_id": null, "batch_status": + null, "updated_at": "2023-11-28T22:09:06Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_23bf3a2df40711ed8804ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:31:42+00:00", "updated_at": "2023-05-16T16:31:42+00:00", "name": + "adr_bf1373408e3a11ee8d28ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:09:06+00:00", "updated_at": "2023-11-28T22:09: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_fd46ecf1f95048aca2cf1dffc3750b72", - "object": "Parcel", "created_at": "2023-05-16T16:31:42Z", "updated_at": "2023-05-16T16:31:42Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_ad5d8d76fd2c479a9aeb871bc4fe753d", + "object": "Parcel", "created_at": "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_4f633c78eb55470595904907899c5e42", - "object": "Rate", "created_at": "2023-05-16T16:31:42Z", "updated_at": "2023-05-16T16:31:42Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_a930a24971e0445dbe4d11e13c1124f7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_178ee3048d5a4247a5a0b594a94355cd", - "object": "Rate", "created_at": "2023-05-16T16:31:42Z", "updated_at": "2023-05-16T16:31:42Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_a930a24971e0445dbe4d11e13c1124f7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7623583729c44698a95fbcf482d3e267", - "object": "Rate", "created_at": "2023-05-16T16:31:42Z", "updated_at": "2023-05-16T16:31:42Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_2be24f3bd42a4a0cb10e539d5fe32c92", + "object": "Rate", "created_at": "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_a930a24971e0445dbe4d11e13c1124f7", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_899387729fa04814937c06c7fcb8bb1d", - "object": "Rate", "created_at": "2023-05-16T16:31:42Z", "updated_at": "2023-05-16T16:31:42Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_06dae76aeb3e429287ca35dccd1d0a1d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fb85938e9f2e4897b9fffe37a0ba92fe", + "object": "Rate", "created_at": "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_06dae76aeb3e429287ca35dccd1d0a1d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bdcd3ef5b4c84b56a2bf54940fe47cb0", + "object": "Rate", "created_at": "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_06dae76aeb3e429287ca35dccd1d0a1d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e2b3aaea5c05410ba8832c5436521126", "object": "Rate", "created_at": + "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_a930a24971e0445dbe4d11e13c1124f7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_06dae76aeb3e429287ca35dccd1d0a1d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_1085a2c7ba414206b7d708ea3221a605", "object": "Rate", "created_at": + "2023-11-28T22:09:06Z", "updated_at": "2023-11-28T22:09:06Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_06dae76aeb3e429287ca35dccd1d0a1d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_23bc5a2bf40711edb329ac1f6bc7bdc6", "object": - "Address", "created_at": "2023-05-16T16:31:41+00:00", "updated_at": "2023-05-16T16:31:41+00:00", + null, "to_address": {"id": "adr_bf0b46908e3a11ee8d25ac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:09:05+00:00", "updated_at": "2023-11-28T22:09:05+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_23bf3a2df40711ed8804ac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-16T16:31:42+00:00", "updated_at": - "2023-05-16T16:31:42+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_bf1373408e3a11ee8d28ac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T22:09:06+00:00", "updated_at": + "2023-11-28T22:09: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": {}}, "buyer_address": {"id": - "adr_23bc5a2bf40711edb329ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T16:31:41+00:00", "updated_at": "2023-05-16T16:31:41+00:00", "name": + "adr_bf0b46908e3a11ee8d25ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:09:05+00:00", "updated_at": "2023-11-28T22:09:05+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_a930a24971e0445dbe4d11e13c1124f7", + {}}, "forms": [], "fees": [], "id": "shp_06dae76aeb3e429287ca35dccd1d0a1d", "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: - - '5953' + - '6496' content-type: - application/json; charset=utf-8 - etag: - - W/"e0aa8a3574991e5ac8f609149141740f" expires: - '0' location: - - /api/v2/shipments/shp_a930a24971e0445dbe4d11e13c1124f7 + - /api/v2/shipments/shp_06dae76aeb3e429287ca35dccd1d0a1d pragma: - no-cache referrer-policy: @@ -127,27 +132,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e36463afede7872f7f0027a6e0 + - 88ad7b9365666501e78a9f84003f6aa0 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.866583' + - '0.759902' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_create_with_carbon_offset.yaml b/tests/cassettes/test_shipment_create_with_carbon_offset.yaml deleted file mode 100644 index 4d137310..00000000 --- a/tests/cassettes/test_shipment_create_with_carbon_offset.yaml +++ /dev/null @@ -1,157 +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}}, "carbon_offset": true}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '519' - Content-Type: - - application/json - authorization: - - - user-agent: - - - method: POST - uri: https://api.easypost.com/v2/shipments - response: - body: - string: '{"created_at": "2023-05-16T16:31:48Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": - "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-16T16:31:49Z", "batch_id": null, "batch_status": - null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_27b0f068f40711ed9720ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:31:48+00:00", "updated_at": "2023-05-16T16:31:48+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_3d5da6ffe19146ada9bcccbef087493f", - "object": "Parcel", "created_at": "2023-05-16T16:31:48Z", "updated_at": "2023-05-16T16:31:48Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_61b72dba67bf4bc98cbce1a9a97cfa9b", - "object": "Rate", "created_at": "2023-05-16T16:31:49Z", "updated_at": "2023-05-16T16:31:49Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_995126fca8b747d7a4fe50b2b91a10e1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "carbon_offset": {"object": "CarbonOffset", "grams": 36, "price": "0.11", - "currency": "USD"}}, {"id": "rate_4de7b0ebbd1d4c5ba9e200735a760a17", "object": - "Rate", "created_at": "2023-05-16T16:31:49Z", "updated_at": "2023-05-16T16:31:49Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_995126fca8b747d7a4fe50b2b91a10e1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}, {"id": "rate_203ff3eaed4f4b37b62d579b992d388d", - "object": "Rate", "created_at": "2023-05-16T16:31:49Z", "updated_at": "2023-05-16T16:31:49Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_995126fca8b747d7a4fe50b2b91a10e1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}, {"id": "rate_51045f28155641719bdc71bd99e8658e", - "object": "Rate", "created_at": "2023-05-16T16:31:49Z", "updated_at": "2023-05-16T16:31:49Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_995126fca8b747d7a4fe50b2b91a10e1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}], "refund_status": null, - "scan_form": null, "selected_rate": null, "tracker": null, "to_address": {"id": - "adr_27ae6a8ef40711eda8a13cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:48+00:00", "updated_at": "2023-05-16T16:31:48+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_27b0f068f40711ed9720ac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-16T16:31:48+00:00", "updated_at": - "2023-05-16T16:31:48+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_27ae6a8ef40711eda8a13cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:48+00:00", "updated_at": "2023-05-16T16:31:48+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_995126fca8b747d7a4fe50b2b91a10e1", - "object": "Shipment"}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '6191' - content-type: - - application/json; charset=utf-8 - etag: - - W/"5f21bf2461c3b6199f589f838202f082" - expires: - - '0' - location: - - /api/v2/shipments/shp_995126fca8b747d7a4fe50b2b91a10e1 - 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: - - 23bee7e26463aff4e7872f9c0027a961 - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb8nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 - x-runtime: - - '0.994876' - x-version-label: - - easypost-202305152249-750e1e7d95-master - x-xss-protection: - - 1; mode=block - status: - code: 201 - message: Created -version: 1 diff --git a/tests/cassettes/test_shipment_create_with_ids.yaml b/tests/cassettes/test_shipment_create_with_ids.yaml index 2b27a813..79f7b241 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_246c9684f40711edb466ac1f6bc7bdc6", "object": "Address", - "created_at": "2023-05-16T16:31:43+00:00", "updated_at": "2023-05-16T16:31:43+00:00", + string: '{"id": "adr_bfbcf8998e3a11ee901eac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T22:09:07+00:00", "updated_at": "2023-11-28T22:09: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": @@ -36,12 +36,10 @@ interactions: - '461' content-type: - application/json; charset=utf-8 - etag: - - W/"b432e3d3df2b21851b2e66c4e2310bf0" expires: - '0' location: - - /api/v2/addresses/adr_246c9684f40711edb466ac1f6bc7bdc6 + - /api/v2/addresses/adr_bfbcf8998e3a11ee901eac1f6bc53342 pragma: - no-cache referrer-policy: @@ -57,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afefe7872f800027a73c + - 88ad7b9365666503e78a9f85003f6b8e x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.047270' + - '0.040775' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -99,8 +97,8 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: '{"id": "adr_249c7c44f40711ed8ac3ac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-16T16:31:43+00:00", "updated_at": "2023-05-16T16:31:43+00:00", + string: '{"id": "adr_bfd8825c8e3a11ee9845ac1f6bc539ae", "object": "Address", + "created_at": "2023-11-28T22:09:07+00:00", "updated_at": "2023-11-28T22:09: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": @@ -113,12 +111,10 @@ interactions: - '461' content-type: - application/json; charset=utf-8 - etag: - - W/"bbc1fd04e6558270728ced29b2f81442" expires: - '0' location: - - /api/v2/addresses/adr_249c7c44f40711ed8ac3ac1f6b0a0d1e + - /api/v2/addresses/adr_bfd8825c8e3a11ee9845ac1f6bc539ae pragma: - no-cache referrer-policy: @@ -134,20 +130,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afefe7872f800027a763 + - 88ad7b9365666503e78a9f85003f6bb2 x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.036120' + - '0.040241' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -174,8 +170,8 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: '{"id": "prcl_15d259708d9c4231bbe4d6c38d032e87", "object": "Parcel", - "created_at": "2023-05-16T16:31:43Z", "updated_at": "2023-05-16T16:31:43Z", + string: '{"id": "prcl_afbe09d245bc4206800ba9a28b94cba4", "object": "Parcel", + "created_at": "2023-11-28T22:09:07Z", "updated_at": "2023-11-28T22:09:07Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": 15.4, "mode": "test"}' headers: @@ -185,12 +181,10 @@ interactions: - '229' content-type: - application/json; charset=utf-8 - etag: - - W/"902396e46ebf1a381d30cb4b9f342f1f" expires: - '0' location: - - /api/prcl_15d259708d9c4231bbe4d6c38d032e87/parcels + - /api/v2/parcels/prcl_afbe09d245bc4206800ba9a28b94cba4 pragma: - no-cache referrer-policy: @@ -206,29 +200,29 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afefe7872f800027a76c + - 88ad7b9365666503e78a9f85003f6bd8 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.025857' + - '0.036102' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"shipment": {"from_address": {"id": "adr_246c9684f40711edb466ac1f6bc7bdc6"}, - "to_address": {"id": "adr_249c7c44f40711ed8ac3ac1f6b0a0d1e"}, "parcel": {"id": - "prcl_15d259708d9c4231bbe4d6c38d032e87"}}, "carbon_offset": false}' + body: '{"shipment": {"from_address": {"id": "adr_bfbcf8998e3a11ee901eac1f6bc53342"}, + "to_address": {"id": "adr_bfd8825c8e3a11ee9845ac1f6bc539ae"}, "parcel": {"id": + "prcl_afbe09d245bc4206800ba9a28b94cba4"}}}' headers: Accept: - '*/*' @@ -237,7 +231,7 @@ interactions: Connection: - keep-alive Content-Length: - - '223' + - '199' Content-Type: - application/json authorization: @@ -248,95 +242,100 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:43Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + string: '{"created_at": "2023-11-28T22:09:07Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-16T16:31:44Z", "batch_id": null, "batch_status": + null, "updated_at": "2023-11-28T22:09:08Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_246c9684f40711edb466ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T16:31:43+00:00", "updated_at": "2023-05-16T16:31:43+00:00", "name": + "adr_bfbcf8998e3a11ee901eac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:09:07+00:00", "updated_at": "2023-11-28T22:09: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": null, "parcel": {"id": "prcl_15d259708d9c4231bbe4d6c38d032e87", - "object": "Parcel", "created_at": "2023-05-16T16:31:43Z", "updated_at": "2023-05-16T16:31:43Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_afbe09d245bc4206800ba9a28b94cba4", + "object": "Parcel", "created_at": "2023-11-28T22:09:07Z", "updated_at": "2023-11-28T22:09:07Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6e799193731b482da2e69b504ad2b781", - "object": "Rate", "created_at": "2023-05-16T16:31:44Z", "updated_at": "2023-05-16T16:31:44Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.85", "currency": - "USD", "retail_rate": "5.85", "retail_currency": "USD", "list_rate": "5.85", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_e6830757ed374d7fad0010c2b50bef7d", + "object": "Rate", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "25.25", + "currency": "USD", "retail_rate": "29.20", "retail_currency": "USD", "list_rate": + "25.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_a43912c17d674287aa39e8a4bfdf0fe2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c58b30434f6a4e1289b6f8ee06d7a671", + "object": "Rate", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.73", + "currency": "USD", "retail_rate": "9.35", "retail_currency": "USD", "list_rate": + "7.64", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 1, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 1, "shipment_id": "shp_a43912c17d674287aa39e8a4bfdf0fe2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_158f05986bb9485a9b8c5454f55b9964", + "object": "Rate", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.52", + "currency": "USD", "retail_rate": "7.60", "retail_currency": "USD", "list_rate": + "5.85", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_a43912c17d674287aa39e8a4bfdf0fe2", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bdc38a011a2c4f3a94e508f1a171a329", + "object": "Rate", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.52", "currency": + "USD", "retail_rate": "7.60", "retail_currency": "USD", "list_rate": "5.85", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_830a7745d7244fecbf79a13ca495abdc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_35ce07db23ed4838b90c7eddc51eb666", "object": "Rate", "created_at": - "2023-05-16T16:31:44Z", "updated_at": "2023-05-16T16:31:44Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "25.25", "currency": "USD", - "retail_rate": "29.20", "retail_currency": "USD", "list_rate": "25.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_830a7745d7244fecbf79a13ca495abdc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_968c5eb28caa4864acb3cb8feedd6303", "object": "Rate", "created_at": - "2023-05-16T16:31:44Z", "updated_at": "2023-05-16T16:31:44Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.47", "currency": - "USD", "retail_rate": "6.99", "retail_currency": "USD", "list_rate": "6.99", + "shp_a43912c17d674287aa39e8a4bfdf0fe2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_8df6bb6616da4749906a293ae5f69532", "object": "Rate", "created_at": + "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.52", "currency": + "USD", "retail_rate": "7.60", "retail_currency": "USD", "list_rate": "5.85", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_830a7745d7244fecbf79a13ca495abdc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_2eb934a430d446b4965ea55c2c4cd5e7", "object": "Rate", "created_at": - "2023-05-16T16:31:44Z", "updated_at": "2023-05-16T16:31:44Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.00", "currency": "USD", - "retail_rate": "9.35", "retail_currency": "USD", "list_rate": "7.64", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 1, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 1, "shipment_id": - "shp_830a7745d7244fecbf79a13ca495abdc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_a43912c17d674287aa39e8a4bfdf0fe2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_249c7c44f40711ed8ac3ac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:31:43+00:00", "updated_at": "2023-05-16T16:31:43+00:00", + null, "to_address": {"id": "adr_bfd8825c8e3a11ee9845ac1f6bc539ae", "object": + "Address", "created_at": "2023-11-28T22:09:07+00:00", "updated_at": "2023-11-28T22:09: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": - {}}, "usps_zone": 1, "return_address": {"id": "adr_246c9684f40711edb466ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T16:31:43+00:00", "updated_at": - "2023-05-16T16:31:43+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 1, "return_address": {"id": "adr_bfbcf8998e3a11ee901eac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:09:07+00:00", "updated_at": + "2023-11-28T22:09: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": {}}, "buyer_address": {"id": - "adr_249c7c44f40711ed8ac3ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:31:43+00:00", "updated_at": "2023-05-16T16:31:43+00:00", "name": + "adr_bfd8825c8e3a11ee9845ac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:09:07+00:00", "updated_at": "2023-11-28T22:09: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": - {}}, "forms": [], "fees": [], "id": "shp_830a7745d7244fecbf79a13ca495abdc", + {}}, "forms": [], "fees": [], "id": "shp_a43912c17d674287aa39e8a4bfdf0fe2", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5854' + - '6397' content-type: - application/json; charset=utf-8 - etag: - - W/"c573b9dd80e322649943bd3ade22c33e" expires: - '0' location: - - /api/v2/shipments/shp_830a7745d7244fecbf79a13ca495abdc + - /api/v2/shipments/shp_a43912c17d674287aa39e8a4bfdf0fe2 pragma: - no-cache referrer-policy: @@ -347,25 +346,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afefe7872f800027a779 + - 88ad7b9365666503e78a9f85003f6bfa x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.748315' + - '0.742956' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 4e4faa1c..43ea67f5 100644 --- a/tests/cassettes/test_shipment_generate_form.yaml +++ b/tests/cassettes/test_shipment_generate_form.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-17T18:58:12Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:09:13Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210683546", "updated_at": "2023-05-17T18:58:13Z", "batch_id": + "9400100105442285877098", "updated_at": "2023-11-28T22:09:14Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_c5d53968f4e411edba4fac1f6bc539aa", "object": "Address", "created_at": - "2023-05-17T18:58:12+00:00", "updated_at": "2023-05-17T18:58:12+00:00", "name": + {"id": "adr_c356e7df8e3a11ee9a5dac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09: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": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_1ad6b1612be345b299fcee511292cb0d", - "object": "Parcel", "created_at": "2023-05-17T18:58:12Z", "updated_at": "2023-05-17T18:58:12Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b342d20a07264564bcec4fa1759713b3", + "object": "Parcel", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_86da939159154290825909b37e23e5a3", - "created_at": "2023-05-17T18:58:13Z", "updated_at": "2023-05-17T18:58:13Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-17T18:58:13Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7c755bc8ea744cd3b05409f87f1aaa01", + "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:09:13Z", "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/20230517/65f74d778056428ebd4a973194ad5130.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e864120426313e45e290cf7b4135f5f31f.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f817f8b56c6d43759f1411a21e1f93a9", "object": - "Rate", "created_at": "2023-05-17T18:58:12Z", "updated_at": "2023-05-17T18:58:12Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dd2a6bdb194a4326bd3a7bf0095cb48a", - "object": "Rate", "created_at": "2023-05-17T18:58:12Z", "updated_at": "2023-05-17T18:58:12Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_29eaa652527e4ca0b590111693d039fa", - "object": "Rate", "created_at": "2023-05-17T18:58:12Z", "updated_at": "2023-05-17T18:58:12Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_fe1c82d95c974854a397548262336980", "object": + "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b6f2cbc7aec146bda313bd4725f44462", - "object": "Rate", "created_at": "2023-05-17T18:58:12Z", "updated_at": "2023-05-17T18:58:12Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e1c3b894441c40528eb7d80a6a585ec1", + "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3db3efabf0c043faafdf7963f6587991", + "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_b6f2cbc7aec146bda313bd4725f44462", - "object": "Rate", "created_at": "2023-05-17T18:58:13Z", "updated_at": "2023-05-17T18:58:13Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_305e71d637f14d0fbe38dc9b8d06b4f9", "object": "Rate", "created_at": + "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_8006ff4bd9f24efcbff082b19237ac25", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210683546", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-17T18:58:13Z", "updated_at": - "2023-05-17T18:58:13Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier": "USPS", + "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_dc617f2ea2bc49d7b7d9f7337759c223", "object": "Rate", "created_at": + "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_3db3efabf0c043faafdf7963f6587991", + "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_64766d457ce7416f9a294b30dedd9c2b", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285877098", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:09:14Z", "updated_at": + "2023-11-28T22:09:14Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_19a3782579fe481d9f610588d0a6804a", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzgwMDZmZjRiZDlmMjRlZmNiZmYwODJiMTkyMzdhYzI1"}, - "to_address": {"id": "adr_c5d27137f4e411eda1c8ac1f6bc72124", "object": "Address", - "created_at": "2023-05-17T18:58:12+00:00", "updated_at": "2023-05-17T18:58:13+00:00", + "https://track.easypost.com/djE6dHJrXzY0NzY2ZDQ1N2NlNzQxNmY5YTI5NGIzMGRlZGQ5YzJi"}, + "to_address": {"id": "adr_c354bbf28e3a11ee84473cecef1b359e", "object": "Address", + "created_at": "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09:13+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_c5d53968f4e411edba4fac1f6bc539aa", - "object": "Address", "created_at": "2023-05-17T18:58:12+00:00", "updated_at": - "2023-05-17T18:58:12+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_c356e7df8e3a11ee9a5dac1f6bc539ae", + "object": "Address", "created_at": "2023-11-28T22:09:13+00:00", "updated_at": + "2023-11-28T22:09: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_c5d27137f4e411eda1c8ac1f6bc72124", "object": "Address", "created_at": - "2023-05-17T18:58:12+00:00", "updated_at": "2023-05-17T18:58:13+00:00", "name": + "adr_c354bbf28e3a11ee84473cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09:13+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_f708cc50d42842a0a4a8faf14bb6ece0", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_19a3782579fe481d9f610588d0a6804a", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"fe4ce36a88058b86f179ab08351ffa04" expires: - '0' location: - - /api/v2/shipments/shp_f708cc50d42842a0a4a8faf14bb6ece0 + - /api/v2/shipments/shp_19a3782579fe481d9f610588d0a6804a pragma: - no-cache referrer-policy: @@ -146,21 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - a4ae9a09646523c4e2b9045e0003478a + - 88ad7b9065666509e78a9f89003f7112 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - intlb2wdc a29e4ad05c - - extlb4wdc 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '1.168833' + - '1.004469' x-version-label: - - easypost-202305171805-88442329bc-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -186,77 +190,84 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_f708cc50d42842a0a4a8faf14bb6ece0/forms + uri: https://api.easypost.com/v2/shipments/shp_19a3782579fe481d9f610588d0a6804a/forms response: body: - string: '{"created_at": "2023-05-17T18:58:12Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:09:13Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210683546", "updated_at": "2023-05-17T18:58:13Z", "batch_id": + "9400100105442285877098", "updated_at": "2023-11-28T22:09:14Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_c5d53968f4e411edba4fac1f6bc539aa", "object": "Address", "created_at": - "2023-05-17T18:58:12+00:00", "updated_at": "2023-05-17T18:58:12+00:00", "name": + {"id": "adr_c356e7df8e3a11ee9a5dac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09: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": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_1ad6b1612be345b299fcee511292cb0d", - "object": "Parcel", "created_at": "2023-05-17T18:58:12Z", "updated_at": "2023-05-17T18:58:12Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b342d20a07264564bcec4fa1759713b3", + "object": "Parcel", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_86da939159154290825909b37e23e5a3", - "created_at": "2023-05-17T18:58:13Z", "updated_at": "2023-05-17T18:58:13Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-17T18:58:13Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7c755bc8ea744cd3b05409f87f1aaa01", + "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:09:13Z", "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/20230517/65f74d778056428ebd4a973194ad5130.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e864120426313e45e290cf7b4135f5f31f.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_f817f8b56c6d43759f1411a21e1f93a9", "object": - "Rate", "created_at": "2023-05-17T18:58:12Z", "updated_at": "2023-05-17T18:58:12Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dd2a6bdb194a4326bd3a7bf0095cb48a", - "object": "Rate", "created_at": "2023-05-17T18:58:12Z", "updated_at": "2023-05-17T18:58:12Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_29eaa652527e4ca0b590111693d039fa", - "object": "Rate", "created_at": "2023-05-17T18:58:12Z", "updated_at": "2023-05-17T18:58:12Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_fe1c82d95c974854a397548262336980", "object": + "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b6f2cbc7aec146bda313bd4725f44462", - "object": "Rate", "created_at": "2023-05-17T18:58:12Z", "updated_at": "2023-05-17T18:58:12Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e1c3b894441c40528eb7d80a6a585ec1", + "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3db3efabf0c043faafdf7963f6587991", + "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_305e71d637f14d0fbe38dc9b8d06b4f9", "object": "Rate", "created_at": + "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_b6f2cbc7aec146bda313bd4725f44462", - "object": "Rate", "created_at": "2023-05-17T18:58:13Z", "updated_at": "2023-05-17T18:58:13Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_dc617f2ea2bc49d7b7d9f7337759c223", "object": "Rate", "created_at": + "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_3db3efabf0c043faafdf7963f6587991", + "object": "Rate", "created_at": "2023-11-28T22:09:13Z", "updated_at": "2023-11-28T22:09:13Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_f708cc50d42842a0a4a8faf14bb6ece0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_8006ff4bd9f24efcbff082b19237ac25", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210683546", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-05-17T18:58:13Z", "updated_at": - "2023-05-17T18:58:13Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-17T18:58:13Z", "shipment_id": "shp_f708cc50d42842a0a4a8faf14bb6ece0", + "shp_19a3782579fe481d9f610588d0a6804a", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_64766d457ce7416f9a294b30dedd9c2b", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285877098", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2023-11-28T22:09:14Z", "updated_at": + "2023-11-28T22:09:14Z", "signed_by": null, "weight": null, "est_delivery_date": + "2023-11-28T22:09:14Z", "shipment_id": "shp_19a3782579fe481d9f610588d0a6804a", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T18:58:13Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:09:14Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-18T07:35:13Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:46:14Z", "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": null, "est_delivery_date_local": null, @@ -264,9 +275,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/djE6dHJrXzgwMDZmZjRiZDlmMjRlZmNiZmYwODJiMTkyMzdhYzI1"}, - "to_address": {"id": "adr_c5d27137f4e411eda1c8ac1f6bc72124", "object": "Address", - "created_at": "2023-05-17T18:58:12+00:00", "updated_at": "2023-05-17T18:58:13+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzY0NzY2ZDQ1N2NlNzQxNmY5YTI5NGIzMGRlZGQ5YzJi"}, + "to_address": {"id": "adr_c354bbf28e3a11ee84473cecef1b359e", "object": "Address", + "created_at": "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09:13+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", @@ -274,15 +285,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_c5d53968f4e411edba4fac1f6bc539aa", - "object": "Address", "created_at": "2023-05-17T18:58:12+00:00", "updated_at": - "2023-05-17T18:58:12+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_c356e7df8e3a11ee9a5dac1f6bc539ae", + "object": "Address", "created_at": "2023-11-28T22:09:13+00:00", "updated_at": + "2023-11-28T22:09: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_c5d27137f4e411eda1c8ac1f6bc72124", "object": "Address", "created_at": - "2023-05-17T18:58:12+00:00", "updated_at": "2023-05-17T18:58:13+00:00", "name": + "adr_c354bbf28e3a11ee84473cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:09:13+00:00", "updated_at": "2023-11-28T22:09:13+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": @@ -290,26 +301,24 @@ 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_c86e2b588bf04a6aa1a0d4b8db8e1a06", "created_at": "2023-05-17T18:58:14Z", - "updated_at": "2023-05-17T18:58:14Z", "mode": "test", "form_type": "return_packing_slip", - "form_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20230517/a545b8ccf0db40b6a83a1f4dfab8e7ea.pdf", + "form_1c0109ca38a54caab512212b100b5add", "created_at": "2023-11-28T22:09:14Z", + "updated_at": "2023-11-28T22:09:14Z", "mode": "test", "form_type": "return_packing_slip", + "form_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20231128/90b6caf93de14991b79eb5967eb9d5d3.pdf", "submitted_electronically": null}], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, {"object": "Fee", - "type": "PostageFee", "amount": "6.07000", "charged": true, "refunded": false}], - "id": "shp_f708cc50d42842a0a4a8faf14bb6ece0", "object": "Shipment"}' + "type": "PostageFee", "amount": "5.93000", "charged": true, "refunded": false}], + "id": "shp_19a3782579fe481d9f610588d0a6804a", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8453' + - '8990' content-type: - application/json; charset=utf-8 - etag: - - W/"6f9b19c55e00b36937e7c94d3f99afc2" expires: - '0' location: - - /api/v2/shipments/shp_f708cc50d42842a0a4a8faf14bb6ece0/forms/return_packing_slip + - /api/v2/shipments/shp_19a3782579fe481d9f610588d0a6804a/forms/return_packing_slip pragma: - no-cache referrer-policy: @@ -325,21 +334,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - a4ae9a09646523c5e2b9045e00034805 + - 88ad7b906566650ae78a9f89003f7219 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - intlb1wdc a29e4ad05c - - extlb4wdc 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.713464' + - '0.599809' x-version-label: - - easypost-202305171805-88442329bc-master + - easypost-202311250013-a0f06fbc2c-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 bf452e92..3bccaceb 100644 --- a/tests/cassettes/test_shipment_get_lowest_smart_rate.yaml +++ b/tests/cassettes/test_shipment_get_lowest_smart_rate.yaml @@ -6,7 +6,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"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}}, "carbon_offset": false}' + 15.4}}}' headers: Accept: - '*/*' @@ -15,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '520' + - '496' Content-Type: - application/json authorization: @@ -26,95 +26,100 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:47Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + string: '{"created_at": "2023-11-28T22:09:11Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-16T16:31:47Z", "batch_id": null, "batch_status": + null, "updated_at": "2023-11-28T22:09:12Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_26e240cef40711edbb71ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T16:31:47+00:00", "updated_at": "2023-05-16T16:31:47+00:00", "name": + "adr_c2782ea48e3a11ee91e0ac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:09:11+00:00", "updated_at": "2023-11-28T22:09:11+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_046b0db84b7e46f79424f9e039c006ac", - "object": "Parcel", "created_at": "2023-05-16T16:31:47Z", "updated_at": "2023-05-16T16:31:47Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7bfca1137a1f426b98e017add3fc37cb", + "object": "Parcel", "created_at": "2023-11-28T22:09:11Z", "updated_at": "2023-11-28T22:09:11Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_8004e2297e5042d381e65b6aa0c1b47c", - "object": "Rate", "created_at": "2023-05-16T16:31:47Z", "updated_at": "2023-05-16T16:31:47Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_845b711111cc4673afab6135e97cadd2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1511417153ae4d27a9ed757fb79179b8", - "object": "Rate", "created_at": "2023-05-16T16:31:47Z", "updated_at": "2023-05-16T16:31:47Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_845b711111cc4673afab6135e97cadd2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ee93dc67a641465983a29c522983fafc", - "object": "Rate", "created_at": "2023-05-16T16:31:47Z", "updated_at": "2023-05-16T16:31:47Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_845b711111cc4673afab6135e97cadd2", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1ccee45d09314605aab8ac89dfdf5c79", - "object": "Rate", "created_at": "2023-05-16T16:31:47Z", "updated_at": "2023-05-16T16:31:47Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_554694341e59448fac370195d43880d6", + "object": "Rate", "created_at": "2023-11-28T22:09:12Z", "updated_at": "2023-11-28T22:09:12Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a98e57095bbf414f8c977fd0adce35ce", + "object": "Rate", "created_at": "2023-11-28T22:09:12Z", "updated_at": "2023-11-28T22:09:12Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_5e8eacd270264d25a78ba60e6c007403", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_3f306937dbb5432485a274f3e4a383c5", "object": "Rate", "created_at": + "2023-11-28T22:09:12Z", "updated_at": "2023-11-28T22:09:12Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_845b711111cc4673afab6135e97cadd2", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_5e8eacd270264d25a78ba60e6c007403", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_de1c5cd68b024fc0a117b84b79ddc8de", "object": "Rate", "created_at": + "2023-11-28T22:09:12Z", "updated_at": "2023-11-28T22:09:12Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_5e8eacd270264d25a78ba60e6c007403", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_be2cd75b56374eafbf401871c24a6670", "object": "Rate", "created_at": + "2023-11-28T22:09:12Z", "updated_at": "2023-11-28T22:09:12Z", "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", + "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_5e8eacd270264d25a78ba60e6c007403", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_26df76e9f40711ed93f1ac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:31:47+00:00", "updated_at": "2023-05-16T16:31:47+00:00", + null, "to_address": {"id": "adr_c27554028e3a11ee91dbac1f6bc53342", "object": + "Address", "created_at": "2023-11-28T22:09:11+00:00", "updated_at": "2023-11-28T22:09: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": - {}}, "usps_zone": 4, "return_address": {"id": "adr_26e240cef40711edbb71ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T16:31:47+00:00", "updated_at": - "2023-05-16T16:31:47+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_c2782ea48e3a11ee91e0ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:09:11+00:00", "updated_at": + "2023-11-28T22:09:11+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_26df76e9f40711ed93f1ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:31:47+00:00", "updated_at": "2023-05-16T16:31:47+00:00", "name": + "adr_c27554028e3a11ee91dbac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:09:11+00:00", "updated_at": "2023-11-28T22:09: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": - {}}, "forms": [], "fees": [], "id": "shp_845b711111cc4673afab6135e97cadd2", + {}}, "forms": [], "fees": [], "id": "shp_5e8eacd270264d25a78ba60e6c007403", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5851' + - '6394' content-type: - application/json; charset=utf-8 - etag: - - W/"9051776e8f5458eac23d5934ea0ae87d" expires: - '0' location: - - /api/v2/shipments/shp_845b711111cc4673afab6135e97cadd2 + - /api/v2/shipments/shp_5e8eacd270264d25a78ba60e6c007403 pragma: - no-cache referrer-policy: @@ -125,27 +130,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e76463aff3e7872f9b0027a8f6 + - 88ad7b9065666507e78a9f88003f6fc6 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb33nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.840981' + - '0.710293' x-version-label: - - easypost-202305161623-0a285b6b1b-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -165,53 +168,59 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_845b711111cc4673afab6135e97cadd2/smartrate + uri: https://api.easypost.com/v2/shipments/shp_5e8eacd270264d25a78ba60e6c007403/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-05-16T16:31:47Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_8004e2297e5042d381e65b6aa0c1b47c", "list_currency": "USD", - "list_rate": 31.25, "mode": "test", "object": "Rate", "rate": 31.25, "retail_currency": - "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_845b711111cc4673afab6135e97cadd2", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": - 4}, "updated_at": "2023-05-16T16:31:47Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-05-16T16:31:47Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 5, "est_delivery_days": 5, "id": "rate_1511417153ae4d27a9ed757fb79179b8", - "list_currency": "USD", "list_rate": 7.75, "mode": "test", "object": "Rate", - "rate": 6.76, "retail_currency": "USD", "retail_rate": 7.75, "service": "ParcelSelect", - "shipment_id": "shp_845b711111cc4673afab6135e97cadd2", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 2, "percentile_97": 2, "percentile_99": 3}, "updated_at": - "2023-05-16T16:31:47Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-05-16T16:31:47Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_ee93dc67a641465983a29c522983fafc", "list_currency": "USD", - "list_rate": 8.24, "mode": "test", "object": "Rate", "rate": 7.15, "retail_currency": - "USD", "retail_rate": 10.2, "service": "Priority", "shipment_id": "shp_845b711111cc4673afab6135e97cadd2", + "created_at": "2023-11-28T22:09:12Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_554694341e59448fac370195d43880d6", "list_currency": "USD", + "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.0, "service": "GroundAdvantage", "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2023-05-16T16:31:47Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-05-16T16:31:47Z", + 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 9}, "updated_at": "2023-11-28T22:09:12Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:09:12Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_1ccee45d09314605aab8ac89dfdf5c79", + "delivery_days": 3, "est_delivery_days": 3, "id": "rate_a98e57095bbf414f8c977fd0adce35ce", "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 6.07, "retail_currency": "USD", "retail_rate": 6.07, "service": "First", - "shipment_id": "shp_845b711111cc4673afab6135e97cadd2", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 3, "percentile_97": 4, "percentile_99": 5}, "updated_at": - "2023-05-16T16:31:47Z"}]}' + "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", + "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": + 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": 9}, "updated_at": + "2023-11-28T22:09:12Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2023-11-28T22:09:12Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_3f306937dbb5432485a274f3e4a383c5", "list_currency": "USD", + "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.0, "service": "ParcelSelect", "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 9}, "updated_at": "2023-11-28T22:09:12Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:09:12Z", + "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, + "delivery_days": null, "est_delivery_days": null, "id": "rate_de1c5cd68b024fc0a117b84b79ddc8de", + "list_currency": "USD", "list_rate": 31.25, "mode": "test", "object": "Rate", + "rate": 31.25, "retail_currency": "USD", "retail_rate": 35.8, "service": "Express", + "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": + 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 5}, "updated_at": + "2023-11-28T22:09:12Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2023-11-28T22:09:12Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": + 2, "id": "rate_be2cd75b56374eafbf401871c24a6670", "list_currency": "USD", + "list_rate": 8.24, "mode": "test", "object": "Rate", "rate": 6.95, "retail_currency": + "USD", "retail_rate": 10.2, "service": "Priority", "shipment_id": "shp_5e8eacd270264d25a78ba60e6c007403", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 2, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": + 6}, "updated_at": "2023-11-28T22:09:12Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '2620' + - '3274' content-type: - application/json; charset=utf-8 - etag: - - W/"b394562e6e733327d27be371cb69d772" expires: - '0' pragma: @@ -229,20 +238,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e76463aff4e7872f9b0027a93b + - 88ad7b9065666508e78a9f88003f709d x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.196552' + - '0.105957' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 fd8badeb..d3aa9373 100644 --- a/tests/cassettes/test_shipment_get_next_page.yaml +++ b/tests/cassettes/test_shipment_get_next_page.yaml @@ -16,123 +16,106 @@ interactions: uri: https://api.easypost.com/v2/shipments?page_size=5 response: body: - string: '{"shipments": [{"created_at": "2023-05-16T16:22:22Z", "is_return": - false, "messages": [{"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_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"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": - "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "delivered", "tracking_code": "9400100104262210337456", - "updated_at": "2023-05-16T16:26:43Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_582daaed61af4385af1ab69afbe4bf31", - "object": "CustomsInfo", "created_at": "2023-05-16T16:22:22Z", "updated_at": - "2023-05-16T16:22:22Z", "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_6533bee6732d4f66a02caa1e542d47f5", "object": "CustomsItem", - "created_at": "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", - "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_d62fb718f40511edb00fac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:22:22+00:00", "updated_at": "2023-05-16T16:22:22+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": + string: '{"shipments": [{"created_at": "2023-11-28T22:04:14Z", "is_return": + false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": + {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", + "tracking_code": "9400100105442285865323", "updated_at": "2023-11-28T22:07:49Z", + "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": + null, "from_address": {"id": "adr_112114878e3a11ee94313cecef1b359e", "object": + "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04: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_29edd0beab3f49e8ab6d4414e6f99d08", - "object": "Parcel", "created_at": "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_c14abe119b4b47cca0eaffefa64ec311", + "object": "Parcel", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_e606290bed134b98895b549d34a38416", - "created_at": "2023-05-16T16:22:23Z", "updated_at": "2023-05-16T16:22:25Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:22:23Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f5482c5ee9694dc2aaf344cd96b84259", + "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:04:14Z", "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/20230516/a9d19fca8ee5479591a317db0a9fba3d.png", - "label_pdf_url": null, "label_zpl_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20230516/397e83243d82404f98cd64718d68b8cf.zpl", - "label_epl2_url": null, "label_file": null}, "rates": [{"id": "rate_a4152cbf9403418d808e0ba0c7e05370", - "object": "Rate", "created_at": "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_44dcc5ae48194b65aaaf88aa31e930f4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6320d535e8514d00826c079ae685e70d", - "object": "Rate", "created_at": "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8c8b82e8339f94b608d71b001b7c22082.png", + "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": + null}, "rates": [{"id": "rate_f7fc0d50e1c54a7f94d19d07d83527e2", "object": + "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_44dcc5ae48194b65aaaf88aa31e930f4", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_49c195d15ca84b5ea9fb470985118855", - "object": "Rate", "created_at": "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f1537b73e7b445b86a0a34b139a0bbc", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_44dcc5ae48194b65aaaf88aa31e930f4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_221474bca29a41ae9f57e21ce626c3ee", "object": "Rate", "created_at": - "2023-05-16T16:22:22Z", "updated_at": "2023-05-16T16:22:22Z", "mode": "test", + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_252d16804f6a4914990c7927640dc139", "object": "Rate", "created_at": + "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_550711dcaca14d96a311eedb314dbb30", "object": "Rate", "created_at": + "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_44dcc5ae48194b65aaaf88aa31e930f4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_49c195d15ca84b5ea9fb470985118855", - "object": "Rate", "created_at": "2023-05-16T16:22:23Z", "updated_at": "2023-05-16T16:22:23Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": "submitted", "scan_form": null, "selected_rate": {"id": "rate_14f869b274414bc2a26bfd40b791eaaf", + "object": "Rate", "created_at": "2023-11-28T22:04:14Z", "updated_at": "2023-11-28T22:04:14Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_44dcc5ae48194b65aaaf88aa31e930f4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_1c2c2fcd8ebd43c2abb6e526a2b39760", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210337456", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:22:23Z", - "updated_at": "2023-05-16T16:25:24Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:25:24Z", "shipment_id": "shp_44dcc5ae48194b65aaaf88aa31e930f4", + "shp_389b05acbbff44bfa104ee937676bace", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_f7228e9b353c4d22820956036c86fcc8", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285865323", "status": "delivered", + "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:04:15Z", + "updated_at": "2023-11-28T22:07:15Z", "signed_by": "John Tester", "weight": + null, "est_delivery_date": "2023-11-28T22:07:15Z", "shipment_id": "shp_389b05acbbff44bfa104ee937676bace", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:25:24Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:07:15Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:02:24Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:44:15Z", "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": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:07:24Z", "source": "USPS", "carrier_code": null, "tracking_location": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2023-10-29T20:49:15Z", "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": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:43:24Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:34:24Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:14:24Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:24:24Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2023-10-30T22:25:15Z", "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": "2023-10-31T01:16:15Z", + "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": "2023-10-31T06:56:15Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:16:24Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:06:15Z", + "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": "2023-10-31T11:58:15Z", + "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, @@ -141,140 +124,148 @@ interactions: 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": "2023-04-19T06:16:24Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzFjMmMyZmNkOGViZDQzYzJhYmI2ZTUyNmEyYjM5NzYw"}, - "to_address": {"id": "adr_d62da3cff40511ed80c03cecef1b359e", "object": "Address", - "created_at": "2023-05-16T16:22:22+00:00", "updated_at": "2023-05-16T16:22: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"}}}}, "usps_zone": - 4, "return_address": {"id": "adr_d62fb718f40511edb00fac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:22:22+00:00", "updated_at": "2023-05-16T16:22:22+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_d62da3cff40511ed80c03cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:22:22+00:00", "updated_at": "2023-05-16T16:22:23+00:00", - "name": "ELIZABETH SWAN", "company": null, "street1": "179 N HARBOR DR", "street2": - null, "city": "REDONDO BEACH", "state": "CA", "zip": "90277-2506", "country": + null, "initial_delivery_attempt": "2023-10-31T11:58:15Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2Y3MjI4ZTliMzUzYzRkMjI4MjA5NTYwMzZjODZmY2M4"}, + "to_address": {"id": "adr_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+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_112114878e3a11ee94313cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:04:14+00:00", "updated_at": + "2023-11-28T22:04: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_111e48828e3a11ee9f7dac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:04:14+00:00", "updated_at": "2023-11-28T22:04:14+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": - "6.07000", "charged": true, "refunded": false}], "id": "shp_44dcc5ae48194b65aaaf88aa31e930f4", - "object": "Shipment"}, {"created_at": "2023-05-16T16:21:05Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", + 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": "5.93000", "charged": true, + "refunded": false}], "id": "shp_389b05acbbff44bfa104ee937676bace", "object": + "Shipment"}, {"created_at": "2023-11-28T22:03:47Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100104262210337050", "updated_at": "2023-05-16T16:25:45Z", "batch_id": + "9400100105442285864357", "updated_at": "2023-11-28T22:07:56Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_a873eee6f40511ed9213ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T16:21:05+00:00", "updated_at": "2023-05-16T16:21:05+00:00", "name": + {"id": "adr_010914128e3a11ee9588ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:47+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_3fbe7beb867a4b4889872877a790d9c7", - "object": "Parcel", "created_at": "2023-05-16T16:21:05Z", "updated_at": "2023-05-16T16:21:05Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7c35fa7769554f47a95634acda4077f8", + "object": "Parcel", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_a97b131316284b03a144dc2bcf3a6f90", - "created_at": "2023-05-16T16:21:07Z", "updated_at": "2023-05-16T16:21:07Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:21:07Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_45b959020cec4c9382ea8582011ca45a", + "created_at": "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:03:48Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:48Z", "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/20230516/1b13765f6faf4183a9f65ee56be5309f.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8f508ea72234845a19614dc7b80747ec6.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_671eafd934504d4f98a24c74399c4dee", "object": - "Rate", "created_at": "2023-05-16T16:21:06Z", "updated_at": "2023-05-16T16:21:06Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_d10fdd17bcc24102ba1a58b072850c64", "object": + "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8bdd5c31c7034669b0980cb1811a90b7", + "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_36d0b9cd93734d3fbcdeab3f3b14739e", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_56f6cc7dd57348958884d0c2c418e76f", - "object": "Rate", "created_at": "2023-05-16T16:21:06Z", "updated_at": "2023-05-16T16:21:06Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c56f73ba16274416bc45a3f3f07c2729", + "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_63f66147f39d4a4ea83538d74e47d427", + "object": "Rate", "created_at": "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_36d0b9cd93734d3fbcdeab3f3b14739e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_81ed2dfd0b384e9fb71a6f9040ad535a", "object": "Rate", "created_at": - "2023-05-16T16:21:06Z", "updated_at": "2023-05-16T16:21:06Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_36d0b9cd93734d3fbcdeab3f3b14739e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_55628363de664009aec93b85250179b7", "object": "Rate", "created_at": - "2023-05-16T16:21:06Z", "updated_at": "2023-05-16T16:21:06Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_36d0b9cd93734d3fbcdeab3f3b14739e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_56f6cc7dd57348958884d0c2c418e76f", - "object": "Rate", "created_at": "2023-05-16T16:21:07Z", "updated_at": "2023-05-16T16:21:07Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_7d0a166002ba410686b84e853c434f8d", "object": "Rate", "created_at": + "2023-11-28T22:03:47Z", "updated_at": "2023-11-28T22:03:47Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_36d0b9cd93734d3fbcdeab3f3b14739e", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_04e23cace8034b7695f49811da9a37cc", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210337050", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:21:07Z", - "updated_at": "2023-05-16T16:24:07Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:24:07Z", "shipment_id": "shp_36d0b9cd93734d3fbcdeab3f3b14739e", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:24:07Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:01:07Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:06:07Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:42:07Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:33:07Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:13:07Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:23:07Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_c56f73ba16274416bc45a3f3f07c2729", + "object": "Rate", "created_at": "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:03:48Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_e91af09aa32d41f3ada2c0e30df3c4f0", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285864357", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2023-11-28T22:03:48Z", "updated_at": "2023-11-28T22:06:49Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:49Z", + "shipment_id": "shp_ad5656f792d74fe2862fe497c75c1eb5", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2023-10-28T22:06:49Z", "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": "2023-10-29T10:43:49Z", "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": "2023-10-29T20:48:49Z", + "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": + "2023-10-30T22:24:49Z", "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": "2023-10-31T01:15:49Z", "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": "2023-10-31T06:55:49Z", + "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": "2023-10-31T07:05:49Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:15:07Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:49Z", + "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, @@ -283,9 +274,9 @@ interactions: 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": "2023-04-19T06:15:07Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzA0ZTIzY2FjZTgwMzRiNzY5NWY0OTgxMWRhOWEzN2Nj"}, - "to_address": {"id": "adr_a87158f6f40511ed9151ac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-16T16:21:05+00:00", "updated_at": "2023-05-16T16:21:06+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:49Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2U5MWFmMDlhYTMyZDQxZjNhZGEyYzBlMzBkZjNjNGYw"}, + "to_address": {"id": "adr_01063a4a8e3a11ee9586ac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:48+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": @@ -293,14 +284,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_a873eee6f40511ed9213ac1f6bc7bdc6", "object": - "Address", "created_at": "2023-05-16T16:21:05+00:00", "updated_at": "2023-05-16T16:21:05+00:00", + 4, "return_address": {"id": "adr_010914128e3a11ee9588ac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:47+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_a87158f6f40511ed9151ac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:21:05+00:00", "updated_at": "2023-05-16T16:21:06+00:00", + {}}, "buyer_address": {"id": "adr_01063a4a8e3a11ee9586ac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:47+00:00", "updated_at": "2023-11-28T22:03:48+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": @@ -310,101 +301,107 @@ 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.07000", "charged": true, "refunded": false}], "id": "shp_36d0b9cd93734d3fbcdeab3f3b14739e", - "object": "Shipment"}, {"created_at": "2023-05-16T16:21:03Z", "is_return": + "5.93000", "charged": true, "refunded": false}], "id": "shp_ad5656f792d74fe2862fe497c75c1eb5", + "object": "Shipment"}, {"created_at": "2023-11-28T22:03:45Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", - "tracking_code": "9400100104262210337043", "updated_at": "2023-05-16T16:25:44Z", + "tracking_code": "9400100105442285864272", "updated_at": "2023-11-28T22:08:03Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_a729f763f40511ed8c1aac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:21:03+00:00", "updated_at": "2023-05-16T16:21:03+00:00", + null, "from_address": {"id": "adr_000c6eb58e3a11ee94ffac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03: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_7046a1815ffc47d7b9d86055a62c4f37", - "object": "Parcel", "created_at": "2023-05-16T16:21:03Z", "updated_at": "2023-05-16T16:21:03Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_5180a2c1a65848329e6508142539ca9d", + "object": "Parcel", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_9ceb180e70d54d7aa9b2776826753975", - "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:21:04Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_5dc65162838f41ae87512e6502ecf8bb", + "created_at": "2023-11-28T22:03:46Z", "updated_at": "2023-11-28T22:03:46Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03: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/20230516/92a7fa8af51548b5aed37a91569301e7.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8eca41f0a3e5743d7af07c30f4b27d774.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_814adb421bca4e6faebf760e90c224c3", "object": - "Rate", "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_2c633f7b7b42407e950ef0941c189e68", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5baf23f138e84074bd2c005e3b91a58d", - "object": "Rate", "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_2c633f7b7b42407e950ef0941c189e68", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_24bd73a25bae4892af25a5f8513e6ab0", - "object": "Rate", "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_2c633f7b7b42407e950ef0941c189e68", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_1b7f764cffa6475c860423b54bc975da", - "object": "Rate", "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + null}, "rates": [{"id": "rate_f5688ca555764090a241d1d727ede196", "object": + "Rate", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_acee1b00d2ad4d4ab90867200fefc534", + "object": "Rate", "created_at": "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e8b77d984d3a4221868fab95ca984af5", "object": "Rate", "created_at": + "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_2c633f7b7b42407e950ef0941c189e68", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_d8db44bccbcd497bb1262510cc379364", - "object": "Rate", "created_at": "2023-05-16T16:21:04Z", "updated_at": "2023-05-16T16:21:04Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_1d09e97dd8894ba6bf7fca2299639a12", "object": "Rate", "created_at": + "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e3eab61c56b3487c875fccb3e4f3f7aa", "object": "Rate", "created_at": + "2023-11-28T22:03:45Z", "updated_at": "2023-11-28T22:03:45Z", "mode": "test", + "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", + "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, + "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": + "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_acee1b00d2ad4d4ab90867200fefc534", + "object": "Rate", "created_at": "2023-11-28T22:03:46Z", "updated_at": "2023-11-28T22:03:46Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_2c633f7b7b42407e950ef0941c189e68", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_8444901e342242c5809763e4130d1cd9", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210337043", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:21:04Z", - "updated_at": "2023-05-16T16:24:04Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:24:04Z", "shipment_id": "shp_2c633f7b7b42407e950ef0941c189e68", + "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_32eeddfa17d44033961783d1b52f5790", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285864272", "status": "delivered", + "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:46Z", + "updated_at": "2023-11-28T22:06:46Z", "signed_by": "John Tester", "weight": + null, "est_delivery_date": "2023-11-28T22:06:46Z", "shipment_id": "shp_00f27ebd8cef472d9cd32faddbc7f445", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:24:04Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:06:46Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:01:04Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:43:46Z", "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": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:06:04Z", "source": "USPS", "carrier_code": null, "tracking_location": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2023-10-29T20:48:46Z", "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": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:42:04Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:33:04Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:13:04Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:23:04Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2023-10-30T22:24:46Z", "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": "2023-10-31T01:15:46Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:15:04Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:46Z", + "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": "2023-10-31T07:05:46Z", + "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": "2023-10-31T11:57:46Z", + "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, @@ -413,9 +410,9 @@ interactions: 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": "2023-04-19T06:15:04Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzg0NDQ5MDFlMzQyMjQyYzU4MDk3NjNlNDEzMGQxY2Q5"}, - "to_address": {"id": "adr_a7273923f40511ed8c0fac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-16T16:21:03+00:00", "updated_at": "2023-05-16T16:21:03+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:46Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzMyZWVkZGZhMTdkNDQwMzM5NjE3ODNkMWI1MmY1Nzkw"}, + "to_address": {"id": "adr_000a6db08e3a11ee89b63cecef1b359e", "object": "Address", + "created_at": "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03:45+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", @@ -423,15 +420,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_a729f763f40511ed8c1aac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-16T16:21:03+00:00", "updated_at": - "2023-05-16T16:21:03+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_000c6eb58e3a11ee94ffac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T22:03:45+00:00", "updated_at": + "2023-11-28T22:03: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_a7273923f40511ed8c0fac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:21:03+00:00", "updated_at": "2023-05-16T16:21:03+00:00", "name": + "adr_000a6db08e3a11ee89b63cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:03:45+00:00", "updated_at": "2023-11-28T22:03:45+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": @@ -440,102 +437,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": "6.07000", "charged": true, - "refunded": false}], "id": "shp_2c633f7b7b42407e950ef0941c189e68", "object": - "Shipment"}, {"created_at": "2023-05-16T16:21:01Z", "is_return": false, "messages": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_00f27ebd8cef472d9cd32faddbc7f445", "object": + "Shipment"}, {"created_at": "2023-11-28T22:03:43Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100104262210337036", "updated_at": "2023-05-16T16:25:46Z", "batch_id": + "9400100105442285864203", "updated_at": "2023-11-28T22:08:25Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_a63b8900f40511ed929fac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T16:21:01+00:00", "updated_at": "2023-05-16T16:21:01+00:00", "name": + {"id": "adr_ff0756f38e3911ee9e62ac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03: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_8ac4fabb4a8d40c7986154d37aa33350", - "object": "Parcel", "created_at": "2023-05-16T16:21:01Z", "updated_at": "2023-05-16T16:21:01Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_2e49adf3e35b46c48725a6ae20197f38", + "object": "Parcel", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_f813dd28e3f94059aa447739dab01641", - "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:21:02Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_ac700070142c425aafad1497b357d4d0", + "created_at": "2023-11-28T22:03:44Z", "updated_at": "2023-11-28T22:03:44Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:44Z", "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/20230516/fbb018d920c9467b8efafbea99b7c189.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8fce3cc3313264a158f9ca2b86bca1e9b.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_24d6dd80f86b407e9d3db6c8fe8bf06f", "object": - "Rate", "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", + null}, "rates": [{"id": "rate_c7a5afeb9df745f2847d2f92918e9c9a", "object": + "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_ef08e475e134404e8870828a410b8325", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3799f23dff1c46c7b8e106c6d94d4640", - "object": "Rate", "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_ef08e475e134404e8870828a410b8325", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_62a7d8f9d7df4660b07fc1ec5e4bf63d", - "object": "Rate", "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null, "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a14e357b0cbb4203b1d4d2d448804ab6", + "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ef08e475e134404e8870828a410b8325", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c0107337ff73445889af69527f669b05", - "object": "Rate", "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_81c91d416993451991803e544bf4a5d9", + "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_bc8c2bfec1bb47cd9ba910ecaf9274a2", + "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ef08e475e134404e8870828a410b8325", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_c0107337ff73445889af69527f669b05", - "object": "Rate", "created_at": "2023-05-16T16:21:02Z", "updated_at": "2023-05-16T16:21:02Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_233ffa51537f4c05bb9ff89be0477aa6", "object": "Rate", "created_at": + "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ef08e475e134404e8870828a410b8325", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_069b6b07e43144a0aca47b6590e52652", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210337036", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:21:03Z", - "updated_at": "2023-05-16T16:24:03Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:24:03Z", "shipment_id": "shp_ef08e475e134404e8870828a410b8325", + "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_bc8c2bfec1bb47cd9ba910ecaf9274a2", + "object": "Rate", "created_at": "2023-11-28T22:03:44Z", "updated_at": "2023-11-28T22:03:44Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_416f71cd090045c0a6590a8b6c4845b0", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285864203", "status": "delivered", + "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:44Z", + "updated_at": "2023-11-28T22:06:45Z", "signed_by": "John Tester", "weight": + null, "est_delivery_date": "2023-11-28T22:06:45Z", "shipment_id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:24:03Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:06:45Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:01:03Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:43:45Z", "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": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:06:03Z", "source": "USPS", "carrier_code": null, "tracking_location": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2023-10-29T20:48:45Z", "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": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:42:03Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:33:03Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:13:03Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:23:03Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2023-10-30T22:24:45Z", "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": "2023-10-31T01:15:45Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:15:03Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:45Z", + "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": "2023-10-31T07:05:45Z", + "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": "2023-10-31T11:57:45Z", + "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, @@ -544,9 +547,9 @@ interactions: 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": "2023-04-19T06:15:03Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzA2OWI2YjA3ZTQzMTQ0YTBhY2E0N2I2NTkwZTUyNjUy"}, - "to_address": {"id": "adr_a638b4ebf40511ed87ecac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-16T16:21:01+00:00", "updated_at": "2023-05-16T16:21:02+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:45Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzQxNmY3MWNkMDkwMDQ1YzBhNjU5MGE4YjZjNDg0NWIw"}, + "to_address": {"id": "adr_ff04cc778e3911ee9e61ac1f6bc539ae", "object": "Address", + "created_at": "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03:44+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", @@ -554,15 +557,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_a63b8900f40511ed929fac1f6bc72124", - "object": "Address", "created_at": "2023-05-16T16:21:01+00:00", "updated_at": - "2023-05-16T16:21:01+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_ff0756f38e3911ee9e62ac1f6bc539ae", + "object": "Address", "created_at": "2023-11-28T22:03:43+00:00", "updated_at": + "2023-11-28T22:03: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": {}}, "buyer_address": {"id": - "adr_a638b4ebf40511ed87ecac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:21:01+00:00", "updated_at": "2023-05-16T16:21:02+00:00", "name": + "adr_ff04cc778e3911ee9e61ac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:03:43+00:00", "updated_at": "2023-11-28T22:03:44+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": @@ -571,115 +574,121 @@ 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": "6.07000", "charged": true, - "refunded": false}, {"object": "Fee", "type": "CarbonOffsetFee", "amount": - "0.11000", "charged": true, "refunded": false}], "id": "shp_ef08e475e134404e8870828a410b8325", - "object": "Shipment"}, {"created_at": "2023-05-16T16:20:59Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_7ad2e0fa4ad7445e845be6bf32c1c5f3", "object": + "Shipment"}, {"created_at": "2023-11-28T22:03:41Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100104262210337029", "updated_at": "2023-05-16T16:25:09Z", "batch_id": + "9400100105442285864142", "updated_at": "2023-11-28T22:08:41Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_a4879739f40511ed96723cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:20:59+00:00", "updated_at": "2023-05-16T16:20:59+00:00", "name": + {"id": "adr_fdc32ad38e3911ee9351ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:41+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_6922e9cbc89b4f9fb8a7b3e080ecebc9", - "object": "Parcel", "created_at": "2023-05-16T16:20:59Z", "updated_at": "2023-05-16T16:20:59Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_fb734727e45d4b77bc13c3fc1030c723", + "object": "Parcel", "created_at": "2023-11-28T22:03:41Z", "updated_at": "2023-11-28T22:03:41Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_6a53f92ccdfe4fe0848339a84afda561", - "created_at": "2023-05-16T16:21:00Z", "updated_at": "2023-05-16T16:21:01Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:21:00Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2fe5e816594b43218703f77389572490", + "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:42Z", "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/20230516/a7c244af57b04f5f8fd597e7adc81378.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e85a55642621d44e798cbb97b6d0af8f5d.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_c2df9308a3a14666ae9fac7e9d19a117", "object": - "Rate", "created_at": "2023-05-16T16:20:59Z", "updated_at": "2023-05-16T16:20:59Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_ce2e6e834db243d380d656f90837d4e3", "object": + "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_5efc9f87bef5468691e1aa0e0cb7c085", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_6a649176a57b41a290d5df207bacf437", - "object": "Rate", "created_at": "2023-05-16T16:20:59Z", "updated_at": "2023-05-16T16:20:59Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8931502ae8114e968453808984c31074", + "object": "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f2d5681a865e4a1ebeeb1990012d7abe", + "object": "Rate", "created_at": "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_5efc9f87bef5468691e1aa0e0cb7c085", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_bce0261c9b8e438aa2dc870e2a75240e", "object": "Rate", "created_at": - "2023-05-16T16:20:59Z", "updated_at": "2023-05-16T16:20:59Z", "mode": "test", + "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_bcf67383de3843e69ef42cb3a498506e", "object": "Rate", "created_at": + "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_757766f725db4db1917319b3abe867a1", "object": "Rate", "created_at": + "2023-11-28T22:03:42Z", "updated_at": "2023-11-28T22:03:42Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_5efc9f87bef5468691e1aa0e0cb7c085", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_00efbcd87088402ba1d57dca1914a51f", "object": "Rate", "created_at": - "2023-05-16T16:20:59Z", "updated_at": "2023-05-16T16:20:59Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_5efc9f87bef5468691e1aa0e0cb7c085", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_6a649176a57b41a290d5df207bacf437", - "object": "Rate", "created_at": "2023-05-16T16:21:00Z", "updated_at": "2023-05-16T16:21:00Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_5efc9f87bef5468691e1aa0e0cb7c085", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_a3a240fb1a054cda94ceddd844b2d980", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210337029", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:21:01Z", - "updated_at": "2023-05-16T16:24:01Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:24:01Z", "shipment_id": "shp_5efc9f87bef5468691e1aa0e0cb7c085", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:24:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:01:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:06:01Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:42:01Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:33:01Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:13:01Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:23:01Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_8931502ae8114e968453808984c31074", + "object": "Rate", "created_at": "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:03:43Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9deca390f9a3470cb1c3062b004527c0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_5f3a0e7cfb304d7f9cd4a1d1952aa200", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285864142", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2023-11-28T22:03:43Z", "updated_at": "2023-11-28T22:06:43Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:43Z", + "shipment_id": "shp_9deca390f9a3470cb1c3062b004527c0", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2023-10-28T22:06: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": "2023-10-29T10:43: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": "2023-10-29T20:48: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": + "2023-10-30T22:24: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": "2023-10-31T01:15: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": "2023-10-31T06:55: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": "2023-10-31T07:05:43Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:15:01Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57: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, @@ -688,9 +697,9 @@ interactions: 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": "2023-04-19T06:15:01Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2EzYTI0MGZiMWEwNTRjZGE5NGNlZGRkODQ0YjJkOTgw"}, - "to_address": {"id": "adr_a4815838f40511ed90e6ac1f6bc72124", "object": "Address", - "created_at": "2023-05-16T16:20:59+00:00", "updated_at": "2023-05-16T16:21:00+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:43Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzVmM2EwZTdjZmIzMDRkN2Y5Y2Q0YTFkMTk1MmFhMjAw"}, + "to_address": {"id": "adr_fdc041eb8e3911ee934fac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:42+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": @@ -698,14 +707,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_a4879739f40511ed96723cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:20:59+00:00", "updated_at": "2023-05-16T16:20:59+00:00", + 4, "return_address": {"id": "adr_fdc32ad38e3911ee9351ac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:41+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_a4815838f40511ed90e6ac1f6bc72124", "object": - "Address", "created_at": "2023-05-16T16:20:59+00:00", "updated_at": "2023-05-16T16:21:00+00:00", + {}}, "buyer_address": {"id": "adr_fdc041eb8e3911ee934fac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:03:41+00:00", "updated_at": "2023-11-28T22:03:42+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": @@ -715,19 +724,15 @@ 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.07000", "charged": true, "refunded": false}, {"object": "Fee", "type": - "CarbonOffsetFee", "amount": "0.11000", "charged": true, "refunded": false}], - "id": "shp_5efc9f87bef5468691e1aa0e0cb7c085", "object": "Shipment"}], "has_more": - true}' + "5.93000", "charged": true, "refunded": false}], "id": "shp_9deca390f9a3470cb1c3062b004527c0", + "object": "Shipment"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '55045' + - '55484' content-type: - application/json; charset=utf-8 - etag: - - W/"cd9715f54594174309f7466458f77bcc" expires: - '0' pragma: @@ -745,20 +750,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afe1e7872f5a0027a29c + - 88ad7b92656664f2e78a9c6e003f5d4a x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.400052' + - '0.507884' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -778,103 +783,250 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments?before_id=shp_5efc9f87bef5468691e1aa0e0cb7c085&page_size=5 + uri: https://api.easypost.com/v2/shipments?before_id=shp_9deca390f9a3470cb1c3062b004527c0&page_size=5 response: body: - string: '{"shipments": [{"created_at": "2023-05-16T16:20:45Z", "is_return": + string: '{"shipments": [{"created_at": "2023-11-28T22:03:38Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", - "tracking_code": "9400100104262210336961", "updated_at": "2023-05-16T16:24:57Z", + "tracking_code": "9400100105442285863961", "updated_at": "2023-11-28T22:08:05Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": - null, "from_address": {"id": "adr_9c335c96f40511edafadac1f6bc7b362", "object": - "Address", "created_at": "2023-05-16T16:20:45+00:00", "updated_at": "2023-05-16T16:20:45+00:00", + null, "from_address": {"id": "adr_fba6adcb8e3911ee95c0ac1f6bc53342", "object": + "Address", "created_at": "2023-11-28T22:03:38+00:00", "updated_at": "2023-11-28T22:03: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_5e3bce5393b34a17a8c3941f1c0765c2", - "object": "Parcel", "created_at": "2023-05-16T16:20:45Z", "updated_at": "2023-05-16T16:20:45Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_f5c2daad3c024126bf6e92ca8b6a80b3", + "object": "Parcel", "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_734eb70b933645bd9fea8739eb4b4abe", - "created_at": "2023-05-16T16:20:45Z", "updated_at": "2023-05-16T16:20:45Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:20:45Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d48e6465a2fb4d64b631481c5b743de3", + "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03: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/20230516/bb05c27accd64e21a96860bbfccb9e06.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8f9b7786160864d00a5d6e3856db5b326.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_d5ff5c1c347a457b9d1f51c3f302b7d7", "object": - "Rate", "created_at": "2023-05-16T16:20:45Z", "updated_at": "2023-05-16T16:20:45Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_f55ee2605a9f4221a06877569c3ecfe7", "object": + "Rate", "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_9e837e46d8b348a6a71fbefe570a63e8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_077b3e785a5746e1b0a98d211db06a69", - "object": "Rate", "created_at": "2023-05-16T16:20:45Z", "updated_at": "2023-05-16T16:20:45Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_181ce8892eae4436af841b302832747c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_0f965e8672cb4e908a0f735d89359779", + "object": "Rate", "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_181ce8892eae4436af841b302832747c", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_93a8315c0c404f6fa35c87d8b72915b8", + "object": "Rate", "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_181ce8892eae4436af841b302832747c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_45df4ef025694e879840f1f003718c9f", "object": "Rate", "created_at": + "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9e837e46d8b348a6a71fbefe570a63e8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_95717bfc3fff4f3ebbbdbb5f0fc2e129", "object": "Rate", "created_at": - "2023-05-16T16:20:45Z", "updated_at": "2023-05-16T16:20:45Z", "mode": "test", + "shp_181ce8892eae4436af841b302832747c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_3a58c0eab7db4812821cf400bd836767", "object": "Rate", "created_at": + "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_9e837e46d8b348a6a71fbefe570a63e8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_f705edf220ca4187b9eee86d39fb89ba", "object": "Rate", "created_at": - "2023-05-16T16:20:45Z", "updated_at": "2023-05-16T16:20:45Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_9e837e46d8b348a6a71fbefe570a63e8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": "submitted", "scan_form": null, "selected_rate": {"id": "rate_077b3e785a5746e1b0a98d211db06a69", - "object": "Rate", "created_at": "2023-05-16T16:20:45Z", "updated_at": "2023-05-16T16:20:45Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_181ce8892eae4436af841b302832747c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_93a8315c0c404f6fa35c87d8b72915b8", + "object": "Rate", "created_at": "2023-11-28T22:03:38Z", "updated_at": "2023-11-28T22:03:38Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_9e837e46d8b348a6a71fbefe570a63e8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_a590016af3604de787fc6383a06ea0a4", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210336961", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:20:46Z", - "updated_at": "2023-05-16T16:23:46Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:23:46Z", "shipment_id": "shp_9e837e46d8b348a6a71fbefe570a63e8", + "shp_181ce8892eae4436af841b302832747c", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_9f15ae26c0ce40ca9a27f527cc4bf498", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285863961", "status": "delivered", + "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:39Z", + "updated_at": "2023-11-28T22:06:39Z", "signed_by": "John Tester", "weight": + null, "est_delivery_date": "2023-11-28T22:06:39Z", "shipment_id": "shp_181ce8892eae4436af841b302832747c", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:23:46Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:06:39Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:00:46Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:43:39Z", "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": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:05:46Z", "source": "USPS", "carrier_code": null, "tracking_location": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2023-10-29T20:48:39Z", "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": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:41:46Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:32:46Z", "source": "USPS", "carrier_code": null, "tracking_location": + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2023-10-30T22:24:39Z", "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": "2023-10-31T01:15:39Z", + "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": "2023-10-31T06:55:39Z", + "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": "2023-10-31T07:05:39Z", + "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": "2023-10-31T11:57:39Z", + "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": "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"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:12:46Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:22:46Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + null, "zip": "29407"}, "guaranteed_delivery_date": null, "alternate_identifier": + null, "initial_delivery_attempt": "2023-10-31T11:57:39Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzlmMTVhZTI2YzBjZTQwY2E5YTI3ZjUyN2NjNGJmNDk4"}, + "to_address": {"id": "adr_fba4b4b58e3911ee95beac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T22:03:38+00:00", "updated_at": "2023-11-28T22:03: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": 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_fba6adcb8e3911ee95c0ac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:38+00:00", "updated_at": + "2023-11-28T22:03: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_fba4b4b58e3911ee95beac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:03:38+00:00", "updated_at": "2023-11-28T22:03: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": + 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": [{"object": "Form", "id": + "form_8448cc344d7d401ab596e0df35133fbd", "created_at": "2023-11-28T22:03:39Z", + "updated_at": "2023-11-28T22:03:39Z", "mode": "test", "form_type": "return_packing_slip", + "form_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20231128/6013e81400c645d09c3859e4be25ef77.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_181ce8892eae4436af841b302832747c", "object": "Shipment"}, {"created_at": + "2023-11-28T22:03:26Z", "is_return": false, "messages": [], "mode": "test", + "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": + 0}, "reference": null, "status": "delivered", "tracking_code": "9400100105442285863497", + "updated_at": "2023-11-28T22:07:31Z", "batch_id": null, "batch_status": null, + "batch_message": null, "customs_info": null, "from_address": {"id": "adr_f47811368e3911ee8d28ac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T22:03:26+00:00", "updated_at": + "2023-11-28T22:03: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": {}}, "insurance": null, "order_id": + null, "parcel": {"id": "prcl_67c1d6de8f7645be98f83fab3189a9c3", "object": + "Parcel", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", + "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d16db6a7d1bb46b1ab4c63215ee40113", + "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:26Z", + "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/20231128/e8554c8c22efed445da3310e6c9ab5a50f.png", + "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": + null}, "rates": [{"id": "rate_ab90ede02c6b482c8d377b943ca689b8", "object": + "Rate", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_418799a3de3849c48b085d2536ab1175", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_70b1cea4db2640b5b98e8a6740565f9c", + "object": "Rate", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", + "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": + "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_418799a3de3849c48b085d2536ab1175", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_86a70ee679fe474bbe5ecdf7743adfff", + "object": "Rate", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_418799a3de3849c48b085d2536ab1175", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ca68cd4f53ad48089e99b77a0f1ac3af", + "object": "Rate", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_418799a3de3849c48b085d2536ab1175", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_7ddb4a4fff6645b3bb8db682a070759e", "object": "Rate", "created_at": + "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_418799a3de3849c48b085d2536ab1175", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": "submitted", "scan_form": null, "selected_rate": {"id": "rate_ca68cd4f53ad48089e99b77a0f1ac3af", + "object": "Rate", "created_at": "2023-11-28T22:03:26Z", "updated_at": "2023-11-28T22:03:26Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_418799a3de3849c48b085d2536ab1175", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_c746948c361045499ee9913720ae3a7c", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285863497", "status": "delivered", + "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:26Z", + "updated_at": "2023-11-28T22:06:27Z", "signed_by": "John Tester", "weight": + null, "est_delivery_date": "2023-11-28T22:06:27Z", "shipment_id": "shp_418799a3de3849c48b085d2536ab1175", + "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:06:27Z", "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": "2023-10-29T10:43:27Z", "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": + "2023-10-29T20:48:27Z", "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": "2023-10-30T22:24:27Z", "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": "2023-10-31T01:15:27Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:14:46Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Sorting Complete", "description": "", "status": + "in_transit", "status_detail": "status_update", "datetime": "2023-10-31T06:55:27Z", + "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": "2023-10-31T07:05:27Z", + "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": "2023-10-31T11:57:27Z", + "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, @@ -883,9 +1035,9 @@ interactions: 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": "2023-04-19T06:14:46Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2E1OTAwMTZhZjM2MDRkZTc4N2ZjNjM4M2EwNmVhMGE0"}, - "to_address": {"id": "adr_9c31588bf40511ed8d9cac1f6bc72124", "object": "Address", - "created_at": "2023-05-16T16:20:45+00:00", "updated_at": "2023-05-16T16:20:45+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:27Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2M3NDY5NDhjMzYxMDQ1NDk5ZWU5OTEzNzIwYWUzYTdj"}, + "to_address": {"id": "adr_f475c4da8e3911ee8d26ac1f6bc539aa", "object": "Address", + "created_at": "2023-11-28T22:03:26+00:00", "updated_at": "2023-11-28T22:03:26+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", @@ -893,15 +1045,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_9c335c96f40511edafadac1f6bc7b362", - "object": "Address", "created_at": "2023-05-16T16:20:45+00:00", "updated_at": - "2023-05-16T16:20:45+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_f47811368e3911ee8d28ac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T22:03:26+00:00", "updated_at": + "2023-11-28T22:03: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_9c31588bf40511ed8d9cac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T16:20:45+00:00", "updated_at": "2023-05-16T16:20:45+00:00", "name": + "adr_f475c4da8e3911ee8d26ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:03:26+00:00", "updated_at": "2023-11-28T22:03:26+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": @@ -910,102 +1062,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": "6.07000", "charged": true, - "refunded": false}], "id": "shp_9e837e46d8b348a6a71fbefe570a63e8", "object": - "Shipment"}, {"created_at": "2023-05-16T16:20:43Z", "is_return": false, "messages": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_418799a3de3849c48b085d2536ab1175", "object": + "Shipment"}, {"created_at": "2023-11-28T22:03:24Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100104262210336947", "updated_at": "2023-05-16T16:24:47Z", "batch_id": + "9400100105442285863435", "updated_at": "2023-11-28T22:07:40Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_9b52a56df40511ed8d47ac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T16:20:43+00:00", "updated_at": "2023-05-16T16:20:43+00:00", "name": + {"id": "adr_f35ba4e08e3911ee903dac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:03:24+00:00", "updated_at": "2023-11-28T22:03: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_1ef581b6c8ae45bdbe5491ffee963dbe", - "object": "Parcel", "created_at": "2023-05-16T16:20:43Z", "updated_at": "2023-05-16T16:20:43Z", + {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_d63e988a3ab0424a9f749a3965ca0e22", + "object": "Parcel", "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_e5fcef5ee10c491cac59dd010c0a4aad", - "created_at": "2023-05-16T16:20:44Z", "updated_at": "2023-05-16T16:20:44Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:20:44Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d2dbe5def01249ff94ab04fa2ba3996b", + "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:25Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03: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/20230516/4b53086f345a48dda9d4e391e2efa94b.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e86f27a66762234c069d11706c8aba0720.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_b62481c50d14406c8e40d8adb9075f22", "object": - "Rate", "created_at": "2023-05-16T16:20:43Z", "updated_at": "2023-05-16T16:20:43Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_8d47f8d1292c4fff961ea4a2a3f1e154", "object": + "Rate", "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_2ce689326e944e898b085dae3e55f919", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2185e021860e47889620a0b413e62f9d", - "object": "Rate", "created_at": "2023-05-16T16:20:43Z", "updated_at": "2023-05-16T16:20:43Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4cf4c675188a42deac29a400e7015cfb", + "object": "Rate", "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_591af8cba087472dadacab51d09bad2c", + "object": "Rate", "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_2ce689326e944e898b085dae3e55f919", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_144320241d66487b975b1dcdb06ae528", "object": "Rate", "created_at": - "2023-05-16T16:20:43Z", "updated_at": "2023-05-16T16:20:43Z", "mode": "test", + "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_675ea34617ca4355b3d6d8bf104e217e", "object": "Rate", "created_at": + "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_2e346e9385a941aa93fe46e624729106", "object": "Rate", "created_at": + "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_2ce689326e944e898b085dae3e55f919", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_1128e284b65640709f8c3340b7a593bd", "object": "Rate", "created_at": - "2023-05-16T16:20:43Z", "updated_at": "2023-05-16T16:20:43Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_2ce689326e944e898b085dae3e55f919", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_2185e021860e47889620a0b413e62f9d", - "object": "Rate", "created_at": "2023-05-16T16:20:44Z", "updated_at": "2023-05-16T16:20:44Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_591af8cba087472dadacab51d09bad2c", + "object": "Rate", "created_at": "2023-11-28T22:03:24Z", "updated_at": "2023-11-28T22:03:24Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_2ce689326e944e898b085dae3e55f919", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_3c7a1699c44d46f0b196c0da890135c7", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210336947", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:20:44Z", - "updated_at": "2023-05-16T16:23:44Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:23:44Z", "shipment_id": "shp_2ce689326e944e898b085dae3e55f919", + "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_57cd08d4624e4f1a977ea8f9e6a1037d", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285863435", "status": "delivered", + "status_detail": "arrived_at_destination", "created_at": "2023-11-28T22:03:25Z", + "updated_at": "2023-11-28T22:06:25Z", "signed_by": "John Tester", "weight": + null, "est_delivery_date": "2023-11-28T22:06:25Z", "shipment_id": "shp_a5368a6b2ae34e0cbbc33995615c8d7d", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:23:44Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:06:25Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:00:44Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:43:25Z", "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": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:05:44Z", "source": "USPS", "carrier_code": null, "tracking_location": + "", "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": + "2023-10-29T20:48:25Z", "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": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:41:44Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:32:44Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:12:44Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:22:44Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + USPS Facility", "description": "", "status": "in_transit", "status_detail": + "arrived_at_facility", "datetime": "2023-10-30T22:24:25Z", "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": "2023-10-31T01:15:25Z", + "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": "2023-10-31T06:55:25Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:14:44Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:25Z", + "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": "2023-10-31T11:57:25Z", + "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, @@ -1014,9 +1172,9 @@ interactions: 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": "2023-04-19T06:14:44Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzNjN2ExNjk5YzQ0ZDQ2ZjBiMTk2YzBkYTg5MDEzNWM3"}, - "to_address": {"id": "adr_9b500758f40511ed825bac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-16T16:20:43+00:00", "updated_at": "2023-05-16T16:20:43+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:25Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzU3Y2QwOGQ0NjI0ZTRmMWE5NzdlYThmOWU2YTEwMzdk"}, + "to_address": {"id": "adr_f3598fab8e3911ee96aaac1f6bc539ae", "object": "Address", + "created_at": "2023-11-28T22:03:24+00:00", "updated_at": "2023-11-28T22:03: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", @@ -1024,15 +1182,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_9b52a56df40511ed8d47ac1f6bc72124", - "object": "Address", "created_at": "2023-05-16T16:20:43+00:00", "updated_at": - "2023-05-16T16:20:43+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_f35ba4e08e3911ee903dac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:03:24+00:00", "updated_at": + "2023-11-28T22:03: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_9b500758f40511ed825bac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:20:43+00:00", "updated_at": "2023-05-16T16:20:43+00:00", "name": + "adr_f3598fab8e3911ee96aaac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:03:24+00:00", "updated_at": "2023-11-28T22:03: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": @@ -1041,126 +1199,133 @@ 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": "6.07000", "charged": true, + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, "refunded": false}, {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", - "charged": true, "refunded": false}], "id": "shp_2ce689326e944e898b085dae3e55f919", - "object": "Shipment"}, {"created_at": "2023-05-16T16:20:27Z", "is_return": - false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + "charged": true, "refunded": false}], "id": "shp_a5368a6b2ae34e0cbbc33995615c8d7d", + "object": "Shipment"}, {"created_at": "2023-11-28T22:03:20Z", "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_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_b1a0a1bc45844159812e0224d53948ea", + 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_c3cbbd21bc97400bbbaed6d030909476", + 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_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, - "reference": "123", "status": "delivered", "tracking_code": "9400100104262210336763", - "updated_at": "2023-05-16T16:24:57Z", "batch_id": null, "batch_status": null, - "batch_message": null, "customs_info": {"id": "cstinfo_10172b4e79a94a5eb4bca968d73043ab", - "object": "CustomsInfo", "created_at": "2023-05-16T16:20:27Z", "updated_at": - "2023-05-16T16:20:27Z", "contents_explanation": "", "contents_type": "merchandise", + "reference": "123", "status": "delivered", "tracking_code": "9400100105442285863275", + "updated_at": "2023-11-28T22:08:22Z", "batch_id": null, "batch_status": null, + "batch_message": null, "customs_info": {"id": "cstinfo_6f0404f7412a4584aac515fedbf01b1e", + "object": "CustomsInfo", "created_at": "2023-11-28T22:03:20Z", "updated_at": + "2023-11-28T22:03:20Z", "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_465c0b37aded49259ed49913fb4582e4", "object": "CustomsItem", - "created_at": "2023-05-16T16:20:27Z", "updated_at": "2023-05-16T16:20:27Z", + [{"id": "cstitem_3b5c3cbaddf147a5979f9f61e1d0a7fc", "object": "CustomsItem", + "created_at": "2023-11-28T22:03:20Z", "updated_at": "2023-11-28T22:03: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_918ca00ff40511eda19fac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:20:27+00:00", "updated_at": "2023-05-16T16:20:27+00:00", + null}]}, "from_address": {"id": "adr_f13f73888e3911ee9523ac1f6bc539ae", "object": + "Address", "created_at": "2023-11-28T22:03:20+00:00", "updated_at": "2023-11-28T22:03: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": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_900b5a5251024209918ae574ce7d0f80", - "object": "Parcel", "created_at": "2023-05-16T16:20:27Z", "updated_at": "2023-05-16T16:20:27Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_770c5aefa4eb4fe8a357fe99d896c2e4", + "object": "Parcel", "created_at": "2023-11-28T22:03:20Z", "updated_at": "2023-11-28T22:03:20Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_2bd0493086c2489fa5207bbdee705800", - "created_at": "2023-05-16T16:20:30Z", "updated_at": "2023-05-16T16:20:31Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:20:30Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_0751e70954c3444da7ad13ddff69716b", + "created_at": "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:23Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03: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/20230516/fc54a78ad9ea40d89433529638750a01.png", - "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_cfa2b977e5a04ea897ba7275bdf26c5a", "object": - "Rate", "created_at": "2023-05-16T16:20:30Z", "updated_at": "2023-05-16T16:20:30Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_3e964a30cfbe463296491c9b787ba6b3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a6c6230a7f2f40c5ae1dc879622269df", - "object": "Rate", "created_at": "2023-05-16T16:20:30Z", "updated_at": "2023-05-16T16:20:30Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_3e964a30cfbe463296491c9b787ba6b3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e22379ffe1e747928345dcf43aba73dc", - "object": "Rate", "created_at": "2023-05-16T16:20:30Z", "updated_at": "2023-05-16T16:20:30Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8f383d9c4b79b4a13b855683520d8e060.png", + "label_pdf_url": null, "label_zpl_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20231128/9bd5e5ddacc3484a9536e75e9165ef27.zpl", + "label_epl2_url": null, "label_file": null}, "rates": [{"id": "rate_a114846fc6b84d36960ead498f0af671", + "object": "Rate", "created_at": "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_3e964a30cfbe463296491c9b787ba6b3", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a8123232e4b0425bb34e7e834f85b6d2", - "object": "Rate", "created_at": "2023-05-16T16:20:30Z", "updated_at": "2023-05-16T16:20:30Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_57d0d5c1adc446e09b92537cd353ae3a", + "object": "Rate", "created_at": "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d9d0342315ec404aa57934eee208f393", + "object": "Rate", "created_at": "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3e964a30cfbe463296491c9b787ba6b3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_a8123232e4b0425bb34e7e834f85b6d2", - "object": "Rate", "created_at": "2023-05-16T16:20:30Z", "updated_at": "2023-05-16T16:20:30Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_32e275764cd74b31b4682a19f9ee794f", "object": "Rate", "created_at": + "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3e964a30cfbe463296491c9b787ba6b3", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_de866766943a4320b14e00473210867f", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210336763", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T16:20:31Z", - "updated_at": "2023-05-16T16:23:31Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T16:23:31Z", "shipment_id": "shp_3e964a30cfbe463296491c9b787ba6b3", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:23:31Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:00:31Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T15:05:31Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T16:41:31Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T19:32:31Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T01:12:31Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T01:22:31Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_aad1aa159d824a5a98ea790306fb8d7a", "object": "Rate", "created_at": + "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_57d0d5c1adc446e09b92537cd353ae3a", + "object": "Rate", "created_at": "2023-11-28T22:03:21Z", "updated_at": "2023-11-28T22:03:21Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_8cc38feebc22474ba96952ed517086e6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_8e9942071c6d4a44b29601e6c329e650", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285863275", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2023-11-28T22:03:22Z", "updated_at": "2023-11-28T22:06:22Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:22Z", + "shipment_id": "shp_8cc38feebc22474ba96952ed517086e6", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2023-10-28T22:06: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": "2023-10-29T10:43:22Z", "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": "2023-10-29T20:48:22Z", + "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": + "2023-10-30T22:24:22Z", "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": "2023-10-31T01:15:22Z", "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": "2023-10-31T06:55:22Z", + "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": "2023-10-31T07:05:22Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T06:14:31Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Delivered", "description": "", "status": "delivered", + "status_detail": "arrived_at_destination", "datetime": "2023-10-31T11:57:22Z", + "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, @@ -1169,9 +1334,9 @@ interactions: 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": "2023-04-19T06:14:31Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2RlODY2NzY2OTQzYTQzMjBiMTRlMDA0NzMyMTA4Njdm"}, - "to_address": {"id": "adr_918a5d54f40511edb1ec3cecef1b359e", "object": "Address", - "created_at": "2023-05-16T16:20:27+00:00", "updated_at": "2023-05-16T16:20:30+00:00", + null, "initial_delivery_attempt": "2023-10-31T11:57:22Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzhlOTk0MjA3MWM2ZDRhNDRiMjk2MDFlNmMzMjllNjUw"}, + "to_address": {"id": "adr_f13d11d18e3911eebfcd3cecef1b359e", "object": "Address", + "created_at": "2023-11-28T22:03:20+00:00", "updated_at": "2023-11-28T22:03:21+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": @@ -1179,14 +1344,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_918ca00ff40511eda19fac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:20:27+00:00", "updated_at": "2023-05-16T16:20:27+00:00", + 4, "return_address": {"id": "adr_f13f73888e3911ee9523ac1f6bc539ae", "object": + "Address", "created_at": "2023-11-28T22:03:20+00:00", "updated_at": "2023-11-28T22:03: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": - {}}, "buyer_address": {"id": "adr_918a5d54f40511edb1ec3cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:20:27+00:00", "updated_at": "2023-05-16T16:20:30+00:00", + {}}, "buyer_address": {"id": "adr_f13d11d18e3911eebfcd3cecef1b359e", "object": + "Address", "created_at": "2023-11-28T22:03:20+00:00", "updated_at": "2023-11-28T22:03:21+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": @@ -1196,113 +1361,131 @@ 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.07000", "charged": true, "refunded": false}], "id": "shp_3e964a30cfbe463296491c9b787ba6b3", - "object": "Shipment"}, {"created_at": "2023-05-16T15:35:33Z", "is_return": - false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": - {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "delivered", - "tracking_code": "9400100104262210322155", "updated_at": "2023-05-16T15:40:26Z", - "batch_id": "batch_0897e22d382a43c4910829b48a77ed84", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_4c10c15ef3ff11edbb43ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T15:35:33+00:00", "updated_at": - "2023-05-16T15:35:33+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_f90962fc4acd47b9b5008e7f08ba33fc", "object": - "Parcel", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", + "5.93000", "charged": true, "refunded": false}], "id": "shp_8cc38feebc22474ba96952ed517086e6", + "object": "Shipment"}, {"created_at": "2023-11-28T22:03:17Z", "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_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_99007e1aeb66421faf82676f1199481e", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: + field required"}], "mode": "test", "options": {"label_format": "PNG", "invoice_number": + "123", "currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, + "reference": "123", "status": "delivered", "tracking_code": "9400100105442285863145", + "updated_at": "2023-11-28T22:07:35Z", "batch_id": null, "batch_status": null, + "batch_message": null, "customs_info": {"id": "cstinfo_602b4555338248ba820fdac9f34c15e2", + "object": "CustomsInfo", "created_at": "2023-11-28T22:03:17Z", "updated_at": + "2023-11-28T22:03: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_4e775230e37a4c55ac60c2b5e32940a8", "object": "CustomsItem", + "created_at": "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03: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_ef47ab0c8e3911ee93c7ac1f6bc539ae", "object": + "Address", "created_at": "2023-11-28T22:03:17+00:00", "updated_at": "2023-11-28T22:03: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_483b6b66c732429f9b2a36a3e3d1305f", + "object": "Parcel", "created_at": "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7b6c47a83d794f24b88d7a10b1fd332d", - "created_at": "2023-05-16T15:35:34Z", "updated_at": "2023-05-16T15:35:34Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T15:35:34Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_7a853e91285b4b259feb345abbb39414", + "created_at": "2023-11-28T22:03:18Z", "updated_at": "2023-11-28T22:03:18Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:03:18Z", "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/20230516/ccc578993f1e4d41a2f46a2721a56982.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8d2dfbf74c1c6480787155c527abebb1f.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_2779ff61f3dc4f63a486b6d6f1a04c6a", "object": - "Rate", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_e75df861742345299c7c79743f8d40e8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8b1babb654e74212ad25c8fcffe8af62", - "object": "Rate", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_e75df861742345299c7c79743f8d40e8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8969a7b87c9e451a888226dc9deed52b", - "object": "Rate", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_d09760ed2a0f49bdbea92ac3c563cdce", "object": + "Rate", "created_at": "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_e75df861742345299c7c79743f8d40e8", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_04d55ba308964270bca1ff2fbd98ecd9", - "object": "Rate", "created_at": "2023-05-16T15:35:33Z", "updated_at": "2023-05-16T15:35:33Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9cf4b5c72b5e475b8059e56e9ed3928a", + "object": "Rate", "created_at": "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_cf9b3d2a61d74b7da25cead89ab21792", + "object": "Rate", "created_at": "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_e75df861742345299c7c79743f8d40e8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": {"id": "sf_3e24eda871db4cbf9af092c5399f5adc", - "object": "ScanForm", "created_at": "2023-05-16T15:35:34Z", "updated_at": - "2023-05-16T15:35:35Z", "tracking_codes": ["9400100104262210322155"], "address": - {"id": "adr_4c10c15ef3ff11edbb43ac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T15:35:33+00:00", "updated_at": "2023-05-16T15:35:33+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/20230516/2244428c081045f9b846b5a3cc89b2fd.pdf", - "form_file_type": null, "batch_id": "batch_0897e22d382a43c4910829b48a77ed84", - "confirmation": null}, "selected_rate": {"id": "rate_04d55ba308964270bca1ff2fbd98ecd9", - "object": "Rate", "created_at": "2023-05-16T15:35:34Z", "updated_at": "2023-05-16T15:35:34Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_e1818aa941c44f5eaef2bcf730cc7d0b", "object": "Rate", "created_at": + "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_e75df861742345299c7c79743f8d40e8", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_b050765bf01c47119b433af5f2f5fafc", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210322155", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T15:35:34Z", - "updated_at": "2023-05-16T15:38:34Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T15:38:34Z", "shipment_id": "shp_e75df861742345299c7c79743f8d40e8", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T15:38:34Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T04:15:34Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T14:20:34Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T15:56:34Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T18:47:34Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T00:27:34Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T00:37:34Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_50a974613890464eac5e376a1a3e1f6c", "object": "Rate", "created_at": + "2023-11-28T22:03:17Z", "updated_at": "2023-11-28T22:03:17Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_9cf4b5c72b5e475b8059e56e9ed3928a", + "object": "Rate", "created_at": "2023-11-28T22:03:18Z", "updated_at": "2023-11-28T22:03:18Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_95272ec7f7764d94a8ed775009698a0b", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, "tracker": {"id": "trk_10b93bb5c780475a85cbb530a4237558", + "object": "Tracker", "mode": "test", "tracking_code": "9400100105442285863145", + "status": "delivered", "status_detail": "arrived_at_destination", "created_at": + "2023-11-28T22:03:19Z", "updated_at": "2023-11-28T22:06:19Z", "signed_by": + "John Tester", "weight": null, "est_delivery_date": "2023-11-28T22:06:19Z", + "shipment_id": "shp_95272ec7f7764d94a8ed775009698a0b", "carrier": "USPS", + "tracking_details": [{"object": "TrackingDetail", "message": "Pre-Shipment + Info Sent to USPS", "description": "", "status": "pre_transit", "status_detail": + "status_update", "datetime": "2023-10-28T22:06:19Z", "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": "2023-10-29T10:43:19Z", "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": "2023-10-29T20:48:19Z", + "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": + "2023-10-30T22:24:19Z", "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": "2023-10-31T01:15:19Z", "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": "2023-10-31T06:55:19Z", + "source": "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T05:29:34Z", - "source": "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "TrackingDetail", "message": "Out for Delivery", "description": "", "status": + "out_for_delivery", "status_detail": "out_for_delivery", "datetime": "2023-10-31T07:05:19Z", + "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": "2023-10-31T11:57:19Z", + "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, @@ -1311,188 +1494,42 @@ interactions: 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": "2023-04-19T05:29:34Z"}, "public_url": "https://track.easypost.com/djE6dHJrX2IwNTA3NjViZjAxYzQ3MTE5YjQzM2FmNWYyZjVmYWZj"}, - "to_address": {"id": "adr_4c0e7406f3ff11eda517ac1f6b0a0d1e", "object": "Address", - "created_at": "2023-05-16T15:35:33+00:00", "updated_at": "2023-05-16T15:35:33+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_4c10c15ef3ff11edbb43ac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T15:35:33+00:00", "updated_at": - "2023-05-16T15:35:33+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_4c0e7406f3ff11eda517ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T15:35:33+00:00", "updated_at": "2023-05-16T15:35:33+00:00", "name": - "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + null, "initial_delivery_attempt": "2023-10-31T11:57:19Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzEwYjkzYmI1Yzc4MDQ3NWE4NWNiYjUzMGE0MjM3NTU4"}, + "to_address": {"id": "adr_ef45c7e58e3911ee8d54ac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T22:03:17+00:00", "updated_at": "2023-11-28T22:03:18+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_ef47ab0c8e3911ee93c7ac1f6bc539ae", "object": + "Address", "created_at": "2023-11-28T22:03:17+00:00", "updated_at": "2023-11-28T22:03: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": 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}], "id": "shp_e75df861742345299c7c79743f8d40e8", "object": - "Shipment"}, {"created_at": "2023-05-16T15:35:31Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "delivered", "tracking_code": - "9400100104262210322148", "updated_at": "2023-05-16T15:40:19Z", "batch_id": - "batch_1556ea8d81c94d07911dd0eab99ec9fe", "batch_status": "postage_purchased", - "batch_message": null, "customs_info": null, "from_address": {"id": "adr_4af61f14f3ff11edb181ac1f6bc72124", - "object": "Address", "created_at": "2023-05-16T15:35:31+00:00", "updated_at": - "2023-05-16T15:35: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": {}}, "insurance": null, "order_id": - null, "parcel": {"id": "prcl_97a9b127466144618d467aa475905b33", "object": - "Parcel", "created_at": "2023-05-16T15:35:31Z", "updated_at": "2023-05-16T15:35:31Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_99b94a85b2234933a2e3f2d90752e96a", - "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T15:35: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/20230516/ceff03b2653c4b36850eb2081fadeb7f.png", - "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_264cf6b604004861aec1bdfe9c752977", "object": - "Rate", "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_ecb4968651e7484eabaed3825d1100ed", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ab93efcacbc7424e8c19a4612902c982", - "object": "Rate", "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_ecb4968651e7484eabaed3825d1100ed", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_142b77c6d9e9485e865fecb816825970", - "object": "Rate", "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_ecb4968651e7484eabaed3825d1100ed", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_159ad3a23fa641dbb2f33bb9bfbbafdc", - "object": "Rate", "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ecb4968651e7484eabaed3825d1100ed", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": {"id": "sf_4bc2f73b448747db89c9023c0dcfc53a", - "object": "ScanForm", "created_at": "2023-05-16T15:35:33Z", "updated_at": - "2023-05-16T15:35:33Z", "tracking_codes": ["9400100104262210322148"], "address": - {"id": "adr_4af61f14f3ff11edb181ac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T15:35:31+00:00", "updated_at": "2023-05-16T15:35: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": - {}}, "status": "created", "message": null, "form_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20230516/5b62bfdffb694512ac744379dac2b304.pdf", - "form_file_type": null, "batch_id": "batch_1556ea8d81c94d07911dd0eab99ec9fe", - "confirmation": null}, "selected_rate": {"id": "rate_159ad3a23fa641dbb2f33bb9bfbbafdc", - "object": "Rate", "created_at": "2023-05-16T15:35:32Z", "updated_at": "2023-05-16T15:35:32Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_ecb4968651e7484eabaed3825d1100ed", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_73bffbfc8c0a4eefab463dd925395cfe", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210322148", "status": "delivered", - "status_detail": "arrived_at_destination", "created_at": "2023-05-16T15:35:33Z", - "updated_at": "2023-05-16T15:38:33Z", "signed_by": "John Tester", "weight": - null, "est_delivery_date": "2023-05-16T15:38:33Z", "shipment_id": "shp_ecb4968651e7484eabaed3825d1100ed", - "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T15:38:33Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T04:15:33Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "HOUSTON", "state": "TX", "country": null, "zip": "77063"}}, {"object": - "TrackingDetail", "message": "Arrived at USPS Origin Facility", "description": - null, "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-17T14:20:33Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "NORTH HOUSTON", "state": "TX", "country": - null, "zip": "77315"}}, {"object": "TrackingDetail", "message": "Arrived at - USPS Facility", "description": null, "status": "in_transit", "status_detail": - "arrived_at_facility", "datetime": "2023-04-18T15:56:33Z", "source": "USPS", - "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "COLUMBIA", "state": "SC", "country": null, "zip": "29201"}}, {"object": - "TrackingDetail", "message": "Arrived at Post Office", "description": null, - "status": "in_transit", "status_detail": "arrived_at_facility", "datetime": - "2023-04-18T18:47:33Z", "source": "USPS", "carrier_code": null, "tracking_location": - {"object": "TrackingLocation", "city": "CHARLESTON", "state": "SC", "country": - null, "zip": "29407"}}, {"object": "TrackingDetail", "message": "Sorting Complete", - "description": null, "status": "in_transit", "status_detail": "status_update", - "datetime": "2023-04-19T00:27:33Z", "source": "USPS", "carrier_code": null, - "tracking_location": {"object": "TrackingLocation", "city": "CHARLESTON", - "state": "SC", "country": null, "zip": "29407"}}, {"object": "TrackingDetail", - "message": "Out for Delivery", "description": null, "status": "out_for_delivery", - "status_detail": "out_for_delivery", "datetime": "2023-04-19T00:37:33Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", - "city": "CHARLESTON", "state": "SC", "country": null, "zip": "29407"}}, {"object": - "TrackingDetail", "message": "Delivered", "description": null, "status": "delivered", - "status_detail": "arrived_at_destination", "datetime": "2023-04-19T05:29:33Z", - "source": "USPS", "carrier_code": null, "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": "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": "2023-04-19T05:29:33Z"}, "public_url": "https://track.easypost.com/djE6dHJrXzczYmZmYmZjOGMwYTRlZWZhYjQ2M2RkOTI1Mzk1Y2Zl"}, - "to_address": {"id": "adr_4af3f434f3ff11edb17dac1f6bc72124", "object": "Address", - "created_at": "2023-05-16T15:35:31+00:00", "updated_at": "2023-05-16T15:35:32+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_4af61f14f3ff11edb181ac1f6bc72124", - "object": "Address", "created_at": "2023-05-16T15:35:31+00:00", "updated_at": - "2023-05-16T15:35: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": {}}, "buyer_address": {"id": - "adr_4af3f434f3ff11edb17dac1f6bc72124", "object": "Address", "created_at": - "2023-05-16T15:35:31+00:00", "updated_at": "2023-05-16T15:35:32+00:00", "name": - "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + {}}, "buyer_address": {"id": "adr_ef45c7e58e3911ee8d54ac1f6bc53342", "object": + "Address", "created_at": "2023-11-28T22:03:17+00:00", "updated_at": "2023-11-28T22:03:18+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": 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}], "id": "shp_ecb4968651e7484eabaed3825d1100ed", "object": - "Shipment"}], "has_more": true}' + 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.93000", "charged": true, "refunded": false}], "id": "shp_95272ec7f7764d94a8ed775009698a0b", + "object": "Shipment"}], "has_more": true}' headers: cache-control: - private, no-cache, no-store content-length: - - '54781' + - '57767' content-type: - application/json; charset=utf-8 - etag: - - W/"5597810338af3e5722f69767df1c0da3" expires: - '0' pragma: @@ -1510,20 +1547,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afe1e7872f5a0027a2bf + - 88ad7b92656664f2e78a9c6e003f5df1 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb38nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.487555' + - '0.491111' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 9349a495..d6515969 100644 --- a/tests/cassettes/test_shipment_insure.yaml +++ b/tests/cassettes/test_shipment_insure.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS", "insurance": 0}, "carbon_offset": false}' + "carrier": "USPS", "insurance": 0}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '636' + - '612' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:36Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:08:59Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210341620", "updated_at": "2023-05-16T16:31:37Z", "batch_id": + "9400100105442285876619", "updated_at": "2023-11-28T22:08:59Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_204e9e9df40711edb388ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:36+00:00", "updated_at": "2023-05-16T16:31:36+00:00", "name": + {"id": "adr_baf2995b8e3a11eebf533cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08: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_5f173f47c4e748fd90774f0fe1ad2567", - "object": "Parcel", "created_at": "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_ef3fd05006b34cd589c454b0d096231f", + "object": "Parcel", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_855bcf115c77479c849d10afeec7c4e1", - "created_at": "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:31:36Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_416f7c0045344499a7de593063c472c3", + "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:08: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/20230516/0494039080754493aa947f38923cd9e4.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e81bf8ff302c2a4607b0398c74d6adfca3.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_0c097f84ef7d4f00a10564b9ed28103c", "object": - "Rate", "created_at": "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + null}, "rates": [{"id": "rate_a9a8e79f9e15450c874267b8a897f8de", "object": + "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f817c76d78fc442a89503ad8cb6d83a7", + "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", + "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": + "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_80d0c77f56534903a31677309903695e", + "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8f9d39ee295a4c858800832114d1afae", + "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_544dd6cca19d4ff4bfca9a7a8ae88716", "object": "Rate", "created_at": - "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b0b0c40403c94bc9b18e6d7521f243cd", "object": "Rate", "created_at": - "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_c6d60679d7e846baa59d36077e3c28e0", "object": "Rate", "created_at": - "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_0c097f84ef7d4f00a10564b9ed28103c", - "object": "Rate", "created_at": "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_88b1469278c34621922fe5dc04620b60", "object": "Rate", "created_at": + "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_b6607dd3b1ee487e81a804d42383628c", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210341620", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T16:31:37Z", "updated_at": - "2023-05-16T16:31:37Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier": "USPS", + "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_8f9d39ee295a4c858800832114d1afae", + "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_3893ad3ddd414889831c0e2f44057a0f", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285876619", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:09:00Z", "updated_at": + "2023-11-28T22:09:00Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2I2NjA3ZGQzYjFlZTQ4N2U4MWE4MDRkNDIzODM2Mjhj"}, - "to_address": {"id": "adr_204bc91ff40711edb387ac1f6bc7b362", "object": "Address", - "created_at": "2023-05-16T16:31:36+00:00", "updated_at": "2023-05-16T16:31:36+00:00", + "https://track.easypost.com/djE6dHJrXzM4OTNhZDNkZGQ0MTQ4ODk4MzFjMGUyZjQ0MDU3YTBm"}, + "to_address": {"id": "adr_baf025c38e3a11ee8d6cac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08:59+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_204e9e9df40711edb388ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-16T16:31:36+00:00", "updated_at": - "2023-05-16T16:31:36+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_baf2995b8e3a11eebf533cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:08:59+00:00", "updated_at": + "2023-11-28T22:08: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_204bc91ff40711edb387ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:36+00:00", "updated_at": "2023-05-16T16:31:36+00:00", "name": + "adr_baf025c38e3a11ee8d6cac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08:59+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_12ab6646f9bd4220aa8d54f46029f950", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"5230f76df5c4139599f4b5572762e479" expires: - '0' location: - - /api/v2/shipments/shp_3afa3dc2ef6c4d008cac6ccc08e4aef7 + - /api/v2/shipments/shp_12ab6646f9bd4220aa8d54f46029f950 pragma: - no-cache referrer-policy: @@ -141,25 +146,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afe8e7872f5e0027a4db + - 88ad7b8e656664fbe78a9c72003f6500 x-frame-options: - SAMEORIGIN x-node: - - bigweb11nuq + - bigweb32nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.977281' + - '1.007681' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -183,77 +190,84 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_3afa3dc2ef6c4d008cac6ccc08e4aef7/insure + uri: https://api.easypost.com/v2/shipments/shp_12ab6646f9bd4220aa8d54f46029f950/insure response: body: - string: '{"created_at": "2023-05-16T16:31:36Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:08:59Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210341620", "updated_at": "2023-05-16T16:31:37Z", "batch_id": + "9400100105442285876619", "updated_at": "2023-11-28T22:08:59Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_204e9e9df40711edb388ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:36+00:00", "updated_at": "2023-05-16T16:31:36+00:00", "name": + {"id": "adr_baf2995b8e3a11eebf533cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08: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": "100.00", "order_id": null, "parcel": {"id": "prcl_5f173f47c4e748fd90774f0fe1ad2567", - "object": "Parcel", "created_at": "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", + {}}, "insurance": "100.00", "order_id": null, "parcel": {"id": "prcl_ef3fd05006b34cd589c454b0d096231f", + "object": "Parcel", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_855bcf115c77479c849d10afeec7c4e1", - "created_at": "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:31:36Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_416f7c0045344499a7de593063c472c3", + "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:08: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/20230516/0494039080754493aa947f38923cd9e4.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e81bf8ff302c2a4607b0398c74d6adfca3.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_0c097f84ef7d4f00a10564b9ed28103c", "object": - "Rate", "created_at": "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + null}, "rates": [{"id": "rate_a9a8e79f9e15450c874267b8a897f8de", "object": + "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_f817c76d78fc442a89503ad8cb6d83a7", + "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", + "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": + "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_80d0c77f56534903a31677309903695e", + "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_8f9d39ee295a4c858800832114d1afae", + "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_88b1469278c34621922fe5dc04620b60", "object": "Rate", "created_at": + "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_544dd6cca19d4ff4bfca9a7a8ae88716", "object": "Rate", "created_at": - "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_b0b0c40403c94bc9b18e6d7521f243cd", "object": "Rate", "created_at": - "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_c6d60679d7e846baa59d36077e3c28e0", "object": "Rate", "created_at": - "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_0c097f84ef7d4f00a10564b9ed28103c", - "object": "Rate", "created_at": "2023-05-16T16:31:36Z", "updated_at": "2023-05-16T16:31:36Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_8f9d39ee295a4c858800832114d1afae", + "object": "Rate", "created_at": "2023-11-28T22:08:59Z", "updated_at": "2023-11-28T22:08:59Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_b6607dd3b1ee487e81a804d42383628c", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210341620", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-05-16T16:31:37Z", "updated_at": - "2023-05-16T16:31:37Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-16T16:31:37Z", "shipment_id": "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", + "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_3893ad3ddd414889831c0e2f44057a0f", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285876619", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2023-11-28T22:09:00Z", "updated_at": + "2023-11-28T22:09:00Z", "signed_by": null, "weight": null, "est_delivery_date": + "2023-11-28T22:09:00Z", "shipment_id": "shp_12ab6646f9bd4220aa8d54f46029f950", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:31:37Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:09:00Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:08:37Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:46: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 Package Service", "container_type": null, "est_delivery_date_local": null, @@ -261,9 +275,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/djE6dHJrX2I2NjA3ZGQzYjFlZTQ4N2U4MWE4MDRkNDIzODM2Mjhj"}, - "to_address": {"id": "adr_204bc91ff40711edb387ac1f6bc7b362", "object": "Address", - "created_at": "2023-05-16T16:31:36+00:00", "updated_at": "2023-05-16T16:31:36+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrXzM4OTNhZDNkZGQ0MTQ4ODk4MzFjMGUyZjQ0MDU3YTBm"}, + "to_address": {"id": "adr_baf025c38e3a11ee8d6cac1f6bc53342", "object": "Address", + "created_at": "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08:59+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", @@ -271,15 +285,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_204e9e9df40711edb388ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-16T16:31:36+00:00", "updated_at": - "2023-05-16T16:31:36+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_baf2995b8e3a11eebf533cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:08:59+00:00", "updated_at": + "2023-11-28T22:08: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_204bc91ff40711edb387ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:36+00:00", "updated_at": "2023-05-16T16:31:36+00:00", "name": + "adr_baf025c38e3a11ee8d6cac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:08:59+00:00", "updated_at": "2023-11-28T22:08:59+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": @@ -288,19 +302,17 @@ 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": "6.07000", "charged": true, + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, "refunded": false}, {"object": "Fee", "type": "InsuranceFee", "amount": "1.00000", - "charged": true, "refunded": false}], "id": "shp_3afa3dc2ef6c4d008cac6ccc08e4aef7", + "charged": true, "refunded": false}], "id": "shp_12ab6646f9bd4220aa8d54f46029f950", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8213' + - '8750' content-type: - application/json; charset=utf-8 - etag: - - W/"dc0abe3a368a69d444d06fc3cf30d2ea" expires: - '0' pragma: @@ -313,25 +325,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afe9e7872f5e0027a541 + - 88ad7b8e656664fce78a9c72003f65ed x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.159051' + - '0.351304' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 588671a8..8477e33a 100644 --- a/tests/cassettes/test_shipment_lowest_rate.yaml +++ b/tests/cassettes/test_shipment_lowest_rate.yaml @@ -11,7 +11,7 @@ interactions: "", "restriction_type": "none", "non_delivery_option": "return", "customs_items": [{"description": "Sweet shirts", "quantity": 2, "weight": 11, "value": 23.25, "hs_tariff_number": "654321", "origin_country": "US"}]}, "options": {"label_format": - "PNG", "invoice_number": "123"}, "reference": "123"}, "carbon_offset": false}' + "PNG", "invoice_number": "123"}, "reference": "123"}}' headers: Accept: - '*/*' @@ -20,7 +20,7 @@ interactions: Connection: - keep-alive Content-Length: - - '978' + - '954' Content-Type: - application/json authorization: @@ -31,106 +31,111 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:44Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", + string: '{"created_at": "2023-11-28T22:09:08Z", "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", + 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_c7b4cfaf671b4984b84023d77561394a", + 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_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: - field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + 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_711d8c4f9be54801b984e5dc9f2b5a7c", + field required"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}], "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": - "2023-05-16T16:31:45Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_54eaea8ef16d4d3798f6cf27a0ce941a", "object": - "CustomsInfo", "created_at": "2023-05-16T16:31:44Z", "updated_at": "2023-05-16T16:31:44Z", + "2023-11-28T22:09:09Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": {"id": "cstinfo_58152b887ad34430aee2825b95b5c88d", "object": + "CustomsInfo", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", "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_f4332e0388e847529856b68774cebe0f", - "object": "CustomsItem", "created_at": "2023-05-16T16:31:44Z", "updated_at": - "2023-05-16T16:31:44Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_b79038b074b64055ba642538f806ee0a", + "object": "CustomsItem", "created_at": "2023-11-28T22:09:08Z", "updated_at": + "2023-11-28T22:09:08Z", "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_255ed3f5f40711ed8dd6ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:31:44+00:00", "updated_at": "2023-05-16T16:31:44+00:00", "name": + "adr_c0c042518e3a11ee98ceac1f6bc539ae", "object": "Address", "created_at": + "2023-11-28T22:09:08+00:00", "updated_at": "2023-11-28T22:09: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_6656e4f8822c4ec6a289a5af711355b4", - "object": "Parcel", "created_at": "2023-05-16T16:31:44Z", "updated_at": "2023-05-16T16:31:44Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_d5b71566f8e6428c836db73699b916f3", + "object": "Parcel", "created_at": "2023-11-28T22:09:08Z", "updated_at": "2023-11-28T22:09:08Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_96eba0fe328941b7be7b6fc77aaec41c", - "object": "Rate", "created_at": "2023-05-16T16:31:45Z", "updated_at": "2023-05-16T16:31:45Z", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_4abcd07f5e8647d8a73f0b455dcfa16f", + "object": "Rate", "created_at": "2023-11-28T22:09:09Z", "updated_at": "2023-11-28T22:09:09Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_bb41876b10e24f86883c5da28719e72d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d9fdaa990a654c81931c4a2dc8b829e1", - "object": "Rate", "created_at": "2023-05-16T16:31:45Z", "updated_at": "2023-05-16T16:31:45Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_bb41876b10e24f86883c5da28719e72d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9a9e200f66464805bd2f9db7b63735aa", - "object": "Rate", "created_at": "2023-05-16T16:31:45Z", "updated_at": "2023-05-16T16:31:45Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null, "shipment_id": "shp_8cfbbec9ab924796bfb87620178b4ad0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a49ccbb2e04540a89d65d20c87b5df0b", + "object": "Rate", "created_at": "2023-11-28T22:09:09Z", "updated_at": "2023-11-28T22:09:09Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_bb41876b10e24f86883c5da28719e72d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ec758bd3238e49f38c67abdf740fd8c7", - "object": "Rate", "created_at": "2023-05-16T16:31:45Z", "updated_at": "2023-05-16T16:31:45Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_8cfbbec9ab924796bfb87620178b4ad0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_e320a0c829c6475189e643d092e4be69", + "object": "Rate", "created_at": "2023-11-28T22:09:09Z", "updated_at": "2023-11-28T22:09:09Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_8cfbbec9ab924796bfb87620178b4ad0", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d0147efba0e641d7ad0b13084110dbd8", + "object": "Rate", "created_at": "2023-11-28T22:09:09Z", "updated_at": "2023-11-28T22:09:09Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_8cfbbec9ab924796bfb87620178b4ad0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_d158a8b9a9ef4e69a8ff677a455da4db", "object": "Rate", "created_at": + "2023-11-28T22:09:09Z", "updated_at": "2023-11-28T22:09:09Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_bb41876b10e24f86883c5da28719e72d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_8cfbbec9ab924796bfb87620178b4ad0", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_255d28fff40711ed8dcdac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:31:44+00:00", "updated_at": "2023-05-16T16:31:44+00:00", + null, "to_address": {"id": "adr_c0bd71ab8e3a11ee82b73cecef1b359e", "object": + "Address", "created_at": "2023-11-28T22:09:08+00:00", "updated_at": "2023-11-28T22:09:08+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_255ed3f5f40711ed8dd6ac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-16T16:31:44+00:00", "updated_at": - "2023-05-16T16:31:44+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_c0c042518e3a11ee98ceac1f6bc539ae", + "object": "Address", "created_at": "2023-11-28T22:09:08+00:00", "updated_at": + "2023-11-28T22:09: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": {}}, "buyer_address": {"id": - "adr_255d28fff40711ed8dcdac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:31:44+00:00", "updated_at": "2023-05-16T16:31:44+00:00", "name": + "adr_c0bd71ab8e3a11ee82b73cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:09:08+00:00", "updated_at": "2023-11-28T22:09:08+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_bb41876b10e24f86883c5da28719e72d", + {}}, "forms": [], "fees": [], "id": "shp_8cfbbec9ab924796bfb87620178b4ad0", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6722' + - '7265' content-type: - application/json; charset=utf-8 - etag: - - W/"4045fa9f6edbe761b61b2b2e22b74ea1" expires: - '0' location: - - /api/v2/shipments/shp_bb41876b10e24f86883c5da28719e72d + - /api/v2/shipments/shp_8cfbbec9ab924796bfb87620178b4ad0 pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e06463aff0e7872f980027a7f0 + - 88ad7b8d65666504e78a9f86003f6d03 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.675475' + - '0.538335' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 a420bc0e..99426c1b 100644 --- a/tests/cassettes/test_shipment_lowest_smart_rate.yaml +++ b/tests/cassettes/test_shipment_lowest_smart_rate.yaml @@ -6,7 +6,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"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}}, "carbon_offset": false}' + 15.4}}}' headers: Accept: - '*/*' @@ -15,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '520' + - '496' Content-Type: - application/json authorization: @@ -26,95 +26,100 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:45Z", "is_return": false, "messages": - [{"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", + string: '{"created_at": "2023-11-28T22:19:56Z", "is_return": false, "messages": + [{"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-16T16:31:46Z", "batch_id": null, "batch_status": + null, "updated_at": "2023-11-28T22:19:57Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_25f60894f40711edbd14ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:45+00:00", "updated_at": "2023-05-16T16:31:45+00:00", "name": + "adr_42b818358e3c11eeb8363cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:19:56+00:00", "updated_at": "2023-11-28T22:19: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_93ca73727c074448a2c2b78be2fdd7ad", - "object": "Parcel", "created_at": "2023-05-16T16:31:45Z", "updated_at": "2023-05-16T16:31:45Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_d9969a6ae08a4d71a9fbcb02f22e72ed", + "object": "Parcel", "created_at": "2023-11-28T22:19:56Z", "updated_at": "2023-11-28T22:19:56Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_6c7ad12cb9a94561ac6cfe6a5fcf65bc", - "object": "Rate", "created_at": "2023-05-16T16:31:46Z", "updated_at": "2023-05-16T16:31:46Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_43f3da4c4c18404088d8e8c8fd1ccffb", + "object": "Rate", "created_at": "2023-11-28T22:19:57Z", "updated_at": "2023-11-28T22:19:57Z", + "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", + "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": + "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + null, "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a5a18e44962b429797c80863971595b6", + "object": "Rate", "created_at": "2023-11-28T22:19:57Z", "updated_at": "2023-11-28T22:19:57Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a389d8d9c62541579fbd21669a223271", - "object": "Rate", "created_at": "2023-05-16T16:31:46Z", "updated_at": "2023-05-16T16:31:46Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_63fda49b61f841be93e1c8f950a42d15", + "object": "Rate", "created_at": "2023-11-28T22:19:57Z", "updated_at": "2023-11-28T22:19:57Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_67e0334da3d442d28e52c6a182050fdc", + "object": "Rate", "created_at": "2023-11-28T22:19:57Z", "updated_at": "2023-11-28T22:19:57Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_15600b9a2a294cde85234f7357c41d63", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_a6f0298899544d479d434ca725a3fe4a", "object": "Rate", "created_at": + "2023-11-28T22:19:57Z", "updated_at": "2023-11-28T22:19:57Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8acff0a4a916424da4e1f4f3fe072984", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_438469a9e1bc49188d85f5d3f8116fa8", "object": "Rate", "created_at": - "2023-05-16T16:31:46Z", "updated_at": "2023-05-16T16:31:46Z", "mode": "test", - "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", - "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_8acff0a4a916424da4e1f4f3fe072984", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_a362cf2e07e942b7896c6967083a7ef7", "object": "Rate", "created_at": - "2023-05-16T16:31:46Z", "updated_at": "2023-05-16T16:31:46Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_8acff0a4a916424da4e1f4f3fe072984", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_15600b9a2a294cde85234f7357c41d63", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_25f1ec31f40711edb8dcac1f6bc7bdc6", "object": - "Address", "created_at": "2023-05-16T16:31:45+00:00", "updated_at": "2023-05-16T16:31:45+00:00", + null, "to_address": {"id": "adr_42b5ba7a8e3c11eeb8333cecef1b359e", "object": + "Address", "created_at": "2023-11-28T22:19:56+00:00", "updated_at": "2023-11-28T22:19: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_25f60894f40711edbd14ac1f6bc7b362", - "object": "Address", "created_at": "2023-05-16T16:31:45+00:00", "updated_at": - "2023-05-16T16:31:45+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_42b818358e3c11eeb8363cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:19:56+00:00", "updated_at": + "2023-11-28T22:19: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_25f1ec31f40711edb8dcac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T16:31:45+00:00", "updated_at": "2023-05-16T16:31:45+00:00", "name": + "adr_42b5ba7a8e3c11eeb8333cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:19:56+00:00", "updated_at": "2023-11-28T22:19: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_8acff0a4a916424da4e1f4f3fe072984", + {}}, "forms": [], "fees": [], "id": "shp_15600b9a2a294cde85234f7357c41d63", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5851' + - '6394' content-type: - application/json; charset=utf-8 - etag: - - W/"1f09bb01fd9100581ed495ef74d2a294" expires: - '0' location: - - /api/v2/shipments/shp_8acff0a4a916424da4e1f4f3fe072984 + - /api/v2/shipments/shp_15600b9a2a294cde85234f7357c41d63 pragma: - no-cache referrer-policy: @@ -125,25 +130,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463aff1e7872f990027a859 + - ae35d0b46566678ce78b05c20042c40d x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.724446' + - '0.886327' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -163,53 +170,59 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_8acff0a4a916424da4e1f4f3fe072984/smartrate + uri: https://api.easypost.com/v2/shipments/shp_15600b9a2a294cde85234f7357c41d63/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-05-16T16:31:46Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_6c7ad12cb9a94561ac6cfe6a5fcf65bc", "list_currency": "USD", - "list_rate": 8.24, "mode": "test", "object": "Rate", "rate": 7.15, "retail_currency": - "USD", "retail_rate": 10.2, "service": "Priority", "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2023-05-16T16:31:46Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-05-16T16:31:46Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_a389d8d9c62541579fbd21669a223271", - "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 6.07, "retail_currency": "USD", "retail_rate": 6.07, "service": "First", - "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 3, "percentile_97": 4, "percentile_99": 5}, "updated_at": - "2023-05-16T16:31:46Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-05-16T16:31:46Z", "currency": "USD", "delivery_date": + "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_438469a9e1bc49188d85f5d3f8116fa8", "list_currency": "USD", + null, "id": "rate_43f3da4c4c18404088d8e8c8fd1ccffb", "list_currency": "USD", "list_rate": 31.25, "mode": "test", "object": "Rate", "rate": 31.25, "retail_currency": - "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": - 4}, "updated_at": "2023-05-16T16:31:46Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-05-16T16:31:46Z", + "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": + 5}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 5, "est_delivery_days": 5, "id": "rate_a362cf2e07e942b7896c6967083a7ef7", - "list_currency": "USD", "list_rate": 7.75, "mode": "test", "object": "Rate", - "rate": 6.76, "retail_currency": "USD", "retail_rate": 7.75, "service": "ParcelSelect", - "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 2, "percentile_97": 2, "percentile_99": 3}, "updated_at": - "2023-05-16T16:31:46Z"}]}' + "delivery_days": 2, "est_delivery_days": 2, "id": "rate_a5a18e44962b429797c80863971595b6", + "list_currency": "USD", "list_rate": 8.24, "mode": "test", "object": "Rate", + "rate": 6.95, "retail_currency": "USD", "retail_rate": 10.2, "service": "Priority", + "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 2, "percentile_90": + 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 6}, "updated_at": + "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_63fda49b61f841be93e1c8f950a42d15", "list_currency": "USD", + "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.0, "service": "GroundAdvantage", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 9}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", + "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, + "delivery_days": 3, "est_delivery_days": 3, "id": "rate_67e0334da3d442d28e52c6a182050fdc", + "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", + "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", + "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": + 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": 9}, "updated_at": + "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_a6f0298899544d479d434ca725a3fe4a", "list_currency": "USD", + "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.0, "service": "ParcelSelect", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 9}, "updated_at": "2023-11-28T22:19:57Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '2620' + - '3274' content-type: - application/json; charset=utf-8 - etag: - - W/"66d3b0dfe05fa21fa84f9353cf7108b1" expires: - '0' pragma: @@ -227,20 +240,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463aff2e7872f990027a8ba + - ae35d0b46566678de78b05c20042c516 x-frame-options: - SAMEORIGIN x-node: - - bigweb12nuq + - bigweb42nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.065101' + - '0.131334' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -260,53 +273,59 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_8acff0a4a916424da4e1f4f3fe072984/smartrate + uri: https://api.easypost.com/v2/shipments/shp_15600b9a2a294cde85234f7357c41d63/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-05-16T16:31:46Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_6c7ad12cb9a94561ac6cfe6a5fcf65bc", "list_currency": "USD", - "list_rate": 8.24, "mode": "test", "object": "Rate", "rate": 7.15, "retail_currency": - "USD", "retail_rate": 10.2, "service": "Priority", "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2023-05-16T16:31:46Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-05-16T16:31:46Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_a389d8d9c62541579fbd21669a223271", - "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 6.07, "retail_currency": "USD", "retail_rate": 6.07, "service": "First", - "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 3, "percentile_97": 4, "percentile_99": 5}, "updated_at": - "2023-05-16T16:31:46Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-05-16T16:31:46Z", "currency": "USD", "delivery_date": + "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_438469a9e1bc49188d85f5d3f8116fa8", "list_currency": "USD", + null, "id": "rate_43f3da4c4c18404088d8e8c8fd1ccffb", "list_currency": "USD", "list_rate": 31.25, "mode": "test", "object": "Rate", "rate": 31.25, "retail_currency": - "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": - 4}, "updated_at": "2023-05-16T16:31:46Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-05-16T16:31:46Z", + "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": + 5}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 5, "est_delivery_days": 5, "id": "rate_a362cf2e07e942b7896c6967083a7ef7", - "list_currency": "USD", "list_rate": 7.75, "mode": "test", "object": "Rate", - "rate": 6.76, "retail_currency": "USD", "retail_rate": 7.75, "service": "ParcelSelect", - "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 2, "percentile_97": 2, "percentile_99": 3}, "updated_at": - "2023-05-16T16:31:46Z"}]}' + "delivery_days": 2, "est_delivery_days": 2, "id": "rate_a5a18e44962b429797c80863971595b6", + "list_currency": "USD", "list_rate": 8.24, "mode": "test", "object": "Rate", + "rate": 6.95, "retail_currency": "USD", "retail_rate": 10.2, "service": "Priority", + "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 2, "percentile_90": + 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 6}, "updated_at": + "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_63fda49b61f841be93e1c8f950a42d15", "list_currency": "USD", + "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.0, "service": "GroundAdvantage", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 9}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", + "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, + "delivery_days": 3, "est_delivery_days": 3, "id": "rate_67e0334da3d442d28e52c6a182050fdc", + "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", + "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", + "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": + 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": 9}, "updated_at": + "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_a6f0298899544d479d434ca725a3fe4a", "list_currency": "USD", + "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.0, "service": "ParcelSelect", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 9}, "updated_at": "2023-11-28T22:19:57Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '2620' + - '3274' content-type: - application/json; charset=utf-8 - etag: - - W/"66d3b0dfe05fa21fa84f9353cf7108b1" expires: - '0' pragma: @@ -324,20 +343,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463aff2e7872f990027a8cc + - ae35d0b46566678de78b05c20042c557 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.073232' + - '0.086209' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -357,53 +376,59 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_8acff0a4a916424da4e1f4f3fe072984/smartrate + uri: https://api.easypost.com/v2/shipments/shp_15600b9a2a294cde85234f7357c41d63/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-05-16T16:31:46Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_6c7ad12cb9a94561ac6cfe6a5fcf65bc", "list_currency": "USD", - "list_rate": 8.24, "mode": "test", "object": "Rate", "rate": 7.15, "retail_currency": - "USD", "retail_rate": 10.2, "service": "Priority", "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", - "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2023-05-16T16:31:46Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-05-16T16:31:46Z", - "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_a389d8d9c62541579fbd21669a223271", - "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 6.07, "retail_currency": "USD", "retail_rate": 6.07, "service": "First", - "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 3, "percentile_97": 4, "percentile_99": 5}, "updated_at": - "2023-05-16T16:31:46Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-05-16T16:31:46Z", "currency": "USD", "delivery_date": + "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_438469a9e1bc49188d85f5d3f8116fa8", "list_currency": "USD", + null, "id": "rate_43f3da4c4c18404088d8e8c8fd1ccffb", "list_currency": "USD", "list_rate": 31.25, "mode": "test", "object": "Rate", "rate": 31.25, "retail_currency": - "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": - 4}, "updated_at": "2023-05-16T16:31:46Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-05-16T16:31:46Z", + "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": + 5}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 5, "est_delivery_days": 5, "id": "rate_a362cf2e07e942b7896c6967083a7ef7", - "list_currency": "USD", "list_rate": 7.75, "mode": "test", "object": "Rate", - "rate": 6.76, "retail_currency": "USD", "retail_rate": 7.75, "service": "ParcelSelect", - "shipment_id": "shp_8acff0a4a916424da4e1f4f3fe072984", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 2, "percentile_97": 2, "percentile_99": 3}, "updated_at": - "2023-05-16T16:31:46Z"}]}' + "delivery_days": 2, "est_delivery_days": 2, "id": "rate_a5a18e44962b429797c80863971595b6", + "list_currency": "USD", "list_rate": 8.24, "mode": "test", "object": "Rate", + "rate": 6.95, "retail_currency": "USD", "retail_rate": 10.2, "service": "Priority", + "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 2, "percentile_90": + 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 6}, "updated_at": + "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_63fda49b61f841be93e1c8f950a42d15", "list_currency": "USD", + "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.0, "service": "GroundAdvantage", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 9}, "updated_at": "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:19:57Z", + "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, + "delivery_days": 3, "est_delivery_days": 3, "id": "rate_67e0334da3d442d28e52c6a182050fdc", + "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", + "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", + "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": + 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": 9}, "updated_at": + "2023-11-28T22:19:57Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2023-11-28T22:19:57Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_a6f0298899544d479d434ca725a3fe4a", "list_currency": "USD", + "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.0, "service": "ParcelSelect", "shipment_id": "shp_15600b9a2a294cde85234f7357c41d63", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 9}, "updated_at": "2023-11-28T22:19:57Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '2620' + - '3274' content-type: - application/json; charset=utf-8 - etag: - - W/"66d3b0dfe05fa21fa84f9353cf7108b1" expires: - '0' pragma: @@ -421,20 +446,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463aff2e7872f990027a8d7 + - ae35d0b46566678ee78b05c20042c604 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb41nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.062884' + - '0.099432' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_one_call_buy_with_carbon_offset.yaml b/tests/cassettes/test_shipment_one_call_buy_with_carbon_offset.yaml deleted file mode 100644 index 9f6f14e6..00000000 --- a/tests/cassettes/test_shipment_one_call_buy_with_carbon_offset.yaml +++ /dev/null @@ -1,174 +0,0 @@ -interactions: -- request: - body: '{"shipment": {"to_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"}, "from_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}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": true}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '619' - Content-Type: - - application/json - authorization: - - - user-agent: - - - method: POST - uri: https://api.easypost.com/v2/shipments - response: - body: - string: '{"created_at": "2023-05-16T16:31:51Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210341798", "updated_at": "2023-05-16T16:31:52Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_295de4abf40711edafa23cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:51+00:00", "updated_at": "2023-05-16T16:31:51+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_e5a793fe9a124c648c3662cbd17bcea1", - "object": "Parcel", "created_at": "2023-05-16T16:31:51Z", "updated_at": "2023-05-16T16:31:51Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_d38714fcfacc4e0ab75984034df12dd8", - "created_at": "2023-05-16T16:31:52Z", "updated_at": "2023-05-16T16:31:52Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:31:52Z", - "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/20230516/2c4a226f499f40e6b5c4a4267c03f126.png", - "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_5c754be4576347d79eb08ffeecc1ac4e", "object": - "Rate", "created_at": "2023-05-16T16:31:51Z", "updated_at": "2023-05-16T16:31:51Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_1f8bcc1d9de543d6b459de624fcccd3d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}, {"id": "rate_08bdec380497414aa6a34af994adcd6a", - "object": "Rate", "created_at": "2023-05-16T16:31:51Z", "updated_at": "2023-05-16T16:31:51Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_1f8bcc1d9de543d6b459de624fcccd3d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "carbon_offset": {"object": "CarbonOffset", "grams": 36, "price": "0.11", - "currency": "USD"}}, {"id": "rate_ca0accfe2fa84b32986f1d57deb0a7ec", "object": - "Rate", "created_at": "2023-05-16T16:31:51Z", "updated_at": "2023-05-16T16:31:51Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_1f8bcc1d9de543d6b459de624fcccd3d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}, {"id": "rate_78cb414a7d0140bb95a64c7594673446", - "object": "Rate", "created_at": "2023-05-16T16:31:51Z", "updated_at": "2023-05-16T16:31:51Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_1f8bcc1d9de543d6b459de624fcccd3d", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}], "refund_status": null, - "scan_form": null, "selected_rate": {"id": "rate_08bdec380497414aa6a34af994adcd6a", - "object": "Rate", "created_at": "2023-05-16T16:31:52Z", "updated_at": "2023-05-16T16:31:52Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_1f8bcc1d9de543d6b459de624fcccd3d", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_04ee4a941e8e4a5588055b6c888a1e0a", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210341798", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T16:31:52Z", "updated_at": - "2023-05-16T16:31:52Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_1f8bcc1d9de543d6b459de624fcccd3d", "carrier": "USPS", - "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzA0ZWU0YTk0MWU4ZTRhNTU4ODA1NWI2Yzg4OGExZTBh"}, - "to_address": {"id": "adr_295b4f1df40711edaf963cecef1b359e", "object": "Address", - "created_at": "2023-05-16T16:31:51+00:00", "updated_at": "2023-05-16T16:31:51+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_295de4abf40711edafa23cecef1b359e", - "object": "Address", "created_at": "2023-05-16T16:31:51+00:00", "updated_at": - "2023-05-16T16:31:51+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_295b4f1df40711edaf963cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:51+00:00", "updated_at": "2023-05-16T16:31:51+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"}}}}, "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": "Fee", "type": "CarbonOffsetFee", "amount": - "0.11000", "charged": true, "refunded": false}], "id": "shp_1f8bcc1d9de543d6b459de624fcccd3d", - "object": "Shipment"}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '7418' - content-type: - - application/json; charset=utf-8 - etag: - - W/"c277b8bce9e1623771770736fb2f029a" - expires: - - '0' - location: - - /api/v2/shipments/shp_1f8bcc1d9de543d6b459de624fcccd3d - 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: - - 23bee7e76463aff7e7872f9f0027aa47 - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb11nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 - x-runtime: - - '1.190956' - x-version-label: - - easypost-202305152249-750e1e7d95-master - x-xss-protection: - - 1; mode=block - status: - code: 201 - message: Created -version: 1 diff --git a/tests/cassettes/test_shipment_refund.yaml b/tests/cassettes/test_shipment_refund.yaml index 23675619..d2674719 100644 --- a/tests/cassettes/test_shipment_refund.yaml +++ b/tests/cassettes/test_shipment_refund.yaml @@ -7,7 +7,7 @@ interactions: "state": "CA", "zip": "90277", "country": "US", "email": "test@example.com", "phone": "5555555555"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": 15.4}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' + "carrier": "USPS"}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: Connection: - keep-alive Content-Length: - - '620' + - '596' Content-Type: - application/json authorization: @@ -27,110 +27,115 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:37Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:09:01Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210341637", "updated_at": "2023-05-16T16:31:38Z", "batch_id": + "9400100105442285876688", "updated_at": "2023-11-28T22:09:01Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_212e108af40711ed987a3cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:37+00:00", "updated_at": "2023-05-16T16:31:37+00:00", "name": + {"id": "adr_bc1e777f8e3a11eebfff3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09: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_cab2478d70534c868c4314d19bda6d45", - "object": "Parcel", "created_at": "2023-05-16T16:31:37Z", "updated_at": "2023-05-16T16:31:37Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_2fff4c9de8b94e87b5fe3695ab26170c", + "object": "Parcel", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_ec37009e709e4af78f542a4ed7f76df1", - "created_at": "2023-05-16T16:31:38Z", "updated_at": "2023-05-16T16:31:38Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:31:38Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_dfd9ecc487fd4b6cac8537ec8d034f4c", + "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:09:01Z", "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/20230516/58a169b16dbe4dc699f33f62958eff9d.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8f79b2746f1364b25992e9d0773e80865.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_3da547865af7446dbfda00e700aa2b04", "object": - "Rate", "created_at": "2023-05-16T16:31:37Z", "updated_at": "2023-05-16T16:31:37Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_6202abb22874490ab3631a413493bdeb", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_69b5db7fe34b4e12b03ac94bd48ed7a5", - "object": "Rate", "created_at": "2023-05-16T16:31:37Z", "updated_at": "2023-05-16T16:31:37Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_c9ddbd41f24749518982a5109fd1fd73", "object": + "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_6202abb22874490ab3631a413493bdeb", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3370f697867648089678702603133fec", - "object": "Rate", "created_at": "2023-05-16T16:31:37Z", "updated_at": "2023-05-16T16:31:37Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5042c3e74cd54246aacaa33366712911", + "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_181bf834d1c042c0a2d88620755ffb97", + "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6202abb22874490ab3631a413493bdeb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_ec2e8704ce644a2b8c6ed97abc870e88", "object": "Rate", "created_at": - "2023-05-16T16:31:37Z", "updated_at": "2023-05-16T16:31:37Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_6202abb22874490ab3631a413493bdeb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_3370f697867648089678702603133fec", - "object": "Rate", "created_at": "2023-05-16T16:31:38Z", "updated_at": "2023-05-16T16:31:38Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_8cc7cfae05774b3e9d6cf20095f3b809", "object": "Rate", "created_at": + "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6202abb22874490ab3631a413493bdeb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_ea5f9707a5a942c785a32081bd79e1c4", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210341637", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T16:31:38Z", "updated_at": - "2023-05-16T16:31:38Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_6202abb22874490ab3631a413493bdeb", "carrier": "USPS", + "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_31b8df30fc3d42248ffc45b849f808f8", "object": "Rate", "created_at": + "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_181bf834d1c042c0a2d88620755ffb97", + "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_c1a24bdb11a34f30bf82b15a74cbd1bc", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285876688", "status": "unknown", + "status_detail": "unknown", "created_at": "2023-11-28T22:09:01Z", "updated_at": + "2023-11-28T22:09:01Z", "signed_by": null, "weight": null, "est_delivery_date": + null, "shipment_id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier": "USPS", "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrX2VhNWY5NzA3YTVhOTQyYzc4NWEzMjA4MWJkNzllMWM0"}, - "to_address": {"id": "adr_212bc9d7f40711edb3ccac1f6bc7b362", "object": "Address", - "created_at": "2023-05-16T16:31:37+00:00", "updated_at": "2023-05-16T16:31:37+00:00", + "https://track.easypost.com/djE6dHJrX2MxYTI0YmRiMTFhMzRmMzBiZjgyYjE1YTc0Y2JkMWJj"}, + "to_address": {"id": "adr_bc1bc77d8e3a11eebffd3cecef1b359e", "object": "Address", + "created_at": "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09:01+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", - "street2": null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", + "street2": "", "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_212e108af40711ed987a3cecef1b359e", - "object": "Address", "created_at": "2023-05-16T16:31:37+00:00", "updated_at": - "2023-05-16T16:31:37+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_bc1e777f8e3a11eebfff3cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:09:01+00:00", "updated_at": + "2023-11-28T22:09: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": {}}, "buyer_address": {"id": - "adr_212bc9d7f40711edb3ccac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:37+00:00", "updated_at": "2023-05-16T16:31:37+00:00", "name": + "adr_bc1bc77d8e3a11eebffd3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09:01+00:00", "name": "JACK SPARROW", "company": null, "street1": "388 TOWNSEND ST APT 20", "street2": - null, "city": "SAN FRANCISCO", "state": "CA", "zip": "94107-1670", "country": + "", "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"}}}}, "forms": [], "fees": [{"object": "Fee", "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_6202abb22874490ab3631a413493bdeb", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6985' + - '7526' content-type: - application/json; charset=utf-8 - etag: - - W/"7d1fb7a8cce5a673f7ab19a2dc015d0d" expires: - '0' location: - - /api/v2/shipments/shp_6202abb22874490ab3631a413493bdeb + - /api/v2/shipments/shp_9127f47afd6d4b488beaeaa38e485bfc pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e66463afe9e7872f5f0027a564 + - 88ad7b93656664fce78a9c73003f668e x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb34nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '1.174495' + - '0.976059' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -183,77 +188,84 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_6202abb22874490ab3631a413493bdeb/refund + uri: https://api.easypost.com/v2/shipments/shp_9127f47afd6d4b488beaeaa38e485bfc/refund response: body: - string: '{"created_at": "2023-05-16T16:31:37Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:09:01Z", "is_return": false, "messages": [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210341637", "updated_at": "2023-05-16T16:31:39Z", "batch_id": + "9400100105442285876688", "updated_at": "2023-11-28T22:09:02Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_212e108af40711ed987a3cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:37+00:00", "updated_at": "2023-05-16T16:31:37+00:00", "name": + {"id": "adr_bc1e777f8e3a11eebfff3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09: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_cab2478d70534c868c4314d19bda6d45", - "object": "Parcel", "created_at": "2023-05-16T16:31:37Z", "updated_at": "2023-05-16T16:31:37Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_2fff4c9de8b94e87b5fe3695ab26170c", + "object": "Parcel", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_ec37009e709e4af78f542a4ed7f76df1", - "created_at": "2023-05-16T16:31:38Z", "updated_at": "2023-05-16T16:31:38Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:31:38Z", + 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_dfd9ecc487fd4b6cac8537ec8d034f4c", + "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + "date_advance": 0, "integrated_form": "none", "label_date": "2023-11-28T22:09:01Z", "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/20230516/58a169b16dbe4dc699f33f62958eff9d.png", + "image/png", "label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20231128/e8f79b2746f1364b25992e9d0773e80865.png", "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_3da547865af7446dbfda00e700aa2b04", "object": - "Rate", "created_at": "2023-05-16T16:31:37Z", "updated_at": "2023-05-16T16:31:37Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_6202abb22874490ab3631a413493bdeb", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_69b5db7fe34b4e12b03ac94bd48ed7a5", - "object": "Rate", "created_at": "2023-05-16T16:31:37Z", "updated_at": "2023-05-16T16:31:37Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null}, "rates": [{"id": "rate_c9ddbd41f24749518982a5109fd1fd73", "object": + "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_6202abb22874490ab3631a413493bdeb", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3370f697867648089678702603133fec", - "object": "Rate", "created_at": "2023-05-16T16:31:37Z", "updated_at": "2023-05-16T16:31:37Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_5042c3e74cd54246aacaa33366712911", + "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_181bf834d1c042c0a2d88620755ffb97", + "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_8cc7cfae05774b3e9d6cf20095f3b809", "object": "Rate", "created_at": + "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6202abb22874490ab3631a413493bdeb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_ec2e8704ce644a2b8c6ed97abc870e88", "object": "Rate", "created_at": - "2023-05-16T16:31:37Z", "updated_at": "2023-05-16T16:31:37Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_6202abb22874490ab3631a413493bdeb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": "submitted", "scan_form": null, "selected_rate": {"id": "rate_3370f697867648089678702603133fec", - "object": "Rate", "created_at": "2023-05-16T16:31:38Z", "updated_at": "2023-05-16T16:31:38Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_31b8df30fc3d42248ffc45b849f808f8", "object": "Rate", "created_at": + "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", "mode": "test", + "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", + "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": + "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": + "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "refund_status": "submitted", "scan_form": null, "selected_rate": {"id": "rate_181bf834d1c042c0a2d88620755ffb97", + "object": "Rate", "created_at": "2023-11-28T22:09:01Z", "updated_at": "2023-11-28T22:09:01Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6202abb22874490ab3631a413493bdeb", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_ea5f9707a5a942c785a32081bd79e1c4", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210341637", "status": "pre_transit", - "status_detail": "status_update", "created_at": "2023-05-16T16:31:38Z", "updated_at": - "2023-05-16T16:31:38Z", "signed_by": null, "weight": null, "est_delivery_date": - "2023-05-16T16:31:38Z", "shipment_id": "shp_6202abb22874490ab3631a413493bdeb", + "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + "tracker": {"id": "trk_c1a24bdb11a34f30bf82b15a74cbd1bc", "object": "Tracker", + "mode": "test", "tracking_code": "9400100105442285876688", "status": "pre_transit", + "status_detail": "status_update", "created_at": "2023-11-28T22:09:02Z", "updated_at": + "2023-11-28T22:09:02Z", "signed_by": null, "weight": null, "est_delivery_date": + "2023-11-28T22:09:02Z", "shipment_id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "carrier": "USPS", "tracking_details": [{"object": "TrackingDetail", "message": - "Pre-Shipment Info Sent to USPS", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-16T16:31:38Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "Pre-Shipment Info Sent to USPS", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-28T22:09:02Z", "source": + "USPS", "carrier_code": "", "tracking_location": {"object": "TrackingLocation", "city": null, "state": null, "country": null, "zip": null}}, {"object": "TrackingDetail", - "message": "Shipping Label Created", "description": null, "status": "pre_transit", - "status_detail": "status_update", "datetime": "2023-04-17T05:08:38Z", "source": - "USPS", "carrier_code": null, "tracking_location": {"object": "TrackingLocation", + "message": "Shipping Label Created", "description": "", "status": "pre_transit", + "status_detail": "status_update", "datetime": "2023-10-29T10:46:02Z", "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": null, "est_delivery_date_local": null, @@ -261,9 +273,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/djE6dHJrX2VhNWY5NzA3YTVhOTQyYzc4NWEzMjA4MWJkNzllMWM0"}, - "to_address": {"id": "adr_212bc9d7f40711edb3ccac1f6bc7b362", "object": "Address", - "created_at": "2023-05-16T16:31:37+00:00", "updated_at": "2023-05-16T16:31:37+00:00", + null}, "public_url": "https://track.easypost.com/djE6dHJrX2MxYTI0YmRiMTFhMzRmMzBiZjgyYjE1YTc0Y2JkMWJj"}, + "to_address": {"id": "adr_bc1bc77d8e3a11eebffd3cecef1b359e", "object": "Address", + "created_at": "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09:01+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", @@ -271,15 +283,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_212e108af40711ed987a3cecef1b359e", - "object": "Address", "created_at": "2023-05-16T16:31:37+00:00", "updated_at": - "2023-05-16T16:31:37+00:00", "name": "Elizabeth Swan", "company": null, "street1": + "usps_zone": 4, "return_address": {"id": "adr_bc1e777f8e3a11eebfff3cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:09:01+00:00", "updated_at": + "2023-11-28T22:09: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": {}}, "buyer_address": {"id": - "adr_212bc9d7f40711edb3ccac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:37+00:00", "updated_at": "2023-05-16T16:31:37+00:00", "name": + "adr_bc1bc77d8e3a11eebffd3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:09:01+00:00", "updated_at": "2023-11-28T22:09:01+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": @@ -288,18 +300,16 @@ 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": "6.07000", "charged": true, - "refunded": false}], "id": "shp_6202abb22874490ab3631a413493bdeb", "object": + {"object": "Fee", "type": "PostageFee", "amount": "5.93000", "charged": true, + "refunded": false}], "id": "shp_9127f47afd6d4b488beaeaa38e485bfc", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '8126' + - '8663' content-type: - application/json; charset=utf-8 - etag: - - W/"b1ea0fb047e0897fd342b59d1ac03a6a" expires: - '0' pragma: @@ -317,20 +327,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e66463afeae7872f5f0027a5b7 + - 88ad7b93656664fee78a9c73003f6769 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.256755' + - '0.194430' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-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 bda334e3..73bc96d8 100644 --- a/tests/cassettes/test_shipment_regenerate_rates.yaml +++ b/tests/cassettes/test_shipment_regenerate_rates.yaml @@ -11,7 +11,7 @@ interactions: "", "restriction_type": "none", "non_delivery_option": "return", "customs_items": [{"description": "Sweet shirts", "quantity": 2, "weight": 11, "value": 23.25, "hs_tariff_number": "654321", "origin_country": "US"}]}, "options": {"label_format": - "PNG", "invoice_number": "123"}, "reference": "123"}, "carbon_offset": false}' + "PNG", "invoice_number": "123"}, "reference": "123"}}' headers: Accept: - '*/*' @@ -20,7 +20,7 @@ interactions: Connection: - keep-alive Content-Length: - - '978' + - '954' Content-Type: - application/json authorization: @@ -31,10 +31,8 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:33Z", "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", + string: '{"created_at": "2023-11-28T22:08:53Z", "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: @@ -44,93 +42,100 @@ interactions: "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_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "shipment.customs_info.customs_items.0.code: field required"}], "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": - "2023-05-16T16:31:33Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_cb037cb85ae04a368a1ab12cf0ded04b", "object": - "CustomsInfo", "created_at": "2023-05-16T16:31:33Z", "updated_at": "2023-05-16T16:31:33Z", + "2023-11-28T22:08:54Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": {"id": "cstinfo_e78d3719dfb142bd8dfa8e1be7df6c8d", "object": + "CustomsInfo", "created_at": "2023-11-28T22:08:53Z", "updated_at": "2023-11-28T22:08:53Z", "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_9d18ffd496b4454085744403dacbb731", - "object": "CustomsItem", "created_at": "2023-05-16T16:31:33Z", "updated_at": - "2023-05-16T16:31:33Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_458af35aaf284ab5933e90803e2984f3", + "object": "CustomsItem", "created_at": "2023-11-28T22:08:53Z", "updated_at": + "2023-11-28T22:08:53Z", "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_1e63fd6ef40711ed977e3cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:33+00:00", "updated_at": "2023-05-16T16:31:33+00:00", "name": + "adr_b7b660f38e3a11ee88c2ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:08:53+00:00", "updated_at": "2023-11-28T22:08: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": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_93075f511bbd4bf98428447aa0fcc196", - "object": "Parcel", "created_at": "2023-05-16T16:31:33Z", "updated_at": "2023-05-16T16:31:33Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_b1469c52727940c6bb938bc944e13910", + "object": "Parcel", "created_at": "2023-11-28T22:08:53Z", "updated_at": "2023-11-28T22:08:53Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_5d07b0deeafc48d9a1584bd1faf635bb", - "object": "Rate", "created_at": "2023-05-16T16:31:33Z", "updated_at": "2023-05-16T16:31:33Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_e3aada19b74447feb916aadc8f2f6a75", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_36f48d20a171432bb5cf7f0403cafd52", - "object": "Rate", "created_at": "2023-05-16T16:31:33Z", "updated_at": "2023-05-16T16:31:33Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_e3aada19b74447feb916aadc8f2f6a75", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_c91b7d23f31547fd95d4bad7b224c2e5", - "object": "Rate", "created_at": "2023-05-16T16:31:33Z", "updated_at": "2023-05-16T16:31:33Z", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_7b9774bcb9964971a8db086c372cfba4", + "object": "Rate", "created_at": "2023-11-28T22:08:53Z", "updated_at": "2023-11-28T22:08:53Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_e3aada19b74447feb916aadc8f2f6a75", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_ab12ec44fc244286b7473112aa3dd086", - "object": "Rate", "created_at": "2023-05-16T16:31:33Z", "updated_at": "2023-05-16T16:31:33Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + null, "shipment_id": "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3baab18360f44cf3b4de9fd40bd7ac8e", + "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", + "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": + "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_16c8de6aebef48388537e00040a37414", + "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b35e1ed2d47040f3a0cca86e74f58c6c", + "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_7d64e38760a347198da4d8a275ef3cf2", "object": "Rate", "created_at": + "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_e3aada19b74447feb916aadc8f2f6a75", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_1e61ee30f40711ed977d3cecef1b359e", "object": - "Address", "created_at": "2023-05-16T16:31:33+00:00", "updated_at": "2023-05-16T16:31:33+00:00", + null, "to_address": {"id": "adr_b7b46f2a8e3a11eebd743cecef1b359e", "object": + "Address", "created_at": "2023-11-28T22:08:53+00:00", "updated_at": "2023-11-28T22:08:53+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_1e63fd6ef40711ed977e3cecef1b359e", - "object": "Address", "created_at": "2023-05-16T16:31:33+00:00", "updated_at": - "2023-05-16T16:31:33+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_b7b660f38e3a11ee88c2ac1f6bc539aa", + "object": "Address", "created_at": "2023-11-28T22:08:53+00:00", "updated_at": + "2023-11-28T22:08: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": {}}, "buyer_address": {"id": - "adr_1e61ee30f40711ed977d3cecef1b359e", "object": "Address", "created_at": - "2023-05-16T16:31:33+00:00", "updated_at": "2023-05-16T16:31:33+00:00", "name": + "adr_b7b46f2a8e3a11eebd743cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:08:53+00:00", "updated_at": "2023-11-28T22:08:53+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_e3aada19b74447feb916aadc8f2f6a75", + {}}, "forms": [], "fees": [], "id": "shp_6d4682467fe24164934e5c5f1da503ac", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6722' + - '7265' content-type: - application/json; charset=utf-8 - etag: - - W/"8ae70439c39f9406f936c2d11e1b1926" expires: - '0' location: - - /api/v2/shipments/shp_e3aada19b74447feb916aadc8f2f6a75 + - /api/v2/shipments/shp_6d4682467fe24164934e5c5f1da503ac pragma: - no-cache referrer-policy: @@ -146,27 +151,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afe4e7872f5c0027a3d4 + - 88ad7b90656664f5e78a9c70003f6061 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb40nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.509197' + - '0.482890' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"carbon_offset": false}' + body: '{}' headers: Accept: - '*/*' @@ -175,7 +180,7 @@ interactions: Connection: - keep-alive Content-Length: - - '24' + - '2' Content-Type: - application/json authorization: @@ -183,46 +188,51 @@ interactions: user-agent: - method: POST - uri: https://api.easypost.com/v2/shipments/shp_e3aada19b74447feb916aadc8f2f6a75/rerate + uri: https://api.easypost.com/v2/shipments/shp_6d4682467fe24164934e5c5f1da503ac/rerate response: body: - string: '{"rates": [{"id": "rate_fbfec1e3dad34f9f97ab9fd3f468a372", "object": - "Rate", "created_at": "2023-05-16T16:31:33Z", "updated_at": "2023-05-16T16:31:33Z", + string: '{"rates": [{"id": "rate_33f2caf3eb7244c0a363da3f41732b74", "object": + "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_e3aada19b74447feb916aadc8f2f6a75", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_21f7b667cfec494e90a425c7269ec700", - "object": "Rate", "created_at": "2023-05-16T16:31:34Z", "updated_at": "2023-05-16T16:31:34Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_e3aada19b74447feb916aadc8f2f6a75", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_9dc82136244b4e5cb9d2243e8600ee22", - "object": "Rate", "created_at": "2023-05-16T16:31:34Z", "updated_at": "2023-05-16T16:31:34Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null, "shipment_id": "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_7a82cc8b21b14da9ab6abb35ba4904bb", + "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_e3aada19b74447feb916aadc8f2f6a75", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_fb0fa10dab7e40548d6afe3a8928ed6b", - "object": "Rate", "created_at": "2023-05-16T16:31:34Z", "updated_at": "2023-05-16T16:31:34Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a4f93bbdd6594b03a74b3c20c2828950", + "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3fd97d7f109f4b5286a9138f22f90718", + "object": "Rate", "created_at": "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_0eacc63801f94b0da81fb910a6f6581d", "object": "Rate", "created_at": + "2023-11-28T22:08:54Z", "updated_at": "2023-11-28T22:08:54Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_e3aada19b74447feb916aadc8f2f6a75", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}]}' + "shp_6d4682467fe24164934e5c5f1da503ac", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '2165' + - '2708' content-type: - application/json; charset=utf-8 - etag: - - W/"25c4abf28d19adaa5881b840eb3951e0" expires: - '0' pragma: @@ -235,25 +245,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afe5e7872f5c0027a403 + - 88ad7b90656664f6e78a9c70003f610c x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb43nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.457187' + - '0.418697' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_rerate_with_carbon_offset.yaml b/tests/cassettes/test_shipment_rerate_with_carbon_offset.yaml deleted file mode 100644 index 37eac2ac..00000000 --- a/tests/cassettes/test_shipment_rerate_with_carbon_offset.yaml +++ /dev/null @@ -1,267 +0,0 @@ -interactions: -- request: - body: '{"shipment": {"to_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"}, "from_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}, "service": "First", "carrier_accounts": ["ca_b25657e9896e4d63ac8151ac346ac41e"], - "carrier": "USPS"}, "carbon_offset": false}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '620' - Content-Type: - - application/json - authorization: - - - user-agent: - - - method: POST - uri: https://api.easypost.com/v2/shipments - response: - body: - string: '{"created_at": "2023-05-16T16:31:53Z", "is_return": false, "messages": - [], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, - "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - "9400100104262210341804", "updated_at": "2023-05-16T16:31:54Z", "batch_id": - null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": - {"id": "adr_2a5c498df40711ed849eac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T16:31:53+00:00", "updated_at": "2023-05-16T16:31:53+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_3a69344709934ca5bcc12e5507b37277", - "object": "Parcel", "created_at": "2023-05-16T16:31:53Z", "updated_at": "2023-05-16T16:31:53Z", - "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": {"object": "PostageLabel", "id": "pl_35eefc60efb146c8896b0f73bcd9b198", - "created_at": "2023-05-16T16:31:53Z", "updated_at": "2023-05-16T16:31:53Z", - "date_advance": 0, "integrated_form": "none", "label_date": "2023-05-16T16:31:53Z", - "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/20230516/c7a7f4955160422f9ef1bbfdb2128f78.png", - "label_pdf_url": null, "label_zpl_url": null, "label_epl2_url": null, "label_file": - null}, "rates": [{"id": "rate_0bc6874b05f146569089f384d2b23cb9", "object": - "Rate", "created_at": "2023-05-16T16:31:53Z", "updated_at": "2023-05-16T16:31:53Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_8d961782f9174b70a46c6fe4b179e4b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_d11d3de41fc04d77aa782472093e1112", - "object": "Rate", "created_at": "2023-05-16T16:31:53Z", "updated_at": "2023-05-16T16:31:53Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_8d961782f9174b70a46c6fe4b179e4b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_4bf1f08a8525414da799cee80d190324", - "object": "Rate", "created_at": "2023-05-16T16:31:53Z", "updated_at": "2023-05-16T16:31:53Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8d961782f9174b70a46c6fe4b179e4b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_24d2d369e6714178815638bcb5eba958", - "object": "Rate", "created_at": "2023-05-16T16:31:53Z", "updated_at": "2023-05-16T16:31:53Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8d961782f9174b70a46c6fe4b179e4b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], - "refund_status": null, "scan_form": null, "selected_rate": {"id": "rate_24d2d369e6714178815638bcb5eba958", - "object": "Rate", "created_at": "2023-05-16T16:31:53Z", "updated_at": "2023-05-16T16:31:53Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8d961782f9174b70a46c6fe4b179e4b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - "tracker": {"id": "trk_33b91297097d4ad28fe0207dae34fca5", "object": "Tracker", - "mode": "test", "tracking_code": "9400100104262210341804", "status": "unknown", - "status_detail": "unknown", "created_at": "2023-05-16T16:31:54Z", "updated_at": - "2023-05-16T16:31:54Z", "signed_by": null, "weight": null, "est_delivery_date": - null, "shipment_id": "shp_8d961782f9174b70a46c6fe4b179e4b1", "carrier": "USPS", - "tracking_details": [], "fees": [], "carrier_detail": null, "public_url": - "https://track.easypost.com/djE6dHJrXzMzYjkxMjk3MDk3ZDRhZDI4ZmUwMjA3ZGFlMzRmY2E1"}, - "to_address": {"id": "adr_2a54856ef40711ed8ed1ac1f6bc7b362", "object": "Address", - "created_at": "2023-05-16T16:31:53+00:00", "updated_at": "2023-05-16T16:31:53+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_2a5c498df40711ed849eac1f6bc7bdc6", - "object": "Address", "created_at": "2023-05-16T16:31:53+00:00", "updated_at": - "2023-05-16T16:31:53+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_2a54856ef40711ed8ed1ac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:53+00:00", "updated_at": "2023-05-16T16:31:53+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"}}}}, "forms": [], "fees": [{"object": "Fee", - "type": "LabelFee", "amount": "0.00000", "charged": true, "refunded": false}, - {"object": "Fee", "type": "PostageFee", "amount": "6.07000", "charged": true, - "refunded": false}], "id": "shp_8d961782f9174b70a46c6fe4b179e4b1", "object": - "Shipment"}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '6985' - content-type: - - application/json; charset=utf-8 - etag: - - W/"450beaa62927e4b5a2dad346ce037b41" - expires: - - '0' - location: - - /api/v2/shipments/shp_8d961782f9174b70a46c6fe4b179e4b1 - 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: - - 23bee7e46463aff9e7872fa00027aac1 - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb4nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 - x-runtime: - - '1.098016' - x-version-label: - - easypost-202305152249-750e1e7d95-master - x-xss-protection: - - 1; mode=block - status: - code: 201 - message: Created -- request: - body: '{"carbon_offset": true}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '23' - Content-Type: - - application/json - authorization: - - - user-agent: - - - method: POST - uri: https://api.easypost.com/v2/shipments/shp_8d961782f9174b70a46c6fe4b179e4b1/rerate - response: - body: - string: '{"rates": [{"id": "rate_a411932ec0334e78bbac416c4017126c", "object": - "Rate", "created_at": "2023-05-16T16:31:54Z", "updated_at": "2023-05-16T16:31:54Z", - "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", - "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": - "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_8d961782f9174b70a46c6fe4b179e4b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}, {"id": "rate_e51fe98ddad24bc691dfefc3b8f17542", - "object": "Rate", "created_at": "2023-05-16T16:31:54Z", "updated_at": "2023-05-16T16:31:54Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_8d961782f9174b70a46c6fe4b179e4b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}, {"id": "rate_69c3ce65750a4b1c836261c78240142c", - "object": "Rate", "created_at": "2023-05-16T16:31:54Z", "updated_at": "2023-05-16T16:31:54Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", - "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": - "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_8d961782f9174b70a46c6fe4b179e4b1", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "carbon_offset": {"object": "CarbonOffset", - "grams": 36, "price": "0.11", "currency": "USD"}}, {"id": "rate_6e884b0a491740e383696f4e3e5283a3", - "object": "Rate", "created_at": "2023-05-16T16:31:54Z", "updated_at": "2023-05-16T16:31:54Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_8d961782f9174b70a46c6fe4b179e4b1", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "carbon_offset": {"object": "CarbonOffset", "grams": 36, "price": "0.11", - "currency": "USD"}}]}' - headers: - cache-control: - - private, no-cache, no-store - content-length: - - '2505' - content-type: - - application/json; charset=utf-8 - etag: - - W/"25ea8d80d35ac6ad10d1a943f445197e" - 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: - - 23bee7e46463affae7872fa00027ab3a - x-frame-options: - - SAMEORIGIN - x-node: - - bigweb6nuq - x-permitted-cross-domain-policies: - - none - x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 - x-runtime: - - '0.364553' - x-version-label: - - easypost-202305152249-750e1e7d95-master - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -version: 1 diff --git a/tests/cassettes/test_shipment_retrieve.yaml b/tests/cassettes/test_shipment_retrieve.yaml index 9ab175d2..ba9ec25e 100644 --- a/tests/cassettes/test_shipment_retrieve.yaml +++ b/tests/cassettes/test_shipment_retrieve.yaml @@ -11,7 +11,7 @@ interactions: "", "restriction_type": "none", "non_delivery_option": "return", "customs_items": [{"description": "Sweet shirts", "quantity": 2, "weight": 11, "value": 23.25, "hs_tariff_number": "654321", "origin_country": "US"}]}, "options": {"label_format": - "PNG", "invoice_number": "123"}, "reference": "123"}, "carbon_offset": false}' + "PNG", "invoice_number": "123"}, "reference": "123"}}' headers: Accept: - '*/*' @@ -20,7 +20,7 @@ interactions: Connection: - keep-alive Content-Length: - - '978' + - '954' Content-Type: - application/json authorization: @@ -31,106 +31,111 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:27Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:08:47Z", "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_c7b4cfaf671b4984b84023d77561394a", + "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_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_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"}], "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": - "2023-05-16T16:31:28Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_4c6a23020e1c4ec18cdabeb6000f7f5a", "object": - "CustomsInfo", "created_at": "2023-05-16T16:31:27Z", "updated_at": "2023-05-16T16:31:27Z", + "2023-11-28T22:08:48Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": {"id": "cstinfo_fd79cf15f742469c9dfb0c20424bff69", "object": + "CustomsInfo", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", "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_806ff0bfa2654a8d8563359d19179278", - "object": "CustomsItem", "created_at": "2023-05-16T16:31:27Z", "updated_at": - "2023-05-16T16:31:27Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_038a60dbd57f43ee9f79b788fc0ca10e", + "object": "CustomsItem", "created_at": "2023-11-28T22:08:47Z", "updated_at": + "2023-11-28T22:08:47Z", "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_1b19a234f40711edb20cac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:27+00:00", "updated_at": "2023-05-16T16:31:27+00:00", "name": + "adr_b43d4ecd8e3a11eebb1a3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+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_92d97082fce64f86a3c2aa2543f910c0", - "object": "Parcel", "created_at": "2023-05-16T16:31:27Z", "updated_at": "2023-05-16T16:31:27Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_39e70f7c0035461db7eddf486812ed38", + "object": "Parcel", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_74e203ebcb3e4d8faf99eab218045e6f", - "object": "Rate", "created_at": "2023-05-16T16:31:28Z", "updated_at": "2023-05-16T16:31:28Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0a913f3edd29495f86f6210aaa275a98", + "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", + "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": + "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_93df52ee40da44aca07f128ba8f69712", + "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dfe4f8657ea94c1d858404ddb7b1dfa0", + "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_b16247adf83849c6876e4f468a5ea4e8", "object": "Rate", "created_at": + "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_b8f77e80448b4f3392c83ae84ade1cc4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_52878c61264945f0853ffa301bc19884", "object": "Rate", "created_at": - "2023-05-16T16:31:28Z", "updated_at": "2023-05-16T16:31:28Z", "mode": "test", + "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_ab7cea862d084f92a42f5e31b6b4b5af", "object": "Rate", "created_at": + "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_b8f77e80448b4f3392c83ae84ade1cc4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_aa08f13d651a4baa8a18df1d6a0c59e2", "object": "Rate", "created_at": - "2023-05-16T16:31:28Z", "updated_at": "2023-05-16T16:31:28Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_b8f77e80448b4f3392c83ae84ade1cc4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_5e09427dd35a446dbbc0f6174842dcb7", "object": "Rate", "created_at": - "2023-05-16T16:31:28Z", "updated_at": "2023-05-16T16:31:28Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_b8f77e80448b4f3392c83ae84ade1cc4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_1b17a53bf40711ed8583ac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:31:27+00:00", "updated_at": "2023-05-16T16:31:27+00:00", + null, "to_address": {"id": "adr_b43ad0568e3a11ee867bac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+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_1b19a234f40711edb20cac1f6bc7b362", - "object": "Address", "created_at": "2023-05-16T16:31:27+00:00", "updated_at": - "2023-05-16T16:31:27+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_b43d4ecd8e3a11eebb1a3cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:08:47+00:00", "updated_at": + "2023-11-28T22:08:47+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_1b17a53bf40711ed8583ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:31:27+00:00", "updated_at": "2023-05-16T16:31:27+00:00", "name": + "adr_b43ad0568e3a11ee867bac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+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_b8f77e80448b4f3392c83ae84ade1cc4", + {}}, "forms": [], "fees": [], "id": "shp_c6b01e69e66241499909f827d983cd53", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6722' + - '7265' content-type: - application/json; charset=utf-8 - etag: - - W/"a9928691f612582e24e0be72dcf6a2b9" expires: - '0' location: - - /api/v2/shipments/shp_b8f77e80448b4f3392c83ae84ade1cc4 + - /api/v2/shipments/shp_c6b01e69e66241499909f827d983cd53 pragma: - no-cache referrer-policy: @@ -146,20 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e36463afdfe7872f580027a20c + - ae35d0b3656664efe78a9c6c003fea44 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb35nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.600690' + - '0.563410' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -179,105 +184,110 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_b8f77e80448b4f3392c83ae84ade1cc4 + uri: https://api.easypost.com/v2/shipments/shp_c6b01e69e66241499909f827d983cd53 response: body: - string: '{"created_at": "2023-05-16T16:31:27Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:08:47Z", "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_c7b4cfaf671b4984b84023d77561394a", + "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_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_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"}], "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": - "2023-05-16T16:31:28Z", "batch_id": null, "batch_status": null, "batch_message": - null, "customs_info": {"id": "cstinfo_4c6a23020e1c4ec18cdabeb6000f7f5a", "object": - "CustomsInfo", "created_at": "2023-05-16T16:31:27Z", "updated_at": "2023-05-16T16:31:27Z", + "2023-11-28T22:08:48Z", "batch_id": null, "batch_status": null, "batch_message": + null, "customs_info": {"id": "cstinfo_fd79cf15f742469c9dfb0c20424bff69", "object": + "CustomsInfo", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", "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_806ff0bfa2654a8d8563359d19179278", - "object": "CustomsItem", "created_at": "2023-05-16T16:31:27Z", "updated_at": - "2023-05-16T16:31:27Z", "description": "Sweet shirts", "hs_tariff_number": + "test", "declaration": null, "customs_items": [{"id": "cstitem_038a60dbd57f43ee9f79b788fc0ca10e", + "object": "CustomsItem", "created_at": "2023-11-28T22:08:47Z", "updated_at": + "2023-11-28T22:08:47Z", "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_1b19a234f40711edb20cac1f6bc7b362", "object": "Address", "created_at": - "2023-05-16T16:31:27+00:00", "updated_at": "2023-05-16T16:31:27+00:00", "name": + "adr_b43d4ecd8e3a11eebb1a3cecef1b359e", "object": "Address", "created_at": + "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+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_92d97082fce64f86a3c2aa2543f910c0", - "object": "Parcel", "created_at": "2023-05-16T16:31:27Z", "updated_at": "2023-05-16T16:31:27Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_39e70f7c0035461db7eddf486812ed38", + "object": "Parcel", "created_at": "2023-11-28T22:08:47Z", "updated_at": "2023-11-28T22:08:47Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_74e203ebcb3e4d8faf99eab218045e6f", - "object": "Rate", "created_at": "2023-05-16T16:31:28Z", "updated_at": "2023-05-16T16:31:28Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_0a913f3edd29495f86f6210aaa275a98", + "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", + "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": + "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 2, "shipment_id": "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_93df52ee40da44aca07f128ba8f69712", + "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_dfe4f8657ea94c1d858404ddb7b1dfa0", + "object": "Rate", "created_at": "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_b16247adf83849c6876e4f468a5ea4e8", "object": "Rate", "created_at": + "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_b8f77e80448b4f3392c83ae84ade1cc4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_52878c61264945f0853ffa301bc19884", "object": "Rate", "created_at": - "2023-05-16T16:31:28Z", "updated_at": "2023-05-16T16:31:28Z", "mode": "test", + "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_ab7cea862d084f92a42f5e31b6b4b5af", "object": "Rate", "created_at": + "2023-11-28T22:08:48Z", "updated_at": "2023-11-28T22:08:48Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": null, "shipment_id": - "shp_b8f77e80448b4f3392c83ae84ade1cc4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_aa08f13d651a4baa8a18df1d6a0c59e2", "object": "Rate", "created_at": - "2023-05-16T16:31:28Z", "updated_at": "2023-05-16T16:31:28Z", "mode": "test", - "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", "currency": - "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": "7.75", - "list_currency": "USD", "billing_type": "easypost", "delivery_days": 5, "delivery_date": - null, "delivery_date_guaranteed": false, "est_delivery_days": 5, "shipment_id": - "shp_b8f77e80448b4f3392c83ae84ade1cc4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, - {"id": "rate_5e09427dd35a446dbbc0f6174842dcb7", "object": "Rate", "created_at": - "2023-05-16T16:31:28Z", "updated_at": "2023-05-16T16:31:28Z", "mode": "test", - "service": "Priority", "carrier": "USPS", "rate": "7.15", "currency": "USD", - "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": - "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, - "delivery_date_guaranteed": false, "est_delivery_days": 2, "shipment_id": - "shp_b8f77e80448b4f3392c83ae84ade1cc4", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_c6b01e69e66241499909f827d983cd53", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_1b17a53bf40711ed8583ac1f6b0a0d1e", "object": - "Address", "created_at": "2023-05-16T16:31:27+00:00", "updated_at": "2023-05-16T16:31:27+00:00", + null, "to_address": {"id": "adr_b43ad0568e3a11ee867bac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+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_1b19a234f40711edb20cac1f6bc7b362", - "object": "Address", "created_at": "2023-05-16T16:31:27+00:00", "updated_at": - "2023-05-16T16:31:27+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_b43d4ecd8e3a11eebb1a3cecef1b359e", + "object": "Address", "created_at": "2023-11-28T22:08:47+00:00", "updated_at": + "2023-11-28T22:08:47+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_1b17a53bf40711ed8583ac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:31:27+00:00", "updated_at": "2023-05-16T16:31:27+00:00", "name": + "adr_b43ad0568e3a11ee867bac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:08:47+00:00", "updated_at": "2023-11-28T22:08:47+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_b8f77e80448b4f3392c83ae84ade1cc4", + {}}, "forms": [], "fees": [], "id": "shp_c6b01e69e66241499909f827d983cd53", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '6722' + - '7265' content-type: - application/json; charset=utf-8 - etag: - - W/"a9928691f612582e24e0be72dcf6a2b9" expires: - '0' pragma: @@ -295,20 +305,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e36463afe0e7872f580027a24d + - ae35d0b3656664f0e78a9c6c003feb17 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb36nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb2nuq 003ad9bca0 x-runtime: - - '0.103810' + - '0.091824' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_smart_rate.yaml b/tests/cassettes/test_shipment_smart_rate.yaml index ebd653d3..d559c377 100644 --- a/tests/cassettes/test_shipment_smart_rate.yaml +++ b/tests/cassettes/test_shipment_smart_rate.yaml @@ -6,7 +6,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"}, "parcel": {"length": 10, "width": 8, "height": 4, "weight": - 15.4}}, "carbon_offset": false}' + 15.4}}}' headers: Accept: - '*/*' @@ -15,7 +15,7 @@ interactions: Connection: - keep-alive Content-Length: - - '520' + - '496' Content-Type: - application/json authorization: @@ -26,95 +26,100 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at": "2023-05-16T16:31:39Z", "is_return": false, "messages": + string: '{"created_at": "2023-11-28T22:09:02Z", "is_return": false, "messages": [{"carrier": "DhlEcs", "carrier_account_id": "ca_c7b4cfaf671b4984b84023d77561394a", "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", - "type": "rate_error", "message": "Unauthorized. Please check credentials and - try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", - "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_c3cbbd21bc97400bbbaed6d030909476", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_99007e1aeb66421faf82676f1199481e", "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_b1a0a1bc45844159812e0224d53948ea", + "type": "rate_error", "message": "Unauthorized. Please check credentials and + try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_711d8c4f9be54801b984e5dc9f2b5a7c", + "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}, {"carrier": "DhlEcs", "carrier_account_id": "ca_0d64fd488c1444cf9bc16f858703e28f", "type": "rate_error", "message": "Unauthorized. Please check credentials and try again"}], "mode": "test", "options": {"currency": "USD", "payment": {"type": "SENDER"}, "date_advance": 0}, "reference": null, "status": "unknown", "tracking_code": - null, "updated_at": "2023-05-16T16:31:40Z", "batch_id": null, "batch_status": + null, "updated_at": "2023-11-28T22:09:03Z", "batch_id": null, "batch_status": null, "batch_message": null, "customs_info": null, "from_address": {"id": - "adr_223d5c0cf40711ed878dac1f6b0a0d1e", "object": "Address", "created_at": - "2023-05-16T16:31:39+00:00", "updated_at": "2023-05-16T16:31:39+00:00", "name": + "adr_bd229b538e3a11ee8eafac1f6bc53342", "object": "Address", "created_at": + "2023-11-28T22:09:02+00:00", "updated_at": "2023-11-28T22:09: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": - {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_7897f854657f405fa64cea8e33a8b09c", - "object": "Parcel", "created_at": "2023-05-16T16:31:39Z", "updated_at": "2023-05-16T16:31:39Z", + {}}, "insurance": null, "order_id": null, "parcel": {"id": "prcl_a56768d042174630ad62f7424a6a0913", + "object": "Parcel", "created_at": "2023-11-28T22:09:02Z", "updated_at": "2023-11-28T22:09:02Z", "length": 10.0, "width": 8.0, "height": 4.0, "predefined_package": null, "weight": - 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_cd2481b4ee43432bb32dd6743e52017d", - "object": "Rate", "created_at": "2023-05-16T16:31:40Z", "updated_at": "2023-05-16T16:31:40Z", + 15.4, "mode": "test"}, "postage_label": null, "rates": [{"id": "rate_900b21e7e0f447319ddd7090e487e302", + "object": "Rate", "created_at": "2023-11-28T22:09:03Z", "updated_at": "2023-11-28T22:09:03Z", "mode": "test", "service": "Express", "carrier": "USPS", "rate": "31.25", "currency": "USD", "retail_rate": "35.80", "retail_currency": "USD", "list_rate": "31.25", "list_currency": "USD", "billing_type": "easypost", "delivery_days": null, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - null, "shipment_id": "shp_6f0a137b9c7548ae95804067f5cac413", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a9d9e9539b944ff5807eacf24234603c", - "object": "Rate", "created_at": "2023-05-16T16:31:40Z", "updated_at": "2023-05-16T16:31:40Z", - "mode": "test", "service": "ParcelSelect", "carrier": "USPS", "rate": "6.76", - "currency": "USD", "retail_rate": "7.75", "retail_currency": "USD", "list_rate": - "7.75", "list_currency": "USD", "billing_type": "easypost", "delivery_days": - 5, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 5, "shipment_id": "shp_6f0a137b9c7548ae95804067f5cac413", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_2837791c286546be862499e71fabc8ac", - "object": "Rate", "created_at": "2023-05-16T16:31:40Z", "updated_at": "2023-05-16T16:31:40Z", - "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "7.15", + null, "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_3801f7c54f1a4093bae86a125e4a52b9", + "object": "Rate", "created_at": "2023-11-28T22:09:03Z", "updated_at": "2023-11-28T22:09:03Z", + "mode": "test", "service": "Priority", "carrier": "USPS", "rate": "6.95", "currency": "USD", "retail_rate": "10.20", "retail_currency": "USD", "list_rate": "8.24", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 2, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": - 2, "shipment_id": "shp_6f0a137b9c7548ae95804067f5cac413", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b4700d4be6fb40869ff3438132df09ee", - "object": "Rate", "created_at": "2023-05-16T16:31:40Z", "updated_at": "2023-05-16T16:31:40Z", - "mode": "test", "service": "First", "carrier": "USPS", "rate": "6.07", "currency": - "USD", "retail_rate": "6.07", "retail_currency": "USD", "list_rate": "6.07", + 2, "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_a708bfb41a5345ae928de36579c98d1b", + "object": "Rate", "created_at": "2023-11-28T22:09:03Z", "updated_at": "2023-11-28T22:09:03Z", + "mode": "test", "service": "GroundAdvantage", "carrier": "USPS", "rate": "5.93", + "currency": "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": + "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": + 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": + 3, "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e"}, {"id": "rate_b32c055b9f1044c0931fff28fdb96318", + "object": "Rate", "created_at": "2023-11-28T22:09:03Z", "updated_at": "2023-11-28T22:09:03Z", + "mode": "test", "service": "First", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", + "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": + null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": + "shp_6d8603c7ee994eed800e47ff5a9680e6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}, + {"id": "rate_4976356a018a46fb9894e9ab3364f4ce", "object": "Rate", "created_at": + "2023-11-28T22:09:03Z", "updated_at": "2023-11-28T22:09:03Z", "mode": "test", + "service": "ParcelSelect", "carrier": "USPS", "rate": "5.93", "currency": + "USD", "retail_rate": "8.00", "retail_currency": "USD", "list_rate": "6.07", "list_currency": "USD", "billing_type": "easypost", "delivery_days": 3, "delivery_date": null, "delivery_date_guaranteed": false, "est_delivery_days": 3, "shipment_id": - "shp_6f0a137b9c7548ae95804067f5cac413", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], + "shp_6d8603c7ee994eed800e47ff5a9680e6", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e"}], "refund_status": null, "scan_form": null, "selected_rate": null, "tracker": - null, "to_address": {"id": "adr_223afd8ef40711edb2ccac1f6bc7bdc6", "object": - "Address", "created_at": "2023-05-16T16:31:39+00:00", "updated_at": "2023-05-16T16:31:39+00:00", + null, "to_address": {"id": "adr_bd1f9d568e3a11ee8bf3ac1f6bc539aa", "object": + "Address", "created_at": "2023-11-28T22:09:02+00:00", "updated_at": "2023-11-28T22:09:02+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_223d5c0cf40711ed878dac1f6b0a0d1e", - "object": "Address", "created_at": "2023-05-16T16:31:39+00:00", "updated_at": - "2023-05-16T16:31:39+00:00", "name": "Jack Sparrow", "company": null, "street1": + {}}, "usps_zone": 4, "return_address": {"id": "adr_bd229b538e3a11ee8eafac1f6bc53342", + "object": "Address", "created_at": "2023-11-28T22:09:02+00:00", "updated_at": + "2023-11-28T22:09: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": {}}, "buyer_address": {"id": - "adr_223afd8ef40711edb2ccac1f6bc7bdc6", "object": "Address", "created_at": - "2023-05-16T16:31:39+00:00", "updated_at": "2023-05-16T16:31:39+00:00", "name": + "adr_bd1f9d568e3a11ee8bf3ac1f6bc539aa", "object": "Address", "created_at": + "2023-11-28T22:09:02+00:00", "updated_at": "2023-11-28T22:09:02+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_6f0a137b9c7548ae95804067f5cac413", + {}}, "forms": [], "fees": [], "id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "object": "Shipment"}' headers: cache-control: - private, no-cache, no-store content-length: - - '5851' + - '6394' content-type: - application/json; charset=utf-8 - etag: - - W/"9c33c0ed7c51a17dadad67bb0aea868d" expires: - '0' location: - - /api/v2/shipments/shp_6f0a137b9c7548ae95804067f5cac413 + - /api/v2/shipments/shp_6d8603c7ee994eed800e47ff5a9680e6 pragma: - no-cache referrer-policy: @@ -130,20 +135,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afebe7872f770027a5ea + - 88ad7b90656664fee78a9f82003f680b x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb31nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb2nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.879723' + - '0.762457' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: @@ -163,53 +168,59 @@ interactions: user-agent: - method: GET - uri: https://api.easypost.com/v2/shipments/shp_6f0a137b9c7548ae95804067f5cac413/smartrate + uri: https://api.easypost.com/v2/shipments/shp_6d8603c7ee994eed800e47ff5a9680e6/smartrate response: body: string: '{"result": [{"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-05-16T16:31:40Z", "currency": "USD", "delivery_date": + "created_at": "2023-11-28T22:09:03Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, "delivery_days": null, "est_delivery_days": - null, "id": "rate_cd2481b4ee43432bb32dd6743e52017d", "list_currency": "USD", + null, "id": "rate_900b21e7e0f447319ddd7090e487e302", "list_currency": "USD", "list_rate": 31.25, "mode": "test", "object": "Rate", "rate": 31.25, "retail_currency": - "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_6f0a137b9c7548ae95804067f5cac413", - "time_in_transit": {"percentile_50": 1, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 3, "percentile_97": 3, "percentile_99": - 4}, "updated_at": "2023-05-16T16:31:40Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-05-16T16:31:40Z", + "USD", "retail_rate": 35.8, "service": "Express", "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": + 5}, "updated_at": "2023-11-28T22:09:03Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:09:03Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 5, "est_delivery_days": 5, "id": "rate_a9d9e9539b944ff5807eacf24234603c", - "list_currency": "USD", "list_rate": 7.75, "mode": "test", "object": "Rate", - "rate": 6.76, "retail_currency": "USD", "retail_rate": 7.75, "service": "ParcelSelect", - "shipment_id": "shp_6f0a137b9c7548ae95804067f5cac413", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 2, "percentile_97": 2, "percentile_99": 3}, "updated_at": - "2023-05-16T16:31:40Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", - "created_at": "2023-05-16T16:31:40Z", "currency": "USD", "delivery_date": - null, "delivery_date_guaranteed": false, "delivery_days": 2, "est_delivery_days": - 2, "id": "rate_2837791c286546be862499e71fabc8ac", "list_currency": "USD", - "list_rate": 8.24, "mode": "test", "object": "Rate", "rate": 7.15, "retail_currency": - "USD", "retail_rate": 10.2, "service": "Priority", "shipment_id": "shp_6f0a137b9c7548ae95804067f5cac413", + "delivery_days": 2, "est_delivery_days": 2, "id": "rate_3801f7c54f1a4093bae86a125e4a52b9", + "list_currency": "USD", "list_rate": 8.24, "mode": "test", "object": "Rate", + "rate": 6.95, "retail_currency": "USD", "retail_rate": 10.2, "service": "Priority", + "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 2, "percentile_90": + 3, "percentile_95": 3, "percentile_97": 4, "percentile_99": 6}, "updated_at": + "2023-11-28T22:09:03Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2023-11-28T22:09:03Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_a708bfb41a5345ae928de36579c98d1b", "list_currency": "USD", + "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.0, "service": "GroundAdvantage", "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": - 2, "percentile_90": 2, "percentile_95": 2, "percentile_97": 3, "percentile_99": - 3}, "updated_at": "2023-05-16T16:31:40Z"}, {"carrier": "USPS", "carrier_account_id": - "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-05-16T16:31:40Z", + 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 9}, "updated_at": "2023-11-28T22:09:03Z"}, {"carrier": "USPS", "carrier_account_id": + "ca_b25657e9896e4d63ac8151ac346ac41e", "created_at": "2023-11-28T22:09:03Z", "currency": "USD", "delivery_date": null, "delivery_date_guaranteed": false, - "delivery_days": 3, "est_delivery_days": 3, "id": "rate_b4700d4be6fb40869ff3438132df09ee", + "delivery_days": 3, "est_delivery_days": 3, "id": "rate_b32c055b9f1044c0931fff28fdb96318", "list_currency": "USD", "list_rate": 6.07, "mode": "test", "object": "Rate", - "rate": 6.07, "retail_currency": "USD", "retail_rate": 6.07, "service": "First", - "shipment_id": "shp_6f0a137b9c7548ae95804067f5cac413", "time_in_transit": - {"percentile_50": 1, "percentile_75": 2, "percentile_85": 2, "percentile_90": - 2, "percentile_95": 3, "percentile_97": 4, "percentile_99": 5}, "updated_at": - "2023-05-16T16:31:40Z"}]}' + "rate": 5.93, "retail_currency": "USD", "retail_rate": 8.0, "service": "First", + "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", "time_in_transit": + {"percentile_50": 2, "percentile_75": 2, "percentile_85": 3, "percentile_90": + 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": 9}, "updated_at": + "2023-11-28T22:09:03Z"}, {"carrier": "USPS", "carrier_account_id": "ca_b25657e9896e4d63ac8151ac346ac41e", + "created_at": "2023-11-28T22:09:03Z", "currency": "USD", "delivery_date": + null, "delivery_date_guaranteed": false, "delivery_days": 3, "est_delivery_days": + 3, "id": "rate_4976356a018a46fb9894e9ab3364f4ce", "list_currency": "USD", + "list_rate": 6.07, "mode": "test", "object": "Rate", "rate": 5.93, "retail_currency": + "USD", "retail_rate": 8.0, "service": "ParcelSelect", "shipment_id": "shp_6d8603c7ee994eed800e47ff5a9680e6", + "time_in_transit": {"percentile_50": 2, "percentile_75": 2, "percentile_85": + 3, "percentile_90": 3, "percentile_95": 5, "percentile_97": 6, "percentile_99": + 9}, "updated_at": "2023-11-28T22:09:03Z"}]}' headers: cache-control: - private, no-cache, no-store content-length: - - '2620' + - '3274' content-type: - application/json; charset=utf-8 - etag: - - W/"1df6ecd6aec5ded4af8358f73a24f0d8" expires: - '0' pragma: @@ -227,20 +238,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23bee7e56463afece7872f770027a65a + - 88ad7b9065666500e78a9f82003f6964 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb39nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq a29e4ad05c - - extlb2nuq 5ab12a3ed2 + - intlb1nuq b3de2c47ef + - extlb1nuq 003ad9bca0 x-runtime: - - '0.086283' + - '0.088847' x-version-label: - - easypost-202305152249-750e1e7d95-master + - easypost-202311250013-a0f06fbc2c-master x-xss-protection: - 1; mode=block status: diff --git a/tests/conftest.py b/tests/conftest.py index 833a1435..ae36d7f7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -286,7 +286,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 = "2023-05-17" + pickup_date = "2023-12-17" pickup_data = read_fixture_data()["pickups"]["basic"] pickup_data["min_datetime"] = pickup_date @@ -344,4 +344,4 @@ def rma_form_options(): @pytest.fixture def planned_ship_date(): - return "2023-04-28" + return "2023-12-28" diff --git a/tests/test_shipment.py b/tests/test_shipment.py index b646af81..396c8fa2 100644 --- a/tests/test_shipment.py +++ b/tests/test_shipment.py @@ -197,14 +197,14 @@ def test_shipment_lowest_rate(full_shipment, test_client): # Test lowest rate with no filters lowest_rate = shipment.lowest_rate() - assert lowest_rate.service == "First" - assert lowest_rate.rate == "6.07" + assert lowest_rate.service == "GroundAdvantage" + assert lowest_rate.rate == "5.93" 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 == "7.15" + assert lowest_rate_service.rate == "6.95" assert lowest_rate_service.carrier == "USPS" # Test lowest rate with carrier filter (should error due to bad carrier) @@ -220,11 +220,11 @@ def test_shipment_lowest_smart_rate(basic_shipment, test_client): # Test lowest smart_rate with valid filters lowest_smart_rate_filters = test_client.shipment.lowest_smart_rate( shipment.id, - delivery_days=2, + delivery_days=3, delivery_accuracy="percentile_90", ) - assert lowest_smart_rate_filters["service"] == "First" - assert lowest_smart_rate_filters["rate"] == 6.07 + assert lowest_smart_rate_filters["service"] == "GroundAdvantage" + assert lowest_smart_rate_filters["rate"] == 5.93 assert lowest_smart_rate_filters["carrier"] == "USPS" # Test lowest smart_rate with invalid filters (should error due to strict delivery_days) @@ -254,11 +254,11 @@ def test_shipment_get_lowest_smart_rate(basic_shipment, test_client): # Test lowest smart_rate with valid filters lowest_smart_rate_filters = get_lowest_smart_rate( smart_rates, - delivery_days=2, + delivery_days=3, delivery_accuracy="percentile_90", ) - assert lowest_smart_rate_filters["service"] == "First" - assert lowest_smart_rate_filters["rate"] == 6.07 + assert lowest_smart_rate_filters["service"] == "GroundAdvantage" + assert lowest_smart_rate_filters["rate"] == 5.93 assert lowest_smart_rate_filters["carrier"] == "USPS" # Test lowest smart_rate with invalid filters (should error due to strict delivery_days) @@ -299,41 +299,6 @@ def test_shipment_generate_form(one_call_buy_shipment, rma_form_options, test_cl assert form.form_url is not None -@pytest.mark.vcr() -def test_shipment_create_with_carbon_offset(basic_shipment, test_client): - shipment = test_client.shipment.create(with_carbon_offset=True, **basic_shipment) - - assert isinstance(shipment, Shipment) - assert shipment.rates is not None - assert all(rate.carbon_offset is not None for rate in shipment.rates) - - -@pytest.mark.vcr() -def test_shipment_buy_with_carbon_offset(basic_shipment, test_client): - shipment = test_client.shipment.create(**basic_shipment) - bought_shipment = test_client.shipment.buy(shipment.id, rate=shipment.lowest_rate(), with_carbon_offset=True) - - assert isinstance(bought_shipment, Shipment) - assert any(fee.type == "CarbonOffsetFee" for fee in bought_shipment.fees) - - -@pytest.mark.vcr() -def test_shipment_one_call_buy_with_carbon_offset(one_call_buy_shipment, test_client): - shipment = test_client.shipment.create(with_carbon_offset=True, **one_call_buy_shipment) - - assert isinstance(shipment, Shipment) - assert all(rate.carbon_offset is not None for rate in shipment.rates) - - -@pytest.mark.vcr() -def test_shipment_rerate_with_carbon_offset(one_call_buy_shipment, test_client): - shipment = test_client.shipment.create(**one_call_buy_shipment) - - new_carbon_rates = test_client.shipment.regenerate_rates(shipment.id, with_carbon_offset=True) - - assert all(rate.carbon_offset is not None for rate in new_carbon_rates.rates) - - @pytest.mark.vcr() def test_shipment_buy_with_end_shipper_id(ca_address_1, basic_shipment, test_client): end_shipper = test_client.end_shipper.create(**ca_address_1)