diff --git a/tests/cassettes/test_address_all.yaml b/tests/cassettes/test_address_all.yaml index add7ad88..bed89c7a 100644 --- a/tests/cassettes/test_address_all.yaml +++ b/tests/cassettes/test_address_all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,27 +18,26 @@ interactions: uri: https://api.easypost.com/v2/addresses?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA+yUb2+bMBDGvwri7ZLONgEC71DWSvujJAqZqmmakLGP1huYyDjr2ijfvefQdG0n - TdmmdS8W3oAfHt8d/h238bmUBroOOj/9uPGV9FOUTEHiUlasLHk0IpSCSJJSckGrqCScSAr+wG/L - zyAs+rM+BErCALcgC+5kRhgbkmBI4yVjKY1TFr8gJCUEjeuVPMyoeQNoecPFFy9fcWPaK5enbVZc - X+OLU95dz9vOothZA2ApisF47C3bK92Bll7+/R1zxa6sx1xkoawLkHPtnRmuhepEu3NiYahPMlzc - qBU+JiNK4l3WtbbGbXqf43J12WrnDO8vFKHhqvZTva7rgd+00hks7OoTWL0CU1RcqHqXvHfh2SkJ - 2ip+v7ECCYbXheXfCoekV3elPdG+glGVEtyqViPCzXY7eEQxCUlE5Z7imEZVT1HEZRCx56aYTd56 - +TxbLGbnjylm+Yf5LF/+SHF2Ps1Pp6+8fOll82VP7h5mfwR7kNnUO1tk08nrfDL7CcghjWLyTDSt - WcOf0HR1j9y9Wwvh4NxFBPwPjPtjPw18CRaL7PoQW7euFca5PnTbxq8xn127jwvikzgOQzrw61Zf - 3IlDythJkERJPPCtaqC46U8qa7BawV++a7si0xdQ4wzZbp82YJSEEEYPGhD+ZQMex8jvjJFoRCPB - kzGPgmpHUSZiT5FRNvp1iiwNg4MoPjIex8h/OkawAdk4kMmDBuTHBjw24F9tQAx+ybuiaQ30ibe3 - AAAA//8DANXWoMkuCwAA + string: '{"addresses":[{"id":"adr_50ad820bcbe811ec9b88ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:18+00:00","updated_at":"2022-05-04T20:25:18+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},{"id":"adr_5089554ccbe811ec833eac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:18+00:00","updated_at":"2022-05-04T20:25:18+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":true,"federal_tax_id":null,"state_tax_id":null,"verifications":{"zip4":{"success":true,"errors":[],"details":null},"delivery":{"success":true,"errors":[],"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"}}}},{"id":"adr_50627986cbe811ec832dac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:18+00:00","updated_at":"2022-05-04T20:25:18+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},{"id":"adr_1fb2b2e0cbe811ec8f80ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:23:56+00:00","updated_at":"2022-05-04T20:23:56+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},{"id":"adr_1fb10d4fcbe811ecbfc6ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:23:56+00:00","updated_at":"2022-05-04T20:23:56+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2488' content-type: - application/json; charset=utf-8 etag: - - W/"84f4887853f0c3d6af81b809f895794c" + - W/"2334d979d200223b7446300d30aae440" expires: - '0' pragma: @@ -58,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 34f5dd476233b378ff0300ed002aecf1 + - 62b330bd6272e12fe786b81f00161429 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - extlb1nuq 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.034936' + - '0.037397' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create.yaml b/tests/cassettes/test_address_create.yaml index 67adf7c5..3de6a297 100644 --- a/tests/cassettes/test_address_create.yaml +++ b/tests/cassettes/test_address_create.yaml @@ -12,7 +12,7 @@ interactions: - keep-alive Content-Length: - '190' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -24,26 +24,22 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: !!binary | - H4sIAAAAAAAAA4yRsW7DIBCGX8VibSIBju3EW1S1Q6dKTmfrDGeF1gYLcNM0yrv3cKRU6lQm7uM7 - 7hdcmNGsZqB9y6tyV2BRQrnhQqDaihJBib7sVNXlpWQr5rp3VJH8vdYeQyCkPEJE3ULCkku55vla - VAcpa1HVsnrgvOacxHnS/xMtjEjKC6iPrJnAe3dKc9w4gT3TwROE86sLkWCIHjEKgvl2mx3cyQa0 - Omt+z2QKO8VMppuViemCBmz27MEqE5RbTApG/HFPxbeZaLvbCF4tU2cbfWp6a6icjs4ms7gvgjiC - GVht52FYsdHpJERc8ilKb9C3PSgzLMNvFr2d0WijgXtjjxo9DG2ErzZ9yY0u0f6wT/SmNwqicTaw - +nK9/gAAAP//AwAmcuNUxQEAAA== + string: '{"id":"adr_50627986cbe811ec832dac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:18+00:00","updated_at":"2022-05-04T20:25:18+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '453' content-type: - application/json; charset=utf-8 etag: - - W/"a27b5fa41de73ef9bfbe4dfa55399072" + - W/"8a82345c7581f88348730d03d3544cbe" expires: - '0' location: - - /api/v2/addresses/adr_07695e56a64011ec816eac1f6bc7b362 + - /api/v2/addresses/adr_50627986cbe811ec832dac1f6bc7b362 pragma: - no-cache referrer-policy: @@ -59,20 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 34f5dd416233b377ff0300ea002aecbd + - 62b330bc6272e12ee786b81c001613cd x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - extlb1nuq 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.031396' + - '0.103171' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_and_verify.yaml b/tests/cassettes/test_address_create_and_verify.yaml index cedca415..972b8c29 100644 --- a/tests/cassettes/test_address_create_and_verify.yaml +++ b/tests/cassettes/test_address_create_and_verify.yaml @@ -24,29 +24,23 @@ interactions: uri: https://api.easypost.com/v2/addresses/create_and_verify response: body: - string: !!binary | - H4sIAAAAAAAAA9SST4+bMBDFvwpyL61KsphA/nBD2aRCSqAK6UpRVSEHD6krY0fGrJqN9rt3TLI9 - 9LTXcoF5vDf8PMOVMM4NdB1JrkRwkmBtqngaN/HkCMcpiyiF+sijkNW0mR4DFnAKxCf6+Atqi/70 - nvdJbYBZ4BVzchiE4SiIRsFsT+dJHCfR/HMQJEGAxv7M32dUrAWSqF5K7K7bM1MXTKzS8vC1KPdo - 6KwBsBTFiM68bZHvvxTb1e7glXtvvfHiv5YQLQ5RWNehTHNvvUvzZVYui8GDPKgvUyxexBkfFxFF - KErDhYvpXlnjkt9KLM8/tYLhmzENJ1E8naEILRPyDbbV3BksdNbFmTECTNWwWsiB4ObCuQkOygqG - wYbJDnzSAAfDZGXZ78rt4+YcAP/RnsGIRtTMCq2G9SF45O5dX9fDRq3psSMYow1W3694jgFrNS5X - yyJ/THeHKsvXxW6b7rMiH2f5U7rJHpG4ESDdz/A2PDwRdmQnl87UM5OCex3UWnFmLp5QjTbtAPIx - PduHshcWPnxyg+1PJ5wBvrhRv/7wCQeLk+rugqulwLNc/if0K5GYsb1jmszGs8UkCn0itTrdxREN - w3EUhPO5T6xooXq5/TJpi1ur2cNGd1WqTiChI6/u+gMAAP//AwDfNKGTiQMAAA== + string: '{"address":{"id":"adr_512bdc91cbe811ec837dac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:19+00:00","updated_at":"2022-05-04T20:25:19+00:00","name":null,"company":"EASYPOST","street1":"417 + MONTGOMERY ST FL 5","street2":"","city":"SAN FRANCISCO","state":"CA","zip":"94104-1129","country":"US","phone":"4151234567","email":null,"mode":"test","carrier_facility":null,"residential":false,"federal_tax_id":null,"state_tax_id":null,"verifications":{"zip4":{"success":true,"errors":[{"code":"E.SECONDARY_INFORMATION.INVALID","field":"street2","message":"Invalid + secondary information(Apt/Suite#)","suggestion":null}],"details":null},"delivery":{"success":true,"errors":[{"code":"E.SECONDARY_INFORMATION.INVALID","field":"street2","message":"Invalid + secondary information(Apt/Suite#)","suggestion":null}],"details":{"latitude":37.79342,"longitude":-122.40288,"time_zone":"America/Los_Angeles"}}}}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '905' content-type: - application/json; charset=utf-8 etag: - - W/"e125f6fac47edaec1d6582bc01a06fc3" + - W/"00c792431fd886fc7da345bd52b8e0a7" expires: - '0' location: - - /api/v2/addresses/adr_565f53beb6a411ecbd42ac1f6b0a0d1e + - /api/v2/addresses/adr_512bdc91cbe811ec837dac1f6bc7b362 pragma: - no-cache referrer-policy: @@ -62,20 +56,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 6399b1b4624f33b4ff223076000381c5 + - 62b330b76272e12fe786b82100161462 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.052091' + - '0.051722' x-version-label: - - easypost-202204071625-f7b25baf21-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_verify.yaml b/tests/cassettes/test_address_create_verify.yaml index a2408e38..7d3597ab 100644 --- a/tests/cassettes/test_address_create_verify.yaml +++ b/tests/cassettes/test_address_create_verify.yaml @@ -24,29 +24,23 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: !!binary | - H4sIAAAAAAAAA9SST4+bMBDFvwpyL62aZLHDn4QbyiYVUgJVSCtFVYUcPKSujImMWTUb7XfvmOz2 - 0FOv5QLzeG/889g3IgVJCBemCiPK5yyMThEPKIX6RHnDa9pEpzo+zSNGJqQ7/YTaoj8VwkDfo1Qb - 4BZExZ3MfMamfjD14wNdJGGYBPFH3098H43DRfybUfMWSKIHpbB71164vmJinZbHz0V5QENvDYCl - KAY09nZFfvhU7Nb7o1cevM3WC/9YGFocorSuQ5nm3maf5qusXBWjB3lQX6VYPMsLfi4DilCUsqWL - dYO2xiW/lFhefnQaxjVDyuZBGMUoQsuleoNtO+EMFnrr4twYCabCGUo1EtxdODcpQFvJMdhw1cOE - NCDAcFVZ/qty53F3joB/aU9gZCNrbmWne5LcHHjg3v1Q1+5EEmsG7AjGdAarbzfcx4i1npXrVZE/ - pvtjleWbYr9LD1mRz7L8a7rNHpG4kaDcZXgbHu4IO/KzS2f6iSspvB7qTgturp7UTWfaEeR9erEP - 5SAtvPvgBjuczzgD/HGnfvk+IQIsTqp/FVytJO7l+j+h34jCjB0c0zyexct5wCZEdfr8Kk4pY7PA - Z4vFhFjZQvV8vzJpi6dW84dt11epPoOCnrzg8xsAAP//AwCnANTsfQMAAA== + string: '{"id":"adr_510262fdcbe811ec9ba6ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:19+00:00","updated_at":"2022-05-04T20:25:19+00:00","name":null,"company":"EASYPOST","street1":"417 + MONTGOMERY ST FL 5","street2":"","city":"SAN FRANCISCO","state":"CA","zip":"94104-1129","country":"US","phone":"4151234567","email":null,"mode":"test","carrier_facility":null,"residential":false,"federal_tax_id":null,"state_tax_id":null,"verifications":{"zip4":{"success":true,"errors":[{"code":"E.SECONDARY_INFORMATION.INVALID","field":"street2","message":"Invalid + secondary information(Apt/Suite#)","suggestion":null}],"details":null},"delivery":{"success":true,"errors":[{"code":"E.SECONDARY_INFORMATION.INVALID","field":"street2","message":"Invalid + secondary information(Apt/Suite#)","suggestion":null}],"details":{"latitude":37.79342,"longitude":-122.40288,"time_zone":"America/Los_Angeles"}}}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '893' content-type: - application/json; charset=utf-8 etag: - - W/"a15d88faf9f4a2f5317ef70e97be36d0" + - W/"c0e8584df6edd8c47e3c61df2fafddff" expires: - '0' location: - - /api/v2/addresses/adr_561a3256b6a411ecb1afac1f6bc7b362 + - /api/v2/addresses/adr_510262fdcbe811ec9ba6ac1f6bc72124 pragma: - no-cache referrer-policy: @@ -62,20 +56,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 6399b1b1624f33b3ff22307500038190 + - 62b330b76272e12fe786b82000161441 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.051492' + - '0.043052' x-version-label: - - easypost-202204071625-f7b25baf21-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_create_verify_strict.yaml b/tests/cassettes/test_address_create_verify_strict.yaml index 920193af..44e61ae3 100644 --- a/tests/cassettes/test_address_create_verify_strict.yaml +++ b/tests/cassettes/test_address_create_verify_strict.yaml @@ -24,28 +24,22 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: !!binary | - H4sIAAAAAAAAA4yRW2/jIBCF/4rF6zpdIL4kfkPZVtqLkij2qlpVlYVh3KWycQS4ahv1v++QVH3Y - p/KC5/ibMwc4EaNJRaR2bZ7Dquc57wqZMQaqY+tcKtYXnSq7ZcFJSqbuEVRAXmjtwHuUlAMZQLcy - ypxyvqDZgpYNW1V5XmXlF0orShGcj/pzoJUjIPJDbH4m9V4cDrvbOGcaj9K+4I9rUf/Z7+oGRR8c - QGAoLlerpNndbuvr7bekbhKxbxJOPxCOSDQxITrUYpvcHMR2873e7M4MJkN9I7B4NUf8XGeMlgtW - lPQ8e7bBxc7fNZbHv5ONeP6xUIRRmoFUdh6GlIyTjkAAH2K7dM6Aa3upzHBOcKHwBo0GG4zExuBm - SEkPGpwc2iCf2/gwF/Cc7z/tCZzpjZLBTNaT6hRzZ3H3s1Lxad4dwbnJYXV3nxINAUP6i8VbrAeD - Pi+fbTuRAeeFOR5uWV6VZZ6zlAyTfXgXF4zzq+W6WJcpCWaE9vVyU2LEtEp+/TX5VtgHGMCTN1z/ - AAAA//8DAL9iT39+AgAA + string: '{"id":"adr_5089554ccbe811ec833eac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:18+00:00","updated_at":"2022-05-04T20:25:18+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":"","city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '638' content-type: - application/json; charset=utf-8 etag: - - W/"46a84cdff613ae33b17054cf8e938831" + - W/"c6e8a2eecd3fff24b2ca9757bfaf800e" expires: - '0' location: - - /api/v2/addresses/adr_55e8f252b6a411ecb195ac1f6bc7b362 + - /api/v2/addresses/adr_5089554ccbe811ec833eac1f6bc7b362 pragma: - no-cache referrer-policy: @@ -56,27 +50,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 6399b1ae624f33b3ff2230720003816d + - 62b330b86272e12ee786b81d001613ec x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.039667' + - '0.043825' x-version-label: - - easypost-202204071625-f7b25baf21-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_retrieve.yaml b/tests/cassettes/test_address_retrieve.yaml index 2206db91..17a722eb 100644 --- a/tests/cassettes/test_address_retrieve.yaml +++ b/tests/cassettes/test_address_retrieve.yaml @@ -12,7 +12,7 @@ interactions: - keep-alive Content-Length: - '190' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -24,26 +24,22 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: !!binary | - H4sIAAAAAAAAA4yRwU7DMAyGX6XKlU1KsrFuvU0IDpyQOs6VG7si0CZVkjLGtHfH6aQhcSKn+Mvn - +FdyFhZFJQBDI8sWO922sFlLpcjsdi2CUd2mlSBRkVgI376TSezvEQPFyMgEgkTYQMZaar2Uq6Uq - D1pXqqx0eSdlJSWL04j/Ex0MxMozmI+iHiEEf8xz/DCCO/HBI8TTi4+JYUyBKCmGq+22OPiji+Sw - qH/PdA47pkLnm41N+YIaXPEUwBkbjZ9NDsb8Yc/Ftx15u1srWc5TJ5dCbnqtuRzfvMvm/W0xpAFs - Lyo39f1CDB6zkGjOZzi9pdB0YGw/D79a/HYWySULt8aOkAL0TYKvJn/Jlc7R/rBPCrazBpL1Lorq - fLn8AAAA//8DADt+SwvFAQAA + string: '{"id":"adr_50ad820bcbe811ec9b88ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:18+00:00","updated_at":"2022-05-04T20:25:18+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '453' content-type: - application/json; charset=utf-8 etag: - - W/"d779da91995fab3ace3e42bcf5b5edc3" + - W/"87572051691f8bd3e2085daabbb005ec" expires: - '0' location: - - /api/v2/addresses/adr_07bdf2bba64011ec99bdac1f6b0a0d1e + - /api/v2/addresses/adr_50ad820bcbe811ec9b88ac1f6bc72124 pragma: - no-cache referrer-policy: @@ -59,7 +55,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 34f5dd466233b377ff0300ec002aecda + - 62b330ba6272e12ee786b81e00161404 x-frame-options: - SAMEORIGIN x-node: @@ -67,12 +63,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - extlb1nuq 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.033821' + - '0.032908' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -87,8 +83,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -96,25 +90,21 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/addresses/adr_07bdf2bba64011ec99bdac1f6b0a0d1e + uri: https://api.easypost.com/v2/addresses/adr_50ad820bcbe811ec9b88ac1f6bc72124 response: body: - string: !!binary | - H4sIAAAAAAAAA4yRwU7DMAyGX6XKlU1KsrFuvU0IDpyQOs6VG7si0CZVkjLGtHfH6aQhcSKn+Mvn - +FdyFhZFJQBDI8sWO922sFlLpcjsdi2CUd2mlSBRkVgI376TSezvEQPFyMgEgkTYQMZaar2Uq6Uq - D1pXqqx0eSdlJSWL04j/Ex0MxMozmI+iHiEEf8xz/DCCO/HBI8TTi4+JYUyBKCmGq+22OPiji+Sw - qH/PdA47pkLnm41N+YIaXPEUwBkbjZ9NDsb8Yc/Ftx15u1srWc5TJ5dCbnqtuRzfvMvm/W0xpAFs - Lyo39f1CDB6zkGjOZzi9pdB0YGw/D79a/HYWySULt8aOkAL0TYKvJn/Jlc7R/rBPCrazBpL1Lorq - fLn8AAAA//8DADt+SwvFAQAA + string: '{"id":"adr_50ad820bcbe811ec9b88ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:18+00:00","updated_at":"2022-05-04T20:25:18+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '453' content-type: - application/json; charset=utf-8 etag: - - W/"d779da91995fab3ace3e42bcf5b5edc3" + - W/"87572051691f8bd3e2085daabbb005ec" expires: - '0' pragma: @@ -132,20 +122,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 34f5dd466233b378ff0300ec002aece2 + - 62b330ba6272e12ee786b81e00161416 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - extlb1nuq 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.027357' + - '0.025323' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_address_verify.yaml b/tests/cassettes/test_address_verify.yaml index c8884f91..bef37b55 100644 --- a/tests/cassettes/test_address_verify.yaml +++ b/tests/cassettes/test_address_verify.yaml @@ -12,7 +12,7 @@ interactions: - keep-alive Content-Length: - '190' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -24,26 +24,22 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: !!binary | - H4sIAAAAAAAAA4yRsW7DIBCGX8VibSIBdm3HW1S1Q6dKTmfrDGeV1gYLcNM0yrv3cKRU6lQm7uM7 - 7hecmdGsYaB9x+uyGDiUUBZcCFS1qCtQYih7VfV5KdmGuf4dVSR/r7XHEAgpjxBRd5Cw5FJueb4V - 1UHKRlSN3N1x3nBO4jLr/4kWJiTlGdRH1s7gvTumOW6awZ7o4BHC6cWFSDBEjxgFwbyus4M72oBW - Z+3vmUxh55jJdLMyMV3Qgs2ePFhlgnKrScGIP+yp+DYzbXeF4NU6dbHRp6bXlsr5zdlk3t8WQZzA - jKyxyzhu2OR0EiKu+RSlN+i7AZQZ1+FXi97OaLTRwK1xQI0exi7CV5e+5ErXaH/YJ3ozGAXROBtY - c75cfgAAAP//AwBlMd07xQEAAA== + string: '{"id":"adr_514fe085cbe811ec8c10ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:19+00:00","updated_at":"2022-05-04T20:25:19+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '453' content-type: - application/json; charset=utf-8 etag: - - W/"e8a452954d1d815be7144981493e6a3e" + - W/"e4644b9a928b326570f7620283ada19a" expires: - '0' location: - - /api/v2/addresses/adr_0864f0a6a64011ec8187ac1f6bc7b362 + - /api/v2/addresses/adr_514fe085cbe811ec8c10ac1f6b0a0d1e pragma: - no-cache referrer-policy: @@ -54,26 +50,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b378ff030108002a59b9 + - 62b330bc6272e12fe786b82200161480 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.025563' + - '0.028142' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -88,8 +85,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -97,31 +92,25 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/addresses/adr_0864f0a6a64011ec8187ac1f6bc7b362/verify + uri: https://api.easypost.com/v2/addresses/adr_514fe085cbe811ec8c10ac1f6b0a0d1e/verify response: body: - string: !!binary | - H4sIAAAAAAAAA4yRT2+jMBDFvwrydUnXNgkO3KxsK+0fJVFgVa2qCjn2pOvKQGRM1Tbqd98xVD3s - qb7APH5v5uG5EGWMh2Eg5YVYQ0qsfUPXShXqSFW+pIyBXrMiU5qd8qMWxyznJCX98RF0QF6++1Oi - PagAplFR5pTzBc0WTNScl0yUvPhCaUkpguPZfA7sVAuI/JCbn0m1l4fD7jbO6duz6l7ww7Ws/ux3 - VY3iEDxAYChm63VS72631fX2W1LVidzXCacfCEckNrEhdqjkNrk5yO3me7XZTQwmQ30jsXi1Z3wt - loyKBcsFnWaPXfDR+bvC8vy37yK++jgoQqusI2U3OpeStjcRCDCEaFfeW/DNSWnrpgQzhTdoDXTB - KjQGP0JKTmDAK9cE9dzExczglO8/7Qm8PVmtgu27aY+Yexmfw6j1tNq5I3jfe6zu7lNiIGDIYW7x - Fmtnsc/LZ20X4nBeGOPPZeJKiNWKpcT13cO7uGCcX2VFXoiUBNtC8zrflGwxrVZff/VDI7sHcDCQ - t3j+AQAA//8DAK01PhGKAgAA + string: '{"address":{"id":"adr_5161c168cbe811eca5aeac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:19+00:00","updated_at":"2022-05-04T20:25:19+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":"","city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '650' content-type: - application/json; charset=utf-8 etag: - - W/"19eb6f267035ab84e44da2bb8f394489" + - W/"3573a853a362c3ef264aad55e9e4279c" expires: - '0' location: - - /api/v2/addresses/adr_08aa9ab0a64011ec8193ac1f6bc7b362 + - /api/v2/addresses/adr_5161c168cbe811eca5aeac1f6bc7bdc6 pragma: - no-cache referrer-policy: @@ -137,21 +126,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b379ff030108002a59cd + - 62b330bc6272e12fe786b82200161492 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.053538' + - '0.049251' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_add_remove_shipment.yaml b/tests/cassettes/test_batch_add_remove_shipment.yaml index fe26734e..d4e5944e 100644 --- a/tests/cassettes/test_batch_add_remove_shipment.yaml +++ b/tests/cassettes/test_batch_add_remove_shipment.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '577' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,49 +29,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xYbW/bNhD+K4a+LnFIiqIkfzPSZFvXvCzO0DVDIVAkZTORJYGSmtpF/vuOenFs - p00MtEuGLU4Am8e7I3nPwyN5XxxhFK+UjHjljByCCNlH7j72LwkZYX/k+lfOnqPLyKiqNpkzSnha - qj1nrsqST1XpjP76CK1cKrCuVFmBdl5UOs+g64sjamNUJhbQ+cfkDfQVfDFXWWX7qkVhjSZHp2+O - Lpy7PUfCPCIuP/FMQAcCiVGJsvbQzOo03XPKilc1eHbq7CbLbzPwWBkubnQ2jUQ7iZAihO1/6DIM - H4p8z2WgWBfysYUGdqExr8Qs0rIfr233o67LugD0QlGXVT4vI50leS9LTD6H9UgDqnbB1q3DpYmQ - 9D0W+pgzijBWgseh4AInLBY+wYT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HAt2F5wVZQAByDzFFMIyEvYAHFMcE+5LDrzh8CRacG50be3F8LP27/tMsCIb+riTo - HO7EAfwDCYCfHf2PzVuuzuTWW6oUPOuuYp2gOYMBwzZE/+ypsfNF8vXUeP580T7sbVA7ElTmJkJE - xpwEKLGPh8BnsWvfzvAXJoII7q1z4LKz34Zv54LBV4oNrQiiUzUv0bWeH0W1Uk/tEyxebL++2tYW - Nveofg8897xdxaZdYVfeSVRf6Onx7APQPXnrONVi6+3SuBr2L5jmkSKvj5j85a35czleXP38dnZy - Pb29uj5ZXF3+Tk+XV/qEHOuz9yfeh+WNdzU/WXwgR7hhQv6tMorLAkT6MkpAGOvLKLHLyHOXUcaH - vw0m5+OLi7P3m2WU8eTD+dnk8mEZ5ez9qS1/DSaXg/H5ZVs6WVVTusJSV0kZnw6OL8anh79ODs8e - qaTsY9YcP89RTqlMrb6nnGLnTe13WQvRgNt6VMbkpiPciofdg7Ln/q5mX+BVWumqtotz/aHvex6c - fmmeTTvhPiZk6IYs9IFneq6iZRup8RxmK/jBu7yMxtkUjqXSubuzFaC6LMpOCzdZuzbZa5nvP1bm - i+uFPbZes85r1vl3ZB17Sd48jtdKrcfK3na7omJTcG0lfG4BARkaIvuxMZ5xM7WXvXb67a18dfmz - z7Sve+2quVt+7X10J78fuwLwjheT1Rwm3bXGufsbAAD//wMAZjQCAqoaAAA= + string: '{"created_at":"2022-05-04T20:25:27Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768693","updated_at":"2022-05-04T20:25:28Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_55eb7c3bcbe811ec9d29ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:27+00:00","updated_at":"2022-05-04T20:25:27+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_9920227c395a44b3bd0d15ef36f333ae","object":"Parcel","created_at":"2022-05-04T20:25:27Z","updated_at":"2022-05-04T20:25:27Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_c81e583b852d464897d9ed4d87554d77","created_at":"2022-05-04T20:25:28Z","updated_at":"2022-05-04T20:25:28Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:25:28Z","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/20220504/b33e3dc14e9a430aa46780fe6004f483.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_4acaf0482654416ea58e59193c9acc27","object":"Rate","created_at":"2022-05-04T20:25:27Z","updated_at":"2022-05-04T20:25:27Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_2bb42692d2044e18a3f954dd7c72dae5","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_cdc373747e8d4c518330d81ca3b0e367","object":"Rate","created_at":"2022-05-04T20:25:27Z","updated_at":"2022-05-04T20:25:27Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_2bb42692d2044e18a3f954dd7c72dae5","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_201ef26cbef1468ea565e8bd14ae4cf4","object":"Rate","created_at":"2022-05-04T20:25:27Z","updated_at":"2022-05-04T20:25:27Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_2bb42692d2044e18a3f954dd7c72dae5","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_6050f74617f2411fa368c1e11ef339c3","object":"Rate","created_at":"2022-05-04T20:25:27Z","updated_at":"2022-05-04T20:25:27Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_2bb42692d2044e18a3f954dd7c72dae5","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_6050f74617f2411fa368c1e11ef339c3","object":"Rate","created_at":"2022-05-04T20:25:28Z","updated_at":"2022-05-04T20:25:28Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_2bb42692d2044e18a3f954dd7c72dae5","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_a969f0691caa45f2bd8feeef86dac771","object":"Tracker","mode":"test","tracking_code":"9400100109361117768693","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:25:28Z","updated_at":"2022-05-04T20:25:28Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_2bb42692d2044e18a3f954dd7c72dae5","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrX2E5NjlmMDY5MWNhYTQ1ZjJiZDhmZWVlZjg2ZGFjNzcx"},"to_address":{"id":"adr_55e9ab74cbe811ec8d80ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:27+00:00","updated_at":"2022-05-04T20:25:27+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_55eb7c3bcbe811ec9d29ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:27+00:00","updated_at":"2022-05-04T20:25:27+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_55e9ab74cbe811ec8d80ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:27+00:00","updated_at":"2022-05-04T20:25:27+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_2bb42692d2044e18a3f954dd7c72dae5","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '6826' content-type: - application/json; charset=utf-8 etag: - - W/"b9d14fdc0a962fd6a043d58c4611f02d" + - W/"120ddcf64d0c63e0ea085528581016ba" expires: - '0' location: - - /api/v2/shipments/shp_b526a7e08805453596a4d88ca8cb5313 + - /api/v2/shipments/shp_2bb42692d2044e18a3f954dd7c72dae5 pragma: - no-cache referrer-policy: @@ -82,26 +61,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b381ff03041d002a5b47 + - 62b330b86272e137e786b841001617c0 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.136270' + - '0.836673' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -118,7 +98,7 @@ interactions: - keep-alive Content-Length: - '13' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -130,21 +110,16 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: !!binary | - H4sIAAAAAAAAA4SOzW7DIBCE34WzI2HSBOxjnyGnVhFaw7p2i4Hyc4ry7l0nddpDpd52hpmPubDZ - sp4NUMykoeNWSNMapeDJWtuBVFYcjlxJGIejYg0LwzuaQo3ntUHGEiySLJgLqVygrNIkpMOS4+ui - 8zTHBX3JrOcNSzhiQm8o56tzzRbWsHIFF2LH97tWnoToW9nvuxfC1Gj/zWQDXo8hLRv417+v5/u4 - SvflMW+d81mxEph6OtZkJsh482+ZORARZvedjYEYb/gI/u3+NK70OJuPGrdFDgZ0uiZ3N65fAAAA - //8DAEOrHyh/AQAA + string: '{"id":"batch_aee6ddc3bbb54138a18b03a358a9ecab","object":"Batch","mode":"test","state":"created","num_shipments":0,"reference":null,"created_at":"2022-05-04T20:25:28Z","updated_at":"2022-05-04T20:25:28Z","scan_form":null,"shipments":[],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '383' content-type: - application/json; charset=utf-8 etag: - - W/"1dfe53d339e38a39fd89161dd2463df1" + - W/"ce4b29ecd6c91f9c946b8bba6230e74f" expires: - '0' pragma: @@ -162,28 +137,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b382ff03041d002a5b8f + - 62b330b86272e138e786b84100161834 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.032117' + - '0.030618' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"shipments": [{"id": "shp_b526a7e08805453596a4d88ca8cb5313"}]}' + body: '{"shipments": [{"id": "shp_2bb42692d2044e18a3f954dd7c72dae5"}]}' headers: Accept: - '*/*' @@ -193,7 +167,7 @@ interactions: - keep-alive Content-Length: - '63' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -202,25 +176,19 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/batches/batch_a90d27c1c88a4ddd9a78d256087afb68/add_shipments + uri: https://api.easypost.com/v2/batches/batch_aee6ddc3bbb54138a18b03a358a9ecab/add_shipments response: body: - string: !!binary | - H4sIAAAAAAAAA4RQyW6DMBT8F5+J5AVjw7Hf0FOryjK2CTRs9XKK8u99hpBWzaGIg9943nhmrmiw - qEGtjqZXusaWCkOMlLq01tZaSEt5haXQXVtJVKCl/XQmwsZL3gBgWqyDMboQYQpRxzwa7+BgAZnT - pEI/rJObY0ANKZB3nfNuNsCb0zgWB1nprEsxpSfMTkS8UtoQ0bD6DWTSav/lBKNn1S1+OoR/vft+ - vWfMDhMAaF3geHZqTd70Omxmd8rkQoCbQ+XJb/TaXIb5rMyevS4xJvmvWUXgK7HgrAK5rdrQr6rl - tNLCYSkxLznjdQX9Smm0NC1nhKHbx95ddnZ9tNfgAn0llyA3xHo43fCNMywQWA/jnfscKff9F/3Z - uMHlYC5pPZKNunWjSn7cgds3AAAA//8DAHyGchAeAgAA + string: '{"id":"batch_aee6ddc3bbb54138a18b03a358a9ecab","object":"Batch","mode":"test","state":"created","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:28Z","updated_at":"2022-05-04T20:25:28Z","scan_form":null,"shipments":[{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361117768693","id":"shp_2bb42692d2044e18a3f954dd7c72dae5"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":1,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '542' content-type: - application/json; charset=utf-8 etag: - - W/"043a30582c8b68af190d977a14554bc3" + - W/"01ea9728e1268fa2b4491fa859f48179" expires: - '0' pragma: @@ -238,28 +206,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b383ff03041d002a5ba4 + - 62b330b86272e138e786b84100161840 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.041970' + - '0.062622' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"shipments": [{"id": "shp_b526a7e08805453596a4d88ca8cb5313"}]}' + body: '{"shipments": [{"id": "shp_2bb42692d2044e18a3f954dd7c72dae5"}]}' headers: Accept: - '*/*' @@ -269,7 +236,7 @@ interactions: - keep-alive Content-Length: - '63' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -278,24 +245,19 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/batches/batch_a90d27c1c88a4ddd9a78d256087afb68/remove_shipments + uri: https://api.easypost.com/v2/batches/batch_aee6ddc3bbb54138a18b03a358a9ecab/remove_shipments response: body: - string: !!binary | - H4sIAAAAAAAAA4SPzW7DIBCE34WzI2HSBuxjn6GnRhFaw7p2i4Hyc4ry7l07tdJDpd7Y2Zlvhyub - LevZAMVMGjpuhTStUQqerLUdSGXF84krCeNwUqxhYfhAUyjxsiZIWIJFGgvmQlMuUNYx1mQmyGhJ - 83XReZrjgr5k1vOGJRwxoTfk9NW5hpmElLMaVrLgQhz48dDKVyH6VvbH7o0wNdp/PdmA12NIyw7+ - dfd8uder9L7uF7c6XxUrgSmn996bvnnmQESY3Y83BmK8o3588C/1kbjRcjafNe6NHAzodE3uLty+ - AQAA//8DAFmUseCBAQAA + string: '{"id":"batch_aee6ddc3bbb54138a18b03a358a9ecab","object":"Batch","mode":"test","state":"purchased","num_shipments":0,"reference":null,"created_at":"2022-05-04T20:25:28Z","updated_at":"2022-05-04T20:25:28Z","scan_form":null,"shipments":[],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '385' content-type: - application/json; charset=utf-8 etag: - - W/"a7af8d496208284c25ef52c4327048ee" + - W/"f5fdfb60657e96bce6cce21d04acf493" expires: - '0' pragma: @@ -313,21 +275,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b383ff03041d002a5bb3 + - 62b330b86272e138e786b84100161856 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.037068' + - '0.039491' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_all.yaml b/tests/cassettes/test_batch_all.yaml index a379c67a..2b38e5f7 100644 --- a/tests/cassettes/test_batch_all.yaml +++ b/tests/cassettes/test_batch_all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,44 +18,28 @@ interactions: uri: https://api.easypost.com/v2/batches?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA+xYWZPTRhD+Ky69Zo+5D78tVyUFCVS8QCUpStVzsUps2ZFkYKH2v6dHso0MhDWE - LFQl+7Blj3pm+vj6+9p6Uzjo/EVsi+lvb4oqFNNhoRTWKwjJkOSFCNZb43nkhrjgOPPMFEfF0v0e - fYc7buUduLBYhohfu9h2+K3toMtfV+vGX0AbA67V60XZXlSrRaw7vJIeFU1MsYm1R8t6PZ8fFb6J - uC+UkE9mhLFjwo+JOGd0KuSUyl/xmPUqfMxGZZvWQ12mZbPYHjy6F0Mdosw+rtvs5BI/Po/l2NnB - ZBHbFp9sTxn5W1DGhVTaWILWXQP+j6p+XvohC1YQKQmhxHJF8b/VghGOhn2S24tVKTCXjklONRVC - aW5sspQIUBEsALHF1bMhi9nDN9vEFFNyVPy5jmuMH8Pbedyv9zbVEgOHar6xfT+0nPd3V9/uuMKH - lf9jvdqGPAcX5+W6mQ8L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opXYPdhqmD1jHQWmEw8JPl83mZFEgSNCAEdFFs4pxjQXSPABrNv7lXFzuikOeHEy - 2Ix0cxNXm8rILRiliZYRg+LBguKeS8yhTV56Nw5qhgfcy/u/nE97GpsBWtz+kRkrmcYiY6s/+zBP - aiKVAa93PCkt/6c8KdiBPDkyHHhyU6a33Ajt5aPlpuJbbsSBa8LqMJl1Yy4sRHcxuTcvdnw4g3py - r4HaV61fjiBz+2xHjBZ5Qt4QJw5Ln0+JmZh20r6dd3YyuTsfQTW0XXHRdat2enoaMYd5ojlOOMS0 - Jy0/WbfHL9HzY3YCC0AihJftCeb8tDc43YH7NNeLcCJOk9GeYrdKTJggOlgPOEBTBjxRUBROViHP - uv3l+ZCyu1ztXBpa/tO6f1/uBwa5qeF0v21GM2kwVFEVREiKCiUkJOAWh34eohVOx68/kx7yMtJT - pKhAGDcAOB15wB9D3imPQTnGpT2ce7/IW2t7TviU8qn4iNptbST59t5aY1sQib9M9l76UcKMCNQz - jT9fnHZWauYoN0IpjoPJtwoU9Ap3lItlE4dh6+ovAAAA//8DAB/Xo4/8GAAA + string: '{"batches":[{"id":"batch_65108517e0ad4023ae4fb11707e45fe3","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-04-12T16:14:18Z","updated_at":"2022-04-12T16:14:18Z","scan_form":null,"shipments":[{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361114684958","id":"shp_19d078a1d1b84dfd86ccbb5e69da80b8"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":1,"postage_purchase_failed":0},"pickup":{"id":"pickup_a6f424dd8e45400fbe3c5dab19e11fae","object":"Pickup","created_at":"2022-04-12T16:14:18Z","updated_at":"2022-04-12T16:14:18Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-04-13T00:00:00Z","max_datetime":"2022-04-13T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":null,"address":{"id":"adr_9adea311ba7b11ec8270ac1f6bc72124","object":"Address","created_at":"2022-04-12T16:14:18+00:00","updated_at":"2022-04-12T16:14:18+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-12T16:14:20Z","updated_at":"2022-04-12T16:14:20Z","carrier":"USPS","pickup_id":"pickup_a6f424dd8e45400fbe3c5dab19e11fae","id":"pickuprate_d05c55a8fa814856896877903b2ce859","object":"PickupRate"}]},"label_url":null},{"id":"batch_423a9247fbe241edb0dccf5369398e54","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-04-12T16:14:21Z","updated_at":"2022-04-12T16:14:21Z","scan_form":null,"shipments":[{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361114684972","id":"shp_78cd300e6b2c4623a2c292130f1220ff"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":1,"postage_purchase_failed":0},"pickup":{"id":"pickup_2a052b8e87ed4f3792b75e4e2129f469","object":"Pickup","created_at":"2022-04-12T16:14:21Z","updated_at":"2022-04-12T16:14:21Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-04-13T00:00:00Z","max_datetime":"2022-04-13T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":null,"address":{"id":"adr_9cc14a1bba7b11eca290ac1f6bc7b362","object":"Address","created_at":"2022-04-12T16:14:21+00:00","updated_at":"2022-04-12T16:14:21+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-12T16:14:22Z","updated_at":"2022-04-12T16:14:22Z","carrier":"USPS","pickup_id":"pickup_2a052b8e87ed4f3792b75e4e2129f469","id":"pickuprate_39367c458f3f4beaaa5532ca343e0e4d","object":"PickupRate"}]},"label_url":null},{"id":"batch_1b08c137d2134dab9f69792a5a4d54da","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-04-12T16:14:23Z","updated_at":"2022-04-12T16:14:23Z","scan_form":null,"shipments":[{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361114684989","id":"shp_835a97af387d4d3caf1cc641829d72ac"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":1,"postage_purchase_failed":0},"pickup":{"id":"pickup_8f33563c8a1b490195838d9c47fa60fe","object":"Pickup","created_at":"2022-04-12T16:14:24Z","updated_at":"2022-04-12T16:14:25Z","mode":"test","status":"scheduled","reference":null,"min_datetime":"2022-04-13T00:00:00Z","max_datetime":"2022-04-13T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":"WTC61775092","address":{"id":"adr_9e3262cdba7b11ecad14ac1f6b0a0d1e","object":"Address","created_at":"2022-04-12T16:14:23+00:00","updated_at":"2022-04-12T16:14:23+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-12T16:14:24Z","updated_at":"2022-04-12T16:14:24Z","carrier":"USPS","pickup_id":"pickup_8f33563c8a1b490195838d9c47fa60fe","id":"pickuprate_3bd99b26765543d2921743649f2ad709","object":"PickupRate"}]},"label_url":null},{"id":"batch_e33d1f064ab547cd9255f91db8f1d7ff","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-04-12T16:14:27Z","updated_at":"2022-04-12T16:14:27Z","scan_form":null,"shipments":[{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361114685016","id":"shp_a3918dbe7fc940ab9f37290c75826961"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":1,"postage_purchase_failed":0},"pickup":{"id":"pickup_421f3529555d4fac9b30d2b8282ba23a","object":"Pickup","created_at":"2022-04-12T16:14:27Z","updated_at":"2022-04-12T16:14:30Z","mode":"test","status":"canceled","reference":null,"min_datetime":"2022-04-13T00:00:00Z","max_datetime":"2022-04-13T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":"WTC61775072","address":{"id":"adr_a06c883eba7b11eca542ac1f6bc7b362","object":"Address","created_at":"2022-04-12T16:14:27+00:00","updated_at":"2022-04-12T16:14:27+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-12T16:14:28Z","updated_at":"2022-04-12T16:14:28Z","carrier":"USPS","pickup_id":"pickup_421f3529555d4fac9b30d2b8282ba23a","id":"pickuprate_bd38e871488c4668a9886ba8ea007194","object":"PickupRate"}]},"label_url":null},{"id":"batch_2138e1c33cbc436b97aca5bbbefc0e78","object":"Batch","mode":"test","state":"created","num_shipments":1,"reference":null,"created_at":"2022-04-20T17:56:27Z","updated_at":"2022-04-20T17:56:27Z","scan_form":null,"shipments":[{"batch_status":"created","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_dc2a1136b5ae409ca3816984a5510092"}],"status":{"created":1,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '7319' content-type: - application/json; charset=utf-8 etag: - - W/"02849f443925149c5beab89a205af9f9" + - W/"7a6757f60df47e22d3a47fe1a0057ee3" expires: - '0' pragma: @@ -70,26 +52,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5076233b37aff03010b002a59f8 + - 62b330bd6272e130e786b83c001614ed x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.199448' + - '0.172352' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_buy.yaml b/tests/cassettes/test_batch_buy.yaml index 9d22dea4..652988bc 100644 --- a/tests/cassettes/test_batch_buy.yaml +++ b/tests/cassettes/test_batch_buy.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '591' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,21 +29,16 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: !!binary | - H4sIAAAAAAAAA4SPzW7DIBCE34WzIxkcxYRjn6GnVhXC63VMi4Hyc4ry7lnHddtDpd52hplvlyuz - I1NsMAVmzcWJ4/ksuokPRxqMPHLZniR0MEkJPWtYGN4RCjWe1gYZSxiRZMFcSOViyiohoSnWX8jy - ddF5tnFBXzJTvGEJJ0zogYK+OtdsaRy1WcGiFeLQdgfePwuheK86/kKYGsd/MxmM11NIyw7+tff1 - bbuu0nzdNzLVNuyzYiUw9XSsCWaT8eFvfwhENNZ9ZWMgxgW/g3+7P40bPVr4qHG/yJkBna7Jbcbt - DgAA//8DAKPWK4eAAQAA + string: '{"id":"batch_5463b3537c564f83991f9b9c11ca59c8","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:21Z","updated_at":"2022-05-04T20:25:21Z","scan_form":null,"shipments":[],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '384' content-type: - application/json; charset=utf-8 etag: - - W/"4224111e3e900b5aa178a158d11a26c4" + - W/"1c75d9413af834ace6e0bde8a19ca82c" expires: - '0' pragma: @@ -56,26 +51,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b37aff03010d002a5a20 + - 62b330bc6272e131e786b83e0016153a x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.043724' + - '0.044881' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -92,7 +88,7 @@ interactions: - keep-alive Content-Length: - '2' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -101,25 +97,19 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/batches/batch_1261e9923f1b4e99a8418068c3cf88c7/buy + uri: https://api.easypost.com/v2/batches/batch_5463b3537c564f83991f9b9c11ca59c8/buy response: body: - string: !!binary | - H4sIAAAAAAAAA4RQSW7DMBD7i84JYEluvBz7hpxaFII8Gi+NvFTLycjfO4rjtEAD9DakOBSHKxsM - q1mjA/SKixPHqhKy5U1Ogy5zXmanEiS0ZQkFO7C5+UQItPGaNogYZ4MEA/pAyAcdEgSHNBhipjgq - 3w/LiFPwrOYH5rBFhxOQborWHnax0slXZEIcM3nkxVmImhe15G9kExfzr8aDnlQ7u3E3/vXv+3q/ - MSWMRLCviJEMSa+W6KDXHsljE43ove4eAf8kDk7DZZg6BbfrN/JWpO8XleGLEVBSSIl5ZkxVaA6F - lNWpzTHXBbt+bE2lHOujq9TNs1B1dq9omOk8PdikJW6ZyaPDh/A5+7NxpccBLnHZA1vdoFXR2Y24 - fgMAAP//AwDpYBZlDAIAAA== + string: '{"id":"batch_5463b3537c564f83991f9b9c11ca59c8","object":"Batch","mode":"test","state":"created","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:21Z","updated_at":"2022-05-04T20:25:21Z","scan_form":null,"shipments":[{"batch_status":"queued_for_purchase","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_3a597fcac1d14deba3c1025864ba4daf"}],"status":{"created":1,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '524' content-type: - application/json; charset=utf-8 etag: - - W/"aba98280bbf3b74de95863e092841274" + - W/"333099ed588aba002f686d72d8dbc57c" expires: - '0' pragma: @@ -137,21 +127,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b37bff03010d002a5a25 + - 62b330bc6272e131e786b83e00161545 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.062084' + - '0.045261' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_create.yaml b/tests/cassettes/test_batch_create.yaml index 4a5f28c6..44f08730 100644 --- a/tests/cassettes/test_batch_create.yaml +++ b/tests/cassettes/test_batch_create.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '591' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,21 +29,16 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: !!binary | - H4sIAAAAAAAAA4SPzU7DMBCE38XnVHIctyU+8gycQJXln01jcGzjn1PVd2dDCHBA4uaZnfl2fSPO - EkG0qmaWxxMfGZ+40iPlw1Frbh84N9aAZsNANelI1K9gKjYe1wYaS7SAskKpqEpVdZUmg6ouXNEK - bZFldmmBUAsRfUcyTJAhGAyG5n23pcFKtYIZZexAh0N/fmJM9GfBxmfEtGT/zRSjgpxiXnbwr70v - l+26hu/bvpEI2pH3Bg3B2JOpZTOrAp/+9oeIROX8VzZFZFzhO/i3+9O449CZt5b2i7zS4GXLfjPu - HwAAAP//AwAggSNkgAEAAA== + string: '{"id":"batch_6da8c4c8199c4875b670c845f684fb3f","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:20Z","updated_at":"2022-05-04T20:25:20Z","scan_form":null,"shipments":[],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '384' content-type: - application/json; charset=utf-8 etag: - - W/"11420314c98aada59f76b49486362e42" + - W/"26df610ae1fbc0a0688abe7d0f0474b9" expires: - '0' pragma: @@ -56,28 +51,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b379ff030109002a59d6 + - 62b330b76272e130e786b83a001614ae x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.046986' + - '0.037857' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_create_and_buy.yaml b/tests/cassettes/test_batch_create_and_buy.yaml index d399971a..3aad85eb 100644 --- a/tests/cassettes/test_batch_create_and_buy.yaml +++ b/tests/cassettes/test_batch_create_and_buy.yaml @@ -24,7 +24,7 @@ interactions: - keep-alive Content-Length: - '1156' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -36,21 +36,16 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: !!binary | - H4sIAAAAAAAAA4SPzW7DIBCE34WzI2Gc2jHHPkNOjSLEzzqmxUD5OUV5967ruu2hUm/M7My3y51Y - QzhRsuhZdKp7kic1yq49HseRqRMd6NSbaWR9P4AhDQnqFXTBxvPaQGMJBlAWyAVVLrKsUieQxfob - Wr4uIs82LuBLJpw1JMEECbzGoK/ONVsajJArmFHGDrQ7tMOZMd4OvKMviKnR/JvJWnoxhbTs4F97 - L9ftuorv+76RcNqQ9woVwdgTsSY9ywyf/vaHgERp3Vc2BmTc4Dv4t/vTeODQ6rca94ucVOBETW4z - Hh8AAAD//wMA2XumHoABAAA= + string: '{"id":"batch_f330bd734875417c894233ce818adeaa","object":"Batch","mode":"test","state":"creating","num_shipments":2,"reference":null,"created_at":"2022-05-04T20:25:21Z","updated_at":"2022-05-04T20:25:21Z","scan_form":null,"shipments":[],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '384' content-type: - application/json; charset=utf-8 etag: - - W/"f09e024bb8f264684976363908288575" + - W/"bb6d824c189bbf0daf97c45729834d0b" expires: - '0' pragma: @@ -68,21 +63,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b37aff03010c002a5a0f + - 62b330bd6272e131e786b83d00161519 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.047697' + - '0.044405' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_create_scanform.yaml b/tests/cassettes/test_batch_create_scanform.yaml index ec6f64d0..180fbb34 100644 --- a/tests/cassettes/test_batch_create_scanform.yaml +++ b/tests/cassettes/test_batch_create_scanform.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '591' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,21 +29,16 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: !!binary | - H4sIAAAAAAAAA4SPzU7EMAyE3yXnrtSmRen2yDNwWoQiJ3G3gTQJ+Tmt9t1xKQUOSNwy45nPzo1Z - wyamoOhFmlGZQY1tP4IZhBbKnHmvQQgc1MN8HlnDgnpFXajxuDXIWINBkgVzIZULlE3qhFCsv5Ll - 6yrzYuOKvmQ2dQ1LOGNCrynoq3PNnkYjYQPzlvNT25868cT51Imp7y6EqdH8m8kavJxDWg/wr73P - L/t1ld63YyOb2oa9V6wEpp6MNekFMn76+x8CEcG6r2wMxLjid/Bv96dxp6HVbzUeFzlQ6GRNbjfu - HwAAAP//AwAiVIqwgAEAAA== + string: '{"id":"batch_a48b067fe8634d478ce708925a8ccb49","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:22Z","updated_at":"2022-05-04T20:25:22Z","scan_form":null,"shipments":[],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '384' content-type: - application/json; charset=utf-8 etag: - - W/"9e0c8c5891fbbbf3e71e242ca5796e8a" + - W/"dea5778f6a44c8b7005bd9d399162077" expires: - '0' pragma: @@ -61,21 +56,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b37bff03010e002a5a34 + - 62b330b96272e132e786b83f0016156b x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb9nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.051885' + - '0.033010' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -92,7 +86,7 @@ interactions: - keep-alive Content-Length: - '2' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -101,25 +95,19 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/batches/batch_d8bd4b8038ad47c7bd923ca77e4b5f98/buy + uri: https://api.easypost.com/v2/batches/batch_a48b067fe8634d478ce708925a8ccb49/buy response: body: - string: !!binary | - H4sIAAAAAAAAA4SQzW6DMBCE38XnRMJgZODYZ+ipVWWt7SXQ8Ff/nFDevesQaKVG6o0dvh3Pzsp6 - yxqmIZhO2UpboausqMAKaaS2dV4YkBKFLtu6Yic26080gTZe0gYJ42yRxoA+0OQDhDQah/RhSZni - qHzXLyNOwbOGn5jDFh1OhrgpDsNphxUk3zzL83NWnLl8zfOGy6bgb2QTF/sv4w1Mqp3duBv/evd9 - fdyYEkYS2FfESIbEqyU604FH8tigEb2HyxHwT+LgwFz76aLM/fpNvBfpu0XZWoORRlQlCCHKooaa - Z4XlbWmBA8/Y7WNrKuVYj65SN89CNdmjon6m86AfEkvaMpPHBQ/wufqzcaOfvbnGZQ88gMZBRTds - wu0bAAD//wMATnzhugwCAAA= + string: '{"id":"batch_a48b067fe8634d478ce708925a8ccb49","object":"Batch","mode":"test","state":"created","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:22Z","updated_at":"2022-05-04T20:25:22Z","scan_form":null,"shipments":[{"batch_status":"queued_for_purchase","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_756c49497ee94a71940fdcb09bfed6d8"}],"status":{"created":1,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '524' content-type: - application/json; charset=utf-8 etag: - - W/"4342ec91a0f62c26983fcfa83e78c165" + - W/"c1b83421407f3fba1e56a419da77b861" expires: - '0' pragma: @@ -137,21 +125,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b37bff03010e002a5a45 + - 62b330b96272e132e786b83f00161577 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.052666' + - '0.051679' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -168,7 +155,7 @@ interactions: - keep-alive Content-Length: - '2' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -177,27 +164,19 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/batches/batch_d8bd4b8038ad47c7bd923ca77e4b5f98/scan_form + uri: https://api.easypost.com/v2/batches/batch_a48b067fe8634d478ce708925a8ccb49/scan_form response: body: - string: !!binary | - H4sIAAAAAAAAA5RSSW7cMBD8C88ywE2mqGMO+UBysmEQXFozsrWFy8EYzN/TjDIzXoAsgg7qVnWx - q4onMgbSE2ezP5rQuSBdR0Vng1ReuaC58FYpkK4ddEcasrpn8BknvtQJbMxrACwzpIxVyjbXcivR - H22CgL2lzCYdx22GJSfSs4ZEGCDC4hG5lGlqiI+Ac8HYyswp53dU3DH1nfOeqV6wB6QpW/gTRlVM - 8nYxwxpn0p92YWkwkrNBcCnEveKSMdc5zcExCLQTLVD+VtU3JPha5/+6k/rXnXK0/mVcDsajU6j/ - 8akhNoQIKV3kV9cKVvuZiK2+4n97uDpURZkSp3f1ME5g8ut2Re0x/l+ifl2GMc547rrsPGfc6JbX - 4+k313XLbcXPA5i3Ie+QD0t/yvmdF8ikJaWsvlrcM3wkVS3XSLdnd9xM0M565WXXWillK7TVjIrA - hjZYZhkl56ebf6dLaKSnDflRoGA26NR101/93eQVL4pF/3bsZ0n1nn7s3ibQom30L2W7KJusg+kW - 0PknAAAA//8DANajQFFYAwAA + string: '{"id":"batch_a48b067fe8634d478ce708925a8ccb49","object":"Batch","mode":"test","state":"purchased","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:22Z","updated_at":"2022-05-04T20:25:27Z","scan_form":{"id":"sf_26238787f2e14d86965dfee7c5b7f847","object":"ScanForm","created_at":"2022-05-04T20:25:27Z","updated_at":"2022-05-04T20:25:27Z","tracking_codes":[],"address":null,"status":"creating","message":null,"form_url":null,"form_file_type":null,"batch_id":"batch_a48b067fe8634d478ce708925a8ccb49","confirmation":null},"shipments":[{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361117768686","id":"shp_756c49497ee94a71940fdcb09bfed6d8"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":1,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '856' content-type: - application/json; charset=utf-8 etag: - - W/"94b7ff950b309c429f11944355c06fa3" + - W/"8a2f76fc9420f5f8f7b9ee3ec93e805c" expires: - '0' pragma: @@ -210,26 +189,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b381ff03010e002a5b33 + - 62b330b96272e137e786b83f001617a1 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.069688' + - '0.061614' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_label.yaml b/tests/cassettes/test_batch_label.yaml index 5b7abd27..daa9515a 100644 --- a/tests/cassettes/test_batch_label.yaml +++ b/tests/cassettes/test_batch_label.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '591' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,21 +29,16 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: !!binary | - H4sIAAAAAAAAA4SPzU7DMBCE38XnVMpPgxsfeYaeQMha29vG4NjGP6eq786GEOCAxM0zO/Pt+sas - YYIpKHqWDwDKaG0GM3VHNQKcxokPR9ScjycYW9awoF5RF2o8rg0ylmCQZMFcSOUCZZU6IRTrr2T5 - usg827igL5mJrmEJL5jQawr66lyzpdFIWMF92/eHdjh0/Nz3ouNimJ4IU6P5N5M1eHkJadnBv/Y+ - v2zXVXrf9o1MtA17r1gJTD0Za9IzZPz0tz8EIoJ1X9kYiHHF7+Df7k/jTkOr32rcL3Kg0Mma3Gbc - PwAAAP//AwAYffnLgAEAAA== + string: '{"id":"batch_8897ef8c828647fb91b516a968cd26c8","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:28Z","updated_at":"2022-05-04T20:25:28Z","scan_form":null,"shipments":[],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '384' content-type: - application/json; charset=utf-8 etag: - - W/"29c30bc6d38c280b16d71615b7af4e3a" + - W/"6c452bd795f43284b1674cb092d9e6b5" expires: - '0' pragma: @@ -61,21 +56,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b383ff03041e002a5bc1 + - 62b330bb6272e138e786b84200161882 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.039547' + - '0.032529' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -92,7 +86,7 @@ interactions: - keep-alive Content-Length: - '2' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -101,25 +95,19 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/batches/batch_6aabdccd3d914b5aa859734ec7758a50/buy + uri: https://api.easypost.com/v2/batches/batch_8897ef8c828647fb91b516a968cd26c8/buy response: body: - string: !!binary | - H4sIAAAAAAAAA4SQzW6DMBCE38XnRMIm4Jhjn6GnVpW1tpdAw1/9c4p4965DklZqpN7Y4dvx7FxY - 71jDDETb6RrAOGtd6RQ/mArgWClZHtBKWR2hKtiOzeYTbaSNl7xBwjg7pDFiiDSFCDGP1iN9OFKm - NOrQ9cuIUwys4TvmsUWPkyVuSsOwu8Masq8ohNgX5Z7LVyEaLptSvZFNWty/TLAw6Xb2493417vv - l9uNOWEigX0lTGRIvF6Stx0EJI8NGjEEOD0C/kkcPdhzP520vV6/idciQ7doUxecCyFUq8yhdJVS - lgsp67ZFZ0resvVjayrnuDy6yt08C9UUt4r6mc6DfsgsactMHid8gM/Vn42Vfvb2nJZ74AEMDjr5 - YRPWbwAAAP//AwDeNh/3DAIAAA== + string: '{"id":"batch_8897ef8c828647fb91b516a968cd26c8","object":"Batch","mode":"test","state":"created","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:28Z","updated_at":"2022-05-04T20:25:29Z","scan_form":null,"shipments":[{"batch_status":"queued_for_purchase","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_a1611a677a9e494d976fbcf14a35dada"}],"status":{"created":1,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '524' content-type: - application/json; charset=utf-8 etag: - - W/"ab735e28000ce49b7c1ce9b8afebf28c" + - W/"1d5ea198f4b7dbdd984221d26b6e70d2" expires: - '0' pragma: @@ -137,21 +125,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b384ff03041e002a5bd3 + - 62b330bb6272e139e786b8420016189b x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.072608' + - '0.049907' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -168,7 +155,7 @@ interactions: - keep-alive Content-Length: - '22' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -177,25 +164,19 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/batches/batch_6aabdccd3d914b5aa859734ec7758a50/label + uri: https://api.easypost.com/v2/batches/batch_8897ef8c828647fb91b516a968cd26c8/label response: body: - string: !!binary | - H4sIAAAAAAAAA3xRy07DMBD8F5+D5EcS1znyDZxAyPJj04TmhR+nqv/OumkBUYnIh+zszHhnfSaj - Jx2xJrlBt8ZY75wXXrHaNsYcGiVFDU7K5mAaSiqy2g9wCRXPRYHAvHrAMkFMWMVkUiknY2HSR1gg - mDQuR2wtedZxGLcZlhRJxyoSoIcAi0PBkqepIi4Ayr025QJOOX+i4onJF847JjuhXtEmb/4fTt0U - TnRm0f0a5rvxr3vfzrewZdSMANlW/D2C3nJwg4ng0WGnzBAjdu4uD/OmYNwJ02m3L0HVlLJylGgZ - fjWVTS3Q7rrjOGzatpQxzrnqla2Fb5RyjEvZ9j14K1hPLu/7Estk5/tCSEcr8pkhY26M9T3pFb9y - xhUDm3G6cR8jlX3/RX8UF2yO7pS3e7L9/XKYduDyBQAA//8DACDUnn4nAgAA + string: '{"id":"batch_8897ef8c828647fb91b516a968cd26c8","object":"Batch","mode":"test","state":"label_generating","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:28Z","updated_at":"2022-05-04T20:25:34Z","scan_form":null,"shipments":[{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361117768716","id":"shp_a1611a677a9e494d976fbcf14a35dada"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":1,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '551' content-type: - application/json; charset=utf-8 etag: - - W/"87c7fdc6a3eb64e766d69553778b2c3a" + - W/"64e69b01176688716295d9cd40a810f2" expires: - '0' pragma: @@ -213,21 +194,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b389ff03041e002a5d55 + - 62b330bb6272e13ee786b84200161acb x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.036059' + - '0.039765' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_batch_retrieve.yaml b/tests/cassettes/test_batch_retrieve.yaml index cc258606..27267a1a 100644 --- a/tests/cassettes/test_batch_retrieve.yaml +++ b/tests/cassettes/test_batch_retrieve.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '591' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,21 +29,16 @@ interactions: uri: https://api.easypost.com/v2/batches response: body: - string: !!binary | - H4sIAAAAAAAAA4SPzW7DIBCE34WzI9ngxIJjn6GnVhUCvI5pMVB+TlHeves6TnuIlBszO/PtciF2 - JIJoVcws6QCsPxrOjhP0Zuq15kPH+IkB45yrE2lI0J9gCjZe1gYaSxgBZYFcUOWiyipNAlWsP6Pl - 6yLzbOMCvmQiuoYkmCCBNxj01blmS8Mo1QqmLaWHlh264ZVS0Q2C8jfE1Dg+zWSjvJxCWnbwv73v - H9t1Fd+XfSMRbUO+K1QEY0/GmsysMvz62x8CEpV1t2wMyDjDPfjY/WtccWjNV437RU5pcLImtxnX - HwAAAP//AwBJk5L9gAEAAA== + string: '{"id":"batch_205d70172b5640c290e9a5416108abe0","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:20Z","updated_at":"2022-05-04T20:25:20Z","scan_form":null,"shipments":[],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '384' content-type: - application/json; charset=utf-8 etag: - - W/"88d5a01116a218fb8a183d97966248d9" + - W/"d1264efc6cadb1e3cec4e4406fccaf52" expires: - '0' pragma: @@ -56,26 +51,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b379ff03010a002a59e2 + - 62b330b86272e130e786b83b001614cb x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.036873' + - '0.036437' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -90,8 +86,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -99,25 +93,19 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/batches/batch_27e345c935fe4cf4bb9713963e3999a6 + uri: https://api.easypost.com/v2/batches/batch_205d70172b5640c290e9a5416108abe0 response: body: - string: !!binary | - H4sIAAAAAAAAA3xQy07DMBD8F59TKbHzqHPkGziBkGWvN01oXvhxqvrvrJumgEDcvOPZ2Zm5sMGy - lhkdoFe8QVFWIEXVYQldaYxsCiFrgUJKqWuWscW8IwTaeEobBEyLRRoD+kCTDzqkERzSwxIyx0n5 - flgnnINnbZExhx06nIF4cxzHbCcrnXR5zvkhF4eieea8LZqWyxeSiav9hyPyxPGgZ9UtbtqFv919 - vdwzJofR/7C4fUzovT49TP1yGZyG8zCfFNwSb+CtPN+vqhDQ1ZYLRDRlroWx0NgjdHDkGqqiZte3 - rZ10+/I4nvr4iBgpGRlXa3TQa0/y+b2WYaFIehgTl7B1IY0TPoh/o18bV/oc4BzX3fCoDY4qunED - rp8AAAD//wMAiryDHgACAAA= + string: '{"id":"batch_205d70172b5640c290e9a5416108abe0","object":"Batch","mode":"test","state":"created","num_shipments":1,"reference":null,"created_at":"2022-05-04T20:25:20Z","updated_at":"2022-05-04T20:25:20Z","scan_form":null,"shipments":[{"batch_status":"created","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_4a92ec67b0a946a692ce2679b3f4e3cc"}],"status":{"created":1,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '512' content-type: - application/json; charset=utf-8 etag: - - W/"e1fcf1e38e316072b6f7df665bb02e3a" + - W/"a02c40e765848fe21ac896280323ee58" expires: - '0' pragma: @@ -135,21 +123,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b37aff03010a002a59ec + - 62b330b86272e130e786b83b001614d8 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.022021' + - '0.019287' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_all.yaml b/tests/cassettes/test_carrier_account_all.yaml index 6c6856f1..a5bc745b 100644 --- a/tests/cassettes/test_carrier_account_all.yaml +++ b/tests/cassettes/test_carrier_account_all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,41 +18,24 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA+yZS4sbRxDHv4rQKYE1dFdX9WNuxhjiQxyDN4c4hKUf1bHCrCQkrWFj/N1TI2m1 - Dz0xmUPIsGLRtP5T0+pfVXVV6/ev40kZN+McbxKQJcfBB8tYrInZa9IxG7Qxo+bx1XiW/uK8Evmb - uFhMePE659nddCWfrO7nLOO/L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YKnRv2uqPoioScJVdzdRUdlcClVFWL1aFWiD0mzK5t - O4eu09CA7jC6SskH67WRpIkq24SmWPlfKEivZ1Iv6Ohawolso06UKQ+aoTk42pKDihqlp6MIqFxK - WkpMnzTWxAS6nzNM6g65lPRsdBLdRmMHdIfRZTToorFKBYdkYlKKIDNHKtLnseoPHfht4X8C3U4z - oDtw/JwdVO+yZzBYg3zRoDKHVDBlINdX1HWbmDr829xBzYDuwI8+lD0mVaQ50OhrTSaR1ZAAQ1Gy - 5fWILpw8TXmuGdDto0NgC07HWKWvM4l9pGRlz9MFbHLg+0MHusGTe91TzYBuH12wMVopLImyRYm2 - kJWHSgi1ovaqn4OwDRZsjD+HDreHZQO6fXQuSBnp2XtSGjFgipwVxYpUURJo6A+dUfI6g67TDKcp - x05TlCo1mky2yF4HzhepThJqS8lkr/s5TdlgofNRt9MM6A6cphgtJYlDx4KOXUi2mFyiZq+SjPQT - dXZd+NuTFeZOM5Qpx/a6kosyTEHniDnkQECkIIKT0KPSz6/kayxGN3TiIOy5ZkC3RffHPwAAAP// - AwBo7b/lhi0AAA== + string: '[{"id":"ca_b25657e9896e4d63ac8151ac346ac41e","object":"CarrierAccount","type":"UspsAccount","clone":false,"created_at":"2017-03-01T03:01:34Z","updated_at":"2018-08-09T02:45:22Z","description":"USPS + Account","reference":null,"readable":"USPS","logo":null,"fields":{"credentials":{"company_name":{"visibility":"visible","label":"Account + Holder Name","value":""},"address_street":{"visibility":"visible","label":"Street + Address","value":""},"address_city":{"visibility":"visible","label":"City","value":""},"address_state":{"visibility":"visible","label":"State","value":""},"address_zip":{"visibility":"visible","label":"ZIP + Code","value":""},"phone":{"visibility":"visible","label":"Phone Number","value":""},"email":{"visibility":"visible","label":"Email + Address","value":null},"shipper_id":{"visibility":"visible","label":"Shipper + Identifier (Optional)","value":""}}},"credentials":{"company_name":"","address_street":"","address_city":"","address_state":"","address_zip":"","phone":"","email":null,"shipper_id":""},"test_credentials":null},{"id":"ca_05ab5a0345634187b52daaf787aa4cd0","object":"CarrierAccount","type":"LsoDefaultAccount","clone":false,"created_at":"2022-04-26T16:58:59Z","updated_at":"2022-04-26T16:58:59Z","description":"LSO + Account","reference":null,"readable":"LSO","logo":null,"fields":{"credentials":{}},"credentials":{},"test_credentials":null},{"id":"ca_d38ae88b6edb48ed93c0a16ed068215b","object":"CarrierAccount","type":"DhlExpressDefaultAccount","clone":false,"created_at":"2022-04-26T16:59:02Z","updated_at":"2022-04-26T16:59:02Z","description":"DHL + Express Account","reference":null,"readable":"DHL Express","logo":null,"fields":{"credentials":{}},"credentials":{},"test_credentials":null}]' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '1719' content-type: - application/json; charset=utf-8 etag: - - W/"84e46190052b6d8eb678c47e0e5e313b" + - W/"4f6bb92cff15e038c9baed713a38dcee" expires: - '0' pragma: @@ -72,21 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b38bff030422002a5e02 + - 62b330b86272e13fe786b85c00161b76 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.470700' + - '0.057637' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_create.yaml b/tests/cassettes/test_carrier_account_create.yaml index dc37e3a7..98266ee3 100644 --- a/tests/cassettes/test_carrier_account_create.yaml +++ b/tests/cassettes/test_carrier_account_create.yaml @@ -12,7 +12,7 @@ interactions: - keep-alive Content-Length: - '165' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -24,21 +24,18 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: !!binary | - H4sIAAAAAAAAA4SQzWrDMBCEXyXonIAt2/XPLfReCm0vvZiVdl1UtpKR5IAJfvdKmDbkFHTa2W9n - Bl2FQTEIDWNTYdv3OEnV9fUTIRQt1E3XFZWcEDsljsKpb9Ix4c/gvSF/1totNqZNXGdK+sccbppm - Z5M4AQdKkyeIhCPke1lIeSqqU9m+SzmU7VA3n+limfEhgxS0N3M0zubA17fDLdHTRJ6sTql2Yc4C - ICimnUwEuy/3t5wMMQYxXHM3JBtNappH2A1Hu/wo8lm5mGCUYRPX5JRNneU124Eivq9xeNmvjuIC - vOTkc5mf2Lbt+Cjpn00/SiGOd3huvf0CAAD//wMAxTcsgLABAAA= + string: '{"id":"ca_e39b041d74244119b8224febf64340a1","object":"CarrierAccount","type":"UpsAccount","clone":false,"created_at":"2022-05-04T20:25:34Z","updated_at":"2022-05-04T20:25:34Z","description":"UPS + Account","reference":null,"readable":"UPS","logo":null,"fields":{"credentials":{"account_number":{"visibility":"readonly","label":"UPS + Account Number","value":"A1A1A1"}}},"credentials":{"account_number":"A1A1A1"},"test_credentials":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '432' content-type: - application/json; charset=utf-8 etag: - - W/"df3472a64a7c268e71d9c39dee1de1f4" + - W/"986b31636f1d1b999fd66c12d4348844" expires: - '0' pragma: @@ -56,21 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b389ff030420002a5d68 + - 62b330be6272e13ee786b84300161aec x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.178306' + - '0.116497' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -87,8 +83,6 @@ interactions: - keep-alive Content-Length: - '0' - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -96,16 +90,15 @@ interactions: x-client-user-agent: - suppressed method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_53d799df2b8946eda07a4588032fdd8b + uri: https://api.easypost.com/v2/carrier_accounts/ca_e39b041d74244119b8224febf64340a1 response: body: - string: !!binary | - H4sIAAAAAAAAA6quBQAAAP//AwBDv6ajAgAAAA== + string: '{}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2' content-type: - application/json; charset=utf-8 etag: @@ -127,21 +120,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b38aff030420002a5d90 + - 62b330be6272e13ee786b84300161afe x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.115759' + - '0.119271' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_delete.yaml b/tests/cassettes/test_carrier_account_delete.yaml index b026d106..a77282b3 100644 --- a/tests/cassettes/test_carrier_account_delete.yaml +++ b/tests/cassettes/test_carrier_account_delete.yaml @@ -12,7 +12,7 @@ interactions: - keep-alive Content-Length: - '165' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -24,21 +24,18 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: !!binary | - H4sIAAAAAAAAA4RQTWvDMAz9K8XnFBIn0CS3svsYrLvsEhRbGR6aHWynEEr++yTCVnoq9kVP7wvd - lLOqVwaGttN125W1hhaa7tSB7UwzVbqpNFqYWlWoMH6jyUx/gRgdxrMxYfGZN3mdkfGPOd0xQ8Ez - OAEl5CkiZLQDiF6XWh/Lhv+lavuq7uvTJyuW2T7lWEwmujm74CXw7f1wT4w4YURvONUvRAKAhZFw - ZzKDwlf4W04OySbV36SbRZ8dN5URdsPBLz8jRkGuLrnRkcsrO4lp8LSKHYxIjzUOr7uqUFegRZLP - lTy1bVvxLOmfyxfFlIcHurTefgEAAP//AwA9MophsAEAAA== + string: '{"id":"ca_e36340aa1d1e4b73b1225bc657a41afb","object":"CarrierAccount","type":"UpsAccount","clone":false,"created_at":"2022-05-04T20:25:37Z","updated_at":"2022-05-04T20:25:37Z","description":"UPS + Account","reference":null,"readable":"UPS","logo":null,"fields":{"credentials":{"account_number":{"visibility":"readonly","label":"UPS + Account Number","value":"A1A1A1"}}},"credentials":{"account_number":"A1A1A1"},"test_credentials":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '432' content-type: - application/json; charset=utf-8 etag: - - W/"dde4b591591eb0a4ee6f00620ec8d7b5" + - W/"a725613fd513f8d7200b881fa2037eb5" expires: - '0' pragma: @@ -56,20 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ce58142d624b3551ff235edd0036f583 + - 62b330bd6272e141e786b85e00161be9 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.117608' + - '0.169396' x-version-label: - - easypost-202204012111-554198a807-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -86,8 +83,6 @@ interactions: - keep-alive Content-Length: - '0' - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -95,16 +90,15 @@ interactions: x-client-user-agent: - suppressed method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_892389032a8a4979ad9c4f12412edaf8 + uri: https://api.easypost.com/v2/carrier_accounts/ca_e36340aa1d1e4b73b1225bc657a41afb response: body: - string: !!binary | - H4sIAAAAAAAAA6quBQAAAP//AwBDv6ajAgAAAA== + string: '{}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2' content-type: - application/json; charset=utf-8 etag: @@ -126,7 +120,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - ce58142d624b3552ff235edd0036f5b4 + - 62b330bd6272e141e786b85e00161c05 x-frame-options: - SAMEORIGIN x-node: @@ -134,12 +128,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.203026' + - '0.110642' x-version-label: - - easypost-202204012111-554198a807-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_retrieve.yaml b/tests/cassettes/test_carrier_account_retrieve.yaml index ceb10507..18f72dfe 100644 --- a/tests/cassettes/test_carrier_account_retrieve.yaml +++ b/tests/cassettes/test_carrier_account_retrieve.yaml @@ -12,7 +12,7 @@ interactions: - keep-alive Content-Length: - '165' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -24,21 +24,18 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: !!binary | - H4sIAAAAAAAAA4SQQWvEIBCF/8riOQuJsUma29J7KbS99BJGHYvLVIOahbDkv1cJ7bKnxdO8+ea9 - h1dmNRuZgqmtQcr6ySgpjOg7IUG0zYDPpu5aPgwDq5iXZ1Qp4y8QgsVwUsovLuVNWmfM+uccb5oi - 77JogCLmKSAk1BOUe15zfqzbY9N/cD42/Si6r3yxzPohozGqYOdkvSuBb++HW2JAgwGdyqluISoC - aJCEO5kJ8t/+b2ksko5svJZuGl2yuWkZYTec3PIjMRTlYqOVlmxas1Mx9Y7WYgcS6b7G4XW/qtgF - aCnJp6Y8tm1b9Sjpn80/ijFNd3hpvf0CAAD//wMAVsRsUrABAAA= + string: '{"id":"ca_fd232465a60746f2bf178a7ce82a030f","object":"CarrierAccount","type":"UpsAccount","clone":false,"created_at":"2022-05-04T20:25:35Z","updated_at":"2022-05-04T20:25:35Z","description":"UPS + Account","reference":null,"readable":"UPS","logo":null,"fields":{"credentials":{"account_number":{"visibility":"readonly","label":"UPS + Account Number","value":"A1A1A1"}}},"credentials":{"account_number":"A1A1A1"},"test_credentials":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '432' content-type: - application/json; charset=utf-8 etag: - - W/"f825a6ddf1a971645d34b77a074c401d" + - W/"48a1c4ba415618243d5c5a8de4870dc7" expires: - '0' pragma: @@ -56,7 +53,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b38aff030421002a5da9 + - 62b330ba6272e13fe786b85b00161b23 x-frame-options: - SAMEORIGIN x-node: @@ -64,13 +61,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.148746' + - '0.138783' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -85,8 +81,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -94,24 +88,21 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/carrier_accounts/ca_30abb05fcb4f4764ba4318e9f0632888 + uri: https://api.easypost.com/v2/carrier_accounts/ca_fd232465a60746f2bf178a7ce82a030f response: body: - string: !!binary | - H4sIAAAAAAAAA4SQQWvEIBCF/8riOQuJsUma29J7KbS99BJGHYvLVIOahbDkv1cJ7bKnxdO8+ea9 - h1dmNRuZgqmtQcr6ySgpjOg7IUG0zYDPpu5aPgwDq5iXZ1Qp4y8QgsVwUsovLuVNWmfM+uccb5oi - 77JogCLmKSAk1BOUe15zfqzbY9N/cD42/Si6r3yxzPohozGqYOdkvSuBb++HW2JAgwGdyqluISoC - aJCEO5kJ8t/+b2ksko5svJZuGl2yuWkZYTec3PIjMRTlYqOVlmxas1Mx9Y7WYgcS6b7G4XW/qtgF - aCnJp6Y8tm1b9Sjpn80/ijFNd3hpvf0CAAD//wMAVsRsUrABAAA= + string: '{"id":"ca_fd232465a60746f2bf178a7ce82a030f","object":"CarrierAccount","type":"UpsAccount","clone":false,"created_at":"2022-05-04T20:25:35Z","updated_at":"2022-05-04T20:25:35Z","description":"UPS + Account","reference":null,"readable":"UPS","logo":null,"fields":{"credentials":{"account_number":{"visibility":"readonly","label":"UPS + Account Number","value":"A1A1A1"}}},"credentials":{"account_number":"A1A1A1"},"test_credentials":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '432' content-type: - application/json; charset=utf-8 etag: - - W/"f825a6ddf1a971645d34b77a074c401d" + - W/"48a1c4ba415618243d5c5a8de4870dc7" expires: - '0' pragma: @@ -129,21 +120,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b38aff030421002a5dd0 + - 62b330ba6272e13fe786b85b00161b38 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.031069' + - '0.070562' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -160,8 +150,6 @@ interactions: - keep-alive Content-Length: - '0' - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -169,16 +157,15 @@ interactions: x-client-user-agent: - suppressed method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_30abb05fcb4f4764ba4318e9f0632888 + uri: https://api.easypost.com/v2/carrier_accounts/ca_fd232465a60746f2bf178a7ce82a030f response: body: - string: !!binary | - H4sIAAAAAAAAA6quBQAAAP//AwBDv6ajAgAAAA== + string: '{}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2' content-type: - application/json; charset=utf-8 etag: @@ -195,26 +182,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b38bff030421002a5de2 + - 62b330ba6272e13fe786b85b00161b57 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.117670' + - '0.119995' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_type.yaml b/tests/cassettes/test_carrier_account_type.yaml index 25b549f3..ca808b43 100644 --- a/tests/cassettes/test_carrier_account_type.yaml +++ b/tests/cassettes/test_carrier_account_type.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,81 +18,307 @@ interactions: uri: https://api.easypost.com/v2/carrier_types response: body: - string: !!binary | - H4sIAAAAAAAAA+xd3W/bOBL/VwjfSwqke7j2rS+LNG7a7DqNUSUtcNeDQct0wo0s6vSRjy72fz8O - ScmURDlDfdwuDrmHWzTk/EjODIczwxH9r99nYv0bC/PZu9kpTVPO0qunhM2OZzn8593sZEd/iPji - ITsJQ1HEuWxJGd3QdbRvJRffAvn3SNyI2bu4iKLj2ZazaJPN3v0+C1O2YXHOaaT+ScOQZdnqjj2t - +Ab+cM8zvuYRz58knvpHBMNHdM0iGOFbQE4UDfmVPZHz+eyP41nGJGoOIC2EhGbZg0g3FkSgegM5 - 0O5YGt7SOMcNH7AoYqkaVv7v+FluJaGbT8tTLIOyW54kLEVyZ3lKAk1gWFOtH8EY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- ad4fpBs4h2vhsoEdE/pJusv2m05eX4+X9PVvM3pW/0rRnCfd2XZYLX/tn29H7d4S2O8HMuSMwb87 - j2Nxr5ypTt3SfqDVcTJjBoOVP+L3vFIMUwnHjmxrhO/JDAuwTuNm7rPEuin80T5ew2N3ngHZddZl - MgK8zfCMZctd/UlE8K1plbk13zbowjDUyQYd7cChhECWgpWFX/uRcWVfVZFXSYgr8frn+bKqu8KG - 5boUaq/q2IRHK6byet+++p1MJeUtvHJvP4GIUayv7NZdQgINo1s4ACWuuHxoAkoBV1mn8pbu3/8F - AAD//wMAEecnnQx2AAA= + string: '[{"object":"CarrierType","type":"AmazonMwsAccount","readable":"Amazon + MWS","logo":null,"fields":{"credentials":{"access_key_id":{"visibility":"visible","label":"AWS + Access Key ID"},"secret_key":{"visibility":"password","label":"Secret Key"},"merchant_id":{"visibility":"visible","label":"Seller + ID"}}}},{"object":"CarrierType","type":"ApcAccount","readable":"APC","logo":null,"fields":{"credentials":{"shipper_id":{"visibility":"visible","label":"APC + Shipper ID"},"password":{"visibility":"password","label":"APC Password"},"facility":{"visibility":"visible","label":"APC + Facility (e.g., NJ, LA)"}}}},{"object":"CarrierType","type":"AsendiaAccount","readable":"Asendia + USA (Legacy)","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Asendia + Account Number"},"company_name":{"visibility":"visible","label":"Company Name"},"ftp_username":{"visibility":"visible","label":"FTP + Username"},"ftp_password":{"visibility":"password","label":"FTP Password"},"prioritytracked":{"visibility":"checkbox","label":"Priority + Tracked"},"pmi":{"visibility":"checkbox","label":"PMI"},"epacket":{"visibility":"checkbox","label":"ePacket"},"internationalexpress":{"visibility":"checkbox","label":"International + Express"},"ipa":{"visibility":"checkbox","label":"IPA"},"isal":{"visibility":"checkbox","label":"ISAL"},"pmei":{"visibility":"checkbox","label":"PMEI"},"other":{"visibility":"checkbox","label":"Other"}}}},{"object":"CarrierType","type":"AsendiaUsaAccount","readable":"Asendia + USA","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"AsendiaUsa + Account Number"},"sub_account_number":{"visibility":"visible","label":"AsendiaUsa + Sub Account Number"},"username":{"visibility":"visible","label":"AsendiaUsa + Username"},"password":{"visibility":"password","label":"AsendiaUsa Password"},"api_key":{"visibility":"masked","label":"AsendiaUsa + API key"},"carrier_facility":{"visibility":"select","label":"AsendiaUsa Carrier + Facility / Processing Location (Optional)"}},"test_credentials":{"account_number":{"visibility":"visible","label":"Test + AsendiaUsa Account Number"},"sub_account_number":{"visibility":"visible","label":"Test + AsendiaUsa Sub Account Number"},"username":{"visibility":"visible","label":"Test + AsendiaUsa Username"},"password":{"visibility":"password","label":"Test AsendiaUsa + Password"},"api_key":{"visibility":"masked","label":"Test AsendiaUsa API key"},"carrier_facility":{"visibility":"select","label":"Test + AsendiaUsa Carrier Facility / Processing Location (Optional)"}}}},{"object":"CarrierType","type":"AustraliaPostAccount","readable":"Australia + Post","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Australia + Post Account Number"},"api_key":{"visibility":"masked","label":"Australia + Post API Key"},"api_secret":{"visibility":"password","label":"Australia Post + Secret Key"},"print_as_you_go":{"visibility":"checkbox","label":"Print as + you go"}}}},{"object":"CarrierType","type":"AxlehireV3Account","readable":"AxlehireV3","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"Client + Secret"}},"test_credentials":{"api_key":{"visibility":"masked","label":"Client + Secret"}}}},{"object":"CarrierType","type":"BetterTrucksAccount","readable":"Better + Trucks","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"Better + Trucks API key"}},"test_credentials":{"api_key":{"visibility":"masked","label":"Test + Better Trucks API key"}}}},{"object":"CarrierType","type":"BondAccount","readable":"Bond","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"Bond + API key"}},"test_credentials":{"api_key":{"visibility":"masked","label":"Test + Bond API key"}}}},{"object":"CarrierType","type":"CanadaPostAccount","readable":"Canada + Post","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"CanadaPost + API Key"},"contract_id":{"visibility":"visible","label":"CanadaPost Contract + ID (contract customers only)"},"customer_number":{"visibility":"visible","label":"CanadaPost + Customer Number"},"has_credit_card":{"visibility":"checkbox","label":"CanadaPost + account has credit card?"}},"custom_workflow":true}},{"object":"CarrierType","type":"CanparAccount","readable":"Canpar","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Canpar + Account Number"},"username":{"visibility":"visible","label":"Canpar Username"},"password":{"visibility":"password","label":"Canpar + Password"}},"test_credentials":{"account_number":{"visibility":"visible","label":"Test + Canpar Account Number"},"username":{"visibility":"visible","label":"Test Canpar + Username"},"password":{"visibility":"password","label":"Test Canpar Password"}}}},{"object":"CarrierType","type":"ColumbusLastMileAccount","readable":"CDL + Last Mile Solutions","logo":null,"fields":{"credentials":{"username":{"visibility":"visible","label":"CDL + Last Mile Solutions customer username"},"password":{"visibility":"password","label":"CDL + Last Mile Solutions customer password"},"tracking_code_prefix":{"visibility":"visible","label":"CDL + Last Mile Solutions tracking code prefix"}},"test_credentials":{"username":{"visibility":"visible","label":"CDL + Last Mile Solutions customer test username"},"password":{"visibility":"password","label":"CDL + Last Mile Solutions customer test password"},"tracking_code_prefix":{"visibility":"visible","label":"CDL + Last Mile Solutions tracking code prefix"}}}},{"object":"CarrierType","type":"CourierExpressAccount","readable":"Courier + Express","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"Courier + Express API key"},"shipper_id":{"visibility":"visible","label":"Courier Express + shipper ID"}},"test_credentials":{"api_key":{"visibility":"masked","label":"Test + Courier Express API key"},"shipper_id":{"visibility":"visible","label":"Test + Courier Express shipper ID"}}}},{"object":"CarrierType","type":"CouriersPleaseAccount","readable":"CouriersPlease","logo":null,"fields":{"credentials":{"username":{"visibility":"visible","label":"Account + Number"},"password":{"visibility":"password","label":"Password"}},"test_credentials":{"username":{"visibility":"visible","label":"Account + Number"},"password":{"visibility":"password","label":"Password"}}}},{"object":"CarrierType","type":"DaiPostAccount","readable":"Dai + Post","logo":null,"fields":{"credentials":{"username":{"visibility":"visible","label":" + Dai Post customer username"},"password":{"visibility":"password","label":" + Dai Post client secret"},"origin_terminal":{"visibility":"visible","label":" + Dai Post default origin terminal"},"account_code":{"visibility":"visible","label":" + 3-letter account code for customers with multiple accounts"}}}},{"object":"CarrierType","type":"DeutschePostUKAccount","readable":"Deutsche + Post UK","logo":null,"fields":{"credentials":{"client_id":{"visibility":"visible","label":"Deutsche + Post UK Client ID"},"client_secret":{"visibility":"password","label":"Deutsche + Post UK Secret"},"account_number":{"visibility":"visible","label":"Deutsche + Post UK Account Number"}},"test_credentials":{"client_id":{"visibility":"visible","label":"Test + Deutsche Post UK Client ID"},"client_secret":{"visibility":"password","label":"Test + Deutsche Post UK Secret"},"account_number":{"visibility":"visible","label":"Test + Deutsche Post UK Account Number"}}}},{"object":"CarrierType","type":"DhlEcommerceAsiaAccount","readable":"DHL + Ecommerce Asia","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"DHL + Ecommerce Asia Account Number"},"client_id":{"visibility":"visible","label":"DHL + Ecommerce Asia Contract Number"},"password":{"visibility":"password","label":"DHL + Ecommerce Asia Password"},"barcode_prefix":{"visibility":"visible","label":"DHL + Ecommerce Asia Customer ID"}},"test_credentials":{"account_number":{"visibility":"visible","label":"Test + DHL Ecommerce Asia Account Number"},"client_id":{"visibility":"visible","label":"Test + DHL Ecommerce Asia Contract Number"},"password":{"visibility":"password","label":"Test + DHL Ecommerce Asia Password"},"barcode_prefix":{"visibility":"visible","label":"Test + DHL Ecommerce Asia Customer ID"}}}},{"object":"CarrierType","type":"DhlEcsAccount","readable":"DHL + eCommerce Solutions","logo":null,"fields":{"credentials":{"client_id":{"visibility":"visible","label":"DHL + eCommerce Solutions client ID"},"client_secret":{"visibility":"password","label":"DHL + eCommerce Solutions client secret"},"pickup_id":{"visibility":"visible","label":"DHL + eCommerce Solutions pickup ID"},"distribution_center":{"visibility":"visible","label":"DHL + eCommerce Solutions distribution center"}},"test_credentials":{"client_id":{"visibility":"visible","label":"Test + DHL eCommerce Solutions client ID"},"client_secret":{"visibility":"password","label":"Test + DHL eCommerce Solutions client secret"},"pickup_id":{"visibility":"visible","label":"Test + DHL eCommerce Solutions pickup ID"},"distribution_center":{"visibility":"visible","label":"Test + DHL eCommerce Solutions distribution center"}}}},{"object":"CarrierType","type":"DhlExpressAccount","readable":"DHL + Express","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"DHL + Account Number"},"country":{"visibility":"visible","label":"Account Country + Code (2 Letter)"},"site_id":{"visibility":"visible","label":"Site ID (Optional)"},"password":{"visibility":"password","label":"Password + (Optional)"},"is_reseller":{"visibility":"checkbox","label":"Reseller Account? + (check if yes)"}}}},{"object":"CarrierType","type":"DhlParcelAccount","readable":"DHL + Parcel","logo":null,"fields":{"credentials":{"user_id":{"visibility":"visible","label":"DHL + Parcel User ID"},"api_key":{"visibility":"masked","label":"DHL Parcel API + Key"},"account_number":{"visibility":"visible","label":"DHL Parcel Account + Number"}},"test_credentials":{"user_id":{"visibility":"visible","label":"DHL + Parcel User ID"},"api_key":{"visibility":"masked","label":"DHL Parcel API + Key"},"account_number":{"visibility":"visible","label":"DHL Parcel Account + Number"}}}},{"object":"CarrierType","type":"DpdAccount","readable":"DPD","logo":null,"fields":{"credentials":{"username":{"visibility":"visible","label":"WebConnect + Username"},"password":{"visibility":"password","label":"WebConnect Password"},"customer_number":{"visibility":"visible","label":"DPD + Customer Number"}},"test_credentials":{"username":{"visibility":"visible","label":"Test + WebConnect Username"},"password":{"visibility":"password","label":"Test WebConnect + Password"},"customer_number":{"visibility":"visible","label":"DPD Customer + Number"}}}},{"object":"CarrierType","type":"DpdUkAccount","readable":"DPD + UK","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"DPD + UK Account Number"},"username":{"visibility":"visible","label":"DPD UK Username"},"password":{"visibility":"password","label":"DPD + UK Password"}}}},{"object":"CarrierType","type":"EstafetaAccount","readable":"Estafeta","logo":null,"fields":{"credentials":{"customer_id":{"visibility":"visible","label":"Subscriber + ID"},"username":{"visibility":"visible","label":"Login"},"password":{"visibility":"password","label":"Password"},"client_id":{"visibility":"visible","label":"Tracking + Subscriber ID"},"user_id":{"visibility":"visible","label":"Tracking Login"},"secret_key":{"visibility":"password","label":"Tracking + Password"},"customer_number":{"visibility":"visible","label":"Customer Number"},"hub_id":{"visibility":"visible","label":"Office + Number"}},"test_credentials":{"customer_id":{"visibility":"visible","label":"Test + Subscriber ID"},"username":{"visibility":"visible","label":"Test Login"},"password":{"visibility":"password","label":"Test + Password"},"client_id":{"visibility":"visible","label":"Test Tracking Subscriber + ID"},"user_id":{"visibility":"visible","label":"Test Tracking Login"},"secret_key":{"visibility":"password","label":"Test + Tracking Password"},"customer_number":{"visibility":"visible","label":"Test + Customer Number"},"hub_id":{"visibility":"visible","label":"Test Office Number"}}}},{"object":"CarrierType","type":"FastwayAccount","readable":"Fastway","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"API + Key"}}}},{"object":"CarrierType","type":"FedexAccount","readable":"FedEx","logo":null,"fields":{"credentials":{"account_number":{"visibility":"readonly","label":"FedEx + Account Number"},"meter_number":{"visibility":"invisible","label":"FedEx Production + Meter Number"},"key":{"visibility":"invisible","label":"FedEx Production Authentication + Key"},"password":{"visibility":"invisible","label":"FedEx Production Password"}},"test_credentials":{"account_number":{"visibility":"readonly","label":"FedEx + Account Number"},"meter_number":{"visibility":"invisible","label":"FedEx Test + Meter Number"},"key":{"visibility":"invisible","label":"FedEx Developer Test + Key"},"password":{"visibility":"invisible","label":"FedEx Test Password"}},"creation_fields":{"credential_information":{"account_number":{"label":"FedEx + Account #","visibility":"visible"}},"company_information":{"corporate_first_name":{"label":"Company + Contact First Name","visibility":"visible"},"corporate_last_name":{"label":"Company + Contact Last Name","visibility":"visible"},"corporate_job_title":{"label":"Company + Contact Job Title","visibility":"visible"},"corporate_company_name":{"label":"Company + Name","visibility":"visible"},"corporate_phone_number":{"label":"Company Phone","visibility":"visible"},"corporate_email_address":{"label":"Company + Email","visibility":"visible"},"corporate_streets":{"label":"Company Street","visibility":"visible"},"corporate_city":{"label":"Company + City","visibility":"visible"},"corporate_state":{"label":"Company State","visibility":"visible"},"corporate_postal_code":{"label":"Company + Postal Code","visibility":"visible"},"corporate_country_code":{"label":"Company + Country Code","visibility":"visible"}},"address_information":{"shipping_streets":{"label":"Shipping + Street","visibility":"visible"},"shipping_city":{"label":"Shipping City","visibility":"visible"},"shipping_state":{"label":"Shipping + State","visibility":"visible"},"shipping_postal_code":{"label":"Shipping Postal + Code ","visibility":"visible"},"shipping_country_code":{"label":"Shipping + Country Code","visibility":"visible"}}},"custom_workflow":true}},{"object":"CarrierType","type":"FedexCrossBorderAccount","readable":"FedEx + Cross Border","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"FedEx + Cross Border API key"},"origin_hub":{"visibility":"select","label":"FedEx + Cross Border Origin Hub"}},"test_credentials":{"api_key":{"visibility":"masked","label":"Test + FedEx Cross Border API key"},"origin_hub":{"visibility":"select","label":"Test + FedEx Cross Border Origin Hub"}}}},{"object":"CarrierType","type":"FedexMailviewAccount","readable":"FedEx + MailView","logo":null,"fields":{"credentials":{"customer_id":{"visibility":"visible","label":"Customer + Code"},"service_id":{"visibility":"password","label":"Service ID"},"fimspremium":{"visibility":"checkbox","label":"FIMS + Premium"},"fimsstandard":{"visibility":"checkbox","label":"FIMS Standard"},"mailviewpremium":{"visibility":"checkbox","label":"MailView + Premium"},"mailviewlight":{"visibility":"checkbox","label":"MailView Light"}}}},{"object":"CarrierType","type":"FedexSamedayCityAccount","readable":"FedEx + SameDay City","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"FedEx + SameDay City Account Number"},"api_key":{"visibility":"masked","label":"FedEx + SameDay City Shipment API Key"},"tracking_api_key":{"visibility":"masked","label":"FedEx + SameDay City Tracking API Key"}}}},{"object":"CarrierType","type":"FedexSmartpostAccount","readable":"FedEx + SmartPost","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"FedEx + SmartPost Account Number"},"hub_id":{"visibility":"visible","label":"FedEx + SmartPost HubID"},"meter_number":{"visibility":"visible","label":"Fedex SmartPost + Meter Number"},"key":{"visibility":"masked","label":"FedEx SmartPost Access + Key"},"password":{"visibility":"password","label":"SmartPost Access Key Password"}},"creation_fields":{"credential_information":{"account_number":{"label":"FedEx + SmartPost Account #","visibility":"visible"},"hub_id":{"label":"FedEx SmartPost + Hub ID","visibility":"visible"}},"company_information":{"corporate_first_name":{"label":"Company + Contact First Name","visibility":"visible"},"corporate_last_name":{"label":"Company + Contact Last Name","visibility":"visible"},"corporate_job_title":{"label":"Company + Contact Job Title","visibility":"visible"},"corporate_company_name":{"label":"Company + Name","visibility":"visible"},"corporate_phone_number":{"label":"Company Phone","visibility":"visible"},"corporate_email_address":{"label":"Company + Email","visibility":"visible"},"corporate_streets":{"label":"Company Street","visibility":"visible"},"corporate_city":{"label":"Company + City","visibility":"visible"},"corporate_state":{"label":"Company State","visibility":"visible"},"corporate_postal_code":{"label":"Company + Postal Code","visibility":"visible"},"corporate_country_code":{"label":"Company + Country Code","visibility":"visible"}},"address_information":{"shipping_streets":{"label":"Shipping + Street","visibility":"visible"},"shipping_city":{"label":"Shipping City","visibility":"visible"},"shipping_state":{"label":"Shipping + State","visibility":"visible"},"shipping_postal_code":{"label":"Shipping Postal + Code ","visibility":"visible"},"shipping_country_code":{"label":"Shipping + Country Code","visibility":"visible"}}},"custom_workflow":true}},{"object":"CarrierType","type":"GlobegisticsAccount","readable":"Globegistics","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Globegistics + Account Number"},"facility":{"visibility":"visible","label":"Globegistics + Facility"}}}},{"object":"CarrierType","type":"GsoAccount","readable":"GSO","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"GSO + Account Number"},"username":{"visibility":"visible","label":"Username"},"password":{"visibility":"password","label":"Password"}}}},{"object":"CarrierType","type":"HermesAccount","readable":"Evri","logo":null,"fields":{"credentials":{"username":{"visibility":"visible","label":"Evri + Username"},"password":{"visibility":"password","label":"Evri Password"},"client_id":{"visibility":"visible","label":"Evri + Client ID"},"client_name":{"visibility":"visible","label":"Evri Client name"},"group_id":{"visibility":"visible","label":"Evri + Group ID"},"client_licence":{"visibility":"masked","label":"Evri Client License"}}}},{"object":"CarrierType","type":"InterlinkExpressAccount","readable":"Interlink + Express","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Interlink + Express Account Number"},"username":{"visibility":"visible","label":"Interlink + Express Username"},"password":{"visibility":"password","label":"Interlink + Express Password"},"vat_number":{"visibility":"visible","label":"VAT Number"}}}},{"object":"CarrierType","type":"LasershipV2Account","readable":"LaserShipV2","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"LaserShipV2 + API Key"},"api_id":{"visibility":"visible","label":"LaserShipV2 API ID"},"facility":{"visibility":"visible","label":"LaserShipV2 + Customer Branch"},"cargo_claim_value":{"visibility":"visible","label":"LaserShipV2 + Cargo Insurance Claim Value (USD)"},"is_reseller":{"visibility":"checkbox","label":"3PL + Account? (check if yes)"},"injection_location_type":{"visibility":"visible","label":"Injection + Address Location Type (\"Business\" or \"Residence\")"},"injection_contact":{"visibility":"visible","label":"Injection + Address Contact"},"injection_organization":{"visibility":"visible","label":"Injection + Address Organization"},"injection_street1":{"visibility":"visible","label":"Injection + Address Street1"},"injection_street2":{"visibility":"visible","label":"Injection + Address Street2"},"injection_city":{"visibility":"visible","label":"Injection + Address City"},"injection_state":{"visibility":"visible","label":"Injection + Address State"},"injection_zip":{"visibility":"visible","label":"Injection + Address Postal Code"},"injection_country":{"visibility":"visible","label":"Injection + Address Country Code"},"injection_phone":{"visibility":"visible","label":"Injection + Address Phone"},"injection_phone_ext":{"visibility":"visible","label":"Injection + Address Phone Extension"},"injection_email":{"visibility":"visible","label":"Injection + Address Email"},"injection_instruction":{"visibility":"visible","label":"Injection + Address Instruction"},"injection_note":{"visibility":"visible","label":"Injection + Address Note"}}}},{"object":"CarrierType","type":"LoomisExpressAccount","readable":"Loomis + Express","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Loomis + Express Account Number"},"username":{"visibility":"visible","label":"Loomis + Express Username"},"password":{"visibility":"password","label":"Loomis Express + Password"}},"test_credentials":{"account_number":{"visibility":"visible","label":"Test + Loomis Express Account Number"},"username":{"visibility":"visible","label":"Test + Loomis Express Username"},"password":{"visibility":"password","label":"Test + Loomis Express Password"}}}},{"object":"CarrierType","type":"LsoAccount","readable":"LSO","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"LSO + Production Account Number"},"username":{"visibility":"visible","label":"LSO + Production Username"},"password":{"visibility":"password","label":"LSO Production + Password"}},"test_credentials":{"account_number":{"visibility":"visible","label":"LSO + Test Account Number"},"username":{"visibility":"visible","label":"LSO Test + Username"},"password":{"visibility":"password","label":"LSO Test Password"}}}},{"object":"CarrierType","type":"NewgisticsAccount","readable":"Newgistics","logo":null,"fields":{"credentials":{"client_id":{"visibility":"visible","label":"Client + ID"},"client_secret":{"visibility":"password","label":"Client Secret"},"client_facility_id":{"visibility":"visible","label":"Client + Facility ID"},"fulfiller_facility_id":{"visibility":"visible","label":"Newgistics + Facility ID"},"tracking_api_key":{"visibility":"masked","label":"Tracking + API Key"},"merchant_id":{"visibility":"visible","label":"Merchant ID"}},"test_credentials":{"client_id":{"visibility":"visible","label":"Client + ID"},"client_secret":{"visibility":"password","label":"Client Secret"},"client_facility_id":{"visibility":"visible","label":"Client + Facility ID"},"fulfiller_facility_id":{"visibility":"visible","label":"Newgistics + Facility ID"},"tracking_api_key":{"visibility":"masked","label":"Tracking + API Key"},"merchant_id":{"visibility":"visible","label":"Merchant ID"}}}},{"object":"CarrierType","type":"OmniParcelAccount","readable":"OmniParcel","logo":null,"fields":{"credentials":{"api_access_key":{"visibility":"masked","label":"API + Access Key"},"return_api_access_key":{"visibility":"masked","label":"Return + API Access Key"}},"test_credentials":{"api_access_key":{"visibility":"masked","label":"Test + API Access Key"},"return_api_access_key":{"visibility":"masked","label":"Test + Return API Access Key"}}}},{"object":"CarrierType","type":"OntracAccount","readable":"OnTrac","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"OnTrac + Account Number"},"password":{"visibility":"password","label":"OnTrac API Password"}},"test_credentials":{"account_number":{"visibility":"visible","label":"OnTrac + Test Account Number"},"password":{"visibility":"password","label":"OnTrac + Test API Password"}}}},{"object":"CarrierType","type":"OsmWorldwideAccount","readable":"OSM + Worldwide","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Account + Number"},"mailer_id":{"visibility":"visible","label":"Mailer ID"},"facility_code":{"visibility":"visible","label":"Facility + Code/Cost Center ID for manifesting (optional)"},"company_name":{"visibility":"visible","label":"Company + Name"},"aws_sftp_username":{"visibility":"visible","label":"SFTP Username"}}}},{"object":"CarrierType","type":"ParcelForceAccount","readable":"Parcel + Force","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Parcelforce + Contract Number"},"username":{"visibility":"visible","label":"expressLink + API Username"},"password":{"visibility":"password","label":"expressLink API + Password"},"department_id":{"visibility":"visible","label":"Department ID + - not required"}},"test_credentials":{"account_number":{"visibility":"visible","label":"Parcelforce + Test Contract Number"},"username":{"visibility":"visible","label":"Test expressLink + API Username"},"password":{"visibility":"password","label":"Test expressLink + API Password"},"department_id":{"visibility":"visible","label":"Test Department + ID - not required"}}}},{"object":"CarrierType","type":"ParcllAccount","readable":"Parcll","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"Parcll + API key"},"user_id":{"visibility":"visible","label":"Parcll User Id"},"origin_hub":{"visibility":"select","label":"Parcll + Origin Hub"}},"test_credentials":{"api_key":{"visibility":"masked","label":"Test + Parcll API key"},"user_id":{"visibility":"visible","label":"Test Parcll User + Id"},"origin_hub":{"visibility":"select","label":"Test Parcll Origin Hub"}}}},{"object":"CarrierType","type":"PassportGlobalAccount","readable":"Passport + Global","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"Passport + Global API key"},"email":{"visibility":"visible","label":"Customer email address + registered with Passport Global"},"name":{"visibility":"visible","label":"Customer + name registered with Passport Global"},"company_name":{"visibility":"visible","label":"Customer + company name registered with Passport Global"},"phone":{"visibility":"visible","label":"Customer + phone number registered with Passport Global (optional)"}},"test_credentials":{"api_key":{"visibility":"masked","label":"Passport + Global Test API key"},"email":{"visibility":"visible","label":"Customer email + address registered with Passport Global"},"name":{"visibility":"visible","label":"Customer + name registered with Passport Global"},"company_name":{"visibility":"visible","label":"Customer + company name registered with Passport Global"},"phone":{"visibility":"visible","label":"Customer + phone number registered with Passport Global (optional)"}}}},{"object":"CarrierType","type":"PurolatorAccount","readable":"Purolator","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Purolator + Account Number"},"api_key":{"visibility":"masked","label":"Production API + Key"},"password":{"visibility":"password","label":"Production API Key Password"}}}},{"object":"CarrierType","type":"RoyalMailAccount","readable":"Royal + Mail","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Royal + Mail Account Number"},"username":{"visibility":"visible","label":"OBA Email + Address"},"posting_location_number":{"visibility":"visible","label":"Posting + Location Number"}}}},{"object":"CarrierType","type":"RRDonnelleyAccount","readable":"ePost + Global","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"ePostGlobal + Account Number"}}}},{"object":"CarrierType","type":"SendleAccount","readable":"Sendle","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"Sendle + API Key"},"user_id":{"visibility":"visible","label":"Sendle User ID"}},"test_credentials":{"api_key":{"visibility":"masked","label":"Sendle + Sandbox API Key"},"user_id":{"visibility":"visible","label":"Sendle Sandbox + User ID"}}}},{"object":"CarrierType","type":"SfExpressAccount","readable":"SF + Express","logo":null,"fields":{"credentials":{"checkword":{"visibility":"visible","label":"SF + Express checkword"},"customer_code":{"visibility":"visible","label":"SF Express + customer code"},"customer_id":{"visibility":"visible","label":"SF Express + customer id"}},"test_credentials":{"checkword":{"visibility":"visible","label":"Test + SF Express checkword"},"customer_code":{"visibility":"visible","label":"Test + SF Express customer code"},"customer_id":{"visibility":"visible","label":"Test + SF Express customer id"}}}},{"object":"CarrierType","type":"SpeedeeAccount","readable":"Spee-Dee","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"Spee-Dee + Account Number"},"ftp_username":{"visibility":"visible","label":"Spee-Dee + FTP Username"},"ftp_password":{"visibility":"password","label":"Spee-Dee FTP + Password"}}}},{"object":"CarrierType","type":"StarTrackAccount","readable":"StarTrack","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"StarTrack + Account Number"},"api_key":{"visibility":"masked","label":"StarTrack API Key"},"api_secret":{"visibility":"password","label":"StarTrack + Secret Key"},"print_as_you_go":{"visibility":"checkbox","label":"Print as + you go"}}}},{"object":"CarrierType","type":"UdsAccount","readable":"UDS","logo":null,"fields":{"credentials":{"ftp_username":{"visibility":"visible","label":"FTP + Username"},"ftp_password":{"visibility":"password","label":"FTP Password"}}}},{"object":"CarrierType","type":"UpsAccount","readable":"UPS","logo":null,"fields":{"credentials":{"access_license_number":{"visibility":"invisible","label":"UPS + Access License Number"},"account_number":{"visibility":"readonly","label":"UPS + Account Number"},"user_id":{"visibility":"invisible","label":"UPS.com User + ID"},"password":{"visibility":"invisible","label":"UPS.com Password"}},"custom_workflow":true}},{"object":"CarrierType","type":"UpsIparcelAccount","readable":"UPS + i-Parcel","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"i-Parcel + API key"}}}},{"object":"CarrierType","type":"UpsMailInnovationsAccount","readable":"UPS + Mail Innovations","logo":null,"fields":{"credentials":{"account_number":{"visibility":"visible","label":"UPS + Shipper Number"},"user_id":{"visibility":"visible","label":"UPS.com User ID"},"password":{"visibility":"password","label":"UPS.com + Password"},"customer_id":{"visibility":"visible","label":"UPS customer id + (optional)"},"customer_guid":{"visibility":"visible","label":"UPS customer + GUID (optional)"}}}},{"object":"CarrierType","type":"UspsAccount","readable":"USPS","logo":null,"fields":{"credentials":{"company_name":{"visibility":"visible","label":"Account + Holder Name"},"address_street":{"visibility":"visible","label":"Street Address"},"address_city":{"visibility":"visible","label":"City"},"address_state":{"visibility":"visible","label":"State"},"address_zip":{"visibility":"visible","label":"ZIP + Code"},"phone":{"visibility":"visible","label":"Phone Number"},"email":{"visibility":"visible","label":"Email + Address"},"shipper_id":{"visibility":"visible","label":"Shipper Identifier + (Optional)"}}}},{"object":"CarrierType","type":"VehoAccount","readable":"Veho","logo":null,"fields":{"credentials":{"api_key":{"visibility":"masked","label":"Veho + Production API Key"}},"test_credentials":{"api_key":{"visibility":"masked","label":"Veho + Test API Key"}}}}]' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '31332' content-type: - application/json; charset=utf-8 etag: - - W/"c3771bc74c287842640d4cf80799bc73" + - W/"9f3a5d56ccb4183f80d82dd4769ddf9e" expires: - '0' pragma: @@ -112,21 +336,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b38dff030425002a5eb2 + - 62b330b76272e141e786b85f00161c24 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.098048' + - '0.033542' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_carrier_account_update.yaml b/tests/cassettes/test_carrier_account_update.yaml index 3c2beba0..fa2c73b1 100644 --- a/tests/cassettes/test_carrier_account_update.yaml +++ b/tests/cassettes/test_carrier_account_update.yaml @@ -12,7 +12,7 @@ interactions: - keep-alive Content-Length: - '165' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -24,21 +24,18 @@ interactions: uri: https://api.easypost.com/v2/carrier_accounts response: body: - string: !!binary | - H4sIAAAAAAAAA4RQPWvDMBD9K0GzA7bi2I630L0U2i5dzEk6F4WrZCQ5YIL/e0+YNmQKmt6794Vu - whrRCw3D8QRlVzVNfWzKuhlN13UnDUbp9iBHhqIQXl1QJ5a/QAgWw1lrP7vEl7RMyPznFO+cJu+Y - HIEiMgoICc0A2S9LKfflYV+1H1L2VdvX3Rc75sk81RiMOtgpWe9y4dv77t4YcMSATnOrm4kyAQYU - 4aZkBflv/3ccLZKJor/lbQZdsrw0Q9gCBzf/KAyZudpolSWbFk7Kod7RkuNAIT3O2L1urkJcgebc - fK7yE+u6Fs+a/rX8oxjT8CDPq9dfAAAA//8DAJ1yASSwAQAA + string: '{"id":"ca_9767d10a8d0348d79d2d27156766acd2","object":"CarrierAccount","type":"UpsAccount","clone":false,"created_at":"2022-05-04T20:25:36Z","updated_at":"2022-05-04T20:25:36Z","description":"UPS + Account","reference":null,"readable":"UPS","logo":null,"fields":{"credentials":{"account_number":{"visibility":"readonly","label":"UPS + Account Number","value":"A1A1A1"}}},"credentials":{"account_number":"A1A1A1"},"test_credentials":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '432' content-type: - application/json; charset=utf-8 etag: - - W/"21feb1670a443878b20424c5ea2f75fb" + - W/"188e1a044fcef3c378787e2d6475b098" expires: - '0' pragma: @@ -51,28 +48,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b38cff030423002a5e3b + - 62b330b76272e140e786b85d00161b9a x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.155227' + - '0.119443' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -89,7 +83,7 @@ interactions: - keep-alive Content-Length: - '61' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -98,24 +92,21 @@ interactions: x-client-user-agent: - suppressed method: PUT - uri: https://api.easypost.com/v2/carrier_accounts/ca_59a08166456046fd8889cadbc732ffd8 + uri: https://api.easypost.com/v2/carrier_accounts/ca_9767d10a8d0348d79d2d27156766acd2 response: body: - string: !!binary | - H4sIAAAAAAAAA4RQy2rDMBD8FaOzA7bi2I5voeeWQttLL2YlrYuKIhk9Aib437uq+zwFnWZ2dma0 - V6YVG5iE8XCEqq/btjm0VdNOqu/7owQlZLfnE0FWMifeUUaS34H3Gv1JSpdspElcZiT+ZQ6/nDTO - EjmBCUjII0RUI+R9XnG+q/a7unvmfKi7oelfaSPN6qZGYZBez1E7S6L7pZApRHcu/vIl8zihRysp - 3yZjMgEKhPks+fhECuPe3Pdw0mhUYMM1t1Roo6bOGcL2mdGms0CfmYsOWmij40JO2dRZs2Q7EGg2 - 8+LrBMXDtlWyC5iUk091fmxd1/JW0o+Wboshjv/kufX6AQAA//8DAAsRFDK6AQAA + string: '{"id":"ca_9767d10a8d0348d79d2d27156766acd2","object":"CarrierAccount","type":"UpsAccount","clone":false,"created_at":"2022-05-04T20:25:36Z","updated_at":"2022-05-04T20:25:36Z","description":"My + custom description","reference":null,"readable":"UPS","logo":null,"fields":{"credentials":{"account_number":{"visibility":"readonly","label":"UPS + Account Number","value":"A1A1A1"}}},"credentials":{"account_number":"A1A1A1"},"test_credentials":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '442' content-type: - application/json; charset=utf-8 etag: - - W/"8ae4b8e0f70bfaa9839e422d6c68ca26" + - W/"f827ea65c01c3d9d5961eec70590f1c0" expires: - '0' pragma: @@ -133,21 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b38cff030423002a5e4f + - 62b330b76272e140e786b85d00161ba6 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.128002' + - '0.211310' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -164,8 +154,6 @@ interactions: - keep-alive Content-Length: - '0' - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -173,16 +161,15 @@ interactions: x-client-user-agent: - suppressed method: DELETE - uri: https://api.easypost.com/v2/carrier_accounts/ca_59a08166456046fd8889cadbc732ffd8 + uri: https://api.easypost.com/v2/carrier_accounts/ca_9767d10a8d0348d79d2d27156766acd2 response: body: - string: !!binary | - H4sIAAAAAAAAA6quBQAAAP//AwBDv6ajAgAAAA== + string: '{}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2' content-type: - application/json; charset=utf-8 etag: @@ -204,21 +191,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b38cff030423002a5e60 + - 62b330b76272e140e786b85d00161bcb x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.117563' + - '0.111826' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_info_create.yaml b/tests/cassettes/test_customs_info_create.yaml index f277e4e5..1e554a19 100644 --- a/tests/cassettes/test_customs_info_create.yaml +++ b/tests/cassettes/test_customs_info_create.yaml @@ -14,7 +14,7 @@ interactions: - keep-alive Content-Length: - '374' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -26,28 +26,22 @@ interactions: uri: https://api.easypost.com/v2/customs_infos response: body: - string: !!binary | - H4sIAAAAAAAAA6xRy27bMBD8FYOnBnAMkbKsxzFFDrm0B7eXFgVBkUubhUSqK9KpEeTfu6ytpAEK - 9NLjzuyQszNPzBnWMT1H522QRuu2NpaXza7dtmXVN9xWvWr6HRgo+pKtWei/g46keZ/mGMb5gXQE - awQVwUiVKVEIcVuUt7z+JETH664qvtBOmsw/d3TwEXycJfycBuVVdMHT9p9MPE9A0Aioj8obN0Nm - L26kBozOnlkXMcErPLuDByTVPsIJVneYhqwCGORkNeEfPt7fP6zKYlPW79QNUT54aWBwJ8CzDNPV - B0JM6IlGmCM6nWGpwzhmZ6zzaRjeclez9Fr+bwwmT5EWaDKgB4XXEy/Sxa+LMNJ7X59e+yFEKrtT - llvRcsW3275uqZgGKmt5UzaitX/rh3T/sR8Ds0a3xLF/BIir+eiQrl+zI5Wj0FkrfRr733nvqm0p - ePaF7uByVslHpH7Y5z2hP5LydBrNYs1Oakg5HlFuCuIewR2OZIXzTZHrz9FdUnob46h8skpTMfnH - JUdE8Pq8zKD1S8YTOp/PzLUFQ59LZ6g+Z92if/72/AsAAP//AwC7Q5j4GQMAAA== + string: '{"id":"cstinfo_24308ef6c92a416e99b95d1c5cdd0892","object":"CustomsInfo","created_at":"2022-05-04T20:25:38Z","updated_at":"2022-05-04T20:25:38Z","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_396ee8b0b29f4ae0bfe1d191d83e89c8","object":"CustomsItem","created_at":"2022-05-04T20:25:38Z","updated_at":"2022-05-04T20:25:38Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '793' content-type: - application/json; charset=utf-8 etag: - - W/"1781fe87a130748c5ba17089affc0c8a" + - W/"42e78f385696231427deaeba63cce9cd" expires: - '0' location: - - /api/v2/customs_infos/cstinfo_dcc97df138694935b81f5ba8b6ede0b3 + - /api/v2/customs_infos/cstinfo_24308ef6c92a416e99b95d1c5cdd0892 pragma: - no-cache referrer-policy: @@ -63,21 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b38eff030426002a5ec3 + - 62b330bb6272e141e786b86000161c43 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.033016' + - '0.169602' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_info_retrieve.yaml b/tests/cassettes/test_customs_info_retrieve.yaml index 43f50c34..15809a2e 100644 --- a/tests/cassettes/test_customs_info_retrieve.yaml +++ b/tests/cassettes/test_customs_info_retrieve.yaml @@ -14,7 +14,7 @@ interactions: - keep-alive Content-Length: - '374' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -26,28 +26,22 @@ interactions: uri: https://api.easypost.com/v2/customs_infos response: body: - string: !!binary | - H4sIAAAAAAAAA6xRy27bMBD8FYOnBnAMiZIf0jFFDrm0B7eXFgVBLZc2C4lUV6RTI8i/d1lbSQMU - 6KXHndkhZ2eehDOiFTBF521QiJ3EruzqutzVHcCukUVRrU0pcVs3phJLEbrvCJE179MUwzA9sI5h - INQRjdKZkoWUt0V1W24/SdmW23ZdfOGdNJp/7kDwEX2cFP4ce+11dMHz9p9MPI/I0IAER+2NmzCz - FzcKkKKzZ9FGSvgKT+7gkVi1j3jCxR2lPqsQezVaYPzDx/v7h0VVrKrtO33DlA9eGezdCemswnj1 - QRgTeaYJp0gOMqwgDEN2Jlqf+v4tdzXLr+X/hmDyFHmBJ4PQa7qeeJHOfl3Egd/7+vTaDyMKOmw2 - pZVmU9h60+06aOxGNygNItim/ls/rPuP/RicgNwcx/4RMS6moyO+fimOXI4mZ63yaeh+571Z15Us - sy9yB5ezSj4S9yM+7xn9kbTn03iWS3HSfcrxyGpVMPeI7nBkK2W5KnL9ObpLSm9jHLRPVgMXk3+c - cyRCD+d5RoCXjEdyPp+ZawuGP1fOcH3Ouln//O35FwAAAP//AwBBonAVGQMAAA== + string: '{"id":"cstinfo_dceb60fc46af4b8bbdb79ba66dce4cc0","object":"CustomsInfo","created_at":"2022-05-04T20:25:38Z","updated_at":"2022-05-04T20:25:38Z","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_fce78615c885488aa31ed5b2eef5de17","object":"CustomsItem","created_at":"2022-05-04T20:25:38Z","updated_at":"2022-05-04T20:25:38Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '793' content-type: - application/json; charset=utf-8 etag: - - W/"4de649258982947f90672d86d70bdf60" + - W/"afb6038d3ac7c8ff3aaf2fabb18636bd" expires: - '0' location: - - /api/v2/customs_infos/cstinfo_eeb2eb1b44184bcc8920035d12e749d3 + - /api/v2/customs_infos/cstinfo_dceb60fc46af4b8bbdb79ba66dce4cc0 pragma: - no-cache referrer-policy: @@ -63,21 +57,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5076233b38eff03043e002a5ece + - 62b330ba6272e142e786b86100161c6e x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.039725' + - '0.034782' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -92,8 +85,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -101,27 +92,21 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/customs_infos/cstinfo_eeb2eb1b44184bcc8920035d12e749d3 + uri: https://api.easypost.com/v2/customs_infos/cstinfo_dceb60fc46af4b8bbdb79ba66dce4cc0 response: body: - string: !!binary | - H4sIAAAAAAAAA6xRy27bMBD8FYOnBnAMiZIf0jFFDrm0B7eXFgVBLZc2C4lUV6RTI8i/d1lbSQMU - 6KXHndkhZ2eehDOiFTBF521QiJ3EruzqutzVHcCukUVRrU0pcVs3phJLEbrvCJE179MUwzA9sI5h - INQRjdKZkoWUt0V1W24/SdmW23ZdfOGdNJp/7kDwEX2cFP4ce+11dMHz9p9MPI/I0IAER+2NmzCz - FzcKkKKzZ9FGSvgKT+7gkVi1j3jCxR2lPqsQezVaYPzDx/v7h0VVrKrtO33DlA9eGezdCemswnj1 - QRgTeaYJp0gOMqwgDEN2Jlqf+v4tdzXLr+X/hmDyFHmBJ4PQa7qeeJHOfl3Egd/7+vTaDyMKOmw2 - pZVmU9h60+06aOxGNygNItim/ls/rPuP/RicgNwcx/4RMS6moyO+fimOXI4mZ63yaeh+571Z15Us - sy9yB5ezSj4S9yM+7xn9kbTn03iWS3HSfcrxyGpVMPeI7nBkK2W5KnL9ObpLSm9jHLRPVgMXk3+c - cyRCD+d5RoCXjEdyPp+ZawuGP1fOcH3Ouln//O35FwAAAP//AwBBonAVGQMAAA== + string: '{"id":"cstinfo_dceb60fc46af4b8bbdb79ba66dce4cc0","object":"CustomsInfo","created_at":"2022-05-04T20:25:38Z","updated_at":"2022-05-04T20:25:38Z","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_fce78615c885488aa31ed5b2eef5de17","object":"CustomsItem","created_at":"2022-05-04T20:25:38Z","updated_at":"2022-05-04T20:25:38Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '793' content-type: - application/json; charset=utf-8 etag: - - W/"4de649258982947f90672d86d70bdf60" + - W/"afb6038d3ac7c8ff3aaf2fabb18636bd" expires: - '0' pragma: @@ -139,21 +124,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5076233b38eff03043e002a5ed6 + - 62b330ba6272e142e786b86100161c7d x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb9nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.020560' + - '0.023338' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_item_create.yaml b/tests/cassettes/test_customs_item_create.yaml index 313a8ee6..2bffa621 100644 --- a/tests/cassettes/test_customs_item_create.yaml +++ b/tests/cassettes/test_customs_item_create.yaml @@ -11,7 +11,7 @@ interactions: - keep-alive Content-Length: - '145' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -23,25 +23,21 @@ interactions: uri: https://api.easypost.com/v2/customs_items response: body: - string: !!binary | - H4sIAAAAAAAAA4RPu07EMBD8FeQ6d4qdF0lLRX3Q0FiOvb4YxXaw15xOiH9nA0pNt7szszPzxZxh - E9MZHYKXpuG8h7Z/tGBbwcfZjn0/dH0t5pHbeWQVi/M7aCTNU8kYfX4mHZ11AoVgpNohUQtxqpsT - H16EmPgwdfyNOGUz/3IMZJ3chi4GIl1uAPiQF5cwE7hkiSo5a2UofoZEjL5rG8H3XMldXZA6loDp - Tsjrha4fRQWqRruo2KdaC+zWzbkm7AbuulAUzs81FYiGsFDWtWL+d2YIGYnnVShWaSxpd/xj6JIS - BH0/dtA6HPOWXNhr6ujpEZlLZ4BSWHfov38AAAD//wMAei6jAncBAAA= + string: '{"id":"cstitem_018e5efc1eb244b7aa0df5e811cad548","object":"CustomsItem","created_at":"2022-05-04T20:25:38Z","updated_at":"2022-05-04T20:25:38Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '375' content-type: - application/json; charset=utf-8 etag: - - W/"e693d3e479dcfb50cf923c043468cfcf" + - W/"a27bf166e238532131589ce869249dcb" expires: - '0' location: - - /api/v2/customs_items/cstitem_d3116e468fef4219bf96675602b91fb9 + - /api/v2/customs_items/cstitem_018e5efc1eb244b7aa0df5e811cad548 pragma: - no-cache referrer-policy: @@ -57,21 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b38eff03043f002a5ee5 + - 62b330b96272e142e786b86200161c94 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.025237' + - '0.040097' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_customs_item_retrieve.yaml b/tests/cassettes/test_customs_item_retrieve.yaml index 941c33d2..e4bde901 100644 --- a/tests/cassettes/test_customs_item_retrieve.yaml +++ b/tests/cassettes/test_customs_item_retrieve.yaml @@ -11,7 +11,7 @@ interactions: - keep-alive Content-Length: - '145' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -23,25 +23,21 @@ interactions: uri: https://api.easypost.com/v2/customs_items response: body: - string: !!binary | - H4sIAAAAAAAAA4RPMW7DMAz8SqHZCSzZshOvnTqnXboIskTHCizJlagGQdG/l27huRvJu+PdfTFn - 2cBMRofgleVacg5anGTbnuV4GsW566emlaJruJWsYnG8gUHSPJeM0ecX0tHZJNAIVukNErUQh7o5 - 8P5ViIH3g+TvxCmr/ZdjIZvkVnQxEOlyB8CnPLuEmcA5K9TJTZMKxY+QiNHJthF8y5Xc1QVlYgmY - HoS8Xej6UXSgarSLin3qpcBm3Rxrwu7grjNF4fxYU4FoCQtlWSrmf2eGkJF4XocyaYMlbY5/DFNS - gmAe+w7GhH1ekwtbTRM9PSJz5SxQisnt+u8fAAAA//8DAIQXsDt3AQAA + string: '{"id":"cstitem_7242129c27bd40d09eaba1758d8add1f","object":"CustomsItem","created_at":"2022-05-04T20:25:38Z","updated_at":"2022-05-04T20:25:38Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '375' content-type: - application/json; charset=utf-8 etag: - - W/"a6ae88d4838e74e263ef345948fab7e0" + - W/"fe92de26d05664ebf9f11ec5fd28c542" expires: - '0' location: - - /api/v2/customs_items/cstitem_d1a511ea2854495b8b2967f3452631d5 + - /api/v2/customs_items/cstitem_7242129c27bd40d09eaba1758d8add1f pragma: - no-cache referrer-policy: @@ -57,21 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b38fff030440002a5ef0 + - 62b330bd6272e142e786b86300161cb3 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.025166' + - '0.025360' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -86,8 +81,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -95,24 +88,20 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/customs_items/cstitem_d1a511ea2854495b8b2967f3452631d5 + uri: https://api.easypost.com/v2/customs_items/cstitem_7242129c27bd40d09eaba1758d8add1f response: body: - string: !!binary | - H4sIAAAAAAAAA4RPMW7DMAz8SqHZCSzZshOvnTqnXboIskTHCizJlagGQdG/l27huRvJu+PdfTFn - 2cBMRofgleVacg5anGTbnuV4GsW566emlaJruJWsYnG8gUHSPJeM0ecX0tHZJNAIVukNErUQh7o5 - 8P5ViIH3g+TvxCmr/ZdjIZvkVnQxEOlyB8CnPLuEmcA5K9TJTZMKxY+QiNHJthF8y5Xc1QVlYgmY - HoS8Xej6UXSgarSLin3qpcBm3Rxrwu7grjNF4fxYU4FoCQtlWSrmf2eGkJF4XocyaYMlbY5/DFNS - gmAe+w7GhH1ekwtbTRM9PSJz5SxQisnt+u8fAAAA//8DAIQXsDt3AQAA + string: '{"id":"cstitem_7242129c27bd40d09eaba1758d8add1f","object":"CustomsItem","created_at":"2022-05-04T20:25:38Z","updated_at":"2022-05-04T20:25:38Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '375' content-type: - application/json; charset=utf-8 etag: - - W/"a6ae88d4838e74e263ef345948fab7e0" + - W/"fe92de26d05664ebf9f11ec5fd28c542" expires: - '0' pragma: @@ -125,26 +114,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b38fff030440002a5eff + - 62b330bd6272e142e786b86300161cba x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.019285' + - '0.020427' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_error.yaml b/tests/cassettes/test_error.yaml index 42462e34..3b261eba 100644 --- a/tests/cassettes/test_error.yaml +++ b/tests/cassettes/test_error.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive Content-Length: - '16' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -22,16 +22,14 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA4TNQQrCMBCF4asMsy49QHcFBQu2lFbdiJSxGWugSeok6iL07kYv4PLBz/cisogT - LCKOTjEW2O+qtt42h7xqTuW+2gxt2ZV1jxka9p6mb3O0dJ0ZgoNRmAKDv+vFsA0ZOMvgBIwThoWE - DAcWD29OW9sXzVrlyfq9eizOEYMbSClJeJI7fjy1sAKyCoz2XtspxzWLeBNn/oeXdf0AAAD//wMA - SeCRtdMAAAA= + string: '{"error":{"code":"SHIPMENT.INVALID_PARAMS","message":"Unable to create + shipment, one or more parameters were invalid.","errors":[{"to_address":"Required + and missing."},{"from_address":"Required and missing."}]}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '211' content-type: - application/json; charset=utf-8 expires: @@ -51,21 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b38fff030441002a5f0b + - 62b330ba6272e143e786b86400161cd7 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb9nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.019727' + - '0.016675' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_all.yaml b/tests/cassettes/test_event_all.yaml index 793fdeeb..6725e887 100644 --- a/tests/cassettes/test_event_all.yaml +++ b/tests/cassettes/test_event_all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,22 +18,16 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA7zSy2rDMBAF0H/ROjV6jjTe9w+6ailG0owbF/LAlrMJ+ffKaRvoqqUE76TLHUkH - dBZ84n2ZRPtyFsRTHodjGQ570YoUS94285FiYRIbMVAN+VQ6ZSQko0IEK5XiHLjX0pDU0ftkPNTu - PPHYXQeuK2eNgwgJIaOVFFAZBBVN9gkl9rpOTCWWuT5DHHlPw/6tRnnk5eoulhprqfWDNA/KP2nd - Kt9aaALCc+3tDsS1UXgqdXdI75yXiccFJi6bv7u0C4QxfrsSUPJkM1vNIbuwkss13vl7umQfmfrl - oZ8ujMTQW+UYUAPJlVyq0eG+LmbKytmbiyxJDDrYZIhSXsklmxr92/V1+E8XgfV4+4doq8tgdi70 - NbfruAw2AcLvrteN2Map2x3GWirjzJcPAAAA//8DAHSHX0tUBAAA + string: '{"events":[{"description":"tracker.updated","id":"evt_5b81509ecbe811ec8b8e5b1737fe969b","user_id":"user_54356a6b96c940d8913961a3c7b909f2","status":"pending","created_at":"2022-05-04T20:25:36.969Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_5ad73c1ccbe811ec9fae033031f69f94","user_id":"user_54356a6b96c940d8913961a3c7b909f2","status":"pending","created_at":"2022-05-04T20:25:35.854Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_59f8bdb6cbe811ec840d1bbb9d54ec42","user_id":"user_54356a6b96c940d8913961a3c7b909f2","status":"pending","created_at":"2022-05-04T20:25:34.396Z","mode":"test","object":"Event"},{"description":"tracker.updated","id":"evt_59575700cbe811eca4802789fb5111c9","user_id":"user_54356a6b96c940d8913961a3c7b909f2","status":"pending","created_at":"2022-05-04T20:25:33.339Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_5785817ccbe811ecadf031720a1d8ffc","user_id":"user_54356a6b96c940d8913961a3c7b909f2","status":"pending","created_at":"2022-05-04T20:25:30.286Z","mode":"test","object":"Event"}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '1112' content-type: - application/json; charset=utf-8 etag: - - W/"f03929a3af58b881f8a595bb345f9e6d" + - W/"93c72334fc893efb178789bd0dbfca39" expires: - '0' pragma: @@ -48,28 +40,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5076233b38fff030442002a5f1d + - 62b330ba6272e143e786b87c00161cf7 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.178327' + - '0.213166' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_event_retrieve.yaml b/tests/cassettes/test_event_retrieve.yaml index abd8de2d..eeaa7e83 100644 --- a/tests/cassettes/test_event_retrieve.yaml +++ b/tests/cassettes/test_event_retrieve.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,22 +18,16 @@ interactions: uri: https://api.easypost.com/v2/events?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA7zSy2rDMBAF0H/ROjV6jjTe9w+6ailG0owbF/LAlrMJ+ffKaRvoqqUE76TLHUkH - dBZ84n2ZRPtyFsRTHodjGQ570YoUS94285FiYRIbMVAN+VQ6ZSQko0IEK5XiHLjX0pDU0ftkPNTu - PPHYXQeuK2eNgwgJIaOVFFAZBBVN9gkl9rpOTCWWuT5DHHlPw/6tRnnk5eoulhprqfWDNA/KP2nd - Kt9aaALCc+3tDsS1UXgqdXdI75yXiccFJi6bv7u0C4QxfrsSUPJkM1vNIbuwkss13vl7umQfmfrl - oZ8ujMTQW+UYUAPJlVyq0eG+LmbKytmbiyxJDDrYZIhSXsklmxr92/V1+E8XgfV4+4doq8tgdi70 - NbfruAw2AcLvrteN2Map2x3GWirjzJcPAAAA//8DAHSHX0tUBAAA + string: '{"events":[{"description":"tracker.updated","id":"evt_5b81509ecbe811ec8b8e5b1737fe969b","user_id":"user_54356a6b96c940d8913961a3c7b909f2","status":"pending","created_at":"2022-05-04T20:25:36.969Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_5ad73c1ccbe811ec9fae033031f69f94","user_id":"user_54356a6b96c940d8913961a3c7b909f2","status":"pending","created_at":"2022-05-04T20:25:35.854Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_59f8bdb6cbe811ec840d1bbb9d54ec42","user_id":"user_54356a6b96c940d8913961a3c7b909f2","status":"pending","created_at":"2022-05-04T20:25:34.396Z","mode":"test","object":"Event"},{"description":"tracker.updated","id":"evt_59575700cbe811eca4802789fb5111c9","user_id":"user_54356a6b96c940d8913961a3c7b909f2","status":"pending","created_at":"2022-05-04T20:25:33.339Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_5785817ccbe811ecadf031720a1d8ffc","user_id":"user_54356a6b96c940d8913961a3c7b909f2","status":"pending","created_at":"2022-05-04T20:25:30.286Z","mode":"test","object":"Event"}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '1112' content-type: - application/json; charset=utf-8 etag: - - W/"f03929a3af58b881f8a595bb345f9e6d" + - W/"93c72334fc893efb178789bd0dbfca39" expires: - '0' pragma: @@ -53,21 +45,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b390ff030443002a5f37 + - 62b330be6272e143e786b87d00161d22 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.172613' + - '0.237216' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 cff783c5..e047c65d 100644 --- a/tests/cassettes/test_insurance__all.yaml +++ b/tests/cassettes/test_insurance__all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,61 +18,84 @@ interactions: uri: https://api.easypost.com/v2/insurances?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA+xca1Pbuhb9Kx5/vUD19CPf0gROy20SIOZQcqeTkS2ZGBw7YzstpMN/v1t2EgKF - Eh6hFJLpDLEs67G0tLfWquGnGSX5OBNJoHKz9r+fZiTNmi7r09BxmGvb0g8xs8LAITR0A1tZvlKW - xYm5Yab+qQoKqP951gYUDlOpoKhQeQFXmQpVpvSdWjKO4w0zL0Qxhq7MkUpklJxAHTFMx4luBiO0 - hfQHCkdZ+j2SKoNiJfKLUVo2Nyvt62FWDRZpX0iZqRwanQ5fyKyPYfCW4lxYDGGsAjewqAhwaPlI - IInV4vDr0+c3zCBTolCyL3QxQYRsIrqJbY+QGrZrnP8HoVo5vPFILlcxEUMNx2698V+ju1c/OOgc - 6X7S4UgkF3Bju9493ut0PVNDkylVYCikjmN4naN2d7vdNLqeUd/zDILmVchs7kFU6Da69baxc1Bv - Nz53Gx2zwlh32qjDxSQawVeXYWRvYstGZe+Ad6afPOxqUAdpoqvz+QcK1VBE8ayf62saiCyLYA1C - EURxOYKqFmAIa5MUkYAHi2ysNsxQwWKJuF+I84UlK8d3o+y7yqIwCkQRpUm5kjBupn/m4yAoF7dq - UWVZmmmqftswpSpgkHnVxKW+jiNo52LZx36aMfRXjPXkqL1l25zjDTNOk5Np4SYmZIu6lmsDz6Kh - 6k8qpOpDGG0gPnxJ8349OVExbJ5L+MCEs3R4Fx9DpJia85FbpOJjYPsysNZ8XPNxBXzMB9FoCBgs - BsxMBGc6sE7ZWWRnfeljRyIXU8YZs5QvuEuRwIoojpGU9iI7venzN5ehbBciej+oil2GENb/XGph - +DBkc8s2F1NABqhD3sijYl7cr9CAu9PritlL7IXeEttA18mjkwSq+HOe/FDRyaCYXcFk+rOF68uK - uHe1tAguXI36vsMsyC6BogIzHiLfxY5DEXdc4jshpVdsLcm+113Ebc4DSMPX0Ya7zQoWAB1YJE70 - qPYytdmdDsH4nISp0dXfitSYtixVHmTRSFP41/T7IOz1D024ORbkFyzScaaz/GxWs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nOe1xO9avIxy/G2PNErLNae6LKeKHVXj9n78EQZ - ewEk34MnqrFcOZBv2hPF+CUQfGueqFbofz1uf9YTRX8/gH/CE4XTI329wK090bUnugJPdE76Vb3A - ekjbzd1Ba7Jzeux9POs0D07bk2PeOj3Gx5P6RbtZnxwPj887/+ycmQ/0RKda8pX8pYBKezq/1Z7z - Ono3D0TeH6aZqnq+/D8AAAD//wMArZM9MgZbAAA= + string: '{"insurances":[{"id":"ins_89a6465da6d641d1a171c70a88ceeede","object":"Insurance","mode":"test","reference":null,"status":"pending","amount":"100.00000","provider":"easypost","provider_id":null,"to_address":{"id":"adr_5f0b3a30cbe811eca019ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:42+00:00","updated_at":"2022-05-04T20:25:42+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"from_address":{"id":"adr_5f0f6e5fcbe811eca842ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:42+00:00","updated_at":"2022-05-04T20:25:42+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"shipment_id":null,"tracker":{"id":"trk_685bd0ee1b80488aa84bd623a7f9f724","object":"Tracker","mode":"test","tracking_code":"9400100109361117768754","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:25:42Z","updated_at":"2022-05-04T20:25:42Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:25:42Z","shipment_id":"shp_8c8ec6d31ee8420792bb9fa84c31e83e","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:25:42Z","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":"2022-04-05T09:02:42Z","source":"USPS","carrier_code":null,"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":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"finalized":true,"is_return":false,"public_url":"https://track.easypost.com/djE6dHJrXzY4NWJkMGVlMWI4MDQ4OGFhODRiZDYyM2E3ZjlmNzI0","fees":[]},"tracking_code":"9400100109361117768754","fee":{"object":"Fee","type":"InsuranceFee","amount":"1.00000","charged":true,"refunded":false},"messages":[],"created_at":"2022-05-04T20:25:42Z","updated_at":"2022-05-04T20:25:42Z"},{"id":"ins_ca24ee7507fd46bc85c00ae613edb81c","object":"Insurance","mode":"test","reference":null,"status":"pending","amount":"100.00000","provider":"easypost","provider_id":null,"to_address":{"id":"adr_5e0dfad4cbe811ec8770ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:41+00:00","updated_at":"2022-05-04T20:25:41+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"from_address":{"id":"adr_5e12708dcbe811ec9fcdac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:41+00:00","updated_at":"2022-05-04T20:25:41+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"shipment_id":null,"tracker":{"id":"trk_ad34c1874ec0472c9a9c4ae325f9aeb0","object":"Tracker","mode":"test","tracking_code":"9400100109361117768747","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:25:41Z","updated_at":"2022-05-04T20:25:41Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:25:41Z","shipment_id":"shp_f2247295fb114f9796498dae07ad971c","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:25:41Z","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":"2022-04-05T09:02:41Z","source":"USPS","carrier_code":null,"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":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"finalized":true,"is_return":false,"public_url":"https://track.easypost.com/djE6dHJrX2FkMzRjMTg3NGVjMDQ3MmM5YTljNGFlMzI1ZjlhZWIw","fees":[]},"tracking_code":"9400100109361117768747","fee":{"object":"Fee","type":"InsuranceFee","amount":"1.00000","charged":true,"refunded":false},"messages":[],"created_at":"2022-05-04T20:25:41Z","updated_at":"2022-05-04T20:25:41Z"},{"id":"ins_a648cd91cfe64a2aa7d0447b148b3067","object":"Insurance","mode":"test","reference":null,"status":"purchased","amount":"100.00000","provider":"easypost","provider_id":null,"to_address":{"id":"adr_1b83066dcbe811ec8eebac1f6bc72124","object":"Address","created_at":"2022-05-04T20:23:49+00:00","updated_at":"2022-05-04T20:23:49+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"from_address":{"id":"adr_1b84df82cbe811ecb62eac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:23:49+00:00","updated_at":"2022-05-04T20:23:49+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipment_id":"shp_4acd0cdfa6c5424ab6fa28bc5f9798c8","tracker":{"id":"trk_c93e8787cd9e420684a4d9f04390ca51","object":"Tracker","mode":"test","tracking_code":"9400100109361117768556","status":"in_transit","status_detail":"status_update","created_at":"2022-05-04T20:23:50Z","updated_at":"2022-05-04T20:24:50Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:24:50Z","shipment_id":"shp_4acd0cdfa6c5424ab6fa28bc5f9798c8","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:24:50Z","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":"2022-04-05T09:01:50Z","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":"2022-04-05T19:06:50Z","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":"2022-04-06T20:42:50Z","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":"2022-04-06T23:33:50Z","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":"2022-04-07T05:13:50Z","source":"USPS","carrier_code":null,"tracking_location":{"object":"TrackingLocation","city":"CHARLESTON","state":"SC","country":null,"zip":"29407"}}],"carrier_detail":{"object":"CarrierDetail","service":"First-Class + Package Service","container_type":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"NORTH + HOUSTON","state":"TX","country":null,"zip":"77315"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"finalized":true,"is_return":false,"public_url":"https://track.easypost.com/djE6dHJrX2M5M2U4Nzg3Y2Q5ZTQyMDY4NGE0ZDlmMDQzOTBjYTUx","fees":[]},"tracking_code":"9400100109361117768556","fee":{"object":"Fee","type":"InsuranceFee","amount":"1.00000","charged":true,"refunded":false},"messages":[],"created_at":"2022-05-04T20:23:50Z","updated_at":"2022-05-04T20:23:50Z"},{"id":"ins_983925e8ce6f40c4a7f86cd8d1720f66","object":"Insurance","mode":"test","reference":null,"status":"purchased","amount":"100.00000","provider":"easypost","provider_id":null,"to_address":{"id":"adr_c1308c5dc1c411ecaeafac1f6bc7bdc6","object":"Address","created_at":"2022-04-21T22:45:34+00:00","updated_at":"2022-04-21T22:45:34+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"from_address":{"id":"adr_c132f0a9c1c411ecbd4aac1f6b0a0d1e","object":"Address","created_at":"2022-04-21T22:45:34+00:00","updated_at":"2022-04-21T22:45:34+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipment_id":"shp_9e5070ef068b46329028b5f7f2fcaa71","tracker":{"id":"trk_9178be1a68294590b40e964a816f8aa9","object":"Tracker","mode":"test","tracking_code":"9400100109361116088082","status":"delivered","status_detail":"arrived_at_destination","created_at":"2022-04-21T22:45:35Z","updated_at":"2022-04-21T22:48:35Z","signed_by":"John + Tester","weight":null,"est_delivery_date":"2022-04-21T22:48:35Z","shipment_id":"shp_9e5070ef068b46329028b5f7f2fcaa71","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-03-21T22:48:35Z","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":"2022-03-22T11:25:35Z","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":"2022-03-22T21:30:35Z","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":"2022-03-23T23:06:35Z","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":"2022-03-24T01:57:35Z","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":"2022-03-24T07:37:35Z","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":"2022-03-24T07:47:35Z","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":"2022-03-24T12:39:35Z","source":"USPS","carrier_code":null,"tracking_location":{"object":"TrackingLocation","city":"CHARLESTON","state":"SC","country":null,"zip":"29407"}}],"carrier_detail":{"object":"CarrierDetail","service":"First-Class + Package Service","container_type":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"NORTH + HOUSTON","state":"TX","country":null,"zip":"77315"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"object":"TrackingLocation","city":"CHARLESTON","state":"SC","country":null,"zip":"29407"},"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":"2022-03-24T12:39:35Z"},"finalized":true,"is_return":false,"public_url":"https://track.easypost.com/djE6dHJrXzkxNzhiZTFhNjgyOTQ1OTBiNDBlOTY0YTgxNmY4YWE5","fees":[]},"tracking_code":"9400100109361116088082","fee":{"object":"Fee","type":"InsuranceFee","amount":"1.00000","charged":true,"refunded":false},"messages":[],"created_at":"2022-04-21T22:45:35Z","updated_at":"2022-04-21T22:45:35Z"},{"id":"ins_a7910efb32b54605b16fd03e7495d525","object":"Insurance","mode":"test","reference":null,"status":"cancelled","amount":"100.00000","provider":"easypost","provider_id":null,"to_address":{"id":"adr_93cc62fec1c411eca9a3ac1f6bc7bdc6","object":"Address","created_at":"2022-04-21T22:44:17+00:00","updated_at":"2022-04-21T22:44:17+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"from_address":{"id":"adr_93d08227c1c411eca9a4ac1f6bc7bdc6","object":"Address","created_at":"2022-04-21T22:44:17+00:00","updated_at":"2022-04-21T22:44:17+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"shipment_id":null,"tracker":{"id":"trk_ffaeddd4e82b4703a3d5c491ff9df6fd","object":"Tracker","mode":"test","tracking_code":"9400100109361116087931","status":"delivered","status_detail":"arrived_at_destination","created_at":"2022-04-21T22:44:17Z","updated_at":"2022-04-21T22:47:18Z","signed_by":"John + Tester","weight":null,"est_delivery_date":"2022-04-21T22:47:18Z","shipment_id":"shp_e75b724f9ef54be68f5eeac28af0a106","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-03-21T22:47:18Z","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":"2022-03-22T11:24:18Z","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":"2022-03-22T21:29:18Z","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":"2022-03-23T23:05:18Z","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":"2022-03-24T01:56:18Z","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":"2022-03-24T07:36:18Z","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":"2022-03-24T07:46:18Z","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":"2022-03-24T12:38:18Z","source":"USPS","carrier_code":null,"tracking_location":{"object":"TrackingLocation","city":"CHARLESTON","state":"SC","country":null,"zip":"29407"}}],"carrier_detail":{"object":"CarrierDetail","service":"First-Class + Package Service","container_type":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"NORTH + HOUSTON","state":"TX","country":null,"zip":"77315"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"object":"TrackingLocation","city":"CHARLESTON","state":"SC","country":null,"zip":"29407"},"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":"2022-03-24T12:38:18Z"},"finalized":true,"is_return":false,"public_url":"https://track.easypost.com/djE6dHJrX2ZmYWVkZGQ0ZTgyYjQ3MDNhM2Q1YzQ5MWZmOWRmNmZk","fees":[]},"tracking_code":"9400100109361116087931","fee":{"object":"Fee","type":"InsuranceFee","amount":"1.00000","charged":true,"refunded":false},"messages":["The + tracker entered the mailstream before insurance was purchased."],"created_at":"2022-04-21T22:44:17Z","updated_at":"2022-04-21T22:45:20Z"}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '22325' content-type: - application/json; charset=utf-8 etag: - - W/"3d90906f9c85dde3043e7a41d1501885" + - W/"fda777150ae2dc4712ef4fa611394a6e" expires: - '0' pragma: @@ -92,21 +113,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b394ff030446002a600d + - 62b330ba6272e147e786b88000161e95 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.256404' + - '0.233262' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 c5a3596d..dd48bb7f 100644 --- a/tests/cassettes/test_insurance_create.yaml +++ b/tests/cassettes/test_insurance_create.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '577' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,49 +29,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xYbW/bNhD+K4a+znFIStSLv3l5wdq1ThC7yJahECiSspnIkkBJTewi/31HvTi2 - 0zQGGjTDGqNAw+Pdibzn4R15Xy2uJSulCFlpDS2CCDlA9gH2poQMsTek5MrqW6oItSwrnVrDmCWF - 7FsLWRRsJgtr+M9nGGVCgnUpixK0s7xUWQpTXy1eaS1TvoTJT5NjmMvZciHT0syVy9wYTU7GxycX - 1n3fErCOkIkvLOUwgUCiZSyNPQzTKkn6VlGysgLPVpXepNltCh5LzfiNSmchbxYROAhh8y+wXQw/ - B3mUIlCscvG9jdpmoxEr+TxUovteM+6+uilrA9AJeVWU2aIIVRpnnSzW2QL2IzSomg0btxYTOsRu - EDERSeY6CGPJA04k4zh2I8SQwNLEMLqW3Cx01Nr3nwXqN4SGaI+NPiimbGEi9h4C2JvkTOvs1nwn - W+QsNZCdsGJ5ntWYFqWWssQgtH2/N4XQFzIVvcnDHDGLzcseMZ65Ko2DCUt7pxrwVAXPrAY+88Wj - EQxWKq/hwsirv1qlpW6IYngyz1KjSdc/EMoFU0kX3W3OcVi9kjqMGVdJ/fFGC2KnBBBOsbVhLIXU - LAlLdreBdL20HdkXqVWsOOvofA+UVGlRabZByUyDuw0jiCOXyRrvXPMkdDGNPM/BDuW247lOJBgT - HueUBoGIsbMJ+Hlj/zzeV3tAbXQSmc7KuTXEaID61q0SZuCbv+dSzeZg6ZhBriEusUrBWw6E2OD2 - bauG6cDZjjvEIwd+gG6YsKjZ9cNGmpkP9US/jUYSBkHg09j1BPEjh3oeDGxOuaAkEoGHoud3bu+x - 81pnJ6EY8Eo507VdnOkFWKaGZhAjs8hQNOx8wlujA4TKksowwhraCHXiQq2MqXPnrjXb/AZBZVVS - rsWxSmQ3pxYQoMM8na1nKw1BtOZlmRfDw0MJB9AE+MAYFYPCHlTFwS1E/oAM2IKtspTdFgM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xd6fStzfc/ - a/NF1dKUrbes85Z1/htZx1ySt8vxRqv1VJpk0jYV64ZrI2ELAwjI0ACZn4nxnOmZuew1y29u5evL - n3mmfdtr283d8Wvuo3v5/dw2gPe8mKzXMGmvNdb9vwAAAP//AwD7Q3NYqhoAAA== + string: '{"created_at":"2022-05-04T20:25:40Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768747","updated_at":"2022-05-04T20:25:41Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_5d7b1fb8cbe811ec9facac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:40+00:00","updated_at":"2022-05-04T20:25:40+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_93bb1ef98e914a97abf316da04526fca","object":"Parcel","created_at":"2022-05-04T20:25:40Z","updated_at":"2022-05-04T20:25:40Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_fc1bece56f604b8686da9e71a0abfdf3","created_at":"2022-05-04T20:25:40Z","updated_at":"2022-05-04T20:25:40Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:25:40Z","label_resolution":300,"label_size":"4x6","label_type":"default","label_file_type":"image/png","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220504/c04452488a7e4f8faefaf586e0562b33.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_94f2bb2114ac493597cc5f77bc814bcb","object":"Rate","created_at":"2022-05-04T20:25:40Z","updated_at":"2022-05-04T20:25:40Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_f2247295fb114f9796498dae07ad971c","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_39f333f31a3a492d9b398d8101a34b2e","object":"Rate","created_at":"2022-05-04T20:25:40Z","updated_at":"2022-05-04T20:25:40Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f2247295fb114f9796498dae07ad971c","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_48f236e102ef4a8294787ce4baec2d2d","object":"Rate","created_at":"2022-05-04T20:25:40Z","updated_at":"2022-05-04T20:25:40Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_f2247295fb114f9796498dae07ad971c","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_ece9f3f1604744c6a3527b15ccb8a08e","object":"Rate","created_at":"2022-05-04T20:25:40Z","updated_at":"2022-05-04T20:25:40Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f2247295fb114f9796498dae07ad971c","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_ece9f3f1604744c6a3527b15ccb8a08e","object":"Rate","created_at":"2022-05-04T20:25:40Z","updated_at":"2022-05-04T20:25:40Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f2247295fb114f9796498dae07ad971c","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_ad34c1874ec0472c9a9c4ae325f9aeb0","object":"Tracker","mode":"test","tracking_code":"9400100109361117768747","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:25:41Z","updated_at":"2022-05-04T20:25:41Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_f2247295fb114f9796498dae07ad971c","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrX2FkMzRjMTg3NGVjMDQ3MmM5YTljNGFlMzI1ZjlhZWIw"},"to_address":{"id":"adr_5d790eb0cbe811ec874bac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:40+00:00","updated_at":"2022-05-04T20:25:40+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_5d7b1fb8cbe811ec9facac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:40+00:00","updated_at":"2022-05-04T20:25:40+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_5d790eb0cbe811ec874bac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:40+00:00","updated_at":"2022-05-04T20:25:40+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_f2247295fb114f9796498dae07ad971c","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '6826' content-type: - application/json; charset=utf-8 etag: - - W/"342c559eb69cc0d695eb65ef36e97896" + - W/"827ad777afe3b7ee0ffc4415aec33c18" expires: - '0' location: - - /api/v2/shipments/shp_578519980e664e06980eb41c61292fa1 + - /api/v2/shipments/shp_f2247295fb114f9796498dae07ad971c pragma: - no-cache referrer-policy: @@ -87,21 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b390ff030444002a5f47 + - 62b330b96272e144e786b87e00161d56 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.902009' + - '0.898871' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -113,7 +91,7 @@ interactions: "state": "CA", "zip": "94107", "phone": "5555555555"}, "from_address": {"name": "Jack Sparrow", "company": "EasyPost", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "phone": "5555555555"}, - "carrier": "USPS", "amount": "100", "tracking_code": "9400100109361111407550"}}' + "carrier": "USPS", "amount": "100", "tracking_code": "9400100109361117768747"}}' headers: Accept: - '*/*' @@ -123,7 +101,7 @@ interactions: - keep-alive Content-Length: - '482' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -135,41 +113,29 @@ interactions: uri: https://api.easypost.com/v2/insurances response: body: - string: !!binary | - H4sIAAAAAAAAA+xXbW+jOBD+K4ivl7Q24SXkG5e2avfaJApU7XW1Qg42qVsCyJjuNlX++41xSOib - LnvS3pc7FCl4Zjyeefx4Br+YnJojk+dV7ODUIq6TOr7t2j6liwXDFsZsMSSYEmabPbNYPLBEgv1F - XtWC5AkD4aqgDESSVRJGgqVMMKUZ5XWW9cxKEllXYFCynPJ8CTZkVdS5coMROkLqAWEpiidOmQAx - I9VzWTTuWmmswtQOZRETSgWrwOmLDp9QEWPPRgs09IlrI4g68RMbkQSn7gIRRDHrhh9s5/fMRDAi - GY2JElvIsvpo0MdeZFkj7I2cwW8IjZrw6pIeZpiTlYLjSzD+wwhnwXw+vVHrFKuS5M+gOA3CP2fT - MDIVNIIxiUE4GA6NaHozCU8nJ0YYGcEsMiy0M7HARDnhUnkIg4lxNg8m44twPDU1wmrJcQCDNS/h - 1bcx8vrY9VCzNqAt1MzrUEF6X+TK3Nk9IGQrwrMW4dc7mhAhOOxAShKeNRFoK0AQdiaXnMBEKWrW - M1MGW0WyWJIfnQ1r4nsje2KCpzwhkhd5s48Qt63+qzpJmq3VHpkQhYDR1289kzIJQVbaxUaNMw5+ - ng+d9mJmsJ6sVXID78jzHAf3zKzIl1thH1vW0cB3fQ9YxlcsXmukghVEm5Djy6KKg3zJMlaZG3gg - YVGsPmOjTVMLt2wcDqin2Zh4i4Fr/SM22oey0f6fjf9FNlb3vFwBBt1iKUjyqIrqlptSPMZe6hCL - OT51sGNTCxGfpgPkeYMFshwnTbrcjLbz325D4xeqeZxosW8jhNXPH7gYHhtBPsjsln8BqEPPqLjc - iWONBmi3Y83rA+ry3QElWdlUfJmDyWLHk++ML+9lO4Jk4nbjYqqJ+5mnLrgwKmPHGzrY94eIua7N - kKveFjZOXGz5Vkrwnq0N2WdhF7cdD76+vEEbtCcaFgAdWESWKqqZYP1wG4JxkaeFEao3WRhbz5RV - ieClovD71vtT2Ks/RbgdFtY7LIpaqA7fZtUeSk2GDvNUplmhD5bi4LtML1tlW086h7Qd7CqGHjY1 - pTl0m95h2CncSlAZl2TBMmOsufXLMRtGGEEt/vWYmefT6zCaTjrVN7o1PwbO9DzkDqBgfNuH0GbV - WWusVTswKyaeeBP+GReV7I8zUlXGDAICiIGKWquWzGFGDk7lc8k+PWZNgtmH6qbUvVIXgi953sGk - zdeIbnsG5IPUUdta/YsQNvyRPG88dcMbnwfzy9MmwnDcMywojth8bf1BmHqFZU2AdJJB0XpTmLSe - ZJKJXEGo213alBet4zlX/W8/kUjJVqXc9agUls/4Gri/7Uy8igWTtYDlU5JVICnrRcaTuBaK5fdS - ltXo+LiJ9qj9LD+Cz4dj+nDq0vMv4nZNV5Ob0+e76Nq5O7n+MYnmj1cPv99Pb+arq3UwmKwn/Ork - Ak9u7h5M1ZNZ0wg3P9FCYM6rTTxjimmaX/ubiJburxa7i0VyT8RynzJcUOqcqnGT8WZXKLYN+u++ - wQ7oPGCz+QsAAP//AwCboPn6WQ0AAA== + string: '{"id":"ins_ca24ee7507fd46bc85c00ae613edb81c","object":"Insurance","mode":"test","reference":null,"status":"pending","amount":"100.00000","provider":"easypost","provider_id":null,"to_address":{"id":"adr_5e0dfad4cbe811ec8770ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:41+00:00","updated_at":"2022-05-04T20:25:41+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":"","city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"from_address":{"id":"adr_5e12708dcbe811ec9fcdac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:41+00:00","updated_at":"2022-05-04T20:25:41+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":"","city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"shipment_id":null,"tracker":{"id":"trk_ad34c1874ec0472c9a9c4ae325f9aeb0","object":"Tracker","mode":"test","tracking_code":"9400100109361117768747","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:25:41Z","updated_at":"2022-05-04T20:25:41Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:25:41Z","shipment_id":"shp_f2247295fb114f9796498dae07ad971c","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:25:41Z","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":"2022-04-05T09:02:41Z","source":"USPS","carrier_code":null,"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":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"finalized":true,"is_return":false,"public_url":"https://track.easypost.com/djE6dHJrX2FkMzRjMTg3NGVjMDQ3MmM5YTljNGFlMzI1ZjlhZWIw","fees":[]},"tracking_code":"9400100109361117768747","fee":{"object":"Fee","type":"InsuranceFee","amount":"1.00000","charged":true,"refunded":false},"messages":[],"created_at":"2022-05-04T20:25:41Z","updated_at":"2022-05-04T20:25:41Z"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '3417' content-type: - application/json; charset=utf-8 etag: - - W/"ad96b6a16e9e7fe98441a0a2c77bc1cd" + - W/"74ff10b7234df7ae1768a05fff40aebf" expires: - '0' location: - - /api/v2/insurances/ins_51f2a65f594649ddbbe1211eb8a1dae4 + - /api/v2/insurances/ins_ca24ee7507fd46bc85c00ae613edb81c pragma: - no-cache referrer-policy: @@ -185,21 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b391ff030444002a5f76 + - 62b330b96272e145e786b87e00161dab x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.141829' + - '0.153978' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 3851edaa..86935947 100644 --- a/tests/cassettes/test_insurance_retrieve.yaml +++ b/tests/cassettes/test_insurance_retrieve.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '577' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,49 +29,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xYWW/bOBD+K4ZeN3F46fKbkaO72c3R2IvuZlEIFEnZbGRJoKQmTpH/vkMdju20 - jYEWzWIbIUDM4QyP+T4OOfPJEUbxSsmIV87IIYiQfUT3sT8lZIT9kcuunT1Hl5FRVW0yZ5TwtFR7 - zkKVJZ+p0hn98x5auVRgXamyAu28qHSeQdcnR9TGqEwsofPPyRH0FXy5UFll+6plYY0mx+dHx1fO - w54jYR0Rlx95JqADgcSoRFl7aGZ1mu45ZcWrGkZ26uwmy28zGLEyXNzobBaJdhEhQwjbv5B6GD6G - fNfzQbEu5Nc26tqNxrwS80jLfr623c+6Lusc0AtFXVb5oox0luS9LDH5AvYjDajaDdthHS5NhH0/ - wBIj7jGEsRKhy0IucOLFwo+l8KwP4w9K2IWOO/u9Z4H6BaERQs9v9FEx4wvrsVNw4GBScGPyWztP - vih4ZiE75uXyMm8wLSujVIVBSINgMAXXlyqTg8ljH7GLLaoBsSMLXdkBJjwbnBjAU5cid1r47IyH - Y2jc66KBCyO/mbXOKtMSxfJknmdW0119IFQLrtPeu5ucE7B6rUyUcKHTZvJWC3ynJRBO85VhoqQy - PI0qfreGdLO0LdlHZXSiBe/p/ACU1FlZG75GydzAcGtG4Eeh0hXehRFpxEKfepwQThhlKo55QqhS - 3HdjjhKq3HXAL1v75/G+3gFqq5OqbFbNnRFGQ7Tn3GppG4H9PVd6NgdLZhuFAb8kOoPRCiDEGrdv - OzXsDtmm38EfBfADdKOUx+2uHzfS9vzRdOx13kgjlZDQQwmOA0QZDlVIJIUflFMZcxB+n503p3kr - oFjwKjUzjV2SmwVYZpZm4CO7yEi27PySHxsdIFSe1pYRzogi1ItLfW9N2Z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sedgllz/1dzT5BVlrpqrabo/7Q910X - EqA0z2adcB8TMqShF/rAM71Q0X3rqfECViv4wR95GY2zGVxLpfPwYCtAdVmUnRZuonZtstcy3/+s - zBfXS3ttvUad16jz34g69pG8eR2vlVpPlH3tdkXFpuDaSvjCAgIyNET2sz6eczOzj712+e2rfPX4 - s6na50ftqrlb49r36E7jvu8KwDs+TFZrmHTPGufhXwAAAP//AwDE0Nd0qhoAAA== + string: '{"created_at":"2022-05-04T20:25:41Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768754","updated_at":"2022-05-04T20:25:42Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_5e44d7b2cbe811ec904eac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:41+00:00","updated_at":"2022-05-04T20:25:41+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_15d50051d428411fa1806879366a845a","object":"Parcel","created_at":"2022-05-04T20:25:41Z","updated_at":"2022-05-04T20:25:41Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_bb3365164e1f4c23951481dd311ab341","created_at":"2022-05-04T20:25:42Z","updated_at":"2022-05-04T20:25:42Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:25: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/20220504/30071245a13344d7ac269880145c0909.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_dad066c8dac148668d5b3559c408771d","object":"Rate","created_at":"2022-05-04T20:25:41Z","updated_at":"2022-05-04T20:25:41Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_8c8ec6d31ee8420792bb9fa84c31e83e","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_abdd3d9551024818ac908f443f5b7cbd","object":"Rate","created_at":"2022-05-04T20:25:41Z","updated_at":"2022-05-04T20:25:41Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8c8ec6d31ee8420792bb9fa84c31e83e","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_f00530c47e5240ab9402aee7652eb29b","object":"Rate","created_at":"2022-05-04T20:25:41Z","updated_at":"2022-05-04T20:25:41Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_8c8ec6d31ee8420792bb9fa84c31e83e","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_31c8af93897940b9a63768b666a33419","object":"Rate","created_at":"2022-05-04T20:25:41Z","updated_at":"2022-05-04T20:25:41Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8c8ec6d31ee8420792bb9fa84c31e83e","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_31c8af93897940b9a63768b666a33419","object":"Rate","created_at":"2022-05-04T20:25:42Z","updated_at":"2022-05-04T20:25:42Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8c8ec6d31ee8420792bb9fa84c31e83e","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_685bd0ee1b80488aa84bd623a7f9f724","object":"Tracker","mode":"test","tracking_code":"9400100109361117768754","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:25:42Z","updated_at":"2022-05-04T20:25:42Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_8c8ec6d31ee8420792bb9fa84c31e83e","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzY4NWJkMGVlMWI4MDQ4OGFhODRiZDYyM2E3ZjlmNzI0"},"to_address":{"id":"adr_5e423d92cbe811ec877dac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:41+00:00","updated_at":"2022-05-04T20:25:41+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_5e44d7b2cbe811ec904eac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:41+00:00","updated_at":"2022-05-04T20:25:41+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_5e423d92cbe811ec877dac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:41+00:00","updated_at":"2022-05-04T20:25:41+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_8c8ec6d31ee8420792bb9fa84c31e83e","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '6826' content-type: - application/json; charset=utf-8 etag: - - W/"4bb865a7b4dce9a9e9e3c5d9aee81331" + - W/"3c9b925786c7d7122438269473898dcd" expires: - '0' location: - - /api/v2/shipments/shp_b8460d1ce3a145f0b9188305892b8f33 + - /api/v2/shipments/shp_8c8ec6d31ee8420792bb9fa84c31e83e pragma: - no-cache referrer-policy: @@ -87,21 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b392ff030445002a5f87 + - 62b330b76272e145e786b87f00161dd4 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.038784' + - '1.046461' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -113,7 +91,7 @@ interactions: "state": "CA", "zip": "94107", "phone": "5555555555"}, "from_address": {"name": "Jack Sparrow", "company": "EasyPost", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "phone": "5555555555"}, - "carrier": "USPS", "amount": "100", "tracking_code": "9400100109361111407567"}}' + "carrier": "USPS", "amount": "100", "tracking_code": "9400100109361117768754"}}' headers: Accept: - '*/*' @@ -123,7 +101,7 @@ interactions: - keep-alive Content-Length: - '482' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -135,41 +113,29 @@ interactions: uri: https://api.easypost.com/v2/insurances response: body: - string: !!binary | - H4sIAAAAAAAAA+xXW2/bOgz+K4ZfT9pKviZ5C9J2XU+bXuyhPR0GQ7bpRKtjG7Lc9YL891FW4rg3 - oAO28zQjQCKSosiPn8j4yeSpOTZ5UUd2Nhw6I99P44w6XpYMLTsbJT54MYDnuZY5MMv4OyQS7T8X - dSNYkQAKl2UKKJJQS1wJyECA0oyLJs8HZi2ZbGo0qKBIeTFHG7Ysm0K5oYTsEvWgsBLlHU9BoBhY - /VCVrbuNNFJhaoeyjFiaCqjR6ZMOn6Uiohi8B67LPIdQCsko8WyW0MyLCSMphX74k/X+gZkIYBLS - iCmxRSxrh9g71A8ta0z9sev+Q8i4Da+p0o8ZFmyp4DieTP81gvPJ5eXZlTqnXFaseEDFwST47/ws - CE0FjQCQFIX2cGiEZ1ez4GC2bwShMTkPDYt0JhaaKCdcKg/BZGYcXk5m08/B9MzUCKsjpxNcPPIK - f44cSvwd6vmkPRvRFmrnl0BBuigLZe52DwphyXi+Qfh5RRMmBMcKZCzheRuBtkIEsTKF5Aw3StHA - wMwAS8XySLL7XsHa+F7I7kDwjCdM8rJo64hxO+q7bpKkLa32CEKUAldfvw3MFCQGWWsXK7XOOfp5 - +Oi2JzPH82SjkrP9Xd93XTow87KYr4U71LJ27ZE38pFlfAnRo0ZqssRoE7Z3UtbRpJhDDrW5wgcT - FuXyPTZmBBzo2Oh6lmZj4sdp4v1l4182/nY21gteLRGDfrMULLlVTXXNTSluozSmw5SMqO24juNB - zNyRTRgFC1xK0tTvczNc739ZhtYvdvMo0eKRQwhVn5HtUXwc4rueb/bbv0DUcWbUXHbiSKOB2vVa - 8/oDN+HmA5dA2dR8XqBJ3PHkB/D5Qm5WmEy0KVyUauK+56kPLq6qKB46Hk6WBGxGHTcj8YgOhzZx - hyMrHma2vWVrS/bzoI9bx4OvTy/QRu2+hgVBRxaxuYrqXMBOsA7B+FxkpRGoX7I01p5TqBPBK0Xh - 16P3l7BXX4pwHRbWKyzKRqgJv8lqcyk1GXrMU5nmpb5YioOvMj3ZKDf9pHdJN4uuY+hl21PaS7ca - fAw7hVuFKuOExZAbU82tP47ZMKRk7Dp/HjPz6OxLEJ7Net03vDbfBs70feLZ2DC+bUPYZNU7a6pV - HZg1iDvehn/IRS13pjmra+McA0KIkYpaq44scEeBTuVDBe9eszbB/E112+qeqUvB57zoYbLJ1wiv - BwbmQ6jZWf2PELb8kbxoPfXDmx5NLk8O2giD6cCwsDlS87n1G2HqE+YNQ9JJwKb1ojFpPcsliEJB - qMdd1rYXreMFV/Nvu5FJCctKdjMqw+Nz/ojcX08mXkcCZCPw+IzlNUqqJs55EjVCsXwhZVWP9/ba - aHc3f8t38e/DXvr9wEuPjsW1dclPw8Xt6f7t/enjBZ3tX1g3V8eLWXj7ePrp4P4mPM5n4cGPm08X - qiFmAO0gXP3CCME9z4p4CIppml/bNxEt3b5adC8WyYKJ+TZlfEFpilSt24xXXaNYD+jfM3lWPwEA - AP//AwCD69vSWQ0AAA== + string: '{"id":"ins_89a6465da6d641d1a171c70a88ceeede","object":"Insurance","mode":"test","reference":null,"status":"pending","amount":"100.00000","provider":"easypost","provider_id":null,"to_address":{"id":"adr_5f0b3a30cbe811eca019ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:42+00:00","updated_at":"2022-05-04T20:25:42+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":"","city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"from_address":{"id":"adr_5f0f6e5fcbe811eca842ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:42+00:00","updated_at":"2022-05-04T20:25:42+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":"","city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"shipment_id":null,"tracker":{"id":"trk_685bd0ee1b80488aa84bd623a7f9f724","object":"Tracker","mode":"test","tracking_code":"9400100109361117768754","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:25:42Z","updated_at":"2022-05-04T20:25:42Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:25:42Z","shipment_id":"shp_8c8ec6d31ee8420792bb9fa84c31e83e","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:25:42Z","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":"2022-04-05T09:02:42Z","source":"USPS","carrier_code":null,"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":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"finalized":true,"is_return":false,"public_url":"https://track.easypost.com/djE6dHJrXzY4NWJkMGVlMWI4MDQ4OGFhODRiZDYyM2E3ZjlmNzI0","fees":[]},"tracking_code":"9400100109361117768754","fee":{"object":"Fee","type":"InsuranceFee","amount":"1.00000","charged":true,"refunded":false},"messages":[],"created_at":"2022-05-04T20:25:42Z","updated_at":"2022-05-04T20:25:42Z"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '3417' content-type: - application/json; charset=utf-8 etag: - - W/"2fda1916636ece7c5953bc4804c1d337" + - W/"6b15f5bae344158d889d7f6c9ffc6297" expires: - '0' location: - - /api/v2/insurances/ins_3f884977dbf146fc823f9c7e6bee6652 + - /api/v2/insurances/ins_89a6465da6d641d1a171c70a88ceeede pragma: - no-cache referrer-policy: @@ -185,21 +151,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b393ff030445002a5fdc + - 62b330b76272e146e786b87f00161e57 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.171363' + - '0.162593' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -214,8 +179,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -223,40 +186,28 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/insurances/ins_3f884977dbf146fc823f9c7e6bee6652 + uri: https://api.easypost.com/v2/insurances/ins_89a6465da6d641d1a171c70a88ceeede response: body: - string: !!binary | - H4sIAAAAAAAAA+xXW0/jOhD+K1FeTwE717ZvVYFlOVAuyQoOq1XkJJPWS5pEjsNyEf/9jOMmhJvE - SofztFGl1jPjuXz+PNM8mDw1pyYv6sjOxmNn4vtpnFHHy5KxZWeTxAcvBvA81zJHZhn/hESi/dei - bgQrEkDhukwBRRJqiSsBGQhQmmnR5PnIrCWTTY0GFRQpL5Zow9ZlUyg3lJBtoh4UVqK84SkIFAOr - 76qydddJI5WmdijLiKWpgBqdPuj0WSoiisl74LrMcwilkEwSz2YJzbyYMJJSGKY/2+wfmYkAJiGN - mBJbxLK2iL1F/dCyptSfuu5fhEzb9Joq/ZhhwdYKjsPZ/G8jOJ2dn59cqDjlumLFHSr2ZsE/pydB - aCpoBICkKLTHYyM8uVgEe4tdIwiN2WloWKQ3sbraEy6Vj2C2MPbPZ4v512B+YmqMVdD5DBf3vMKf - E4cSf4t6PmmjI95C7fwWKFBXZaHM3f5BIawZz7s4z880YUJwPIOMJTxvM9BWiCGeTSE5w41SNDAy - M8DDYnkk2e3gyNr8XshuQPCMJ0zysmhPEvN21HfdJEl7uNojCFEKXH3/MTJTkJhkrV08qnXO0c/d - R7c9mDnGk40qzva3fd916cjMy2K5EW5Ry9q2J97ER57xNUT3GqnZGrNN2M5RWUezYgk51OYjPliw - KNfv8TEj4EDPR9ezNB8TP04T7w8f//DxE/hYr3i1RgyGDVOw5Fo11g07pbiO0piOUzKhtuM6jgcx - cyc2YRQscClJU3/IznCz/+UxtH6xo0eJFk8cQqj6TGyP4uMQ3/V8czgCBKKOc6PmshdHGg3Ubtaa - 2R+4C1cfuAbKpubLAk3inie/gC9XslthMVF3cFGqifuepyG4uKqieOx4OF0SsBl13IzEEzoe28Qd - T6x4nNn2E1tbsp8GQ9x6Hnx/eIE2anc1LAg6sogtVVanAraCTQrG1yIrjUD9kqWx8ZxCnQheKQq/ - Hr+/hb36UoTrsbBeYVE2Qk35rqruUmoyDJinKs1LfbEUB19VetQpu34yuKR9o+k6hl62PaW9dI+j - j2GncKtQZRyxGHJjrrn16ZiNQ0qmrvP5mJkHJ9+C8GQx6L7hpfk2cKbvE8/GhvHjKYWuqkGsuVb1 - YNYgbnib/j4Xtdya56yujVNMCCFGKmqtClngjgKdyrsK3r1mbYH5m+q21T1Tl4IveTHApKvXCC9H - BtZDqNlb/Y8QtvyRvGg9DdObH8zOj/baDIP5yLCwOVLzufUbaeoIy4Yh6SRg03rRmLSe5RJEoSDU - 4y5r24vW8YKr+fe0kUkJ60r2MyrD8Dm/R+5vJhOvIwGyERg+Y3mNkqqJc55EjVAsX0lZ1dOdnTbb - 7e6v+Tb+gdhJf+556cGhuLTO+XG4uj7evb49vj+ji90z6+ricLUIr++Pv+zdXoWH+SLc+3X15Uw1 - xAygHYSPvzFCcM+zQ9wHxTTNr6e3ES19er3oXy6SFRPLp5LxJaUpUrVuK37sG8VmQP83k+fxXwAA - AP//AwAGK1KsXQ0AAA== + string: '{"id":"ins_89a6465da6d641d1a171c70a88ceeede","object":"Insurance","mode":"test","reference":null,"status":"pending","amount":"100.00000","provider":"easypost","provider_id":null,"to_address":{"id":"adr_5f0b3a30cbe811eca019ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:42+00:00","updated_at":"2022-05-04T20:25:42+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"from_address":{"id":"adr_5f0f6e5fcbe811eca842ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:42+00:00","updated_at":"2022-05-04T20:25:42+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"shipment_id":null,"tracker":{"id":"trk_685bd0ee1b80488aa84bd623a7f9f724","object":"Tracker","mode":"test","tracking_code":"9400100109361117768754","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:25:42Z","updated_at":"2022-05-04T20:25:42Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:25:42Z","shipment_id":"shp_8c8ec6d31ee8420792bb9fa84c31e83e","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:25:42Z","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":"2022-04-05T09:02:42Z","source":"USPS","carrier_code":null,"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":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"finalized":true,"is_return":false,"public_url":"https://track.easypost.com/djE6dHJrXzY4NWJkMGVlMWI4MDQ4OGFhODRiZDYyM2E3ZjlmNzI0","fees":[]},"tracking_code":"9400100109361117768754","fee":{"object":"Fee","type":"InsuranceFee","amount":"1.00000","charged":true,"refunded":false},"messages":[],"created_at":"2022-05-04T20:25:42Z","updated_at":"2022-05-04T20:25:42Z"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '3421' content-type: - application/json; charset=utf-8 etag: - - W/"2dcd1b2c38e64e3acc75cd37816bae9a" + - W/"e002d51648ef9ec8fef1d5adf45f66d1" expires: - '0' pragma: @@ -274,21 +225,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b393ff030445002a5ffd + - 62b330b76272e147e786b87f00161e70 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.065657' + - '0.101520' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_buy.yaml b/tests/cassettes/test_order_buy.yaml index d4dfb438..9779dd83 100644 --- a/tests/cassettes/test_order_buy.yaml +++ b/tests/cassettes/test_order_buy.yaml @@ -20,7 +20,7 @@ interactions: - keep-alive Content-Length: - '879' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -32,60 +32,36 @@ interactions: uri: https://api.easypost.com/v2/orders response: body: - string: !!binary | - H4sIAAAAAAAAA+xaWW8bORL+K4Ze1yPwPvwWbDyDXezOBuPsyywCoUgW456RW0KrlcQzyH/foi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gPgP6PVbO47+KT1/MPQ7+R6gL9RvSvdvG5Ebpk9JSd - OAVCO6cYqOyzZMmuK4Z9Qy9fw+Vthv+LEICPnesQAmzEOoUAYixUVwbIGwzY/Uoh3gp5sor4fx3d - x4m2Wd5OCfnElAAelLSGsp0QlXA2aEeZOWhujKHkXH1FCUpPo3FBeuKN0jY4NAyh5M7JMZTmAJT4 - GT+1xIpXVXMKzfTy1b/vZobjY9UhJNiKdWGGE2PTOSi46Raufqx7y9yjmPHUfmJPZjjBorQx+1Rq - xJychecmUYzgYrEch/ATPzX0g9LddOB8bDo4iq1YFzpws0eMeD8dHmkoDkwHLhI3MpucRFDoeXBM - GmcxMhY02HRQQ3EGdFB380KJsTUP82Ir1oUXSo9tZwfyonnhkpJSc86MVQJYABson9Qm0NzMxUF5 - cQ8l6F53KCtsxTpRwo5V57LC/ZTg7EQ+X0qw8vqEsTx6CjDBRZruo8SoBZI0wAEoIer0ECMkG/MO - UeZWrAsjSNY+osBwFWXyxxqJp048HmbEu1Uvgdz1V/X9RYR6kmfNxW5gFf0Trs215GrVYigYbR6H - d2dfWqV/uZgvJn+slOPDO5cvFOThBemXiGqx3qW39K4shJtP+3iVHbJnG5+0dhdP37K62Zq+7eCG - dtTzbUfti/DQanpOraa90R3aSM+kjbQvskOL6Fm0iPaFdWj/POv2z75wD62d76JA98jWzr6oD22b - Z9u2+fYLPrRknmtL5tsxvwfuod3yvbZb9oV7aKUcoJWy3wvwO7j/U2aMPv8fAAD//wMAAHqPR6JT - AAA= + string: '{"mode":"test","reference":null,"is_return":false,"options":{"currency":"USD","payment":{"type":"SENDER"}},"messages":[],"created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","customs_info":null,"from_address":{"id":"adr_60db5990cbe811eca886ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"to_address":{"id":"adr_60d9fbd6cbe811eca09fac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_60d9fbd6cbe811eca09fac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"return_address":{"id":"adr_60db5990cbe811eca886ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipments":[{"created_at":"2022-05-04T20:25:45Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:25:46Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_60db5990cbe811eca886ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":"order_b97921eb33744727ad03eeba1b45662f","parcel":{"id":"prcl_a7334fb9393c49288ca302f546f90b3d","object":"Parcel","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_a345d9a23f6949aa9bf220240c95771f","object":"Rate","created_at":"2022-05-04T20:25:46Z","updated_at":"2022-05-04T20:25:46Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_886c8c3ecfa5432cb61780b585fb50cf","object":"Rate","created_at":"2022-05-04T20:25:46Z","updated_at":"2022-05-04T20:25:46Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_8ef39f480c8644f7a856bf2960024c0c","object":"Rate","created_at":"2022-05-04T20:25:46Z","updated_at":"2022-05-04T20:25:46Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_58cb23c212314b75887668599a9e736e","object":"Rate","created_at":"2022-05-04T20:25:46Z","updated_at":"2022-05-04T20:25:46Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_60d9fbd6cbe811eca09fac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_60db5990cbe811eca886ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_60d9fbd6cbe811eca09fac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","object":"Shipment"}],"rates":[{"id":"rate_a345d9a23f6949aa9bf220240c95771f","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_886c8c3ecfa5432cb61780b585fb50cf","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_8ef39f480c8644f7a856bf2960024c0c","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_58cb23c212314b75887668599a9e736e","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"id":"order_b97921eb33744727ad03eeba1b45662f","object":"Order"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '8848' content-type: - application/json; charset=utf-8 etag: - - W/"4fbdf54528a0b70e6d1a815bee0c134e" + - W/"2b8a71e32fe9f6584093214a15c27382" expires: - '0' location: - - /api/v2/orders/order_bb96138cb55a476199ba102f53d14cc7 + - /api/v2/orders/order_b97921eb33744727ad03eeba1b45662f pragma: - no-cache referrer-policy: @@ -101,21 +77,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b39dff030461002a631f + - 62b330bd6272e149e786b88400161fa5 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.524329' + - '0.272207' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -132,7 +107,7 @@ interactions: - keep-alive Content-Length: - '39' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -141,69 +116,35 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/orders/order_bb96138cb55a476199ba102f53d14cc7/buy + uri: https://api.easypost.com/v2/orders/order_b97921eb33744727ad03eeba1b45662f/buy response: body: - string: !!binary | - H4sIAAAAAAAAA+xbaXMURxL9K4r5umJU96FvChBevEZgRl7veoOYyLqkhrmiuwcQDv33zeqeGZ1I - LUseIXsUBKirs47O9yqPyuL33ngaYm+3V8eq7m33yphiGScemybz0Wi7V1TDMtbzctLbTTCq4nZv - OquL6aTq7f7e8/MyC59g/18GL7D7DE7GcVLnd/XJLI872D94sf+ud3q63RvHqoKjiD3/h12hLItY - 5p5vB9hz8TwE76fzST0sAr7yMAyRg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6/6B2EzUXBjdX5rqxODpIvuuNzdzxexnP/qau56dG2 - wDgDgm2kT/JP1vExlEdn2UEbla+Cv5y6XT/q4hrJpXFzPNpp3PeLmycdA5PVGgaLsKZNIR7+GkPL - kfOb7jpibq4oPN0rCndFeHP94CldP7gzupurBU/kasFdkd2cxTyJawN3hXVzJeBJXwm4K9ybcv93 - UbS5Z7n/rqhvSvlPtpT/xzf4pkz/VMv0fxzzG+DelOC/1xL8XeHelNcfobx+t/8dt4L7Te7RO/0/ - AAAA//8DAD1I7ZPNUAAA + string: '{"mode":"test","reference":null,"is_return":false,"options":{"currency":"USD","payment":{"type":"SENDER"}},"messages":[],"created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","customs_info":null,"from_address":{"id":"adr_60db5990cbe811eca886ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"to_address":{"id":"adr_60d9fbd6cbe811eca09fac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:46+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"buyer_address":{"id":"adr_60d9fbd6cbe811eca09fac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:46+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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"}}}},"return_address":{"id":"adr_60db5990cbe811eca886ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipments":[{"created_at":"2022-05-04T20:25:45Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768778","updated_at":"2022-05-04T20:25:47Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_60db5990cbe811eca886ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":"order_b97921eb33744727ad03eeba1b45662f","parcel":{"id":"prcl_a7334fb9393c49288ca302f546f90b3d","object":"Parcel","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_d7fe0defad3c45c8a8ee993769888d6e","created_at":"2022-05-04T20:25:46Z","updated_at":"2022-05-04T20:25:46Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:25: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/20220504/aeedc470b2b648ca9aa1d3e2b7e8c6cf.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_a345d9a23f6949aa9bf220240c95771f","object":"Rate","created_at":"2022-05-04T20:25:46Z","updated_at":"2022-05-04T20:25:46Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_886c8c3ecfa5432cb61780b585fb50cf","object":"Rate","created_at":"2022-05-04T20:25:46Z","updated_at":"2022-05-04T20:25:46Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_8ef39f480c8644f7a856bf2960024c0c","object":"Rate","created_at":"2022-05-04T20:25:46Z","updated_at":"2022-05-04T20:25:46Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_58cb23c212314b75887668599a9e736e","object":"Rate","created_at":"2022-05-04T20:25:46Z","updated_at":"2022-05-04T20:25:46Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_a345d9a23f6949aa9bf220240c95771f","object":"Rate","created_at":"2022-05-04T20:25:46Z","updated_at":"2022-05-04T20:25:46Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_13abcbf0303c4cb19834d632795353a3","object":"Tracker","mode":"test","tracking_code":"9400100109361117768778","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:25:47Z","updated_at":"2022-05-04T20:25:47Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzEzYWJjYmYwMzAzYzRjYjE5ODM0ZDYzMjc5NTM1M2Ez"},"to_address":{"id":"adr_60d9fbd6cbe811eca09fac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:46+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_60db5990cbe811eca886ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_60d9fbd6cbe811eca09fac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:46+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","object":"Shipment"}],"rates":[{"id":"rate_a345d9a23f6949aa9bf220240c95771f","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_886c8c3ecfa5432cb61780b585fb50cf","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_8ef39f480c8644f7a856bf2960024c0c","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_58cb23c212314b75887668599a9e736e","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_8dc44111d35a4361ac7fe1962ab25fc3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"id":"order_b97921eb33744727ad03eeba1b45662f","object":"Order"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '11319' content-type: - application/json; charset=utf-8 etag: - - W/"fd5322628993841ee7d29543fa2d8754" + - W/"eb0d34dc87f79735a8ad71dce7bc2f71" expires: - '0' pragma: @@ -221,21 +162,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b39fff030461002a6382 + - 62b330bd6272e14ae786b88400161fc7 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.857103' + - '0.913510' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_create.yaml b/tests/cassettes/test_order_create.yaml index 09df2476..2a909634 100644 --- a/tests/cassettes/test_order_create.yaml +++ b/tests/cassettes/test_order_create.yaml @@ -20,7 +20,7 @@ interactions: - keep-alive Content-Length: - '879' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -32,60 +32,36 @@ interactions: uri: https://api.easypost.com/v2/orders response: body: - string: !!binary | - H4sIAAAAAAAAA+xa224bORL9FUOv6xF4Kd78Fmwyg13szgbj7MssAqFIFuOekVtCq5XEM8i/b7Vu - dmLHbseGFHvaD4aaKpIlnsO69p+j81mm0cmopUU7Oh41VKihOvFQvZxOj0fVYtJQu2zq0UnB6YKO - R7N5W83qxejkz1FaNp3wBc//7+lLnj7Hi3Oq2+679mLerXv66ueXr34Zffp0PDqnxQLfEc/8H0/F - pqmo6Wa+PuWZm+cJpjRb1u2kyvxVwknWMipw4ChLIBeizTpllORF5JHAUzc7NdjShJpm1ox2e/Hw - P+r3OK3y0YuUeOzoX1WiekFH9fI88vafjvurIlTJqI3WQiJkk32QBkQJpL3MWtk9qmKUQAmZwKAC - 4WKUQRgfJZRIRkm9R1WilGBiRgM+gA3klSvOhCht0IQq7/NUvAKVlSikIhiSIcksvEkheiOldfvk - CkFCG7XSFAFQeYXR6hitt0Vb3CdXgkW0yUZjkgWpYkjCq2JAlQLSC7NHVcgkD1HkFLwEX0rU0VhW - SUHIIsI+uaKLCjY5iECaaVsCg5OtUy6lXJTe56kIGYsUC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Mya853A6von3FtriRXqxZDh9Hm - cXh39rlV+peL+WLyx0o5Obxz+UxBHl6Qfo6odta76y297Raizaf7eJUdsqcbn7R2F4/fsrremr7p - 4IZ21NNtR90X4aHV9JRaTfdGd2gjPZE20n2RHVpET6JFdF9Yh/bPk27/3BfuobXzXRToHtjauS/q - Q9vmybZtvv2CDy2Zp9qS+XbMb4F7aLd8r+2W+8I9tFIO0Eq53wvwO7j/080Yffo/AAAA//8DAIS2 - OASiUwAA + string: '{"mode":"test","reference":null,"is_return":false,"options":{"currency":"USD","payment":{"type":"SENDER"}},"messages":[],"created_at":"2022-05-04T20:25:43Z","updated_at":"2022-05-04T20:25:43Z","customs_info":null,"from_address":{"id":"adr_5fa3001acbe811eca85eac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:43+00:00","updated_at":"2022-05-04T20:25:43+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"to_address":{"id":"adr_5fa1627acbe811eca85dac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:43+00:00","updated_at":"2022-05-04T20:25:43+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_5fa1627acbe811eca85dac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:43+00:00","updated_at":"2022-05-04T20:25:43+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"return_address":{"id":"adr_5fa3001acbe811eca85eac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:43+00:00","updated_at":"2022-05-04T20:25:43+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipments":[{"created_at":"2022-05-04T20:25:43Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:25:43Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_5fa3001acbe811eca85eac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:43+00:00","updated_at":"2022-05-04T20:25:43+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":"order_1f35ae3571de4ad19104248bc876bbef","parcel":{"id":"prcl_8f779a8294424eb29d1d9c4e56c50c84","object":"Parcel","created_at":"2022-05-04T20:25:43Z","updated_at":"2022-05-04T20:25:43Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_b7358f7eef3849638484c80ab569e102","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_86d3d50ad8954ca888663f924ccdf331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_b34d1abe61414b099ab54cb639422221","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_86d3d50ad8954ca888663f924ccdf331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_71940d2775eb483993f46ac21516f944","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_86d3d50ad8954ca888663f924ccdf331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_b8032c047e1241718c84bb1ed2b15b8b","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_86d3d50ad8954ca888663f924ccdf331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_5fa1627acbe811eca85dac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:43+00:00","updated_at":"2022-05-04T20:25:43+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_5fa3001acbe811eca85eac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:43+00:00","updated_at":"2022-05-04T20:25:43+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_5fa1627acbe811eca85dac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:43+00:00","updated_at":"2022-05-04T20:25:43+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_86d3d50ad8954ca888663f924ccdf331","object":"Shipment"}],"rates":[{"id":"rate_b7358f7eef3849638484c80ab569e102","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_86d3d50ad8954ca888663f924ccdf331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_b34d1abe61414b099ab54cb639422221","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_86d3d50ad8954ca888663f924ccdf331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_71940d2775eb483993f46ac21516f944","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_86d3d50ad8954ca888663f924ccdf331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_b8032c047e1241718c84bb1ed2b15b8b","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_86d3d50ad8954ca888663f924ccdf331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"id":"order_1f35ae3571de4ad19104248bc876bbef","object":"Order"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '8848' content-type: - application/json; charset=utf-8 etag: - - W/"0d4f536bb690a9c2ceef4e5d9e6e4540" + - W/"9f80488e59102f18b1e88e3f3a944c68" expires: - '0' location: - - /api/v2/orders/order_b0d628f10d2341d29644e561b1e6aeae + - /api/v2/orders/order_1f35ae3571de4ad19104248bc876bbef pragma: - no-cache referrer-policy: @@ -101,21 +77,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b394ff030447002a6036 + - 62b330b86272e147e786b88100161ec6 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '2.101074' + - '0.300064' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_get_rates.yaml b/tests/cassettes/test_order_get_rates.yaml index 8a298f12..dc6e53fd 100644 --- a/tests/cassettes/test_order_get_rates.yaml +++ b/tests/cassettes/test_order_get_rates.yaml @@ -20,7 +20,7 @@ interactions: - keep-alive Content-Length: - '879' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -32,60 +32,36 @@ interactions: uri: https://api.easypost.com/v2/orders response: body: - string: !!binary | - H4sIAAAAAAAAA+xaW28buRX+K4Ze6xV4v/gtaLJFi3a7WKcvWwTCIXkYT1ceCaNREu8i/72Ho0vs - OLFHsTGKveMHQ0Mdkkf8Pp7r/DG5XCScnE1aXLWT00mDGRusIw3V6/n8dFKtZg2266aenGWYr/B0 - sli21aJeTc7+mMR1U4SvaP5/zl/S9CVcXWLdlu/aq2VZ9/zVTy9f/TL5+PF0comrFbxFmvlfmgpN - U2FTZv58TjO3zzOIcbGu21mV6KsIM28ATDRB62gUF8FH5kTWSuSsuGOapm53aqDFGTbNopns96Lh - v9fvYF6lkxcx0tjJP6uI9QpP6vVloO0/nvZXRUQRlPIh2YQKk3IcJemVTLTae6aGVMUYH212wqFV - PDCfGRomo/BRSmdwQFUSCjDa5phtVlYnjylllpPhPmcBQ6oSlVQWpGHMW6UlBMa0iIigE6iEbEBV - QrQiOxsdCqmyTxA8i0jcUSEKbeWAqiiBRlgOkJ1RMqADHQyzgSdhghVuQFW0YMAJCaVBKFIhcM+0 - C1zlgFrwIU/FaRWYzYnuDlMeTMjEHaOZLDfKiDygKjILTzZEBYVSGZ+9DCEZK2yMKQs5pIljqCKd - hRQSydSBcAKCIXWMM1kaMAOqgjo6gihF77hyOQeytYYcgFA+saDSgKpYT9x06JxmnByACoCRachK - Z0Wq+SEBEjmB1FIyTiZNJ+e5Vix7lI4nKYYEKHCudEiglfNEW3TCZnKEgRsvEcSQADmlPbkhRlwx - yjuEwOk4vOFSYWBmyMucdXDeOC5J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ZbMt2N+B9xju+V7bbccCvfYSjlCK+WwF+D3cP+7zJh8/D8AAAD//wMAJM0N - 96JTAAA= + string: '{"mode":"test","reference":null,"is_return":false,"options":{"currency":"USD","payment":{"type":"SENDER"}},"messages":[],"created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","customs_info":null,"from_address":{"id":"adr_6053385ccbe811eca07dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"to_address":{"id":"adr_60518a94cbe811ec90efac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_60518a94cbe811ec90efac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"return_address":{"id":"adr_6053385ccbe811eca07dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipments":[{"created_at":"2022-05-04T20:25:45Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:25:45Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_6053385ccbe811eca07dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":"order_761e863a058441e4950fa0b739be1472","parcel":{"id":"prcl_1c2513b2482e430985db24f1c6fe5ff5","object":"Parcel","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_df8962de5cf74a0e98938ce9a46e579b","object":"Rate","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_cf4fa5f3c48348acb55465361e130dfd","object":"Rate","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_ed9e1bb3bec54319b364efb6c38aabc0","object":"Rate","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_890e496cc0fc446ca249be2938aa8e85","object":"Rate","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_60518a94cbe811ec90efac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_6053385ccbe811eca07dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_60518a94cbe811ec90efac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_bc75a69a8d344ef48c955d2502cd83be","object":"Shipment"}],"rates":[{"id":"rate_df8962de5cf74a0e98938ce9a46e579b","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_cf4fa5f3c48348acb55465361e130dfd","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_ed9e1bb3bec54319b364efb6c38aabc0","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_890e496cc0fc446ca249be2938aa8e85","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"id":"order_761e863a058441e4950fa0b739be1472","object":"Order"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '8848' content-type: - application/json; charset=utf-8 etag: - - W/"aaff50ccd58660b27edec01ea00fe5bb" + - W/"ab5bf79feaafb17b3a35a6b72b684976" expires: - '0' location: - - /api/v2/orders/order_d88af77426f54cc89289cf0817c19013 + - /api/v2/orders/order_761e863a058441e4950fa0b739be1472 pragma: - no-cache referrer-policy: @@ -101,21 +77,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b399ff030460002a615b + - 62b330be6272e149e786b88300161f49 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.787488' + - '0.277730' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -130,8 +105,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -139,58 +112,35 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/orders/order_d88af77426f54cc89289cf0817c19013/rates + uri: https://api.easypost.com/v2/orders/order_761e863a058441e4950fa0b739be1472/rates response: body: - string: !!binary | - H4sIAAAAAAAAA+xaW29buRH+K4Ze6xV4Gd78FjTZokW7XazTly0CYUgO49OVj4QjKYl3kf/eoW52 - bMc+jg0p9soPhg41JOfw+zhX/TE4n2QanAzmNJsPjgcdFeqoTTzULsbj40EzG3U0X3Tt4KTgeEbH - g8l03kza2eDkj0FadFX4guf/5/Q1T5/ixTm18/rd/GJa1z1989PrN78MPn8+HpzTbIbviWf+l6di - 1zXU1Zk/n/LM9fMIU5os2vmoyfxVwlGwiDbZaEyyIFUMSXhVDKhSQHpheOp6pw7nNKKum3SD7V48 - /Pf2A46bfPQqJR47+meTqJ3RUbs4j7z95+P+qqikIkCI2WUCyuAladYr2+RMCAJ2qYq1IbnilScH - MopQBFmhkwpJa29ph6pkUmiNK6m4As7kQDkXUbKVoRSFu1QlgQaH2goRHBiNUQijEhGajJBJ7FCV - mJwq3iVPSkMJGWMQiZg7EJMyTu9QFVBklZOIxVvQkTyaaIWLMisbnfI7VMUogZKRAIMKWIUogzA+ - SiiRjJK7PBVvIApXMt8dAQFtLMwda4SuN8qqskNVdFGBbQhEIA02lKBjzNYpl1IuSu/SxAmCxGeh - lSY2dai8wmhZHett0RbtDlUhkzxDlFPwEnwpkW2tZQegIGQRIe9QFReYm568N0KyA4CIlITBAqYA - qxZ2CZAqGbXRWkg2aSb7IA2IEkh7mbXaJUBRSjAxowEfmLbklSvsCKO0QROqXQLkwQR2Q4K5YiF4 - wij5OIKVGigKu8vLXEz0wXqpWR0QHLiAzpb/ZxNE4XhhlzdIa3QYlUqeTZxCn6SMzJRM7I7Q7NLa - Gq9AZcUnwCGUIRmSzMKbFKI3Ulq3yxskY5ECQUk2dqUkZBeUAHMQLumcd2ltQ05ZaDJBJoQUUjDK - GKFQuQjS5J2eihC5oE7GZra2yvnMYQprYU3Uyctd2pWsJRt5B45YFXIh2qxTRkleRB55tLV9x1t3 - xFPzCDlTGSih1A9C/yDdW6VO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DY9hlylFqtDbzJ19y8rQH9H9sutldF5+9Xrgf - +rVUH+jXon+2i8+AZ505CghaQ8galYFSZDAm1oq23gP0+jVe3Gb4vwgB5ND7HiHAWqxXCKCGCvoy - QN9gwPYtlXqr9Mky4v91cBcn5t3idkroJ6YEsqB2lrOdmEB5F42PYNBIay1jDNetQYDikKxUqkCm - iOis0xRzCjGXvI+Y8Cf6NGdWvGq6N9iNL1796+vM8HIIPUKCjVgfZng1tL2Dgptu4fJl/VvhH8WM - p/YTD2SGNUYq8ip50FAi5wt1Zw8GyNUJe2DG3zp+ofx1Okg5tD0cxUasDx2kfUCMeDcdHmko9kwH - l0kk7zInmZYJkWruzHm4SSZpZco+0oZLQ3GKfFBf5wWoobP382Ij1ocXYIautwN5ybwQMkfhRMzG - ExTJstYFFcCKogR7kr3y4g5K8L3uUVbYiPWihBtC77LC3ZSQ4kQ/X0rILJ3GnJSlAMKlmImNBRae - pjMUtQdKqDbfxwgthrJHlLkR68MIlnWPKDBcRpnysUbiqROP+xnxbtlLYHd9rb4/S9iOyqQ73w4s - o3/GtbuSXC1bDBWj9eOhf/3SKv2L2XQ2+n2pnDz0PV8oyIcfKbxEVKv1XrehC20a0g/xKltkT9c+ - aeUunr5ldbM1fdvBHdpRz7cd9VCED62m59RqejC6hzbSM2kjPRTZQ4voWbSIHgrrof3zrNs/D4X7 - 0Nr5Lgp0j2ztPBT1Q9vm2bZtvv2CH1oyz7Ul8+2Y3wH3od3yvbZbHgr3oZWyh1bKw34Av4X733XG - 4PP/AQAA//8DAJrU1MQmRwAA + string: '{"mode":"test","reference":null,"is_return":false,"options":{"currency":"USD","payment":{"type":"SENDER"}},"messages":[],"created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","customs_info":null,"from_address":{"id":"adr_6053385ccbe811eca07dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"to_address":{"id":"adr_60518a94cbe811ec90efac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_60518a94cbe811ec90efac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"return_address":{"id":"adr_6053385ccbe811eca07dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipments":[{"created_at":"2022-05-04T20:25:45Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:25:45Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_6053385ccbe811eca07dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":"order_761e863a058441e4950fa0b739be1472","parcel":{"id":"prcl_1c2513b2482e430985db24f1c6fe5ff5","object":"Parcel","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_cdf706ae9f42400ab0a2d0e6da9bab57","object":"Rate","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_59b7987930ee4adc8f5b1fdddd1a577c","object":"Rate","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_eb2d64a42e52495ab1ed64c146bfd8c1","object":"Rate","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_fa1b24824de54083bb55b8845f6dba14","object":"Rate","created_at":"2022-05-04T20:25:45Z","updated_at":"2022-05-04T20:25:45Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_60518a94cbe811ec90efac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_6053385ccbe811eca07dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_60518a94cbe811ec90efac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:45+00:00","updated_at":"2022-05-04T20:25:45+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_bc75a69a8d344ef48c955d2502cd83be","object":"Shipment"}],"rates":[{"id":"rate_cdf706ae9f42400ab0a2d0e6da9bab57","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_59b7987930ee4adc8f5b1fdddd1a577c","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_eb2d64a42e52495ab1ed64c146bfd8c1","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_fa1b24824de54083bb55b8845f6dba14","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_bc75a69a8d344ef48c955d2502cd83be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"id":"order_761e863a058441e4950fa0b739be1472","object":"Order"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '8848' content-type: - application/json; charset=utf-8 etag: - - W/"4ba280ba2f498b9e5b9772426db63414" + - W/"985c00faa228c6afcb99ce4f5d7e3bcd" expires: - '0' pragma: @@ -208,21 +158,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b39bff030460002a61d0 + - 62b330be6272e149e786b88300161f70 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '2.184388' + - '0.338541' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_lowest_rate.yaml b/tests/cassettes/test_order_lowest_rate.yaml index 436871b4..f549de14 100644 --- a/tests/cassettes/test_order_lowest_rate.yaml +++ b/tests/cassettes/test_order_lowest_rate.yaml @@ -32,23 +32,23 @@ interactions: uri: https://api.easypost.com/v2/orders response: body: - string: '{"mode":"test","reference":null,"is_return":false,"options":{"currency":"USD","payment":{"type":"SENDER"}},"messages":[],"created_at":"2022-04-26T19:14:57Z","updated_at":"2022-04-26T19:14:57Z","customs_info":null,"from_address":{"id":"adr_29560690c59511ec94a4ac1f6bc72124","object":"Address","created_at":"2022-04-26T19:14:57+00:00","updated_at":"2022-04-26T19:14:57+00:00","name":"Jack + string: '{"mode":"test","reference":null,"is_return":false,"options":{"currency":"USD","payment":{"type":"SENDER"}},"messages":[],"created_at":"2022-05-04T20:25:47Z","updated_at":"2022-05-04T20:25:47Z","customs_info":null,"from_address":{"id":"adr_61bb3edfcbe811eca8adac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:47+00:00","updated_at":"2022-05-04T20:25:47+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"to_address":{"id":"adr_2954c591c59511ec8d08ac1f6b0a0d1e","object":"Address","created_at":"2022-04-26T19:14:57+00:00","updated_at":"2022-04-26T19:14:57+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"to_address":{"id":"adr_61b9f9bfcbe811ec8889ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:47+00:00","updated_at":"2022-05-04T20:25:47+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_2954c591c59511ec8d08ac1f6b0a0d1e","object":"Address","created_at":"2022-04-26T19:14:57+00:00","updated_at":"2022-04-26T19:14:57+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_61b9f9bfcbe811ec8889ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:47+00:00","updated_at":"2022-05-04T20:25:47+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"return_address":{"id":"adr_29560690c59511ec94a4ac1f6bc72124","object":"Address","created_at":"2022-04-26T19:14:57+00:00","updated_at":"2022-04-26T19:14:57+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"return_address":{"id":"adr_61bb3edfcbe811eca8adac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:47+00:00","updated_at":"2022-05-04T20:25:47+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipments":[{"created_at":"2022-04-26T19:14:57Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-04-26T19:14:57Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_29560690c59511ec94a4ac1f6bc72124","object":"Address","created_at":"2022-04-26T19:14:57+00:00","updated_at":"2022-04-26T19:14:57+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipments":[{"created_at":"2022-05-04T20:25:47Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:25:47Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_61bb3edfcbe811eca8adac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:47+00:00","updated_at":"2022-05-04T20:25:47+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":"order_3f6767396e5e45e895679f713d745142","parcel":{"id":"prcl_81cacdf634ad4ffdac356a73eee507ec","object":"Parcel","created_at":"2022-04-26T19:14:57Z","updated_at":"2022-04-26T19:14:57Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_f235e57648f84209915b7a2b0b7f8f51","object":"Rate","created_at":"2022-04-26T19:14:57Z","updated_at":"2022-04-26T19:14:57Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_7979e47f925f4997adc29812f3bbd5fe","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_0fd5ba2c326043bc8083a4a5c823e3aa","object":"Rate","created_at":"2022-04-26T19:14:57Z","updated_at":"2022-04-26T19:14:57Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_7979e47f925f4997adc29812f3bbd5fe","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_84298e25072e4d5fa9c9c9a526d0405f","object":"Rate","created_at":"2022-04-26T19:14:57Z","updated_at":"2022-04-26T19:14:57Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_7979e47f925f4997adc29812f3bbd5fe","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_cc44a41eec2e491fb277c9281f5af7fd","object":"Rate","created_at":"2022-04-26T19:14:57Z","updated_at":"2022-04-26T19:14:57Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_7979e47f925f4997adc29812f3bbd5fe","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_2954c591c59511ec8d08ac1f6b0a0d1e","object":"Address","created_at":"2022-04-26T19:14:57+00:00","updated_at":"2022-04-26T19:14:57+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":"order_2a77cf52fc7d4973acfa024d0f2ff830","parcel":{"id":"prcl_63781b693e2c47acb92c1766949d2be2","object":"Parcel","created_at":"2022-05-04T20:25:47Z","updated_at":"2022-05-04T20:25:47Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_a13f2113014044e79dc01d30210432ec","object":"Rate","created_at":"2022-05-04T20:25:47Z","updated_at":"2022-05-04T20:25:47Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_7269edec444c481b8988960ca18e23f2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_0e88814e91bb4433864ca010716eb425","object":"Rate","created_at":"2022-05-04T20:25:47Z","updated_at":"2022-05-04T20:25:47Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_7269edec444c481b8988960ca18e23f2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_748242241d294c8198411f2c7bfc0cce","object":"Rate","created_at":"2022-05-04T20:25:47Z","updated_at":"2022-05-04T20:25:47Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_7269edec444c481b8988960ca18e23f2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_9abb2b4054cf42e49d8e9eef1d450b5e","object":"Rate","created_at":"2022-05-04T20:25:47Z","updated_at":"2022-05-04T20:25:47Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_7269edec444c481b8988960ca18e23f2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_61b9f9bfcbe811ec8889ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:47+00:00","updated_at":"2022-05-04T20:25:47+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_29560690c59511ec94a4ac1f6bc72124","object":"Address","created_at":"2022-04-26T19:14:57+00:00","updated_at":"2022-04-26T19:14:57+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_61bb3edfcbe811eca8adac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:25:47+00:00","updated_at":"2022-05-04T20:25:47+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_2954c591c59511ec8d08ac1f6b0a0d1e","object":"Address","created_at":"2022-04-26T19:14:57+00:00","updated_at":"2022-04-26T19:14:57+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_61b9f9bfcbe811ec8889ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:47+00:00","updated_at":"2022-05-04T20:25:47+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_7979e47f925f4997adc29812f3bbd5fe","object":"Shipment"}],"rates":[{"id":"rate_f235e57648f84209915b7a2b0b7f8f51","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_7979e47f925f4997adc29812f3bbd5fe","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_0fd5ba2c326043bc8083a4a5c823e3aa","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_7979e47f925f4997adc29812f3bbd5fe","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_84298e25072e4d5fa9c9c9a526d0405f","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_7979e47f925f4997adc29812f3bbd5fe","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_cc44a41eec2e491fb277c9281f5af7fd","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_7979e47f925f4997adc29812f3bbd5fe","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"id":"order_3f6767396e5e45e895679f713d745142","object":"Order"}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_7269edec444c481b8988960ca18e23f2","object":"Shipment"}],"rates":[{"id":"rate_a13f2113014044e79dc01d30210432ec","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_7269edec444c481b8988960ca18e23f2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_0e88814e91bb4433864ca010716eb425","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_7269edec444c481b8988960ca18e23f2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_748242241d294c8198411f2c7bfc0cce","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_7269edec444c481b8988960ca18e23f2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_9abb2b4054cf42e49d8e9eef1d450b5e","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_7269edec444c481b8988960ca18e23f2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"id":"order_2a77cf52fc7d4973acfa024d0f2ff830","object":"Order"}' headers: cache-control: - no-cache, no-store @@ -57,11 +57,11 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"08f13259eb090769023ad12115db1aa2" + - W/"d61c37c1fbb840132c38eca7078808a6" expires: - '0' location: - - /api/v2/orders/order_3f6767396e5e45e895679f713d745142 + - /api/v2/orders/order_2a77cf52fc7d4973acfa024d0f2ff830 pragma: - no-cache referrer-policy: @@ -77,20 +77,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4bf626844b1e786c5c30023ebb1 + - 62b330b96272e14be786b88500162032 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.249067' + - '0.394298' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_order_retrieve.yaml b/tests/cassettes/test_order_retrieve.yaml index ac25351f..8e26545e 100644 --- a/tests/cassettes/test_order_retrieve.yaml +++ b/tests/cassettes/test_order_retrieve.yaml @@ -20,7 +20,7 @@ interactions: - keep-alive Content-Length: - '879' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -32,60 +32,36 @@ interactions: uri: https://api.easypost.com/v2/orders response: body: - string: !!binary | - H4sIAAAAAAAAA+xaWW/bSBL+KwZf1yP0ffgt2GQGu9idDcbZl1kEQnV3dcwZmRIoKolnkP++Reqw - HV9UbFCxh3lwxFZ1d6m/r+vkn8X5PGFxUjS4bIrjosaMNVaRhqrVbHZclMtpjc2qroqTDLMlHhfz - RVPOq2Vx8mcRV3UrfEHz/3v6mqYv4OIcq6b9rrlYtOuevvn59Ztfii9fjotzXC7hA9LM/9FUqOsS - 63bm21OauXmeQozzVdVMy0RfRZiKKIJSPiSbUGFSjqMMWicTrfaeKZq62amGBqdY1/O62O1Fw/+o - PsKsTEevYqSxo3+VEaslHlWr80Dbfznur0pUUlmQhjFvlZYQGNMiIoJOoBKyAVVJKMBom2O2WVmd - PKaUWU6G+5wF4ICqMMZSBhm1SVw5YV2KQgfFjQ4y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HdTcvlJhY8zAvtmJ9eKH0xPZ2IC+ZF4xFYkWMkFhWQCFIaK0DMgyg - FXf2oLy4hxJ0r3uUFbZivShhJ6p3WeF+SnB2Ip8vJdpaHAT0FD+g8o47TYEmU9FYxyO4dABKiCo9 - xAjJJrxHlLkV68MIkrWPyDMuo0z+WCPx1InHw4x43/USyF1/Vd9fRqimeV6f7wa66J9wra8kV12L - ocVo8zi+O/vSKv2r5WI5/aNTjo/vXL5QkMcXpF8iqq31bntL79uFcPNpH6+yQ/Z045PW7uLpW1Y3 - W9O3HdzYjnq+7ah9ER5bTc+l1bQvsmMb6Vm0kfa+sGOL6Bm1iPZFd2z/POv2z75wj62d76JA98jW - zr6oj22bZ9u2+fYLPrZknmtL5tsxvwfusd3yvbZb9oV7bKUcoJWy3wvwO7j/084ovvwfAAD//wMA - vjG3tKJTAAA= + string: '{"mode":"test","reference":null,"is_return":false,"options":{"currency":"USD","payment":{"type":"SENDER"}},"messages":[],"created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","customs_info":null,"from_address":{"id":"adr_5ff0e765cbe811ec8814ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"to_address":{"id":"adr_5fef662fcbe811ec90dcac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_5fef662fcbe811ec90dcac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"return_address":{"id":"adr_5ff0e765cbe811ec8814ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipments":[{"created_at":"2022-05-04T20:25:44Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:25:44Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_5ff0e765cbe811ec8814ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":"order_6136ffab24d84fe9aca2d73d164deb93","parcel":{"id":"prcl_5794917e93594732b0c4608462f786f0","object":"Parcel","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_67e14723be4d4c7fbd844ae2ea7bc977","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_a20fbe63f7d6401b9d747fe87482009a","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_ecdef40de5c44d3199c2994f496d3e6c","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_917e9ea5db794e10b6df2cecf2e2176a","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_5fef662fcbe811ec90dcac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_5ff0e765cbe811ec8814ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_5fef662fcbe811ec90dcac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_a5c52d46346147269f02399e254219b0","object":"Shipment"}],"rates":[{"id":"rate_67e14723be4d4c7fbd844ae2ea7bc977","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_a20fbe63f7d6401b9d747fe87482009a","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_ecdef40de5c44d3199c2994f496d3e6c","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_917e9ea5db794e10b6df2cecf2e2176a","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"id":"order_6136ffab24d84fe9aca2d73d164deb93","object":"Order"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '8848' content-type: - application/json; charset=utf-8 etag: - - W/"98e46b7fee190324573f9708f3817f37" + - W/"cbe158c3f36caf2443b167d860c66e9c" expires: - '0' location: - - /api/v2/orders/order_45230ea1ed2649989dce8b97243056b2 + - /api/v2/orders/order_6136ffab24d84fe9aca2d73d164deb93 pragma: - no-cache referrer-policy: @@ -101,21 +77,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b397ff03045f002a60bc + - 62b330b96272e148e786b88200161f01 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.760937' + - '0.260754' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -130,8 +105,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -139,58 +112,35 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/orders/order_45230ea1ed2649989dce8b97243056b2 + uri: https://api.easypost.com/v2/orders/order_6136ffab24d84fe9aca2d73d164deb93 response: body: - string: !!binary | - H4sIAAAAAAAAA+xa224bORL9FUOv6xF4Kd78Fmwyi13szgbj7MssAqFIFuPekVtCS0rGM8i/b3Xr - 4rvdig0p9sgPtpoqktU8h8U6LP8xOJ9kGpwM5jSbD44HDRVqqE7cVC/G4+NBNRs1NF809eCk4HhG - x4PJdF5N6tng5I9BWjSt8QX3/8/pW+4+xYtzquftd/OLaTvu6buf3r77efD16/HgnGYz/ETc87/c - FZumoqbt+f6Ue66eR5jSZFHPR1XmrxKOVFIRIMTsMgFl8JJ0NCbb5EwIArjraqYG5zSippk0g81c - 3Pz3+jOOq3z0JiVuO/pnlaie0VG9OI88/dfj/q4k0OBQWyGCA6MxCmFUIkKTETKJHbqSSaE1rqTi - CjiTA+VcRMlWhlIU0g5dEULkgjoZmyV45XxOykSQ1kSdvLS7dEWVjNpoLSQDYrIP0oAogbSXWatd - upK1jAocOOJVIReizTpllORF5JawQ1eKiT5YL7VCASLZCDpb/p1NEIU30w5dCTllockEmRBSSMEo - Y4RC5ZgwJrtdumIRLS+GMcmCVDEk4VUxoEoB6YXZoSukNTqMSiUvICj0ScrIpM2UMaLRO3TFeAUq - K+YFR11DMiSZhTcpRG+ktLsEi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S9F0LdyhHvdxy1LYIH0pNL6XUtC2yhzLSiygjbb1hDyWiF1Qi2hbd - Q/nnRZd/toX7UNr5Li7onlja2Rb1Q9nmxZZtvn2DH0oyL7Uk8+2YPwD3odzyvZZbtoX7UErZQyll - u3+A38D977bH4Ov/AQAA//8DADbr3NkmRwAA + string: '{"mode":"test","reference":null,"is_return":false,"options":{"currency":"USD","payment":{"type":"SENDER"}},"messages":[],"created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","customs_info":null,"from_address":{"id":"adr_5ff0e765cbe811ec8814ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"to_address":{"id":"adr_5fef662fcbe811ec90dcac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_5fef662fcbe811ec90dcac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"return_address":{"id":"adr_5ff0e765cbe811ec8814ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"shipments":[{"created_at":"2022-05-04T20:25:44Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:25:44Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_5ff0e765cbe811ec8814ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":"order_6136ffab24d84fe9aca2d73d164deb93","parcel":{"id":"prcl_5794917e93594732b0c4608462f786f0","object":"Parcel","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_67e14723be4d4c7fbd844ae2ea7bc977","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_a20fbe63f7d6401b9d747fe87482009a","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_ecdef40de5c44d3199c2994f496d3e6c","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_917e9ea5db794e10b6df2cecf2e2176a","object":"Rate","created_at":"2022-05-04T20:25:44Z","updated_at":"2022-05-04T20:25:44Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_5fef662fcbe811ec90dcac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_5ff0e765cbe811ec8814ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_5fef662fcbe811ec90dcac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:44+00:00","updated_at":"2022-05-04T20:25:44+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_a5c52d46346147269f02399e254219b0","object":"Shipment"}],"rates":[{"id":"rate_67e14723be4d4c7fbd844ae2ea7bc977","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_a20fbe63f7d6401b9d747fe87482009a","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_ecdef40de5c44d3199c2994f496d3e6c","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_917e9ea5db794e10b6df2cecf2e2176a","object":"Rate","created_at":null,"updated_at":null,"mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a5c52d46346147269f02399e254219b0","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"id":"order_6136ffab24d84fe9aca2d73d164deb93","object":"Order"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '8848' content-type: - application/json; charset=utf-8 etag: - - W/"7a0f55b4e84cd648a3c10ea93d6bbc95" + - W/"cbe158c3f36caf2443b167d860c66e9c" expires: - '0' pragma: @@ -208,21 +158,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b399ff03045f002a614b + - 62b330b96272e148e786b88200161f2c x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.127273' + - '0.105985' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_parcel_create.yaml b/tests/cassettes/test_parcel_create.yaml index 8c42c890..8b61088e 100644 --- a/tests/cassettes/test_parcel_create.yaml +++ b/tests/cassettes/test_parcel_create.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive Content-Length: - '75' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -22,24 +22,20 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: !!binary | - H4sIAAAAAAAAA4SMOw7CMBBE77J1iPxJ5M8pKKhoIsdeJwaTWMYRBeLu2BI93c7Me/uG4EBDyjZO - iinHpeJMKDmokczGe2sEscoJP1sOHezzDW2pwtlki7E2NqMp6CbTWkYYOxF+ouLCmKZSE3mtzJHc - XybitpQVNCU96eAVXAuy3SuGZa3m0ELK6NCHrX5Lxt7NgqC3I8aq/DA69kMHj93VBQo+C3y+AAAA - //8DAHucJp/lAAAA + string: '{"id":"prcl_c3c76620e3e943c88b8e94ae291d843f","object":"Parcel","created_at":"2022-05-04T20:25:48Z","updated_at":"2022-05-04T20:25:48Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '229' content-type: - application/json; charset=utf-8 etag: - - W/"57b6cccb9fd308e9fc4d8659ad7bece6" + - W/"5cfbcb5dcc7a0cfc07c5dd9cb724722f" expires: - '0' location: - - /api/v2/parcels.prcl_929d389327984950baffca70c9d7fbc3 + - /api/v2/parcels.prcl_c3c76620e3e943c88b8e94ae291d843f pragma: - no-cache referrer-policy: @@ -55,21 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5076233b3a0ff030462002a63dd + - 62b330bc6272e14ce786b89d0016208e x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.023918' + - '0.022810' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_parcel_retrieve.yaml b/tests/cassettes/test_parcel_retrieve.yaml index 2375d627..3b383348 100644 --- a/tests/cassettes/test_parcel_retrieve.yaml +++ b/tests/cassettes/test_parcel_retrieve.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive Content-Length: - '75' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -22,24 +22,20 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: !!binary | - H4sIAAAAAAAAA4SMuxKCMBBF/2VrYJIYIOQrLKxsmCW7PDRCBsNYOP67yYy93d57z9k3LAQWwu58 - T/XQ1lp0rSLSCjXWaJoBtTHaqbHRUMA23NjFJJxxd+xT43bGyNRjbpVQqhSnUrYXpaw0VnTXxByB - /jKe1ynOYKWoRAGvhXIw+Z55meZk6hzCzsTjsqZvAd0dJwa7Ht4n5YfJutIFPDZKC0R+Rvh8AQAA - //8DAKTnIj/lAAAA + string: '{"id":"prcl_35d1e841750348679b9970c4123d6935","object":"Parcel","created_at":"2022-05-04T20:25:48Z","updated_at":"2022-05-04T20:25:48Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '229' content-type: - application/json; charset=utf-8 etag: - - W/"0aca47d7014aab5e4e3b29cc98303dd2" + - W/"06105e1638fc6047757fb19d7e0b8209" expires: - '0' location: - - /api/v2/parcels.prcl_d5b7540972dd42a4a5a86ba4884c2f64 + - /api/v2/parcels.prcl_35d1e841750348679b9970c4123d6935 pragma: - no-cache referrer-policy: @@ -55,21 +51,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b3a1ff030463002a63e8 + - 62b330bc6272e14ce786b89e001620a7 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.027056' + - '0.023991' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -84,8 +79,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -93,23 +86,19 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/parcels/prcl_d5b7540972dd42a4a5a86ba4884c2f64 + uri: https://api.easypost.com/v2/parcels/prcl_35d1e841750348679b9970c4123d6935 response: body: - string: !!binary | - H4sIAAAAAAAAA4SMuxKCMBBF/2VrYJIYIOQrLKxsmCW7PDRCBsNYOP67yYy93d57z9k3LAQWwu58 - T/XQ1lp0rSLSCjXWaJoBtTHaqbHRUMA23NjFJJxxd+xT43bGyNRjbpVQqhSnUrYXpaw0VnTXxByB - /jKe1ynOYKWoRAGvhXIw+Z55meZk6hzCzsTjsqZvAd0dJwa7Ht4n5YfJutIFPDZKC0R+Rvh8AQAA - //8DAKTnIj/lAAAA + string: '{"id":"prcl_35d1e841750348679b9970c4123d6935","object":"Parcel","created_at":"2022-05-04T20:25:48Z","updated_at":"2022-05-04T20:25:48Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '229' content-type: - application/json; charset=utf-8 etag: - - W/"0aca47d7014aab5e4e3b29cc98303dd2" + - W/"06105e1638fc6047757fb19d7e0b8209" expires: - '0' pragma: @@ -127,21 +116,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b3a1ff030463002a63f1 + - 62b330bc6272e14ce786b89e001620b3 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.018114' + - '0.020743' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 9a64f1a3..c35722e4 100644 --- a/tests/cassettes/test_pickup_buy.yaml +++ b/tests/cassettes/test_pickup_buy.yaml @@ -29,15 +29,15 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at":"2022-04-26T17:15:43Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361116713366","updated_at":"2022-04-26T17:15:44Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_81223095c58411ecb510ac1f6bc7bdc6","object":"Address","created_at":"2022-04-26T17:15:43+00:00","updated_at":"2022-04-26T17:15:43+00:00","name":"Jack + string: '{"created_at":"2022-05-04T20:25:53Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768808","updated_at":"2022-05-04T20:25:53Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_65116f73cbe811eca172ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:53+00:00","updated_at":"2022-05-04T20:25:53+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_559a6c461ed346bfbc27022fce21b430","object":"Parcel","created_at":"2022-04-26T17:15:43Z","updated_at":"2022-04-26T17:15:43Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_fd99864fd9c9464eba4226cfe2b29cc5","created_at":"2022-04-26T17:15:44Z","updated_at":"2022-04-26T17:15:44Z","date_advance":0,"integrated_form":"none","label_date":"2022-04-26T17:15: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/20220426/b0511b1264a74bd2847700fcdcafe032.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_899c2e0ad443444e8e24b27c58b5d4a7","object":"Rate","created_at":"2022-04-26T17:15:43Z","updated_at":"2022-04-26T17:15:43Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8146653a7f76451795e16e3276e853a4","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_7ad4e7b6b1544d7ab9b977cf94cd813c","object":"Rate","created_at":"2022-04-26T17:15:43Z","updated_at":"2022-04-26T17:15:43Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_8146653a7f76451795e16e3276e853a4","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_74ae2550e9fd4c25a964c52db1f7c373","object":"Rate","created_at":"2022-04-26T17:15:43Z","updated_at":"2022-04-26T17:15:43Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_8146653a7f76451795e16e3276e853a4","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_d835d99f17474a028435e63b28ab2df6","object":"Rate","created_at":"2022-04-26T17:15:43Z","updated_at":"2022-04-26T17:15:43Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8146653a7f76451795e16e3276e853a4","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_d835d99f17474a028435e63b28ab2df6","object":"Rate","created_at":"2022-04-26T17:15:44Z","updated_at":"2022-04-26T17:15:44Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8146653a7f76451795e16e3276e853a4","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_a47ad0688f9049edbcf14c9f0dea5082","object":"Tracker","mode":"test","tracking_code":"9400100109361116713366","status":"unknown","status_detail":"unknown","created_at":"2022-04-26T17:15:44Z","updated_at":"2022-04-26T17:15:44Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_8146653a7f76451795e16e3276e853a4","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrX2E0N2FkMDY4OGY5MDQ5ZWRiY2YxNGM5ZjBkZWE1MDgy"},"to_address":{"id":"adr_81206515c58411ecb439ac1f6bc7b362","object":"Address","created_at":"2022-04-26T17:15:43+00:00","updated_at":"2022-04-26T17:15:43+00:00","name":"JACK + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_ffdc4a3daea2478493f23c56f6c73012","object":"Parcel","created_at":"2022-05-04T20:25:53Z","updated_at":"2022-05-04T20:25:53Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_ff71acc7d7424ff3a459139ab1ec2f29","created_at":"2022-05-04T20:25:53Z","updated_at":"2022-05-04T20:25:53Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:25: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/20220504/1b7e7bc4190442faa00ad3b9b0934c11.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_fc251ceae3024fe5aab18591af0e3f66","object":"Rate","created_at":"2022-05-04T20:25:53Z","updated_at":"2022-05-04T20:25:53Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f837fe0699d44b079e8586420b071bf1","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_6f53aa2b91da40738c8f7d59e19fe035","object":"Rate","created_at":"2022-05-04T20:25:53Z","updated_at":"2022-05-04T20:25:53Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f837fe0699d44b079e8586420b071bf1","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_6cb7c56de0b74c68b381c5f9b925d7e3","object":"Rate","created_at":"2022-05-04T20:25:53Z","updated_at":"2022-05-04T20:25:53Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_f837fe0699d44b079e8586420b071bf1","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_4bb3b983969d4425ab938d2da71fbc74","object":"Rate","created_at":"2022-05-04T20:25:53Z","updated_at":"2022-05-04T20:25:53Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_f837fe0699d44b079e8586420b071bf1","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_6f53aa2b91da40738c8f7d59e19fe035","object":"Rate","created_at":"2022-05-04T20:25:53Z","updated_at":"2022-05-04T20:25:53Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f837fe0699d44b079e8586420b071bf1","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_3799533fe78c45549e0e689b80375b81","object":"Tracker","mode":"test","tracking_code":"9400100109361117768808","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:25:53Z","updated_at":"2022-05-04T20:25:53Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_f837fe0699d44b079e8586420b071bf1","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzM3OTk1MzNmZTc4YzQ1NTQ5ZTBlNjg5YjgwMzc1Yjgx"},"to_address":{"id":"adr_650f0b5fcbe811ec8940ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:52+00:00","updated_at":"2022-05-04T20:25:53+00:00","name":"JACK SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN - FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_81223095c58411ecb510ac1f6bc7bdc6","object":"Address","created_at":"2022-04-26T17:15:43+00:00","updated_at":"2022-04-26T17:15:43+00:00","name":"Jack + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_65116f73cbe811eca172ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:53+00:00","updated_at":"2022-05-04T20:25:53+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_81206515c58411ecb439ac1f6bc7b362","object":"Address","created_at":"2022-04-26T17:15:43+00:00","updated_at":"2022-04-26T17:15:43+00:00","name":"JACK + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_650f0b5fcbe811ec8940ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:52+00:00","updated_at":"2022-05-04T20:25:53+00:00","name":"JACK SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN - FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_8146653a7f76451795e16e3276e853a4","object":"Shipment"}' + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_f837fe0699d44b079e8586420b071bf1","object":"Shipment"}' headers: cache-control: - no-cache, no-store @@ -46,11 +46,11 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"918250658b993b0b2689700dabae02c5" + - W/"cc2b6cd057004110a0595ceb85c8a7d3" expires: - '0' location: - - /api/v2/shipments/shp_8146653a7f76451795e16e3276e853a4 + - /api/v2/shipments/shp_f837fe0699d44b079e8586420b071bf1 pragma: - no-cache referrer-policy: @@ -66,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4ba626828bfe786b8a5001a6418 + - 62b330bc6272e150e786b8a100162292 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.285625' + - '0.908308' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -88,9 +88,9 @@ interactions: - request: body: '{"pickup": {"address": {"name": "Jack Sparrow", "company": "EasyPost", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", - "state": "CA", "zip": "94107", "phone": "5555555555"}, "min_datetime": "2022-04-27", - "max_datetime": "2022-04-27", "instructions": "Pickup at front door", "shipment": - {"id": "shp_8146653a7f76451795e16e3276e853a4"}}}' + "state": "CA", "zip": "94107", "phone": "5555555555"}, "min_datetime": "2022-05-06", + "max_datetime": "2022-05-06", "instructions": "Pickup at front door", "shipment": + {"id": "shp_f837fe0699d44b079e8586420b071bf1"}}}' headers: Accept: - '*/*' @@ -112,10 +112,10 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id":"pickup_500fd7e639b44b9289bf8960f45f6828","object":"Pickup","created_at":"2022-04-26T17:15:45Z","updated_at":"2022-04-26T17:15:45Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-04-27T00:00:00Z","max_datetime":"2022-04-27T00:00:00Z","is_account_address":false,"instructions":"Pickup - at front door","messages":[],"confirmation":null,"address":{"id":"adr_82007e9ac58411ecb9a2ac1f6b0a0d1e","object":"Address","created_at":"2022-04-26T17:15:44+00:00","updated_at":"2022-04-26T17:15:44+00:00","name":"Jack + string: '{"id":"pickup_a196e33f658242bd91529f61191295be","object":"Pickup","created_at":"2022-05-04T20:25:54Z","updated_at":"2022-05-04T20:25:54Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-05-06T00:00:00Z","max_datetime":"2022-05-06T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":null,"address":{"id":"adr_65a4cb91cbe811ec9200ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:53+00:00","updated_at":"2022-05-04T20:25:53+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-26T17:15:45Z","updated_at":"2022-04-26T17:15:45Z","carrier":"USPS","pickup_id":"pickup_500fd7e639b44b9289bf8960f45f6828","id":"pickuprate_637cac11bb6949e5b5b874e73b079ef0","object":"PickupRate"}]}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-05-04T20:25:54Z","updated_at":"2022-05-04T20:25:54Z","carrier":"USPS","pickup_id":"pickup_a196e33f658242bd91529f61191295be","id":"pickuprate_8ce8acd760734bbeb40bd92c6b859ae2","object":"PickupRate"}]}' headers: cache-control: - no-cache, no-store @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"6a219f69d6a1bc66eaa1057f8648a2fd" + - W/"b0511d23b45845ffcba8cb0f098b5303" expires: - '0' pragma: @@ -137,27 +137,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 19bdb4ba626828c0e786b8a5001a647f + - 62b330bc6272e151e786b8a10016230d x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb9nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.873564' + - '0.702178' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -183,13 +181,13 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/pickups/pickup_500fd7e639b44b9289bf8960f45f6828/buy + uri: https://api.easypost.com/v2/pickups/pickup_a196e33f658242bd91529f61191295be/buy response: body: - string: '{"id":"pickup_500fd7e639b44b9289bf8960f45f6828","object":"Pickup","created_at":"2022-04-26T17:15:45Z","updated_at":"2022-04-26T17:15:47Z","mode":"test","status":"scheduled","reference":null,"min_datetime":"2022-04-27T00:00:00Z","max_datetime":"2022-04-27T00:00:00Z","is_account_address":false,"instructions":"Pickup - at front door","messages":[],"confirmation":"WTC61776434","address":{"id":"adr_82007e9ac58411ecb9a2ac1f6b0a0d1e","object":"Address","created_at":"2022-04-26T17:15:44+00:00","updated_at":"2022-04-26T17:15:44+00:00","name":"Jack + string: '{"id":"pickup_a196e33f658242bd91529f61191295be","object":"Pickup","created_at":"2022-05-04T20:25:54Z","updated_at":"2022-05-04T20:25:55Z","mode":"test","status":"scheduled","reference":null,"min_datetime":"2022-05-06T00:00:00Z","max_datetime":"2022-05-06T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":"WTC61777384","address":{"id":"adr_65a4cb91cbe811ec9200ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:53+00:00","updated_at":"2022-05-04T20:25:53+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-26T17:15:45Z","updated_at":"2022-04-26T17:15:45Z","carrier":"USPS","pickup_id":"pickup_500fd7e639b44b9289bf8960f45f6828","id":"pickuprate_637cac11bb6949e5b5b874e73b079ef0","object":"PickupRate"}]}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-05-04T20:25:54Z","updated_at":"2022-05-04T20:25:54Z","carrier":"USPS","pickup_id":"pickup_a196e33f658242bd91529f61191295be","id":"pickuprate_8ce8acd760734bbeb40bd92c6b859ae2","object":"PickupRate"}]}' headers: cache-control: - no-cache, no-store @@ -198,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"64f50cc83ff8cfb71f71c6408489dbe0" + - W/"92e9fd5f3764daca1d83475718911cae" expires: - '0' pragma: @@ -216,20 +214,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4ba626828c1e786b8a5001a64df + - 62b330bc6272e152e786b8a10016234e x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb9nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.507143' + - '1.052962' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-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 eb65966d..c6ac53b4 100644 --- a/tests/cassettes/test_pickup_cancel.yaml +++ b/tests/cassettes/test_pickup_cancel.yaml @@ -29,15 +29,15 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at":"2022-04-26T17:15:47Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361116713380","updated_at":"2022-04-26T17:15:48Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_838ceff8c58411ecb52dac1f6bc7b362","object":"Address","created_at":"2022-04-26T17:15:47+00:00","updated_at":"2022-04-26T17:15:47+00:00","name":"Jack + string: '{"created_at":"2022-05-04T20:25:56Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768815","updated_at":"2022-05-04T20:25:56Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_66dd3661cbe811eca1e5ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:56+00:00","updated_at":"2022-05-04T20:25:56+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_0d54f16ee2a945d785e2b75a08940802","object":"Parcel","created_at":"2022-04-26T17:15:47Z","updated_at":"2022-04-26T17:15:47Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_22ca7eb29a554e148d42e5ea17b2fe23","created_at":"2022-04-26T17:15:47Z","updated_at":"2022-04-26T17:15:48Z","date_advance":0,"integrated_form":"none","label_date":"2022-04-26T17:15:47Z","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/20220426/a2b14fe6583b4406bca04478dcd384f4.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_139aee8983d74f12aa8cfbc0c15ac8fe","object":"Rate","created_at":"2022-04-26T17:15:47Z","updated_at":"2022-04-26T17:15:47Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_cf59de7d37a74eba91acbe849d45dcf3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_92c1b126bc7942e084da358f1a3f98b2","object":"Rate","created_at":"2022-04-26T17:15:47Z","updated_at":"2022-04-26T17:15:47Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_cf59de7d37a74eba91acbe849d45dcf3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e4fb20d9476641ffbba12385eb1d19b5","object":"Rate","created_at":"2022-04-26T17:15:47Z","updated_at":"2022-04-26T17:15:47Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_cf59de7d37a74eba91acbe849d45dcf3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_88f8c37969a84c16960f41acee001af8","object":"Rate","created_at":"2022-04-26T17:15:47Z","updated_at":"2022-04-26T17:15:47Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_cf59de7d37a74eba91acbe849d45dcf3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_e4fb20d9476641ffbba12385eb1d19b5","object":"Rate","created_at":"2022-04-26T17:15:48Z","updated_at":"2022-04-26T17:15:48Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_cf59de7d37a74eba91acbe849d45dcf3","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_3ee0d86790614780af72eb0c11dd489f","object":"Tracker","mode":"test","tracking_code":"9400100109361116713380","status":"unknown","status_detail":"unknown","created_at":"2022-04-26T17:15:48Z","updated_at":"2022-04-26T17:15:48Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_cf59de7d37a74eba91acbe849d45dcf3","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzNlZTBkODY3OTA2MTQ3ODBhZjcyZWIwYzExZGQ0ODlm"},"to_address":{"id":"adr_838af3dac58411ecb52bac1f6bc7b362","object":"Address","created_at":"2022-04-26T17:15:47+00:00","updated_at":"2022-04-26T17:15:47+00:00","name":"JACK + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_9b6e7c96135848ceaca9ddfd8e392903","object":"Parcel","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_f07b264cb97d49c39d37736c1fe9072a","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:25: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/20220504/2ba71f8f9c8043c29c7a628545e458de.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_02497804455d40819a23cde29d7ac42e","object":"Rate","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_3f4617c0bd7d48c0826429d909e98106","object":"Rate","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_8561ef9aa5e948e6a2fa1bd967ea2716","object":"Rate","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_c95d3056d6fb43f1812bc6905dd5c6a9","object":"Rate","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_8561ef9aa5e948e6a2fa1bd967ea2716","object":"Rate","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_66176ea992e94d2dab049f1646a23167","object":"Tracker","mode":"test","tracking_code":"9400100109361117768815","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzY2MTc2ZWE5OTJlOTRkMmRhYjA0OWYxNjQ2YTIzMTY3"},"to_address":{"id":"adr_66db3fcecbe811ec9258ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:56+00:00","updated_at":"2022-05-04T20:25:56+00:00","name":"JACK SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN - FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_838ceff8c58411ecb52dac1f6bc7b362","object":"Address","created_at":"2022-04-26T17:15:47+00:00","updated_at":"2022-04-26T17:15:47+00:00","name":"Jack + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_66dd3661cbe811eca1e5ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:56+00:00","updated_at":"2022-05-04T20:25:56+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_838af3dac58411ecb52bac1f6bc7b362","object":"Address","created_at":"2022-04-26T17:15:47+00:00","updated_at":"2022-04-26T17:15:47+00:00","name":"JACK + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_66db3fcecbe811ec9258ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:56+00:00","updated_at":"2022-05-04T20:25:56+00:00","name":"JACK SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN - FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_cf59de7d37a74eba91acbe849d45dcf3","object":"Shipment"}' + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_ec4cecb611444a7eb251247061ced771","object":"Shipment"}' headers: cache-control: - no-cache, no-store @@ -46,11 +46,11 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"104dba766c35d91bff7c9dbd157ecee3" + - W/"0991deed0ce8392772512c6b9bf21c26" expires: - '0' location: - - /api/v2/shipments/shp_cf59de7d37a74eba91acbe849d45dcf3 + - /api/v2/shipments/shp_ec4cecb611444a7eb251247061ced771 pragma: - no-cache referrer-policy: @@ -66,7 +66,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4be626828c3e786b8bf001a657c + - 62b330be6272e153e786b8a3001623e0 x-frame-options: - SAMEORIGIN x-node: @@ -74,12 +74,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.895327' + - '0.920166' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -88,9 +88,9 @@ interactions: - request: body: '{"pickup": {"address": {"name": "Jack Sparrow", "company": "EasyPost", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", - "state": "CA", "zip": "94107", "phone": "5555555555"}, "min_datetime": "2022-04-27", - "max_datetime": "2022-04-27", "instructions": "Pickup at front door", "shipment": - {"id": "shp_cf59de7d37a74eba91acbe849d45dcf3"}}}' + "state": "CA", "zip": "94107", "phone": "5555555555"}, "min_datetime": "2022-05-06", + "max_datetime": "2022-05-06", "instructions": "Pickup at front door", "shipment": + {"id": "shp_ec4cecb611444a7eb251247061ced771"}}}' headers: Accept: - '*/*' @@ -112,10 +112,10 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id":"pickup_059b8da147d043bab9a8f02ef1c66788","object":"Pickup","created_at":"2022-04-26T17:15:48Z","updated_at":"2022-04-26T17:15:48Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-04-27T00:00:00Z","max_datetime":"2022-04-27T00:00:00Z","is_account_address":false,"instructions":"Pickup - at front door","messages":[],"confirmation":null,"address":{"id":"adr_841fa910c58411ec84faac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:48+00:00","updated_at":"2022-04-26T17:15:48+00:00","name":"Jack + string: '{"id":"pickup_9416d45c41b648778fd9b438bff6a85a","object":"Pickup","created_at":"2022-05-04T20:25:57Z","updated_at":"2022-05-04T20:25:57Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-05-06T00:00:00Z","max_datetime":"2022-05-06T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":null,"address":{"id":"adr_677249f3cbe811ec9289ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:57+00:00","updated_at":"2022-05-04T20:25:57+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-26T17:15:49Z","updated_at":"2022-04-26T17:15:49Z","carrier":"USPS","pickup_id":"pickup_059b8da147d043bab9a8f02ef1c66788","id":"pickuprate_75119de949484faea0de029735ff5b93","object":"PickupRate"}]}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-05-04T20:25:57Z","updated_at":"2022-05-04T20:25:57Z","carrier":"USPS","pickup_id":"pickup_9416d45c41b648778fd9b438bff6a85a","id":"pickuprate_9fc2ad19a18d4dde878240f0a0401894","object":"PickupRate"}]}' headers: cache-control: - no-cache, no-store @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"fefbd3990675a53d20e243a54b4f45e3" + - W/"0e2022e8d18ee23d8227cfa0b3382e4b" expires: - '0' pragma: @@ -142,20 +142,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4be626828c4e786b8bf001a65de + - 62b330be6272e154e786b8a300162446 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.663174' + - '0.925428' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -181,13 +181,13 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/pickups/pickup_059b8da147d043bab9a8f02ef1c66788/buy + uri: https://api.easypost.com/v2/pickups/pickup_9416d45c41b648778fd9b438bff6a85a/buy response: body: - string: '{"id":"pickup_059b8da147d043bab9a8f02ef1c66788","object":"Pickup","created_at":"2022-04-26T17:15:48Z","updated_at":"2022-04-26T17:15:50Z","mode":"test","status":"scheduled","reference":null,"min_datetime":"2022-04-27T00:00:00Z","max_datetime":"2022-04-27T00:00:00Z","is_account_address":false,"instructions":"Pickup - at front door","messages":[],"confirmation":"WTC61776436","address":{"id":"adr_841fa910c58411ec84faac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:48+00:00","updated_at":"2022-04-26T17:15:48+00:00","name":"Jack + string: '{"id":"pickup_9416d45c41b648778fd9b438bff6a85a","object":"Pickup","created_at":"2022-05-04T20:25:57Z","updated_at":"2022-05-04T20:25:58Z","mode":"test","status":"scheduled","reference":null,"min_datetime":"2022-05-06T00:00:00Z","max_datetime":"2022-05-06T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":"WTC61777386","address":{"id":"adr_677249f3cbe811ec9289ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:57+00:00","updated_at":"2022-05-04T20:25:57+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-26T17:15:49Z","updated_at":"2022-04-26T17:15:49Z","carrier":"USPS","pickup_id":"pickup_059b8da147d043bab9a8f02ef1c66788","id":"pickuprate_75119de949484faea0de029735ff5b93","object":"PickupRate"}]}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-05-04T20:25:57Z","updated_at":"2022-05-04T20:25:57Z","carrier":"USPS","pickup_id":"pickup_9416d45c41b648778fd9b438bff6a85a","id":"pickuprate_9fc2ad19a18d4dde878240f0a0401894","object":"PickupRate"}]}' headers: cache-control: - no-cache, no-store @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"1ead5e24f003e64596fd8de461b03da6" + - W/"0882cee04aa9da198c6675c97cb404eb" expires: - '0' pragma: @@ -214,20 +214,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4be626828c5e786b8bf001a662d + - 62b330be6272e155e786b8a3001624b7 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.329403' + - '0.771490' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -253,13 +253,13 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/pickups/pickup_059b8da147d043bab9a8f02ef1c66788/cancel + uri: https://api.easypost.com/v2/pickups/pickup_9416d45c41b648778fd9b438bff6a85a/cancel response: body: - string: '{"id":"pickup_059b8da147d043bab9a8f02ef1c66788","object":"Pickup","created_at":"2022-04-26T17:15:48Z","updated_at":"2022-04-26T17:15:51Z","mode":"test","status":"canceled","reference":null,"min_datetime":"2022-04-27T00:00:00Z","max_datetime":"2022-04-27T00:00:00Z","is_account_address":false,"instructions":"Pickup - at front door","messages":[],"confirmation":"WTC61776436","address":{"id":"adr_841fa910c58411ec84faac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:48+00:00","updated_at":"2022-04-26T17:15:48+00:00","name":"Jack + string: '{"id":"pickup_9416d45c41b648778fd9b438bff6a85a","object":"Pickup","created_at":"2022-05-04T20:25:57Z","updated_at":"2022-05-04T20:25:59Z","mode":"test","status":"canceled","reference":null,"min_datetime":"2022-05-06T00:00:00Z","max_datetime":"2022-05-06T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":"WTC61777386","address":{"id":"adr_677249f3cbe811ec9289ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:57+00:00","updated_at":"2022-05-04T20:25:57+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-26T17:15:49Z","updated_at":"2022-04-26T17:15:49Z","carrier":"USPS","pickup_id":"pickup_059b8da147d043bab9a8f02ef1c66788","id":"pickuprate_75119de949484faea0de029735ff5b93","object":"PickupRate"}]}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-05-04T20:25:57Z","updated_at":"2022-05-04T20:25:57Z","carrier":"USPS","pickup_id":"pickup_9416d45c41b648778fd9b438bff6a85a","id":"pickuprate_9fc2ad19a18d4dde878240f0a0401894","object":"PickupRate"}]}' headers: cache-control: - no-cache, no-store @@ -268,7 +268,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"332c888058cd55feed180964de354a55" + - W/"b3133f51ab81cb9ecc95d1c328263733" expires: - '0' pragma: @@ -286,20 +286,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4be626828c6e786b8bf001a6697 + - 62b330be6272e157e786b8a300162524 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb9nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.851089' + - '0.863366' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-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 1b1d0683..b6238265 100644 --- a/tests/cassettes/test_pickup_create.yaml +++ b/tests/cassettes/test_pickup_create.yaml @@ -29,15 +29,15 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at":"2022-04-26T17:15:37Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361116713274","updated_at":"2022-04-26T17:15:38Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_7d6c90bac58411ec8255ac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:37+00:00","updated_at":"2022-04-26T17:15:37+00:00","name":"Jack + string: '{"created_at":"2022-05-04T20:25:48Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768785","updated_at":"2022-05-04T20:25:49Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_6284175fcbe811eca0efac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:48+00:00","updated_at":"2022-05-04T20:25:48+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_6499f3168c554c4c9c9fcdbe9304b6a4","object":"Parcel","created_at":"2022-04-26T17:15:37Z","updated_at":"2022-04-26T17:15:37Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_535d4b3b49194277a57e42bcef40bee8","created_at":"2022-04-26T17:15:37Z","updated_at":"2022-04-26T17:15:37Z","date_advance":0,"integrated_form":"none","label_date":"2022-04-26T17:15:37Z","label_resolution":300,"label_size":"4x6","label_type":"default","label_file_type":"image/png","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220426/9734130073b04211868a666be9908bd2.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_de25a43b5a7942dba00fcce5e76bb38c","object":"Rate","created_at":"2022-04-26T17:15:37Z","updated_at":"2022-04-26T17:15:37Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_f5d76ab9047e443e9d0911dfa2d3b0b7","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_be3c525a132c4e3a9cfdc8d0e44881e9","object":"Rate","created_at":"2022-04-26T17:15:37Z","updated_at":"2022-04-26T17:15:37Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_f5d76ab9047e443e9d0911dfa2d3b0b7","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_42172733d4f343f78493fd1052542f3f","object":"Rate","created_at":"2022-04-26T17:15:37Z","updated_at":"2022-04-26T17:15:37Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f5d76ab9047e443e9d0911dfa2d3b0b7","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_7470661824f840a0815299dbfc0635b9","object":"Rate","created_at":"2022-04-26T17:15:37Z","updated_at":"2022-04-26T17:15:37Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f5d76ab9047e443e9d0911dfa2d3b0b7","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_42172733d4f343f78493fd1052542f3f","object":"Rate","created_at":"2022-04-26T17:15:37Z","updated_at":"2022-04-26T17:15:37Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f5d76ab9047e443e9d0911dfa2d3b0b7","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_173417fbda7b4cafa549f15e67c78134","object":"Tracker","mode":"test","tracking_code":"9400100109361116713274","status":"unknown","status_detail":"unknown","created_at":"2022-04-26T17:15:38Z","updated_at":"2022-04-26T17:15:38Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_f5d76ab9047e443e9d0911dfa2d3b0b7","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzE3MzQxN2ZiZGE3YjRjYWZhNTQ5ZjE1ZTY3Yzc4MTM0"},"to_address":{"id":"adr_7d6a578dc58411ec8254ac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:37+00:00","updated_at":"2022-04-26T17:15:37+00:00","name":"JACK + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_be57fcb4f69d4772b1efd6f759f4f843","object":"Parcel","created_at":"2022-05-04T20:25:48Z","updated_at":"2022-05-04T20:25:48Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_b510e5bba5af477b92123b661ca52e62","created_at":"2022-05-04T20:25:49Z","updated_at":"2022-05-04T20:25:49Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:25:49Z","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/20220504/cc1efbff41dd46b3832391ebfacfc768.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_3b35d41d419f4c269d61ed816f6e35ed","object":"Rate","created_at":"2022-05-04T20:25:48Z","updated_at":"2022-05-04T20:25:48Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_8fb56db4b9504711a625163e5b35af59","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_a85628cf4c514b25b4a74eec4fd7aff7","object":"Rate","created_at":"2022-05-04T20:25:48Z","updated_at":"2022-05-04T20:25:48Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8fb56db4b9504711a625163e5b35af59","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_539a9bf42f2f42d98c6f5c91a069a6f9","object":"Rate","created_at":"2022-05-04T20:25:48Z","updated_at":"2022-05-04T20:25:48Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_8fb56db4b9504711a625163e5b35af59","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_4c332953c4f54099bce85e154ad51f02","object":"Rate","created_at":"2022-05-04T20:25:48Z","updated_at":"2022-05-04T20:25:48Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8fb56db4b9504711a625163e5b35af59","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_4c332953c4f54099bce85e154ad51f02","object":"Rate","created_at":"2022-05-04T20:25:49Z","updated_at":"2022-05-04T20:25:49Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8fb56db4b9504711a625163e5b35af59","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_fb495beb021445a9a1dbfa23cb0b765f","object":"Tracker","mode":"test","tracking_code":"9400100109361117768785","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:25:49Z","updated_at":"2022-05-04T20:25:49Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_8fb56db4b9504711a625163e5b35af59","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrX2ZiNDk1YmViMDIxNDQ1YTlhMWRiZmEyM2NiMGI3NjVm"},"to_address":{"id":"adr_628265c0cbe811ec9165ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:48+00:00","updated_at":"2022-05-04T20:25:48+00:00","name":"JACK SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN - FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_7d6c90bac58411ec8255ac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:37+00:00","updated_at":"2022-04-26T17:15:37+00:00","name":"Jack + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_6284175fcbe811eca0efac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:48+00:00","updated_at":"2022-05-04T20:25:48+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_7d6a578dc58411ec8254ac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:37+00:00","updated_at":"2022-04-26T17:15:37+00:00","name":"JACK + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_628265c0cbe811ec9165ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:48+00:00","updated_at":"2022-05-04T20:25:48+00:00","name":"JACK SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN - FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_f5d76ab9047e443e9d0911dfa2d3b0b7","object":"Shipment"}' + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_8fb56db4b9504711a625163e5b35af59","object":"Shipment"}' headers: cache-control: - no-cache, no-store @@ -46,11 +46,11 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"c5717fd29ed06f623cf42f220636d4ff" + - W/"000d3c39cff2b51329dd06aa16326edb" expires: - '0' location: - - /api/v2/shipments/shp_f5d76ab9047e443e9d0911dfa2d3b0b7 + - /api/v2/shipments/shp_8fb56db4b9504711a625163e5b35af59 pragma: - no-cache referrer-policy: @@ -66,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4c1626828b9e786b8a1001a622c + - 62b330bd6272e14ce786b89f001620c9 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.996982' + - '1.099036' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -88,9 +88,9 @@ interactions: - request: body: '{"pickup": {"address": {"name": "Jack Sparrow", "company": "EasyPost", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", - "state": "CA", "zip": "94107", "phone": "5555555555"}, "min_datetime": "2022-04-27", - "max_datetime": "2022-04-27", "instructions": "Pickup at front door", "shipment": - {"id": "shp_f5d76ab9047e443e9d0911dfa2d3b0b7"}}}' + "state": "CA", "zip": "94107", "phone": "5555555555"}, "min_datetime": "2022-05-06", + "max_datetime": "2022-05-06", "instructions": "Pickup at front door", "shipment": + {"id": "shp_8fb56db4b9504711a625163e5b35af59"}}}' headers: Accept: - '*/*' @@ -112,10 +112,10 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id":"pickup_22029bc17d0b40d0bb139b61edb30dbd","object":"Pickup","created_at":"2022-04-26T17:15:38Z","updated_at":"2022-04-26T17:15:38Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-04-27T00:00:00Z","max_datetime":"2022-04-27T00:00:00Z","is_account_address":false,"instructions":"Pickup - at front door","messages":[],"confirmation":null,"address":{"id":"adr_7e0e7089c58411ecb81dac1f6b0a0d1e","object":"Address","created_at":"2022-04-26T17:15:38+00:00","updated_at":"2022-04-26T17:15:38+00:00","name":"Jack + string: '{"id":"pickup_9c545da309d749a1b673e1cd791e48e6","object":"Pickup","created_at":"2022-05-04T20:25:49Z","updated_at":"2022-05-04T20:25:49Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-05-06T00:00:00Z","max_datetime":"2022-05-06T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":null,"address":{"id":"adr_633502e9cbe811ec88e2ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:49+00:00","updated_at":"2022-05-04T20:25:49+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-26T17:15:39Z","updated_at":"2022-04-26T17:15:39Z","carrier":"USPS","pickup_id":"pickup_22029bc17d0b40d0bb139b61edb30dbd","id":"pickuprate_b4840e1163e643c7a14185e9850f1666","object":"PickupRate"}]}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-05-04T20:25:50Z","updated_at":"2022-05-04T20:25:50Z","carrier":"USPS","pickup_id":"pickup_9c545da309d749a1b673e1cd791e48e6","id":"pickuprate_05c860a4ae034b4583dac7bde3c97002","object":"PickupRate"}]}' headers: cache-control: - no-cache, no-store @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"f2eea40f8e9c8e2c091cab21fa21f227" + - W/"e61a8dbade6374518e7ec2e104041c44" expires: - '0' pragma: @@ -142,20 +142,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4c1626828bae786b8a1001a6278 + - 62b330bd6272e14de786b89f0016213d x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb9nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.633757' + - '0.805318' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-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 b31c67a8..012bcb3b 100644 --- a/tests/cassettes/test_pickup_lowest_rate.yaml +++ b/tests/cassettes/test_pickup_lowest_rate.yaml @@ -29,15 +29,15 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at":"2022-04-26T17:15:51Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361116713403","updated_at":"2022-04-26T17:15:52Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_862c8457c58411ecb621ac1f6bc7b362","object":"Address","created_at":"2022-04-26T17:15:51+00:00","updated_at":"2022-04-26T17:15:51+00:00","name":"Jack + string: '{"created_at":"2022-05-04T20:26:00Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768839","updated_at":"2022-05-04T20:26:01Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_6951a811cbe811eca298ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:00+00:00","updated_at":"2022-05-04T20:26:00+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_3eb2cd466d504d1cb39271d2c21d82d5","object":"Parcel","created_at":"2022-04-26T17:15:51Z","updated_at":"2022-04-26T17:15:51Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_54ef9db03f8f4704910e40644b78d8c0","created_at":"2022-04-26T17:15:52Z","updated_at":"2022-04-26T17:15:52Z","date_advance":0,"integrated_form":"none","label_date":"2022-04-26T17:15: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/20220426/971fb63038704d9faa96817ee47f5088.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_7af50a4525ce4938a84cb5c092e03add","object":"Rate","created_at":"2022-04-26T17:15:52Z","updated_at":"2022-04-26T17:15:52Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_e28d6f27b30145b39d9aab745f0ed331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e4765b3f9f444db2ab595943ed104bba","object":"Rate","created_at":"2022-04-26T17:15:52Z","updated_at":"2022-04-26T17:15:52Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_e28d6f27b30145b39d9aab745f0ed331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_335a8754b6d541c6b0a37d71f942dd20","object":"Rate","created_at":"2022-04-26T17:15:52Z","updated_at":"2022-04-26T17:15:52Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_e28d6f27b30145b39d9aab745f0ed331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_1cb0952a552842fdad1a4d7d70fa6d2e","object":"Rate","created_at":"2022-04-26T17:15:52Z","updated_at":"2022-04-26T17:15:52Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_e28d6f27b30145b39d9aab745f0ed331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_1cb0952a552842fdad1a4d7d70fa6d2e","object":"Rate","created_at":"2022-04-26T17:15:52Z","updated_at":"2022-04-26T17:15:52Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_e28d6f27b30145b39d9aab745f0ed331","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_2dad63a3160a41f9a036c381d7a99ec6","object":"Tracker","mode":"test","tracking_code":"9400100109361116713403","status":"unknown","status_detail":"unknown","created_at":"2022-04-26T17:15:52Z","updated_at":"2022-04-26T17:15:52Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_e28d6f27b30145b39d9aab745f0ed331","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzJkYWQ2M2EzMTYwYTQxZjlhMDM2YzM4MWQ3YTk5ZWM2"},"to_address":{"id":"adr_8628abe6c58411ec85ceac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:51+00:00","updated_at":"2022-04-26T17:15:52+00:00","name":"JACK + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_c363a8b0d36d41ffa59da05a519845ea","object":"Parcel","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_2e38297ac4d044abbc13e62b9dc7f95b","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:01Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/093c2153e2d8437b9b20c001712bf9fe.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_2905ed21cebe461ebc6f986c29f5304c","object":"Rate","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_65ab7653326b429491d9a7320e9b6d62","object":"Rate","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_d21af3c219f845d1bdec0aa9261b0fa7","object":"Rate","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_fdd96103d81a46d19494c4e4a8f23218","object":"Rate","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_d21af3c219f845d1bdec0aa9261b0fa7","object":"Rate","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_89ce0d1cd1b14a9eb4b24ac87eb4f552","object":"Tracker","mode":"test","tracking_code":"9400100109361117768839","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:26:01Z","updated_at":"2022-05-04T20:26:01Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzg5Y2UwZDFjZDFiMTRhOWViNGIyNGFjODdlYjRmNTUy"},"to_address":{"id":"adr_694feef2cbe811ec9303ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:00+00:00","updated_at":"2022-05-04T20:26:00+00:00","name":"JACK SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN - FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_862c8457c58411ecb621ac1f6bc7b362","object":"Address","created_at":"2022-04-26T17:15:51+00:00","updated_at":"2022-04-26T17:15:51+00:00","name":"Jack + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_6951a811cbe811eca298ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:00+00:00","updated_at":"2022-05-04T20:26:00+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_8628abe6c58411ec85ceac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:51+00:00","updated_at":"2022-04-26T17:15:52+00:00","name":"JACK + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_694feef2cbe811ec9303ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:00+00:00","updated_at":"2022-05-04T20:26:00+00:00","name":"JACK SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN - FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_e28d6f27b30145b39d9aab745f0ed331","object":"Shipment"}' + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_f5288013455341fa8b320ac6ae2ba40f","object":"Shipment"}' headers: cache-control: - no-cache, no-store @@ -46,11 +46,11 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"e7b6ccdb556d5ee9f04bd64e7fd33e3b" + - W/"a6435080434f4978966a9ceed0a0de5c" expires: - '0' location: - - /api/v2/shipments/shp_e28d6f27b30145b39d9aab745f0ed331 + - /api/v2/shipments/shp_f5288013455341fa8b320ac6ae2ba40f pragma: - no-cache referrer-policy: @@ -66,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4bb626828c7e786b8c0001a66eb + - 62b330b96272e158e786b8a400162596 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.103883' + - '1.127057' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -88,9 +88,9 @@ interactions: - request: body: '{"pickup": {"address": {"name": "Jack Sparrow", "company": "EasyPost", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", - "state": "CA", "zip": "94107", "phone": "5555555555"}, "min_datetime": "2022-04-27", - "max_datetime": "2022-04-27", "instructions": "Pickup at front door", "shipment": - {"id": "shp_e28d6f27b30145b39d9aab745f0ed331"}}}' + "state": "CA", "zip": "94107", "phone": "5555555555"}, "min_datetime": "2022-05-06", + "max_datetime": "2022-05-06", "instructions": "Pickup at front door", "shipment": + {"id": "shp_f5288013455341fa8b320ac6ae2ba40f"}}}' headers: Accept: - '*/*' @@ -112,10 +112,10 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id":"pickup_c45a353170c0419db92e7e671f1fb566","object":"Pickup","created_at":"2022-04-26T17:15:53Z","updated_at":"2022-04-26T17:15:53Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-04-27T00:00:00Z","max_datetime":"2022-04-27T00:00:00Z","is_account_address":false,"instructions":"Pickup - at front door","messages":[],"confirmation":null,"address":{"id":"adr_86e0e18ac58411ec8613ac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:53+00:00","updated_at":"2022-04-26T17:15:53+00:00","name":"Jack + string: '{"id":"pickup_6affcfed56cf4947b38972a64c4292c9","object":"Pickup","created_at":"2022-05-04T20:26:01Z","updated_at":"2022-05-04T20:26:01Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-05-06T00:00:00Z","max_datetime":"2022-05-06T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":null,"address":{"id":"adr_6a065ba1cbe811eca2b2ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:01+00:00","updated_at":"2022-05-04T20:26:01+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-26T17:15:53Z","updated_at":"2022-04-26T17:15:53Z","carrier":"USPS","pickup_id":"pickup_c45a353170c0419db92e7e671f1fb566","id":"pickuprate_8106d46e5c544fd7a8c22f5885f9fac7","object":"PickupRate"}]}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-05-04T20:26:01Z","updated_at":"2022-05-04T20:26:01Z","carrier":"USPS","pickup_id":"pickup_6affcfed56cf4947b38972a64c4292c9","id":"pickuprate_b9e96c4b0ef748abbd62c5b1855dfcd9","object":"PickupRate"}]}' headers: cache-control: - no-cache, no-store @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"b04121266c69a8e6128a941c7d1b4387" + - W/"930456a189be2c46628dfb39f7939635" expires: - '0' pragma: @@ -142,20 +142,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4bb626828c9e786b8c0001a674b + - 62b330b96272e159e786b8a400162617 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.854531' + - '0.676594' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-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 5c0392fc..ccfa7293 100644 --- a/tests/cassettes/test_pickup_retrieve.yaml +++ b/tests/cassettes/test_pickup_retrieve.yaml @@ -29,15 +29,15 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at":"2022-04-26T17:15:40Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361116713342","updated_at":"2022-04-26T17:15:40Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_7f2907f6c58411ec8302ac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:40+00:00","updated_at":"2022-04-26T17:15:40+00:00","name":"Jack + string: '{"created_at":"2022-05-04T20:25:50Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768792","updated_at":"2022-05-04T20:25:51Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_63d16cc7cbe811ec8900ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:50+00:00","updated_at":"2022-05-04T20:25:50+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_f20fd439f1e24904a0fce18cc4ee689c","object":"Parcel","created_at":"2022-04-26T17:15:40Z","updated_at":"2022-04-26T17:15:40Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_dcda71a1ae1e48babd304081793f31dc","created_at":"2022-04-26T17:15:40Z","updated_at":"2022-04-26T17:15:40Z","date_advance":0,"integrated_form":"none","label_date":"2022-04-26T17:15:40Z","label_resolution":300,"label_size":"4x6","label_type":"default","label_file_type":"image/png","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220426/192dd5c5388c48f0abe1eba1bad038ec.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_a5c147f4c7ee4e27a19185f94a2d9474","object":"Rate","created_at":"2022-04-26T17:15:40Z","updated_at":"2022-04-26T17:15:40Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_386bc0886ef84189816a0e4ec4b2588b","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e3f26db8364242ff9b8acb03ce9185cb","object":"Rate","created_at":"2022-04-26T17:15:40Z","updated_at":"2022-04-26T17:15:40Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_386bc0886ef84189816a0e4ec4b2588b","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_a8c44b7442f446d0b48334cd05c394d3","object":"Rate","created_at":"2022-04-26T17:15:40Z","updated_at":"2022-04-26T17:15:40Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_386bc0886ef84189816a0e4ec4b2588b","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_9133c5f533124e1d99ab2ee54bff0ecf","object":"Rate","created_at":"2022-04-26T17:15:40Z","updated_at":"2022-04-26T17:15:40Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_386bc0886ef84189816a0e4ec4b2588b","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_a8c44b7442f446d0b48334cd05c394d3","object":"Rate","created_at":"2022-04-26T17:15:40Z","updated_at":"2022-04-26T17:15:40Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_386bc0886ef84189816a0e4ec4b2588b","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_2fcb53c0891e44dcbb8d2497647ab20a","object":"Tracker","mode":"test","tracking_code":"9400100109361116713342","status":"unknown","status_detail":"unknown","created_at":"2022-04-26T17:15:40Z","updated_at":"2022-04-26T17:15:40Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_386bc0886ef84189816a0e4ec4b2588b","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzJmY2I1M2MwODkxZTQ0ZGNiYjhkMjQ5NzY0N2FiMjBh"},"to_address":{"id":"adr_7f27187dc58411ecb49cac1f6bc7bdc6","object":"Address","created_at":"2022-04-26T17:15:40+00:00","updated_at":"2022-04-26T17:15:40+00:00","name":"JACK + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_41f1b211669947ccbd8809df07d9ffa8","object":"Parcel","created_at":"2022-05-04T20:25:50Z","updated_at":"2022-05-04T20:25:50Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_3a5aa93557424ace8170e6918ad0d70b","created_at":"2022-05-04T20:25:51Z","updated_at":"2022-05-04T20:25:51Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:25:51Z","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/20220504/5fbe2ff7e200494da89376e1e6e761ef.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_30098f8f57dd4524b53d36b60ea126e2","object":"Rate","created_at":"2022-05-04T20:25:51Z","updated_at":"2022-05-04T20:25:51Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_9495b7343a544c738f5abeb593c570e2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_126d502f7cc642b1bc6c7e6063c3eb41","object":"Rate","created_at":"2022-05-04T20:25:51Z","updated_at":"2022-05-04T20:25:51Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9495b7343a544c738f5abeb593c570e2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_ecf0af7374cf44e6bbe31f93d6af6e62","object":"Rate","created_at":"2022-05-04T20:25:51Z","updated_at":"2022-05-04T20:25:51Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_9495b7343a544c738f5abeb593c570e2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_ce88c8a539774349aaf55569e47c419f","object":"Rate","created_at":"2022-05-04T20:25:51Z","updated_at":"2022-05-04T20:25:51Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9495b7343a544c738f5abeb593c570e2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_ce88c8a539774349aaf55569e47c419f","object":"Rate","created_at":"2022-05-04T20:25:51Z","updated_at":"2022-05-04T20:25:51Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9495b7343a544c738f5abeb593c570e2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_68c9482836ea47d2930fb03066cb7499","object":"Tracker","mode":"test","tracking_code":"9400100109361117768792","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:25:51Z","updated_at":"2022-05-04T20:25:51Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_9495b7343a544c738f5abeb593c570e2","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzY4Yzk0ODI4MzZlYTQ3ZDI5MzBmYjAzMDY2Y2I3NDk5"},"to_address":{"id":"adr_63cf9a62cbe811ec91acac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:50+00:00","updated_at":"2022-05-04T20:25:51+00:00","name":"JACK SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN - FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_7f2907f6c58411ec8302ac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:40+00:00","updated_at":"2022-04-26T17:15:40+00:00","name":"Jack + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_63d16cc7cbe811ec8900ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:25:50+00:00","updated_at":"2022-05-04T20:25:50+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_7f27187dc58411ecb49cac1f6bc7bdc6","object":"Address","created_at":"2022-04-26T17:15:40+00:00","updated_at":"2022-04-26T17:15:40+00:00","name":"JACK + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_63cf9a62cbe811ec91acac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:50+00:00","updated_at":"2022-05-04T20:25:51+00:00","name":"JACK SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN - FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_386bc0886ef84189816a0e4ec4b2588b","object":"Shipment"}' + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_9495b7343a544c738f5abeb593c570e2","object":"Shipment"}' headers: cache-control: - no-cache, no-store @@ -46,11 +46,11 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"01a310072ed75ef6986e0c416546733e" + - W/"49c4e4997a9f890a53a2eb0dfa41fa58" expires: - '0' location: - - /api/v2/shipments/shp_386bc0886ef84189816a0e4ec4b2588b + - /api/v2/shipments/shp_9495b7343a544c738f5abeb593c570e2 pragma: - no-cache referrer-policy: @@ -66,20 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4bd626828bce786b8a4001a6329 + - 62b330bd6272e14ee786b8a0001621a9 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.909961' + - '0.888630' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -88,9 +88,9 @@ interactions: - request: body: '{"pickup": {"address": {"name": "Jack Sparrow", "company": "EasyPost", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", - "state": "CA", "zip": "94107", "phone": "5555555555"}, "min_datetime": "2022-04-27", - "max_datetime": "2022-04-27", "instructions": "Pickup at front door", "shipment": - {"id": "shp_386bc0886ef84189816a0e4ec4b2588b"}}}' + "state": "CA", "zip": "94107", "phone": "5555555555"}, "min_datetime": "2022-05-06", + "max_datetime": "2022-05-06", "instructions": "Pickup at front door", "shipment": + {"id": "shp_9495b7343a544c738f5abeb593c570e2"}}}' headers: Accept: - '*/*' @@ -112,10 +112,10 @@ interactions: uri: https://api.easypost.com/v2/pickups response: body: - string: '{"id":"pickup_0a9143ce4ad84dd9bf8962323379ff7d","object":"Pickup","created_at":"2022-04-26T17:15:41Z","updated_at":"2022-04-26T17:15:41Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-04-27T00:00:00Z","max_datetime":"2022-04-27T00:00:00Z","is_account_address":false,"instructions":"Pickup - at front door","messages":[],"confirmation":null,"address":{"id":"adr_7fbc64a0c58411ec832aac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:41+00:00","updated_at":"2022-04-26T17:15:41+00:00","name":"Jack + string: '{"id":"pickup_12265694f7474f6fa46f982b9471910a","object":"Pickup","created_at":"2022-05-04T20:25:51Z","updated_at":"2022-05-04T20:25:51Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-05-06T00:00:00Z","max_datetime":"2022-05-06T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":null,"address":{"id":"adr_6461f574cbe811eca151ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:51+00:00","updated_at":"2022-05-04T20:25:51+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-26T17:15:42Z","updated_at":"2022-04-26T17:15:42Z","carrier":"USPS","pickup_id":"pickup_0a9143ce4ad84dd9bf8962323379ff7d","id":"pickuprate_b967c9d8b222498f9fdbdd24f1c9b8c9","object":"PickupRate"}]}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-05-04T20:25:52Z","updated_at":"2022-05-04T20:25:52Z","carrier":"USPS","pickup_id":"pickup_12265694f7474f6fa46f982b9471910a","id":"pickuprate_4d9e022aa49e4fa785d111e8b41d7446","object":"PickupRate"}]}' headers: cache-control: - no-cache, no-store @@ -124,7 +124,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"2663a16abcedfab862b9ba3af4aba7f3" + - W/"2f473c7f9d8ffee26647f9fe3870030c" expires: - '0' pragma: @@ -137,27 +137,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - 19bdb4bd626828bde786b8a4001a6365 + - 62b330bd6272e14fe786b8a000162213 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.823778' + - '0.778574' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -179,13 +177,13 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/pickups/pickup_0a9143ce4ad84dd9bf8962323379ff7d + uri: https://api.easypost.com/v2/pickups/pickup_12265694f7474f6fa46f982b9471910a response: body: - string: '{"id":"pickup_0a9143ce4ad84dd9bf8962323379ff7d","object":"Pickup","created_at":"2022-04-26T17:15:41Z","updated_at":"2022-04-26T17:15:41Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-04-27T00:00:00Z","max_datetime":"2022-04-27T00:00:00Z","is_account_address":false,"instructions":"Pickup - at front door","messages":[],"confirmation":null,"address":{"id":"adr_7fbc64a0c58411ec832aac1f6bc72124","object":"Address","created_at":"2022-04-26T17:15:41+00:00","updated_at":"2022-04-26T17:15:41+00:00","name":"Jack + string: '{"id":"pickup_12265694f7474f6fa46f982b9471910a","object":"Pickup","created_at":"2022-05-04T20:25:51Z","updated_at":"2022-05-04T20:25:51Z","mode":"test","status":"unknown","reference":null,"min_datetime":"2022-05-06T00:00:00Z","max_datetime":"2022-05-06T00:00:00Z","is_account_address":false,"instructions":"Pickup + at front door","messages":[],"confirmation":null,"address":{"id":"adr_6461f574cbe811eca151ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:51+00:00","updated_at":"2022-05-04T20:25:51+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-04-26T17:15:42Z","updated_at":"2022-04-26T17:15:42Z","carrier":"USPS","pickup_id":"pickup_0a9143ce4ad84dd9bf8962323379ff7d","id":"pickuprate_b967c9d8b222498f9fdbdd24f1c9b8c9","object":"PickupRate"}]}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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-05-04T20:25:52Z","updated_at":"2022-05-04T20:25:52Z","carrier":"USPS","pickup_id":"pickup_12265694f7474f6fa46f982b9471910a","id":"pickuprate_4d9e022aa49e4fa785d111e8b41d7446","object":"PickupRate"}]}' headers: cache-control: - no-cache, no-store @@ -194,7 +192,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"2663a16abcedfab862b9ba3af4aba7f3" + - W/"2f473c7f9d8ffee26647f9fe3870030c" expires: - '0' pragma: @@ -212,20 +210,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 19bdb4bd626828bee786b8a4001a63f8 + - 62b330bd6272e150e786b8a00016226c x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.044855' + - '0.071007' x-version-label: - - easypost-202204251804-93ddab36b5-master + - easypost-202205041833-02730cc398-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 71ee8670..8e79d081 100644 --- a/tests/cassettes/test_rate_retrieve.yaml +++ b/tests/cassettes/test_rate_retrieve.yaml @@ -15,7 +15,7 @@ interactions: - keep-alive Content-Length: - '477' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -27,56 +27,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xZ227cyBH9FWFeox10V9/1JsTaIEGyMFbOiwNjUN1dLTE74gxIjm3twv+eIuci - yReJhgxO4lgPwrBZ3V2sc/pUFfnHLDWEHeUFdrOzGQiAn4T6SbpXAGfSn4F8PTudVe2ioW7T1LOz - gsuWTmc31LZ4Re3s7F9/zBI2TUUNz//ny0s2310vMKXVpu4WVeZbCRchpywUmSAT6hRSMGCMAAQX - tTTZ8dTudk1s3LBLC2qaVTM77MXDf63f4rLKJ+cp8djJ36tEdUsn9eYm8vYfTse7IqBkVEYpIVFn - k32QRosSSHmZFdgJXUlaaYfKChGcNgqjEAYSEZrMrpGY0BUNZMFJxOKtVpE8mmiFizKDjQ78hK4U - E32wXipAoUWyUats+X82QRRScUquyFikQA1SkC4lYRAmacxBuKRyNhO6EqXUJmY02gdtA3lwxZkQ - pQ2KEPKErmQCtMaVVFzRzuRAORdRspWhFECa0BVVINjkdNSkOColqBizdeBSygXUlABBgqh1iNll - 0pS1l8xVYzK7Z0IQekraCpELqmRslpqJ4nMCw0JrTVTJyyklzmsTmC4iBdaV4AmjZJkNVipNUdgy - oSsugFSevDdCMlA6IiVhsGhTtPYlTBkVo6NwJUfBxAhoY+FEYI1g95y2MGVUSCl0GAGSZ1cAfZIy - cjLMlDGiURO6YjxoyMAizyfJkAxJZuFNCtEbKe2URQJYG5IrHnpAJMNUBFmhEoSklLdTShxnnsQM - UaCI9QXBA0bLMme9LcrilIfZgEDJhYk2CJqLgyg5H/oodYlk+HBNmQ6Tg+Jd8gRKl8BcDSIRq6+O - rHVuSlfIJM/HObPEsdqWEln2rYQIOmTBZcuErgSLaLliMiZZzS6EJDwUo6EULb2YMh1mJTkCTjvi - HEQuRJtVyijJi8gjz1bbN2y7yr1hR23HM1frrlrV3Jawj5umoTrd9k5evuB7a7y9obrr7+02vb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QVtkjQK9e4O3njv6D - JCDn3o9IAjuzUUkA5qDHMkB9woDDUwK8AnU2VPOvZ49xoms2n6eE+saUQBm1cpY7mZg0eBeNj9zb - GGmtTTLrjygBoJwTMRQfBUuBC5os96VW2MLi4NIRKPELve+YFedVc4HN8vb8H19mhpdzPSIp7M3G - MMPD3I5OC5+Wh3cP618J/yxmfOt68SuZIUVJ4EPQPpCmAGiLRJ+ioIyBZDwCM/7S8APlL9NByrkd - kSj2ZmPoIO1XVAmP0+GZQnFkOignPHcPxnKLqntWxALZZwchMkuGivp4QnGJHKgv80LD3NmnebE3 - G8MLbeZudAL5nnmRJQnUxSgIUhf06KIr3hamikDyx5CJO148Qgk+1yMay73ZKEpwEzq6sXycElKc - qf9dSkgpySoVAYrX0vWfp5I0BTSTRICnI1AC6vwUI5SYyxFV5t5sDCPY1j2jxbyrMuVzReJbNx5P - M+LN8J2A0/VH7+7bhPWirJqbw8BQ/TOuzb3mavh80GO0u1x96S2+cVn7/Vv8QNlv3+IL5BbnAdF+ - vMX/73qLv2nX7eL3wTk5nKZNU//4VPOdgRw3t714/Di63xWqvXr335be9AvR7tfXZJUDspe7nDT7 - 8B8AAAD//wMAbYyD0G4rAAA= + string: '{"created_at":"2022-05-04T20:26:02Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:02Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_6a926173cbe811ecaa1fac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:02+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_aa0035712d82414d8f57218e36ee07d1","object":"Parcel","created_at":"2022-05-04T20:26:02Z","updated_at":"2022-05-04T20:26:02Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_8e3bdbba2f5143c28cada75a5e86f6e2","object":"Rate","created_at":"2022-05-04T20:26:02Z","updated_at":"2022-05-04T20:26:02Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_0415e3dc970d48159162f9482b94edcd","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_811a7fc42a754c90ba6d15a3b1ba4ea4","object":"Rate","created_at":"2022-05-04T20:26:02Z","updated_at":"2022-05-04T20:26:02Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_0415e3dc970d48159162f9482b94edcd","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_a19a1ca43d68466f9b836dbf883ce426","object":"Rate","created_at":"2022-05-04T20:26:02Z","updated_at":"2022-05-04T20:26:02Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_0415e3dc970d48159162f9482b94edcd","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_c99e3c05df334e7680a24e19852141d2","object":"Rate","created_at":"2022-05-04T20:26:02Z","updated_at":"2022-05-04T20:26:02Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_0415e3dc970d48159162f9482b94edcd","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_6a9028f3cbe811ecaa1eac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:02+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_6a926173cbe811ecaa1fac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:02+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6a9028f3cbe811ecaa1eac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:02+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_0415e3dc970d48159162f9482b94edcd","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4729' content-type: - application/json; charset=utf-8 etag: - - W/"545c4b20270bdc89787614dda88101a0" + - W/"912dff4b72b5f52b145a10798651a240" expires: - '0' location: - - /api/v2/shipments/shp_deab95955b974ace8e4a5ecea8567ed7 + - /api/v2/shipments/shp_0415e3dc970d48159162f9482b94edcd pragma: - no-cache referrer-policy: @@ -87,28 +59,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b3adff030468002a66e9 + - 62b330b76272e15ae786b8a50016267e x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.815443' + - '0.255957' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -123,8 +92,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -132,25 +99,19 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/rates/rate_750419b7acdd4bfc9650e3847448bf4d + uri: https://api.easypost.com/v2/rates/rate_8e3bdbba2f5143c28cada75a5e86f6e2 response: body: - string: !!binary | - H4sIAAAAAAAAA4SRQW7DIBBF78I6iQwGA173AFHTbrpBA0waKse2AEeyqt69ELWK0iy6Y97/fwaG - TxI86UmEjEaKhlNtJTjvuT063YkGW8Ul58oeuScbMtkPdLkEnkug1C5iOXgDlbGGsW3Tbql8Yayn - qmftW/Ess//Xc548FjVjyqVKGC/BVbCPYYohr3UUxBgwFvh62B8KqHculdy1sspLjDi69ao/VRkz - hMH8uNRONjf4YB5Cyua+4RU9GD0O4YJxNR7WRHp6R2p8XIbhDzTvC0QYM2JZ9RGGhBtSHmoee6VT - mM84ZnP9lHSaiwesFloIqyUHhwo5CHQISnQSvbwtxoBz0/KbdWAsE52QqJXukPuuBaeooOBa3oHj - FMnXNwAAAP//AwB24sty/QEAAA== + string: '{"id":"rate_8e3bdbba2f5143c28cada75a5e86f6e2","object":"Rate","created_at":"2022-05-04T20:26:02Z","updated_at":"2022-05-04T20:26:02Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_0415e3dc970d48159162f9482b94edcd","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '506' content-type: - application/json; charset=utf-8 etag: - - W/"b051a260fa5c62814307c58d25082bc6" + - W/"f84f1af74a044ad2d36d62911ee735e1" expires: - '0' pragma: @@ -163,26 +124,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b3afff030468002a6760 + - 62b330b76272e15ae786b8a50016269d x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.056673' + - '0.096170' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_refund_all.yaml b/tests/cassettes/test_refund_all.yaml index 513a8d95..f866f7d8 100644 --- a/tests/cassettes/test_refund_all.yaml +++ b/tests/cassettes/test_refund_all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,25 +18,16 @@ interactions: uri: https://api.easypost.com/v2/refunds?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA7TTQW7cMAwF0LtoPQEkkZJIn6Jo2k2LwhAlqnGb8QQeexXk7pXTTRqgySRADK+I - b4t8oO7Nom2b69kM3+/NVM1gljbXMUjJLJpiSIBZOafi1BOwFwWvag7mJL+0rP2Dz49/6JWyaF61 - jnmveuv9lYUrl754PzgafPjWM9tdfTWzLrn8nuafYzlV7TFGa93+MkTXH7QpetoPPM1tWo55nU7z - OG9H0cUM83Z7ezDnNa9bn8qcNzlOaz9yz+dlmfaM+Xr96boXzjfT3VHndXyc/HxzN7psFYBSSx5Q - U+YSlCnXlmOkImoeDk+dwAbnha2UwqgxZvIhIkgJwBJaepuTGwIPyC86Pcm87tR7ho9xCsycnWN2 - gGgZxRMlGwV88k6lPHNStK0Gx9KCYAERVyw0sRJillrgHU6OXtsnHCBe6uTwQqdF9zYvZWqsVfpN - 4uoYc8gSfVKqpIQxYH3OFCRULhSjLYAMniN7h1KZLLYQ/RuY4s6EMKD7P9PfDA6BLmHyFDl+DFOB - ypj6MqiNfe5IPvYeM6TQVBPhMybG6Pd72RcvIYLPjcExIRayWZx7B5N7gSn9k7mAidB9CBNmIrat - tZABqUZKpUoqvlBloRrMw4+Ducnn8XhaemvrsunDHwAAAP//AwDuRGBl4gUAAA== + string: '{"refunds":[{"id":"rfnd_75569d36e3d648b893a875a3070ae92a","object":"Refund","created_at":"2022-05-04T20:26:04Z","updated_at":"2022-05-04T20:26:04Z","tracking_code":"9400100109361117768853","confirmation_number":null,"status":"submitted","carrier":"USPS","shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33"},{"id":"rfnd_58872cdfeaa947ec90159407c304f145","object":"Refund","created_at":"2022-05-04T20:23:52Z","updated_at":"2022-05-04T20:23:52Z","tracking_code":"9400100109361117768570","confirmation_number":null,"status":"submitted","carrier":"USPS","shipment_id":"shp_6e0a4901556949328e6afb173389a649"},{"id":"rfnd_108eeeb1e97e4ce780cbb0b964c78c75","object":"Refund","created_at":"2022-04-21T22:45:37Z","updated_at":"2022-04-21T23:15:47Z","tracking_code":"9400100109361116088099","confirmation_number":null,"status":"rejected","carrier":"USPS","shipment_id":"shp_961e00cc92cc429eae640f5b88065e82"},{"id":"rfnd_66f5361a75fb423cbb6c8e5e1aefe2d5","object":"Refund","created_at":"2022-04-21T22:45:10Z","updated_at":"2022-04-21T23:15:47Z","tracking_code":"9400100109361116088006","confirmation_number":null,"status":"rejected","carrier":"USPS","shipment_id":"shp_e1b68199c65a4124898739429c12e9a4"},{"id":"rfnd_0646ba87fb3348ba88e1830b54059d9f","object":"Refund","created_at":"2022-04-21T22:40:20Z","updated_at":"2022-04-21T23:15:45Z","tracking_code":"9400100109361116087689","confirmation_number":null,"status":"rejected","carrier":"USPS","shipment_id":"shp_f034681d435a4b16b8a4d8eb84df7819"}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '1506' content-type: - application/json; charset=utf-8 etag: - - W/"f9ebc9c3ef6104b572f6deb08a01bc60" + - W/"cdbddd18863d7d9f533d1f77dad1b62c" expires: - '0' pragma: @@ -51,26 +40,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b3b1ff030481002a67d5 + - 62b330ba6272e15ce786b8be00162788 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.038416' + - '0.055306' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 80912dc8..ed19e1b6 100644 --- a/tests/cassettes/test_refund_create.yaml +++ b/tests/cassettes/test_refund_create.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '577' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,49 +29,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xYbW/bNhD+K4a+LrFJiqIkfzPygq1bnDR20TVDIVAkZbOVJYGSmjpF/vuOenFs - p20MtGuGrUaBhsc7irzn4R3vPjnCKF4pGfHKGTsEEXKM3GPszwkZ42BM3BvnyNFlZFRVm8wZJzwt - 1ZGzUmXJF6p0xn+9hVEuFVhXqqxAOy8qnWcw9ckRtTEqE2uYfDU7hbmCr1cqq+xctS6s0exsenp2 - 7dwfORL2EXH5gWcCJhBIjEqUtYdhVqfpkVNWvKphZafO3mf5bQYrVoaL9zpbRKLdREgRwvZf6DIM - P4p8RgJQrAv5tYNSe9CYV2IZadl/rx33X92WdQ7ohaIuq3xVRjpL8l6WmHwF55EGVO2B7bIOlyYi - geIsQC5nFGGsRMDCgAucsFj4scuI9WH8Tgm70Ulnf/QkUL8gNEbo6YM+KGZ8ZT32Ahw4mBXcmPzW - fidfFTyzkJ3xcn2VN5iWlVGqwiB0g2AwB9eXKpOD2cMcsZstqgGxKwtd2QVmPBucG8BTlyJ3Wvjs - F08mMLjTRQMXRn7z1TqrTEsUy5NlnllNb/MDoVpxnfbe3eWcgN1rZaKEC502H2+1wHdaAuE03xgm - SirD06jiH7eQbra2J/ugjE604D2d74GSOitrw7comRtYbssI/ChUusG7MCKNOIsBh8RNXB5QEjPu - J0lAlaBUUBJyvA34VWv/NN43B0BtdVKVLaqlM8ZoiI6cWy3tILB/L5VeLMGS2kFhwC+JzmC1Agix - xe3bTg17Q7rrd/BHAfwA3SjlcXvqh4O0M380E0edN9LIDySOQ8pCn2AaMA984yLqxiSRFIUsfPrk - 9ICTNzp7AcWCV6mFaeyS3KzAMrM0Ax/ZTUayZecXVmt1gFB5WltGOGMXoV5c6jtrSj+yjWYX38Cp - vE6rjTjRqern9AocNCqyxWa2NuBEZ1lVRTkej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3qlorvWU5MV7Fbw0R95GU2yBaSl0rm/tx2guizKTgs3Ubs22c82 - 33+szRfXa5u2fkadn1Hn3xF17CN5Nx1vtVrPlc3mXVOxabi2Er6ygIAMDZH9WR8vuVnYx167/fZV - vnn82VLt86t23dy9de179KB133YN4AMfJps9zLpnjXP/NwAAAP//AwDoow3eqhoAAA== + string: '{"created_at":"2022-05-04T20:26:03Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768853","updated_at":"2022-05-04T20:26:04Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_6b00f552cbe811ec9366ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:02+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_4287255431dd430f8dea18b4af39623b","object":"Parcel","created_at":"2022-05-04T20:26:02Z","updated_at":"2022-05-04T20:26:02Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_27d0f4c69681458ca8e69b0e427c0d5f","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26:03Z","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/20220504/7f833150db0a457bbb13448018ea607c.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_9db00562024b4b35af15541bace0f8e8","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_586e45c3c9db44efb91f6fb5f786851c","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_62544dee7e664a5289f9c6c76b674e8c","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e0e5b1ccb0d043d1a235b8723ccef606","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_9db00562024b4b35af15541bace0f8e8","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_f0351ce9a3e74e63907290799a8bc207","object":"Tracker","mode":"test","tracking_code":"9400100109361117768853","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:26:04Z","updated_at":"2022-05-04T20:26:04Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrX2YwMzUxY2U5YTNlNzRlNjM5MDcyOTA3OTlhOGJjMjA3"},"to_address":{"id":"adr_6afa9fe0cbe811ec8abbac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:03+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_6b00f552cbe811ec9366ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:02+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6afa9fe0cbe811ec8abbac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:03+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_9e38dcceeaef4d359c38211af1bcca33","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '6826' content-type: - application/json; charset=utf-8 etag: - - W/"82522fa2e3fb58403d13bde5b03314a1" + - W/"fda14b9e119ed2527b77d7e0f6ac6b4a" expires: - '0' location: - - /api/v2/shipments/shp_1a0e3387f7234e7a9c5e98adfa668cbe + - /api/v2/shipments/shp_9e38dcceeaef4d359c38211af1bcca33 pragma: - no-cache referrer-policy: @@ -82,26 +61,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b3afff030480002a6771 + - 62b330bc6272e15ae786b8a6001626bf x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.919012' + - '1.295066' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -116,8 +96,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -125,54 +103,32 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/shipments/shp_1a0e3387f7234e7a9c5e98adfa668cbe + uri: https://api.easypost.com/v2/shipments/shp_9e38dcceeaef4d359c38211af1bcca33 response: body: - string: !!binary | - H4sIAAAAAAAAA+xZW2/buBL+K4Zej+1IFHXzm5Gk6O5pnGzsopdFIVAk5XArSwJFNU2K/vcdkpJi - O03jg15ysFsjQMyZITnzzXDIGX9yqOREcZYS5cwc5CI0cf2JF60QmnnxDPlvnbEjmlRy1crSmeWk - aPjY2fCmIWveOLM/38GoYhxmK94okK5qJaoSWJ8c2krJS3oDzJfLE+DV5GbDS6V56qbWk5ani5PT - S+fz2GGgR0rYB1JSYLhAkTznej4My7Yoxk6jiGphZact35fVdQkrKknoe1GuU2qVSLDrevov8UMP - PtiNQhSDYFuzrxmKtaEZUfQqFazfz477XbdpHQA9kbaNqjZNKsq86mm5rDZgD5Mgqg3WyzqEyRTF - nISx65MQu57HaRwmMaFeHmY0yvwQaQyzvzjVis67+eNHHfUf15257uOG3gmWZKMR+x0AHC1rImV1 - rfepNjUptctOSXNzURmfNkpyrjwg+nE8WgH0DS/ZaHnHQ1rZWo2QXpkKpRdYknL0TII/RUMrx7pP - 73g8h8GtqI27PDcyu7alkjZQdJxcVaWWDIYPEPmGiKJHdzfmKGgvuExzQkVhNrdSgJ1gEHCCDBNz - zrgkRarIxy1PG9X2aB+4FLmgpA/nzxCSomxaSbZCspKw3NYkwJHyYvB3LWmRkjADP+R+7pMYoywk - UZ7HmFOMKUYJ8bYdfmHnP+7vtwe4WssUvFyrK2fmuVN37FwLpgex/n7FxfoKZmI9qCXgkos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DYzQdLi8oW/zt1bW/pi57Z - tzu2GglDW6jvatihaXmY0kjfiYdgp3GrgTUyZfTo2MbWD8csXnnuLAh+PGbO8/OXy9X5Yqs5tHrt - fBk4J4rc0Hc+69sk533vsVemt29r12PLGmDdS9yT44I0zejCdjsgKC1Xb17CjBIWtXX6AwfOmFp8 - ka3x3GVDfbkW5RY6veWj1evxCCxzTRfISv1EME0kKVGalbbVO34+v3xxajRcHo9HCNKk5+xKf0FN - u8PdpbKfoiyfFIrLUkNom3O5STSWJ0qhu3V3E4lSfFOroadQt1kh6F6nxKgy7fslpiXC/joN2fPf - 5Wv00jt7deYvTt5u3qzOrhery6u3m5d4sTnzFrcL8Qb94Z2dFOJ89Ydr7p3qoaZtnCAe9E3bJNJ3 - Vde0ZTR0fnLTdn7839HyYn55ef7K2WnazpdvLs6XK+de0/b81UI320fL1Wh+sbKN2qF32+Wrrm87 - X4yeXc4Xx78tj8+dh/u2Ey80/Y6f0bxVsuXf0rzVemP9v2kpNc61K3IpK9nlkuFm60Ktj8FDp31y - CthPtdo4P5pGURB48FqrynVHnHgITf0kTCKIM50jbi1S8w1oS8nRi6pJ5+UaHsEN5Dndb26buumk - PPNGbGX560eFf9iPCll7ox/Jv7LOr6zz/5F1dEnebdO9tLbeH8+4fiR1P2GYd6mlkI12CNDcqas/ - GuMrIte6tLTq2x7AUGruPIJ3Vu1+O9pbV1e/B637rvu56cBSZ9Chr1Kcz38DAAD//wMAn0eZPBgf - AAA= + string: '{"created_at":"2022-05-04T20:26:03Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768853","updated_at":"2022-05-04T20:26:04Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_6b00f552cbe811ec9366ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:02+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_4287255431dd430f8dea18b4af39623b","object":"Parcel","created_at":"2022-05-04T20:26:02Z","updated_at":"2022-05-04T20:26:02Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_27d0f4c69681458ca8e69b0e427c0d5f","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26:03Z","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/20220504/7f833150db0a457bbb13448018ea607c.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_9db00562024b4b35af15541bace0f8e8","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_586e45c3c9db44efb91f6fb5f786851c","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_62544dee7e664a5289f9c6c76b674e8c","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e0e5b1ccb0d043d1a235b8723ccef606","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_9db00562024b4b35af15541bace0f8e8","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_f0351ce9a3e74e63907290799a8bc207","object":"Tracker","mode":"test","tracking_code":"9400100109361117768853","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:04Z","updated_at":"2022-05-04T20:26:04Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:04Z","shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:04Z","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":"2022-04-05T09:03:04Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrX2YwMzUxY2U5YTNlNzRlNjM5MDcyOTA3OTlhOGJjMjA3"},"to_address":{"id":"adr_6afa9fe0cbe811ec8abbac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:03+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_6b00f552cbe811ec9366ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:02+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6afa9fe0cbe811ec8abbac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:03+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_9e38dcceeaef4d359c38211af1bcca33","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '7960' content-type: - application/json; charset=utf-8 etag: - - W/"c06c755a04949bf593eb4e48d6a05d97" + - W/"8e74069776368689ddcda86b33a6bdf9" expires: - '0' pragma: @@ -190,28 +146,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b3b0ff030480002a67b5 + - 62b330bc6272e15ce786b8a600162748 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.109774' + - '0.116770' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: code: 200 message: OK - request: - body: '{"refund": {"carrier": "USPS", "tracking_codes": "9400100109361111407628"}}' + body: '{"refund": {"carrier": "USPS", "tracking_codes": "9400100109361117768853"}}' headers: Accept: - '*/*' @@ -221,7 +176,7 @@ interactions: - keep-alive Content-Length: - '75' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -233,21 +188,16 @@ interactions: uri: https://api.easypost.com/v2/refunds response: body: - string: !!binary | - H4sIAAAAAAAAA4SPTW7DIBCF78I6kWCwDfgUVdNuElVogHFDGmOLn1XVuxf3Ah291afv6Wlu3ywG - NrO8pGBH59E4UtOo5IBkUHlBoKUBRxKI2Ilt7kG+9sIrLS2FTnwmrBQsHhQ4wJnLs1BvALPQM4zX - 7rQ9/OvUjP4rpk/rt0BdMwPn4oiRk+g3cDWBPga3tMS8Yo1bsqmtjjKbU3s+T6xUrK30cmlujbVP - Hj7mHA+HvV9eLh2Ue9xXStX+fV7uuxXISUqtFgVyIIXGj2Q0hgWnSXtH7OfjFwAA//8DAPurk8op - AQAA + string: '[{"id":"rfnd_75569d36e3d648b893a875a3070ae92a","object":"Refund","created_at":"2022-05-04T20:26:04Z","updated_at":"2022-05-04T20:26:04Z","tracking_code":"9400100109361117768853","confirmation_number":null,"status":"submitted","carrier":"USPS","shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33"}]' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '297' content-type: - application/json; charset=utf-8 etag: - - W/"40a3a9f0619a0736b9a2417ae2ea690d" + - W/"c4f05c1d97ac0c3c506ec09a0a58a413" expires: - '0' pragma: @@ -265,21 +215,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50b6233b3b0ff030480002a67c2 + - 62b330bc6272e15ce786b8a600162765 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.080375' + - '0.061732' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_refund_retrieve.yaml b/tests/cassettes/test_refund_retrieve.yaml index 20d557f0..ac64d59c 100644 --- a/tests/cassettes/test_refund_retrieve.yaml +++ b/tests/cassettes/test_refund_retrieve.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,25 +18,16 @@ interactions: uri: https://api.easypost.com/v2/refunds?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA7TTQW7cMAwF0LtoPQEkkZJIn6Jo2k2LwhAlqnGb8QQeexXk7pXTTRqgySRADK+I - b4t8oO7Nom2b69kM3+/NVM1gljbXMUjJLJpiSIBZOafi1BOwFwWvag7mJL+0rP2Dz49/6JWyaF61 - jnmveuv9lYUrl754PzgafPjWM9tdfTWzLrn8nuafYzlV7TFGa93+MkTXH7QpetoPPM1tWo55nU7z - OG9H0cUM83Z7ezDnNa9bn8qcNzlOaz9yz+dlmfaM+Xr96boXzjfT3VHndXyc/HxzN7psFYBSSx5Q - U+YSlCnXlmOkImoeDk+dwAbnha2UwqgxZvIhIkgJwBJaepuTGwIPyC86Pcm87tR7ho9xCsycnWN2 - gGgZxRMlGwV88k6lPHNStK0Gx9KCYAERVyw0sRJillrgHU6OXtsnHCBe6uTwQqdF9zYvZWqsVfpN - 4uoYc8gSfVKqpIQxYH3OFCRULhSjLYAMniN7h1KZLLYQ/RuY4s6EMKD7P9PfDA6BLmHyFDl+DFOB - ypj6MqiNfe5IPvYeM6TQVBPhMybG6Pd72RcvIYLPjcExIRayWZx7B5N7gSn9k7mAidB9CBNmIrat - tZABqUZKpUoqvlBloRrMw4+Ducnn8XhaemvrsunDHwAAAP//AwDuRGBl4gUAAA== + string: '{"refunds":[{"id":"rfnd_75569d36e3d648b893a875a3070ae92a","object":"Refund","created_at":"2022-05-04T20:26:04Z","updated_at":"2022-05-04T20:26:04Z","tracking_code":"9400100109361117768853","confirmation_number":null,"status":"submitted","carrier":"USPS","shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33"},{"id":"rfnd_58872cdfeaa947ec90159407c304f145","object":"Refund","created_at":"2022-05-04T20:23:52Z","updated_at":"2022-05-04T20:23:52Z","tracking_code":"9400100109361117768570","confirmation_number":null,"status":"submitted","carrier":"USPS","shipment_id":"shp_6e0a4901556949328e6afb173389a649"},{"id":"rfnd_108eeeb1e97e4ce780cbb0b964c78c75","object":"Refund","created_at":"2022-04-21T22:45:37Z","updated_at":"2022-04-21T23:15:47Z","tracking_code":"9400100109361116088099","confirmation_number":null,"status":"rejected","carrier":"USPS","shipment_id":"shp_961e00cc92cc429eae640f5b88065e82"},{"id":"rfnd_66f5361a75fb423cbb6c8e5e1aefe2d5","object":"Refund","created_at":"2022-04-21T22:45:10Z","updated_at":"2022-04-21T23:15:47Z","tracking_code":"9400100109361116088006","confirmation_number":null,"status":"rejected","carrier":"USPS","shipment_id":"shp_e1b68199c65a4124898739429c12e9a4"},{"id":"rfnd_0646ba87fb3348ba88e1830b54059d9f","object":"Refund","created_at":"2022-04-21T22:40:20Z","updated_at":"2022-04-21T23:15:45Z","tracking_code":"9400100109361116087689","confirmation_number":null,"status":"rejected","carrier":"USPS","shipment_id":"shp_f034681d435a4b16b8a4d8eb84df7819"}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '1506' content-type: - application/json; charset=utf-8 etag: - - W/"f9ebc9c3ef6104b572f6deb08a01bc60" + - W/"cdbddd18863d7d9f533d1f77dad1b62c" expires: - '0' pragma: @@ -56,21 +45,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b3b1ff030482002a67e6 + - 62b330b96272e15de786b8bf001627ae x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.046202' + - '0.185053' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -85,8 +73,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -94,23 +80,19 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/refunds/rfnd_5bca9be765734ae9a7c1e28392be32ee + uri: https://api.easypost.com/v2/refunds/rfnd_75569d36e3d648b893a875a3070ae92a response: body: - string: !!binary | - H4sIAAAAAAAAA4SPS27EIBBE78J6RoLGNuBTRJlkkw1qoJ0hM8YWn1WUuwdygbRq9fRKpf5mMbCV - 5S0FOzuPxpFaZiUnJIPKCwItDTiSQMQu7HBf5GsvvNLWUujEZ8JKweKgwAGuXF6FegNYhV5h/uhO - O8O/Ts3oHzF9Wn8E6pqZOBcjRi6i38TVAnoMHmmLeccaj2RT2x1ltqb2fF5YqVhb6eXS3B5rnxw+ - 5hyHw95vL7cOyj2eO6Vq/z4v99MK5CSlVpsCOZFC42cyGsOGy6K9I/bzCwAA//8DAKtNwhsnAQAA + string: '{"id":"rfnd_75569d36e3d648b893a875a3070ae92a","object":"Refund","created_at":"2022-05-04T20:26:04Z","updated_at":"2022-05-04T20:26:04Z","tracking_code":"9400100109361117768853","confirmation_number":null,"status":"submitted","carrier":"USPS","shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '295' content-type: - application/json; charset=utf-8 etag: - - W/"1e7f3ec6f92ecd2cc9382d4e15406ca0" + - W/"3fd681db9c2e80ceb1c8d1b3eaba3e16" expires: - '0' pragma: @@ -128,21 +110,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b3b1ff030482002a67f6 + - 62b330b96272e15de786b8bf001627d9 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.031764' + - '0.030956' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_all.yaml b/tests/cassettes/test_report_all.yaml index 78e5fbdc..1b116b4a 100644 --- a/tests/cassettes/test_report_all.yaml +++ b/tests/cassettes/test_report_all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -17,35 +15,19 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/reports/shipment?page_size=5&type=shipment + uri: https://api.easypost.com/v2/reports/shipment?type=shipment&page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA9yWa2tbRxCG/4ug/WRZuzN7FYgi0haHtvQiQ+qUImZ3ZiMV3XrOcdI65L93FLmG - tmBC4n6wYTkcZmd39vLsO/N21Mlh3w39aPrL29GaR9NRvzqobZlbLWCKRMDkXIEklJ24ANYGrtGN - zkb78pvUQYcsVuvDVnbDT+/n0p7aCQ3CSzr2ggEYGxzbeAlmat0U8KX6XB/4Ph9/9OkH6obl0e/O - R5vVHtnxf+yo9u2ej7ZB+uE0frjWvY3oNa03VDZyDNxt1LIahkM/nUyE+j8P+34Yt/VG+vMez6/7 - 8RsdPoZz2tLNfkdv+vO6307eO0z6270uTwc3OUY3aOPEp5awVqiWnMu+UcFiIFBml5IhPL9ZH774 - eTzf3oznm1f7bj2strP5i4UbX3w3fzZeXMzBh89PDs86YY2xps1s/s3z+RXEb78PVz8u/OKHq8sX - zz+Dr2/DJv29W6/+96gfXbDT5f1+rdbbCb/Uo5r9PebSZmeseXnb99Ufh3Un/QzNrWGxfrUTvhBi - 6frZan83y7FDD7STmTWcyIfYEifjqTkbo6RiKFSgxhjBJxcRImHEIoUgh2odkSQOybbTNSzlFPpf - DBwXOHVG25GB9a5urlmWdbXecCe70bTRppd3Z//kFUuuEbmYWpLDVDPViuxqhOgV2PApvMIH8Ooe - G69YBcVktD5FlxqSOOfAZWwcADA/KV5ztK4lV5lTbMw+ScHIkVJhL8FS0nfroIKlBrr5WkypnJVX - 9CGINw/PKxtKktlzTsaJviFrczVS9akkKxU/ilddB+DU5Pt4PflY+9h4bXq94qNVQQ0uGFsgoie9 - RJN8ACpPiteWKKh6lqJwJkyiUkqmODJZLEb9yQ1dtEayVZ0zForN6JynZGxj+B/0VbNbsxUCY9GE - xjEzKK+QRaqKraRP4TV+AK/msfEq1EIIqTZSVbVGawBMXE0U71oGDk+KV0Z0OYNvmnw13UbVU7ZM - TTSpQChcko/5mG6kaDpu3CRmsNlLCxRzcg/Pq+BRw6vXKsU5klYAVXFbaeyRoH1M/RouFURteE89 - cOfzyOqBMOGEnDIIayHnmmZCWxMUstx8E01JT4pXFKjGKau1WixYs+po9jkXrdSJvdooRggJfPWt - 6bGkXKtoHcuZOFB5AF5/PRutqF9u951e+NBdy7u/AAAA//8DAPQqbs2NDQAA + string: '{"reports":[{"id":"shprep_2e556f9526df428fa48a5ddcd0b9b99e","object":"ShipmentReport","created_at":"2022-05-04T20:26:47Z","updated_at":"2022-05-04T20:26:48Z","start_date":"2022-05-04","end_date":"2022-05-04","mode":"test","status":"available","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220504/471b7ece8eed4ddcb64f18edca66f6fb.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220504%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220504T202648Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=d59c956fb017b5c2c829ccb30091fbcfd32964cb9a62d98ec03a6e8ac65c868e","url_expires_at":"2022-05-04T20:27:18Z","include_children":false},{"id":"shprep_5c8e26a47fde44b1963bfd72ff416a0f","object":"ShipmentReport","created_at":"2022-05-04T20:26:47Z","updated_at":"2022-05-04T20:26:47Z","start_date":"2022-05-04","end_date":"2022-05-04","mode":"test","status":"available","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220504/f21fa6d8a65344768b673e61e52d8694.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220504%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220504T202648Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=218aff05b0e1eb73402a8594e313110203faf4621d8a153918be044f12df2cba","url_expires_at":"2022-05-04T20:27:18Z","include_children":false},{"id":"shprep_82fc5680d8af45fbb73a5dfbb978256a","object":"ShipmentReport","created_at":"2022-05-04T20:26:47Z","updated_at":"2022-05-04T20:26:47Z","start_date":"2022-05-04","end_date":"2022-05-04","mode":"test","status":"available","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220504/32dc1aeebcba4de485033cb9d123df38.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220504%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220504T202648Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=e72cd99ac4152881d847aa464ab234f5e14dcb76bf93f22ab20ca0f5f92c6462","url_expires_at":"2022-05-04T20:27:18Z","include_children":false},{"id":"shprep_9f895fcc43b3431e8a95a3e0e0502829","object":"ShipmentReport","created_at":"2022-05-04T20:26:47Z","updated_at":"2022-05-04T20:26:47Z","start_date":"2022-05-04","end_date":"2022-05-04","mode":"test","status":"available","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220504/da0810771ee648b882cf0ad98e464532.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220504%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20220504T202648Z&X-Amz-Expires=30&X-Amz-SignedHeaders=host&X-Amz-Signature=9b3a9c645052df746803ebcd8fc8ca99b29db9876c8decc59c1d572dfc34ea7c","url_expires_at":"2022-05-04T20:27:18Z","include_children":false},{"id":"shprep_5e91a815c0de4d9b88cb37931fc0a5f2","object":"ShipmentReport","created_at":"2022-04-21T22:45:12Z","updated_at":"2022-04-21T22:45:13Z","start_date":"2022-04-11","end_date":"2022-04-11","mode":"test","status":"empty","url":null,"url_expires_at":null,"include_children":false}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '3067' content-type: - application/json; charset=utf-8 etag: - - W/"3dcb8ef5658eb2c5b7dd35c985583755" + - W/"dc7110b6c1334f307386c9e78a38a452" expires: - '0' pragma: @@ -58,27 +40,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - d574d6bf6234e01ae002b2a70020d199 + - 78245fbc6272e188e786bc3e0013b6d8 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - extlb2nuq 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.040021' + - '0.034285' x-version-label: - - easypost-202203181824-5959608622-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_create_report.yaml b/tests/cassettes/test_report_create_report.yaml index 4bd97260..01bf8093 100644 --- a/tests/cassettes/test_report_create_report.yaml +++ b/tests/cassettes/test_report_create_report.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"type": "shipment", "start_date": "2022-04-11", "end_date": "2022-04-11"}' + body: '{"type": "shipment", "start_date": "2022-05-04", "end_date": "2022-05-04"}' headers: Accept: - '*/*' @@ -22,20 +22,16 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: !!binary | - H4sIAAAAAAAAA4SOQW4CMQxF75I1SEmAoZNjtF11EwX7o0kVMlHiUZFQ794MbFggdWe//77sm4qs - nGpTqSh+pLfTDqQPRGF/DsfRgA0H6EGTpXGnNmo+fYOkVz6mWC7I8o4yV+kJVQQB+7CmVlu71fut - sZ9mcMa4w/DVnaXwv06TUMWv3rNjeoLML/ll5pUJmjz6srS+Z/ysJ2tSLi8p3UePa4kV7f7Bg8ZM - aWF4mmLiiqzcOaSG3z8AAAD//wMAWzhxUhsBAAA= + string: '{"id":"shprep_9f895fcc43b3431e8a95a3e0e0502829","object":"ShipmentReport","created_at":"2022-05-04T20:26:47Z","updated_at":"2022-05-04T20:26:47Z","start_date":"2022-05-04","end_date":"2022-05-04","mode":"test","status":"new","url":null,"url_expires_at":null,"include_children":false}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '283' content-type: - application/json; charset=utf-8 etag: - - W/"de809f83a0bda9bc6cf70f96a6563b89" + - W/"c67d48e9dac7940edc34feedb79c6c6a" expires: - '0' pragma: @@ -53,21 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23047b0a6255a4cce7799784002c7c7b + - 78245fbb6272e187e786bc3a0013b68e x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - intlb1wdc fde591f008 - - extlb3wdc fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.036142' + - '0.059884' x-version-label: - - easypost-202204112244-205415e174-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_create_with_additional_columns.yaml b/tests/cassettes/test_report_create_with_additional_columns.yaml index 1933b375..1d46cc7d 100644 --- a/tests/cassettes/test_report_create_with_additional_columns.yaml +++ b/tests/cassettes/test_report_create_with_additional_columns.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"type": "shipment", "start_date": "2022-04-11", "end_date": "2022-04-11", + body: '{"type": "shipment", "start_date": "2022-05-04", "end_date": "2022-05-04", "additional_columns": ["from_name", "from_company"]}' headers: Accept: @@ -23,20 +23,16 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: !!binary | - H4sIAAAAAAAAA4SOzQrCMBCE3yVnhSb0x+Yx1JOXsM2uNBLTkGxQEN/dRi8eBG+7M98w8xAOhRZ5 - jomigWEEUF1rcbKtbJtRDrsRcLAAdpSTFBuxTBeyvEYOs4tXCrynuCReHZsImNBAdVWj1LZpt1Id - Za+l1F1/WpkS8S+TGRKbyn0ztZsC/tSvC1aNKfMnzyWvf6BbrUxe6FC8f5+G7tElyu8FH9UF6wuS - sbPzmCgIfQaf6fkCAAD//wMAsBiIkxsBAAA= + string: '{"id":"shprep_82fc5680d8af45fbb73a5dfbb978256a","object":"ShipmentReport","created_at":"2022-05-04T20:26:47Z","updated_at":"2022-05-04T20:26:47Z","start_date":"2022-05-04","end_date":"2022-05-04","mode":"test","status":"new","url":null,"url_expires_at":null,"include_children":false}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '283' content-type: - application/json; charset=utf-8 etag: - - W/"461b6c7c2e00248d19fb82c4c274c85d" + - W/"9404e5fceac40771ab2db413bc6f1cb8" expires: - '0' pragma: @@ -54,7 +50,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 23047b0e6255a4cce7799785002c7ca8 + - 78245fb96272e187e786bc3b0013b699 x-frame-options: - SAMEORIGIN x-node: @@ -62,13 +58,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - intlb2wdc fde591f008 - - extlb3wdc fde591f008 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.130179' + - '0.038460' x-version-label: - - easypost-202204112244-205415e174-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_create_with_columns.yaml b/tests/cassettes/test_report_create_with_columns.yaml index d1ecf677..77a040a6 100644 --- a/tests/cassettes/test_report_create_with_columns.yaml +++ b/tests/cassettes/test_report_create_with_columns.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"type": "shipment", "start_date": "2022-04-11", "end_date": "2022-04-11", + body: '{"type": "shipment", "start_date": "2022-05-04", "end_date": "2022-05-04", "columns": ["usps_zone"]}' headers: Accept: @@ -23,20 +23,16 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: !!binary | - H4sIAAAAAAAAA4SOQQ7CIBBF78Jak0JpiRxDXbkhFKYphlICQzQx3l3ablyYuJt5//3MvIizRJI8 - xQRRjUzTHvqh5T3lJ2h1azoqzChGwYWxnBzIMtzBYK1cJhdnCHiGuCSsiUmgEazSa8oaxo4NP1J2 - pb2kVHbiVp0S7V8no06oVu/boTWBYH/yebErQ8i497Hkugd4rCeTJzIU77dRwTO6BHn7YKcuGF8s - KDM5bxMEIkftM7w/AAAA//8DANZmC48bAQAA + string: '{"id":"shprep_5c8e26a47fde44b1963bfd72ff416a0f","object":"ShipmentReport","created_at":"2022-05-04T20:26:47Z","updated_at":"2022-05-04T20:26:47Z","start_date":"2022-05-04","end_date":"2022-05-04","mode":"test","status":"new","url":null,"url_expires_at":null,"include_children":false}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '283' content-type: - application/json; charset=utf-8 etag: - - W/"63233bc97409935a7c8d82113f18347b" + - W/"b124195b3f2ada260bc3575307b35fb5" expires: - '0' pragma: @@ -49,27 +45,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - bcd42efa6255a4cde77997860030f038 + - 78245fba6272e187e786bc3c0013b6ac x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq fde591f008 - - extlb1nuq fde591f008 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.037531' + - '0.039691' x-version-label: - - easypost-202204112244-205415e174-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_report_retrieve_shipment_report.yaml b/tests/cassettes/test_report_retrieve_shipment_report.yaml index 92715378..dae68a71 100644 --- a/tests/cassettes/test_report_retrieve_shipment_report.yaml +++ b/tests/cassettes/test_report_retrieve_shipment_report.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"type": "shipment", "start_date": "2022-04-11", "end_date": "2022-04-11"}' + body: '{"type": "shipment", "start_date": "2022-05-04", "end_date": "2022-05-04"}' headers: Accept: - '*/*' @@ -22,20 +22,16 @@ interactions: uri: https://api.easypost.com/v2/reports/shipment response: body: - string: !!binary | - H4sIAAAAAAAAA4SOyw7CIBBF/4W1JgXpi89QV24IlGmKoZTANJoY/11oNy5M3M2ce25mXsQaIkia - QoQggY8V1VXTdbrnmo6KNY3u6p53J9P2HMiBLPoOA+bKZbJhBo9nCEvEnAwRFIKRqqSsYuxY8SNl - V9oISkXd3rKzBvPXSagiyuJ9OzQn4M1PPi+mMISEex/XlHcPj3IyOiL86tw2SngGGyFtH+zU+sGt - BuQwWWcieCJG5RK8PwAAAP//AwAAI8NtGwEAAA== + string: '{"id":"shprep_2e556f9526df428fa48a5ddcd0b9b99e","object":"ShipmentReport","created_at":"2022-05-04T20:26:47Z","updated_at":"2022-05-04T20:26:47Z","start_date":"2022-05-04","end_date":"2022-05-04","mode":"test","status":"new","url":null,"url_expires_at":null,"include_children":false}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '283' content-type: - application/json; charset=utf-8 etag: - - W/"e337abd3cf08daf84c9c1ebf3365a414" + - W/"0fd9f605e349cff61189fce4b3514b20" expires: - '0' pragma: @@ -53,20 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - bcd42efb6255a4cde77997870030f051 + - 78245fba6272e187e786bc3d0013b6c1 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb1nuq fde591f008 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.031928' + - '0.042812' x-version-label: - - easypost-202204112244-205415e174-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -88,23 +84,19 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/reports/shprep_e4f01b0688b94b1fa266b859483d794e + uri: https://api.easypost.com/v2/reports/shprep_2e556f9526df428fa48a5ddcd0b9b99e response: body: - string: !!binary | - H4sIAAAAAAAAA4SOyw7CIBBF/4W1JgXpi89QV24IlGmKoZTANNEY/11oNy5M3M2ce25mXsQaIkia - QoQggY8V1VXTdbrnmo6KNY3u6p53J9P2HMiBLPoOA+bKZbJhBo9nCEvEnAwRFIKRqqSsYuxY8SNl - V9oISkXd3rKzBvPXSagiyuJ9OzQn4M1PPi+mMISEex/XlHeYAz7L0eiI8Ktz2yjhEWyEtP2wU+sH - txqQw2SdieCJGJVL8P4AAAD//wMAnZqUxx0BAAA= + string: '{"id":"shprep_2e556f9526df428fa48a5ddcd0b9b99e","object":"ShipmentReport","created_at":"2022-05-04T20:26:47Z","updated_at":"2022-05-04T20:26:47Z","start_date":"2022-05-04","end_date":"2022-05-04","mode":"test","status":"new","url":null,"url_expires_at":null,"include_children":false}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '283' content-type: - application/json; charset=utf-8 etag: - - W/"f6541be39976ff47ee23bbafc7bd4262" + - W/"0fd9f605e349cff61189fce4b3514b20" expires: - '0' pragma: @@ -122,20 +114,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - bcd42efb6255a4cde77997870030f055 + - 78245fba6272e187e786bc3d0013b6c7 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb1nuq fde591f008 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.034863' + - '0.032161' x-version-label: - - easypost-202204112244-205415e174-master + - easypost-202205041833-02730cc398-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 ea023390..efb331e5 100644 --- a/tests/cassettes/test_scanform_all.yaml +++ b/tests/cassettes/test_scanform_all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,34 +18,26 @@ interactions: uri: https://api.easypost.com/v2/scan_forms?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA+yWTW/jNhCG/0qga/PBIYdfvi2K7qGnAtleWhTGkBxu1NqyIclNs4v8947sxNld - NLWdPQWIoIM0ejl8+fGI87kZMnXzuuqXQzP7/XPTlmbWDHXOVmPULscULRoXSGWXvFWaSgaOoTlv - VulPzqPIryXFe8kgsdwzjVzmNMW10vpCmQvwH7SeQZgZ85toNutyUDP2lP9qu4/zvCo8OWsiKgXT - HY0DuVB5h7r547yhUnoeRPTgnko/16UmT9mQQwXAOdaiKEN1SZEqwF/af/fQ/qB7/YNSM6UOD+FJ - 2NGSRfKzjObsek19v7qd+lkt19TdyYefaLj7ZTWMEhzGnnkECZoQzj6sbruBu3J2/fRNT2bX45me - Mud2nBJcU3f2vqcut0NebZViTOI/vpOXT+1aHiOC8tteN93YT41+vZbX9c2qm5R2f0mQl9Qumlm3 - WSzOm6XMvQhG3vrL4r7lfl4pt4tt5zuVzF1buBtb2jesXLinxXykf+bTkuyiW2vfxP7mvq1tprFd - ddMK3t/vdBt5eVwO6Xsp60MfeZ9fNtt800t/zc04rofZ1RXLRK5lIi9qu+DhcjCXm+HiVpxf6Eta - 0qdVR7fDpUz81VZwtd/2V9PyKQP+KgSTSzQqKkYsDGS0yqQ4BAXIoV6uS20eOp+SzMe79d5SojHf - bAf28AhWJySoufiKmSBQDblm4wvpXF3cLkhX2365Hfwuz/35E4EQ0IMNnLMG9I4IKWiLHMGi0/hC - AuEIAuF4Ao19lsBcTEkuPhKYVMg7ArPXoPFFBKpjCVRvBL5CAi0X2fMu5kABrcfo5djJYHNJNjgb - TyNQWwU1WM8ODDqbgmLKcoBZFMiB1UECUUM1Go1xXiNACilqTsBFBWNZ6RcQ6GfGHyLwUXMUgVbH - 5whUkSvJ9/0ZiDo8EphKdqcTKM7gKAK/Er4R+HoIBM21hAzBOYdydgUTq3KBtWed2aXTCCwhFRTu - TCABe9p1UZtM3jMmW7dF5AECq6DrpYExBS2bGKoPOhtEG5NX9VQCYWbjTP8/gV9ojiHQOROeIzBo - qjaSJWfKRCBhxu+oQnfO7GECvxW+Efh6CFS25Cj/68qO0WJKoRRONWCtwaSkTyQwolRbUnUa1KiT - iQaw1FiKbOLgIx0k0KgEVRk5Q6McI0byRV8is7RPAc0LCbRHEGiPJ1DDswQCMStrHglMqOp3VKE7 - Z3gsgfhG4CskUI48j16KRbkRQwnVhcwYXVRFQYATq1ACH2wyYCGhlLIRUcequWS2TM7/N4GynW9o - mC9XvWQe+w3f/wsAAP//AwBxwc49qhEAAA== + string: '{"scan_forms":[{"id":"sf_e2006b6ee77348c3b6178beefd6046df","object":"ScanForm","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:10Z","tracking_codes":["9400100109361117768877"],"address":{"id":"adr_6e86d70ecbe811eca3caac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:08+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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/20220504/05451d70bcc8487b9811fd48f6637b21.pdf","form_file_type":null,"batch_id":"batch_bb2a2df31942405faface8f4ac4afbbf","confirmation":null},{"id":"sf_6be60d730e924ed58918424eaee83aae","object":"ScanForm","created_at":"2022-05-04T20:26:08Z","updated_at":"2022-05-04T20:26:08Z","tracking_codes":["9400100109361117768860"],"address":{"id":"adr_6d93dfcccbe811eca39eac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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/20220504/1eae62cbbb1e47488d886b7e52673db2.pdf","form_file_type":null,"batch_id":"batch_a27fd83f1e8e42de8b5389e48dff8c42","confirmation":null},{"id":"sf_26238787f2e14d86965dfee7c5b7f847","object":"ScanForm","created_at":"2022-05-04T20:25:27Z","updated_at":"2022-05-04T20:25:27Z","tracking_codes":["9400100109361117768686"],"address":{"id":"adr_52a6c049cbe811ec9c3fac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:22+00:00","updated_at":"2022-05-04T20:25:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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/20220504/ccce30ce613b483db8aab92b4c231faa.pdf","form_file_type":null,"batch_id":"batch_a48b067fe8634d478ce708925a8ccb49","confirmation":null},{"id":"sf_de8bce74fc2b40aa89c3a0d852a7d2a5","object":"ScanForm","created_at":"2022-04-21T22:45:16Z","updated_at":"2022-04-21T22:45:16Z","tracking_codes":["9400100109361116088020"],"address":{"id":"adr_b5e3d1fac1c411ecbe3fac1f6bc7b362","object":"Address","created_at":"2022-04-21T22:45:15+00:00","updated_at":"2022-04-21T22:45:15+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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/20220421/a3f939f2033b42479b834f647d618478.pdf","form_file_type":null,"batch_id":"batch_fdb6949286384693a53e25bfdb1531ce","confirmation":null},{"id":"sf_58ce95a281e947e7b31f1fa8fcaa9009","object":"ScanForm","created_at":"2022-04-21T22:45:14Z","updated_at":"2022-04-21T22:45:14Z","tracking_codes":["9400100109361116088013"],"address":{"id":"adr_b4df04c6c1c411ecba6dac1f6b0a0d1e","object":"Address","created_at":"2022-04-21T22:45:13+00:00","updated_at":"2022-04-21T22:45:13+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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/20220421/ccba91bb936b4a4fb90afc05945dba37.pdf","form_file_type":null,"batch_id":"batch_e20cb69763f34614bc9bdbc855083928","confirmation":null}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4522' content-type: - application/json; charset=utf-8 etag: - - W/"b5b95570af565fede4ade168ed39fc0b" + - W/"f69dd0b374f6cc529cd0bbb6f373f733" expires: - '0' pragma: @@ -65,21 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3b9ff0304a7002a69a2 + - 62b330b86272e162e786b8c700162a5c x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.070548' + - '0.041714' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 1deddccd..fb389060 100644 --- a/tests/cassettes/test_scanform_create.yaml +++ b/tests/cassettes/test_scanform_create.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '577' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,49 +29,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xYbW/bNhD+K4a+LnH4JkryNyNNunZrksUpumQoBIqkHLWyJFBUE7vIf99Rkh3H - SRMDLZphjWHA5vF4JO95eOTdV08aLaxWsbDeyCOIkF1Ed3FwRsgIhyOKLrwdL6tjo21jCm+UirzW - O95M17WY6tob/fMRWqXSMNrq2oJ2WdmsLKDrqycbY3Qh59D5fvIK+ioxn+nCuj47r9ygycHRq4NT - 72bHU7COWKgvopDQgUBidKrdeGgWTZ7veLUVtgHLXlN8LsqrAixaI+TnrJjGsltExBDC7htRjuHD - UMCpD4pNpR7bKHYbTYSVl3GmlvN17eWs67LeAUuhbGpbzuo4K9JyKUtNOYP9KAOqbsPOrCeUiYlU - VCU8EpwhjLVMUCiFxClPZEAwYc6HySct3ULH/fidJ4H6DaERQk9v9FaxEDPnsbf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iZ+rGDD8+f6Gnoe61toO9V - f4GD/7HN5ZpCbeRStRRF/xTrBW30BQA7F70w5ldlTJ/YO6f2JLDmcxxxyBcICsJUI8Yl3ByKSz+S - BFOSak3WOXDWj9+Eb+uCwQPFhk4E3rFtJrrW8wTV8LY5S51NXQqWzDezr661gc0tqt8Dzy1vV77p - dtiXd8Cz/b8lnksH9Clvk+SZ3MhdWlPDZQbTJinq0wFXv781fy8+k6PFlLz7NKbHry/yd6/+IueL - c3b02v2+988Xb67fLd7OLj68n7dMKL9VRsEadrcso0SQ/HdlFCQQdP3sMsp4/4/B5GR8enr84W4Z - ZTw5PzmenN0voxx/OHLlr8HkbDA+OetKJ6tqSl9Y6isp46PB4en4aP/NZP/4kUrKLubty+NnlFOs - afT3lFPcupn7rRspW3A7i9qY0vSEW/GwTyiX3N922FfISm1mG7c5GgyDwPfh4ZOXxbQX7mJChjTi - UQA8y2Y6XnSeGs9gtVLs/VnW8biYwrVUezc3rgLU1FXda+E2ajemeCnz/c/KfEkzd9fWS9R5iTr/ - jajjHsl3r+O1UuuhdrTri4ptwbWTiJkDBGRoiNzH+fhSmKl77HXL717lq8efy9EettpXczfsuvfo - VnY/9gXgLR8mqzVM+meNd/MvAAAA//8DAA5sfJSqGgAA + string: '{"created_at":"2022-05-04T20:26:07Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768860","updated_at":"2022-05-04T20:26:08Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_6d93dfcccbe811eca39eac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_df86243888cd4ca5ab215576d06134c5","object":"Parcel","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_4c845d91a2c8478e9ddd100e0843df0b","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/f8b6a96562014a4d8e10695163233e63.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_d055f500704f485bbdea6a3bb3a09bd3","object":"Rate","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_07e963110a344db9bb7cc1051b363c17","object":"Rate","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_4516b905eed640d5bb42d5ab3c6c121e","object":"Rate","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_2657a230124a412aa274eefe97dc66e7","object":"Rate","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_2657a230124a412aa274eefe97dc66e7","object":"Rate","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_77b0dbae8eef4334b995ae9c333328fc","object":"Tracker","mode":"test","tracking_code":"9400100109361117768860","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:26:08Z","updated_at":"2022-05-04T20:26:08Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzc3YjBkYmFlOGVlZjQzMzRiOTk1YWU5YzMzMzMyOGZj"},"to_address":{"id":"adr_6d9200b7cbe811eca39dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_6d93dfcccbe811eca39eac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6d9200b7cbe811eca39dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_ced9db40c9544da494fb03e96cf8e7df","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '6826' content-type: - application/json; charset=utf-8 etag: - - W/"70248f80242556d30c3f38521f68b3a7" + - W/"2378fe612121892839b8ed4686e4eda7" expires: - '0' location: - - /api/v2/shipments/shp_0d04e2e397d6426497051b2adced1d4d + - /api/v2/shipments/shp_ced9db40c9544da494fb03e96cf8e7df pragma: - no-cache referrer-policy: @@ -87,28 +66,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3b6ff0304a5002a68f9 + - 62b330be6272e15fe786b8c50016287c x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.104129' + - '0.925356' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"shipment": [{"id": "shp_0d04e2e397d6426497051b2adced1d4d"}]}' + body: '{"shipment": [{"id": "shp_ced9db40c9544da494fb03e96cf8e7df"}]}' headers: Accept: - '*/*' @@ -118,7 +96,7 @@ interactions: - keep-alive Content-Length: - '62' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -130,26 +108,18 @@ interactions: uri: https://api.easypost.com/v2/scan_forms response: body: - string: !!binary | - H4sIAAAAAAAAA4RSTW/bMAz9K4GuaxJJlmzZt2JYDzsNSHfZMBi0RLfaYtmQlGVpkf8+2mnTYZcK - OohPj+TjxzPzjjUs9a0wqhLaoLVSqKoEUGCkVlgLrUqpDLthY/cTbSb6zkK4G+NAmI0IGV0LMy65 - lGterEV1L2UjTFOIb8Q5TO5dTo5gf/nw0NrRYWLNd1YrzsV866IUdBSvykKzHzcMnIuYiPR8UQ8u - ttK6wnVlDaXiQqDtuLFgRV92tpJCqn/l3774v6uef+C84fz9Et6IAQYkymeqZrWbIMbxOOcZhwnC - iT4+QTp9GVMmMOWImAWBhTGr+/EYEga32r39yVnslFdyjmx9ngPsIKzuIgTrkx0XJgkj/OMtGU9+ - ometBK+WrIeQ4+z0dUfm9DiGmamvh0AcwO9ZEw77/Q0bqPdEyLjos6TeY2x7sH6/JL+wqHfeYcge - ro49OoywbzP8aeeRXNBF2n/Yb4y+9xayH8M8wfP5wjuQ8ToOyj3QfOABr/Fp2dpDpHzsMecpNdst - UiMnauS693tMm1RsDml9JOVruYEBnsYAx7Shxm8XwjbRzrZznO08Pl6IaqvR0c6XtTVglK5UXQG3 - VmjrOm1KXW8m17OX5HOQNp+mq6QOsn1cCnt5Ss1Fb3SFpShUqTvDESyXoFVdcIHLCMfQ+zgsxV/i - nP8CAAD//wMA/ZFtXIEDAAA= + string: '{"id":"sf_6be60d730e924ed58918424eaee83aae","object":"ScanForm","created_at":"2022-05-04T20:26:08Z","updated_at":"2022-05-04T20:26:08Z","tracking_codes":["9400100109361117768860"],"address":{"id":"adr_6d93dfcccbe811eca39eac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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/20220504/1eae62cbbb1e47488d886b7e52673db2.pdf","form_file_type":null,"batch_id":"batch_a27fd83f1e8e42de8b5389e48dff8c42","confirmation":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '897' content-type: - application/json; charset=utf-8 etag: - - W/"d67c62b5a0d9a9fb3d32fb04f9fdff8f" + - W/"07f69d72cf46f49afd2738429780c60e" expires: - '0' pragma: @@ -167,21 +137,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3b7ff0304a5002a692d + - 62b330be6272e160e786b8c5001629b1 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.202334' + - '0.207589' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 b01a79c3..cee8a6cb 100644 --- a/tests/cassettes/test_scanform_retrieve.yaml +++ b/tests/cassettes/test_scanform_retrieve.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '577' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,49 +29,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xYbW/bNhD+K4a+znFI6o3yNyMv27o1SWN3XTIUAkVSNhtZEiiqqVPkv++oF8dx - 0sZAg2ZYaxRoeLw7kvc8uiPvs8O1ZEaKmBln7BBEyB5y93A4I2SM6dgll87QUVWspal17oxTllVy - 6CxlVbG5rJzxP+9hVAgJ1kZWBrSL0qgih6nPDq+1ljlfweTb6SHMlWy1lLmxc2ZVWqPp0cnh0blz - O3QE7CNm4iPLOUwgkGiZSmsPw7zOsqFTGWZq8OzU+VVeXOfg0WjGr1Q+j3m7ichDCNt/kRtg+Hko - DDwCinUpnjxowgxfxEr067XjftVNWReAXsjryhTLKlZ5WvSyVBdLOI/QoGoPbN06TOiYiDQJGXdZ - 4CGMJY9SgRjHaZAghgSWNobJB8ntRied/fBJoH5BaIzQDgddK+ZsaSP2CgI4mJZM6+LarlMsS5Zb - yI5YtTorGkwro6U0GIQupYMZhL6SuRhM7+aI3WxpBsR65spYB1OWD4414KkqXjgtfHbF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NRDAYd3vk8j7lMvdKUHTwdBebTJ - gVlnvw3fzg2DR5oNrQiiY5qX6MbMc1GtUnP7BEtW26+vdrSFzR2q3wLPHW/XsWlP2LV3Utk3eno8 - +wB0T946yRTfers0rkb9C6Z5pIgPR4H47ZX+m/x1dTK78F6TC/T68PLD6ezN9cls7l/cvPVODvnN - 5ewNvnz36ur019d+w4TiS22UKKIc9W0UGnph20bhYeIG5Hu3USYHfwymZ5Pz89N399sok+nF2el0 - 9rCNcvruxLa/BtPZYHI2a1sn625K11jqOimTk8Hx+eTk4PfpwelXOil7OGhuHt+jnWJ0Lb+lnWL3 - 7dn/q5rzBtzWo9S60B3h1jzsHpQ993c1+wyvUqNMbQ/nhqMw9H24+GRFPu+Ee5iQkRsFUQg8U0sZ - 37SRmixht5zt/1lU8SSfQ1mqnNtb2wGqq7LqtHCTtWud/2zz/c/afEm9smXrZ9b5mXX+G1nHXpLv - l+ONVuuxtMmkayo2DddWwpYWEJChEbI/G+MF03N72Wu3397K15c/+0Z73GvXzd3ya++jO/l93zWA - d7yYrPcw7a41zu2/AAAA//8DAPLw0TeqGgAA + string: '{"created_at":"2022-05-04T20:26:08Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768877","updated_at":"2022-05-04T20:26:09Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_6e86d70ecbe811eca3caac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:08+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_4a8ca385633c4aa0a0ce6915aab835e1","object":"Parcel","created_at":"2022-05-04T20:26:08Z","updated_at":"2022-05-04T20:26:08Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_ed01ea50999240fa9076cd26c2b85b86","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/85fd19656d194ea48df6358b1309d96b.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_70e6cfa1ecbf4455a2f874cc0bd17f42","object":"Rate","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_c64b04653ff041caa1e4a8f2c76e5e25","object":"Rate","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_eb620e6fdf2043a58d21eb9f59446f18","object":"Rate","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e4d5ae86b46e45c2981c84d418931911","object":"Rate","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_e4d5ae86b46e45c2981c84d418931911","object":"Rate","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_b4b3bd5dad664d60ba65860ed230fa47","object":"Tracker","mode":"test","tracking_code":"9400100109361117768877","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrX2I0YjNiZDVkYWQ2NjRkNjBiYTY1ODYwZWQyMzBmYTQ3"},"to_address":{"id":"adr_6e84e0edcbe811ec9438ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:09+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_6e86d70ecbe811eca3caac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:08+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6e84e0edcbe811ec9438ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:09+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_85d3d98102be4cd0a67c5004ac0360dc","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '6826' content-type: - application/json; charset=utf-8 etag: - - W/"21f699c9f51873f0f5a30096a01d67a4" + - W/"b899451cf3457f8da98298c59a69505d" expires: - '0' location: - - /api/v2/shipments/shp_89ee8301c8124b429bcbfd2a2f6b6e4f + - /api/v2/shipments/shp_85d3d98102be4cd0a67c5004ac0360dc pragma: - no-cache referrer-policy: @@ -87,28 +66,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b3b7ff0304a6002a6947 + - 62b330b96272e160e786b8c6001629d3 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.888968' + - '0.962076' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"shipment": [{"id": "shp_89ee8301c8124b429bcbfd2a2f6b6e4f"}]}' + body: '{"shipment": [{"id": "shp_85d3d98102be4cd0a67c5004ac0360dc"}]}' headers: Accept: - '*/*' @@ -118,7 +96,7 @@ interactions: - keep-alive Content-Length: - '62' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -130,26 +108,18 @@ interactions: uri: https://api.easypost.com/v2/scan_forms response: body: - string: !!binary | - H4sIAAAAAAAAA4RSy27bMBD8FYPX+sGHrNctKJpDTwWcXloUwopcxmwtSiDpuk7gf+9STpyilxA8 - kMPZ2dldPjNnWMui7XAri0aWuumbbaHKGrgu+2rLJRgtsKnZko39T9SJ6DsN/n4MA2E6ICQ0HWRc - cilXXK1E9SBlK+pWqW/EOU7mXU4KoH85/9jp0WBk7XfWFJyLvBtVCloFr8pCsh9LBsYEjER6vroH - EzppbF+BVlAWXAjUjTUctLBlz4Ebgf/av3uJf9e9/MB5y/n7JbwRPQxIlM9UzWI3QQjjKecZhwn8 - mR4+QTx/GWMiMKaAmASBqq4XD+PJR/RmsXt7k9nslBYyK2uXssAO/OI+gNcu6nFmkjHCP97R5clN - dGwKwas569GnkIO+7ug67UefmdvbIhAHcAfW+uPhsGQD9Z4ICWd/mtw7DJ0F7Q5z8iuLeucM+uTg - FmjRYIBDl+BPl0dyRWdr/2G/MTjrNCQ3+jzBy+XKO9LldRyUe6D5wCPe9OmzdcdA+dg+pSm2mw1S - Iydq5Mq6A8Z1VOtjXJ3I+UquYYCn0cMprqnxm5mwifRnu6yzyePjSlSbulbaNIo3HIvCoAAluQaO - dc1FgbVdT8ayl+RZpEvn6Waph6T3c2EvR7GVfQHCalPZQoOowdbaalUZkNqWzTwQb10Y5uKvOpe/ - AAAA//8DAJZRbWWBAwAA + string: '{"id":"sf_e2006b6ee77348c3b6178beefd6046df","object":"ScanForm","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:10Z","tracking_codes":["9400100109361117768877"],"address":{"id":"adr_6e86d70ecbe811eca3caac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:08+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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/20220504/05451d70bcc8487b9811fd48f6637b21.pdf","form_file_type":null,"batch_id":"batch_bb2a2df31942405faface8f4ac4afbbf","confirmation":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '897' content-type: - application/json; charset=utf-8 etag: - - W/"0a37ecccbb6cd999c408649fcc96df69" + - W/"488b2169b2e91fe2a01164849a358d25" expires: - '0' pragma: @@ -167,21 +137,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b3b9ff0304a6002a6984 + - 62b330b96272e161e786b8c600162a34 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.302789' + - '0.222970' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -196,8 +165,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -205,29 +172,21 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/scan_forms/sf_e524926c9b954368a0c6b7502adc1e98 + uri: https://api.easypost.com/v2/scan_forms/sf_e2006b6ee77348c3b6178beefd6046df response: body: - string: !!binary | - H4sIAAAAAAAAA4RSy27bMBD8FYPX+sGHrNctKJpDTwWcXloUwopcxmwtSiDpuk7gf+9STpyilxA8 - kMPZ2dldPjNnWMui7XAri0aWuumbbaHKGrgu+2rLJRgtsKnZko39T9SJ6DsN/n4MA2E6ICQ0HWRc - cilXXK1E9SBlK+pWqW/EOU7mXU4KoH85/9jp0WBk7XfWFJyLvBtVCloFr8pCsh9LBsYEjER6vroH - EzppbF+BVlAWXAjUjTUctLBlz4Ebgf/av3uJf9e9/MB5y/n7JbwRPQxIlM9UzWI3QQjjKecZhwn8 - mR4+QTx/GWMiMKaAmASBqq4XD+PJR/RmsXt7k9nslBYyK2uXssAO/OI+gNcu6nFmkjHCP97R5clN - dGwKwas569GnkIO+7ug67UefmdvbIhAHcAfW+uPhsGQD9Z4ICWd/mtw7DJ0F7Q5z8iuLeucM+uTg - FmjRYIBDl+BPl0dyRWdr/2G/MTjrNCQ3+jzBy+XKO9LldRyUe6D5wCPe9OmzdcdA+dg+pSm2mw1S - Iydq5Mq6A8Z1VOtjXJ3I+UquYYCn0cMprqnxm5mwifRnu6yzyePjSlSbulbaNIo3HIvCoAAluQaO - dc1FgbVdT8ayl+RZpEvn6Waph6T3c2EvR7GVfQHCalPZQoOowdbaalUZkNqWzTwQb10Y5uKvOpe/ - AAAA//8DAJZRbWWBAwAA + string: '{"id":"sf_e2006b6ee77348c3b6178beefd6046df","object":"ScanForm","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:10Z","tracking_codes":["9400100109361117768877"],"address":{"id":"adr_6e86d70ecbe811eca3caac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:08+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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/20220504/05451d70bcc8487b9811fd48f6637b21.pdf","form_file_type":null,"batch_id":"batch_bb2a2df31942405faface8f4ac4afbbf","confirmation":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '897' content-type: - application/json; charset=utf-8 etag: - - W/"0a37ecccbb6cd999c408649fcc96df69" + - W/"488b2169b2e91fe2a01164849a358d25" expires: - '0' pragma: @@ -245,21 +204,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b3b9ff0304a6002a6997 + - 62b330b96272e162e786b8c600162a47 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '0.042794' + - '0.050337' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 7f8b5399..f09f4c6c 100644 --- a/tests/cassettes/test_shipment_all.yaml +++ b/tests/cassettes/test_shipment_all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,89 +18,85 @@ interactions: uri: https://api.easypost.com/v2/shipments?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA+xdaVPbyNb+K5S+XkJ6X/hGhWQmcweTBOdm4K0pV6+gxFvJ8iRhKv/9PW3JxiYE - RAwmCaKowpa6W93nPDpLP0fi32xylo8HYVhOst3/+zdzRTBl8D1TZrsZQYQ8QfQJll1CdrHapeQk - 287ySa8I5bQYZrvR9CdhOxuEycSchjTE3/Bt5AP0LsOkhNajcZmPhnAKBp8WRRi6z3Dy7dE+nBub - z+nS6Vz5eZw6HT3v7D9/k33ZzjzMo2f8P2bo4ASCI0WIIfWHr8Npv7+dTUpTTmHkbDr8MBx9HMKI - ZWHch3x42nPVJDRDCKdfTQWGH4akYAQaTsf+uoXStFBrSnfWyz20qD5iTiwzODovI3MGKxOVi45K - b4iLQi/6LGY2HsHH09AbTwt3ZibBL5rUMpuvxU0n5Wgw6eXDOJofi8VoACLwBTRNMprNxPiiR3y0 - 0jhqBEMYB6ejR8bhKCwyyOOQxG7fB5fWtlf3375Rt/9BaBehm2Vz0XBoBknIf4DMt47GpihGH9N1 - RoOxGSYtPzeTz69GMxhMyiKEEsNBqtRWF7Q1CUO/dXRxjqTJjsstkkZ2eZkGODLDrRcFQCCfuFFW - aTxd8dkefDnPxzMNYyRnV50Oy6LCVoLW2WiYWvLFDxwMA5P359JdhamD2eeh6EXj8v7s4lUrkF3u - AaO5WXSMwYfC9Hul+TQDxwUYw6Vj/4Qij7kz8zvgC6A4H06mhVlC8aiA4ZY6gRxd6C/0PS5cv+e4 - xRHx4Ci2LMRorAxIW2cIwy4ou6zwV1X/m/V90kDVqU0/DE/Ls2wXox20nX3Mffqi0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HCcbJZLt9KaEALiMgRwbsxaYQlXTNAQKXIrQX+zPfHGgGi59Bu4dGY9 - jRBnROM5E4ZawwP14KQAR/ARLVnaNbk0Bq7PKh6ZC5xZZzSKwggteFTKy2AeAAUtl75RBFiqhIHs - P2hAAWdcOcyZZMFIwyJyt39NxR0g4LFz6ZvTvlJBBU1JjI4zbJ1mIr0oX4kAfzC7/VPq62v/cTOj - 96r6u+DSW8Q8JsR8473tjkUqhVZMY+YjVsICFDBSWFLG5UrUsA6XPttjuB8unTcAHb8zLp1fzaU3 - V13263DpvOXSb82l37fMWi695dLvnUvvv+/8dnzeOT/mh/uv+UH3zYeT989ZZ/ASHbx7+elg//RT - 5/wAdbr+7DounTLvsFYLrjIEuzZXucambctqPQpWqzmX3pIK2c9KKlzDpbdWp7U6LZe+BpfeINW5 - gkuHEc7MpDcYFaG6yJf/BwAA//8DAOtPr1JpowAA + string: '{"shipments":[{"created_at":"2022-05-04T20:26:08Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768877","updated_at":"2022-05-04T20:26:09Z","batch_id":"batch_bb2a2df31942405faface8f4ac4afbbf","batch_status":"postage_purchased","batch_message":null,"customs_info":null,"from_address":{"id":"adr_6e86d70ecbe811eca3caac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:08+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_4a8ca385633c4aa0a0ce6915aab835e1","object":"Parcel","created_at":"2022-05-04T20:26:08Z","updated_at":"2022-05-04T20:26:08Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_ed01ea50999240fa9076cd26c2b85b86","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/85fd19656d194ea48df6358b1309d96b.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_70e6cfa1ecbf4455a2f874cc0bd17f42","object":"Rate","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_c64b04653ff041caa1e4a8f2c76e5e25","object":"Rate","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_eb620e6fdf2043a58d21eb9f59446f18","object":"Rate","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e4d5ae86b46e45c2981c84d418931911","object":"Rate","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":{"id":"sf_e2006b6ee77348c3b6178beefd6046df","object":"ScanForm","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:10Z","tracking_codes":["9400100109361117768877"],"address":{"id":"adr_6e86d70ecbe811eca3caac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:08+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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/20220504/05451d70bcc8487b9811fd48f6637b21.pdf","form_file_type":null,"batch_id":"batch_bb2a2df31942405faface8f4ac4afbbf","confirmation":null},"selected_rate":{"id":"rate_e4d5ae86b46e45c2981c84d418931911","object":"Rate","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_b4b3bd5dad664d60ba65860ed230fa47","object":"Tracker","mode":"test","tracking_code":"9400100109361117768877","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:09Z","updated_at":"2022-05-04T20:26:09Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:09Z","shipment_id":"shp_85d3d98102be4cd0a67c5004ac0360dc","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:09Z","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":"2022-04-05T09:03:09Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrX2I0YjNiZDVkYWQ2NjRkNjBiYTY1ODYwZWQyMzBmYTQ3"},"to_address":{"id":"adr_6e84e0edcbe811ec9438ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:09+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_6e86d70ecbe811eca3caac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:08+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6e84e0edcbe811ec9438ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:08+00:00","updated_at":"2022-05-04T20:26:09+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_85d3d98102be4cd0a67c5004ac0360dc","object":"Shipment"},{"created_at":"2022-05-04T20:26:07Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768860","updated_at":"2022-05-04T20:26:08Z","batch_id":"batch_a27fd83f1e8e42de8b5389e48dff8c42","batch_status":"postage_purchased","batch_message":null,"customs_info":null,"from_address":{"id":"adr_6d93dfcccbe811eca39eac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_df86243888cd4ca5ab215576d06134c5","object":"Parcel","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_4c845d91a2c8478e9ddd100e0843df0b","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/f8b6a96562014a4d8e10695163233e63.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_d055f500704f485bbdea6a3bb3a09bd3","object":"Rate","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_07e963110a344db9bb7cc1051b363c17","object":"Rate","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_4516b905eed640d5bb42d5ab3c6c121e","object":"Rate","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_2657a230124a412aa274eefe97dc66e7","object":"Rate","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":{"id":"sf_6be60d730e924ed58918424eaee83aae","object":"ScanForm","created_at":"2022-05-04T20:26:08Z","updated_at":"2022-05-04T20:26:08Z","tracking_codes":["9400100109361117768860"],"address":{"id":"adr_6d93dfcccbe811eca39eac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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/20220504/1eae62cbbb1e47488d886b7e52673db2.pdf","form_file_type":null,"batch_id":"batch_a27fd83f1e8e42de8b5389e48dff8c42","confirmation":null},"selected_rate":{"id":"rate_2657a230124a412aa274eefe97dc66e7","object":"Rate","created_at":"2022-05-04T20:26:07Z","updated_at":"2022-05-04T20:26:07Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_77b0dbae8eef4334b995ae9c333328fc","object":"Tracker","mode":"test","tracking_code":"9400100109361117768860","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:08Z","updated_at":"2022-05-04T20:26:08Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:08Z","shipment_id":"shp_ced9db40c9544da494fb03e96cf8e7df","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:08Z","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":"2022-04-05T09:03:08Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrXzc3YjBkYmFlOGVlZjQzMzRiOTk1YWU5YzMzMzMyOGZj"},"to_address":{"id":"adr_6d9200b7cbe811eca39dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_6d93dfcccbe811eca39eac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6d9200b7cbe811eca39dac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:07+00:00","updated_at":"2022-05-04T20:26:07+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_ced9db40c9544da494fb03e96cf8e7df","object":"Shipment"},{"created_at":"2022-05-04T20:26:03Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768853","updated_at":"2022-05-04T20:26:04Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_6b00f552cbe811ec9366ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:02+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_4287255431dd430f8dea18b4af39623b","object":"Parcel","created_at":"2022-05-04T20:26:02Z","updated_at":"2022-05-04T20:26:02Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_27d0f4c69681458ca8e69b0e427c0d5f","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26:03Z","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/20220504/7f833150db0a457bbb13448018ea607c.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_9db00562024b4b35af15541bace0f8e8","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_586e45c3c9db44efb91f6fb5f786851c","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_62544dee7e664a5289f9c6c76b674e8c","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e0e5b1ccb0d043d1a235b8723ccef606","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":"submitted","scan_form":null,"selected_rate":{"id":"rate_9db00562024b4b35af15541bace0f8e8","object":"Rate","created_at":"2022-05-04T20:26:03Z","updated_at":"2022-05-04T20:26:03Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_f0351ce9a3e74e63907290799a8bc207","object":"Tracker","mode":"test","tracking_code":"9400100109361117768853","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:04Z","updated_at":"2022-05-04T20:26:04Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:04Z","shipment_id":"shp_9e38dcceeaef4d359c38211af1bcca33","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:04Z","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":"2022-04-05T09:03:04Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrX2YwMzUxY2U5YTNlNzRlNjM5MDcyOTA3OTlhOGJjMjA3"},"to_address":{"id":"adr_6afa9fe0cbe811ec8abbac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:03+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_6b00f552cbe811ec9366ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:02+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6afa9fe0cbe811ec8abbac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:02+00:00","updated_at":"2022-05-04T20:26:03+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_9e38dcceeaef4d359c38211af1bcca33","object":"Shipment"},{"created_at":"2022-05-04T20:26:00Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768839","updated_at":"2022-05-04T20:26:01Z","batch_id":"batch_4933af4e46dd469aae343ae326868546","batch_status":"postage_purchased","batch_message":null,"customs_info":null,"from_address":{"id":"adr_6951a811cbe811eca298ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:00+00:00","updated_at":"2022-05-04T20:26:00+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_c363a8b0d36d41ffa59da05a519845ea","object":"Parcel","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_2e38297ac4d044abbc13e62b9dc7f95b","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:01Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/093c2153e2d8437b9b20c001712bf9fe.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_2905ed21cebe461ebc6f986c29f5304c","object":"Rate","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_65ab7653326b429491d9a7320e9b6d62","object":"Rate","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_d21af3c219f845d1bdec0aa9261b0fa7","object":"Rate","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_fdd96103d81a46d19494c4e4a8f23218","object":"Rate","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_d21af3c219f845d1bdec0aa9261b0fa7","object":"Rate","created_at":"2022-05-04T20:26:00Z","updated_at":"2022-05-04T20:26:00Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_89ce0d1cd1b14a9eb4b24ac87eb4f552","object":"Tracker","mode":"test","tracking_code":"9400100109361117768839","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:01Z","updated_at":"2022-05-04T20:26:01Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:01Z","shipment_id":"shp_f5288013455341fa8b320ac6ae2ba40f","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26: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":"2022-04-05T09:03:01Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrXzg5Y2UwZDFjZDFiMTRhOWViNGIyNGFjODdlYjRmNTUy"},"to_address":{"id":"adr_694feef2cbe811ec9303ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:00+00:00","updated_at":"2022-05-04T20:26:00+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_6951a811cbe811eca298ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:00+00:00","updated_at":"2022-05-04T20:26:00+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_694feef2cbe811ec9303ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:00+00:00","updated_at":"2022-05-04T20:26:00+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_f5288013455341fa8b320ac6ae2ba40f","object":"Shipment"},{"created_at":"2022-05-04T20:25:56Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768815","updated_at":"2022-05-04T20:25:56Z","batch_id":"batch_584a27292fa94bd7a4d8ebc8bfb2b219","batch_status":"postage_purchased","batch_message":null,"customs_info":null,"from_address":{"id":"adr_66dd3661cbe811eca1e5ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:56+00:00","updated_at":"2022-05-04T20:25:56+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_9b6e7c96135848ceaca9ddfd8e392903","object":"Parcel","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_f07b264cb97d49c39d37736c1fe9072a","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:25: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/20220504/2ba71f8f9c8043c29c7a628545e458de.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_02497804455d40819a23cde29d7ac42e","object":"Rate","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_3f4617c0bd7d48c0826429d909e98106","object":"Rate","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_8561ef9aa5e948e6a2fa1bd967ea2716","object":"Rate","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_c95d3056d6fb43f1812bc6905dd5c6a9","object":"Rate","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_8561ef9aa5e948e6a2fa1bd967ea2716","object":"Rate","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:56Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_66176ea992e94d2dab049f1646a23167","object":"Tracker","mode":"test","tracking_code":"9400100109361117768815","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:25:56Z","updated_at":"2022-05-04T20:25:57Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:25:57Z","shipment_id":"shp_ec4cecb611444a7eb251247061ced771","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:25:57Z","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":"2022-04-05T09:02:57Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrXzY2MTc2ZWE5OTJlOTRkMmRhYjA0OWYxNjQ2YTIzMTY3"},"to_address":{"id":"adr_66db3fcecbe811ec9258ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:56+00:00","updated_at":"2022-05-04T20:25:56+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_66dd3661cbe811eca1e5ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:25:56+00:00","updated_at":"2022-05-04T20:25:56+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_66db3fcecbe811ec9258ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:25:56+00:00","updated_at":"2022-05-04T20:25:56+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_ec4cecb611444a7eb251247061ced771","object":"Shipment"}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '41833' content-type: - application/json; charset=utf-8 etag: - - W/"7a93c7d3aca262a939e859e0e90f73e1" + - W/"0776aea304c1d8208c99c877cff01418" expires: - '0' pragma: @@ -120,7 +114,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5076233b3beff0304aa002a6a91 + - 78245fba6272e163e786b8e10013ad49 x-frame-options: - SAMEORIGIN x-node: @@ -128,13 +122,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.413851' + - '0.375579' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 4354153b..0dcf59b7 100644 --- a/tests/cassettes/test_shipment_buy.yaml +++ b/tests/cassettes/test_shipment_buy.yaml @@ -21,7 +21,7 @@ interactions: - keep-alive Content-Length: - '932' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -33,61 +33,30 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xZbW8buRH+K4I+tahP4PuLv6UX3yFFmwan9MsVgTAkh/b2pJW6u3LiC/LfO1y9 - 2YljbxBDatP4g6HlDsnhzDMzz3Dfj2OD0GGaQTc+HwsmxA9M/sDtayHOuTuX/tfx2bhqZw1266Ye - n2eYt3g2XmDbwiW24/N/vh9HaJoKG5r/j1dTEt8+zyDG5bruZlWiVxFm3gCYaILW0Sgugo/MiayV - yFlxxzRN7W5WSMINqTTDplk24/1eNPyivoZ5lUbPYqSx0V+riHWLo3q9CLT9h7PhqjitArM5BeaZ - 8mBClsoazaRDq4zIR1QFpQQLQYjoSBUBLnIePMqECQJoeURVoiIrgDSMeau0hMCYFhERdAKVkB1R - FWGMjzY7URzCyU2ZoWEyCh+ldAaPqIr1ghMunNOMK+VVAIxMQ1Y6K+WyPyZWdHQE3BS947R1DjJo - Q5EklE8sqHREVWQW3kSrgkKpjM9ehpCMFTbGlIU8ZjCLKAI5JiSbUGFSjiPZRSdST3uK7yOqklCA - 0TbHbLOyOnlMKbOcDPc5CzgmbLMOzhvHpQCmGKVdJZOh/0l7lslAR1RFO6FEErQtOUoj95En5nT0 - wWnOjT2iKiFakZ2NDoVU2VOK9SwiYUeFKLQ9ZrZlPGTOQAnOUOUcwTMdFSTPbJQpHTOClEAjLAfI - zigZ0IEOhtnAkzDBCnfMyqy0pyBilOKM8g4hcMeTN1wqDMwcszL7FBOTqD2PoKKPXgutmQBhg+I6 - HRO2hJBILEUKiZTqQDgBwVDGNc5kacAcM5gFA05sQGkQijAS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8ab/ekbl+qMPWm2Euv94 - tx/o2T/5tbnVXPXf1A6fArrl527xmaG6tLvFdzaH3S1+kOZOP/P9Fv+/6xZ/3a7a2e+9cvxs+03u - +6eab8zJYX1Tksf30P2mvFqyd/m29KYshNtfX1JV9p6dbmvS+MN/AAAA//8DAFTyAR2wLgAA + string: '{"created_at":"2022-05-04T20:26:12Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:12Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_a135a9371bf14bde89d58e6cd4edf300","object":"CustomsInfo","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","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_eabfe85b4d104012a8c1da9f1d766c78","object":"CustomsItem","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_70a19c6ccbe811ec8c01ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:12+00:00","updated_at":"2022-05-04T20:26:12+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_5cd02c272b304e0a87ccf4b99a56c647","object":"Parcel","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_164e8012940d49ae9eb3a85584b18d8a","object":"Rate","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_96c051622c9a45f086c56d50a49f95be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_9c9c75815d3d495dbb74ee8686db2397","object":"Rate","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_96c051622c9a45f086c56d50a49f95be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_dbc0726c8b444207ba04932a8d8a11c7","object":"Rate","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_96c051622c9a45f086c56d50a49f95be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_3d4eccb5993b48bd9aa4a79f98ce54dc","object":"Rate","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_96c051622c9a45f086c56d50a49f95be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_709fddaecbe811ecab0eac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:12+00:00","updated_at":"2022-05-04T20:26:12+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_70a19c6ccbe811ec8c01ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:12+00:00","updated_at":"2022-05-04T20:26:12+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_709fddaecbe811ecab0eac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:12+00:00","updated_at":"2022-05-04T20:26:12+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_96c051622c9a45f086c56d50a49f95be","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '5563' content-type: - application/json; charset=utf-8 etag: - - W/"249f78c03903f8a78df890e2c361a06d" + - W/"295a9e55f73932b7de2722a902db683d" expires: - '0' location: - - /api/v2/shipments/shp_c173fdff15de41f8944289cc08bebd06 + - /api/v2/shipments/shp_96c051622c9a45f086c56d50a49f95be pragma: - no-cache referrer-policy: @@ -98,33 +67,34 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b3bfff0304c2002a6ac8 + - 78245fb96272e164e786b8e20013ad7d x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.947159' + - '0.299132' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_9676a16c763c45df80888cac48dc0c3b"}}' + body: '{"rate": {"id": "rate_3d4eccb5993b48bd9aa4a79f98ce54dc"}}' headers: Accept: - '*/*' @@ -134,7 +104,7 @@ interactions: - keep-alive Content-Length: - '57' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -143,71 +113,29 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/shipments/shp_c173fdff15de41f8944289cc08bebd06/buy + uri: https://api.easypost.com/v2/shipments/shp_96c051622c9a45f086c56d50a49f95be/buy response: body: - string: !!binary | - H4sIAAAAAAAAA+xbaXPbyBH9Kyx+SioSNfehb4wtb7yxZUXk1madcrHmlGCTIAOAluUt/ff0AOCh - GxsrVLKxymULg5lBT/fr7tdo+Ne+K4Kpgp+Yqn/YJ4iQfUT3sRwTcojVIdXv+3v9rJwUoVoWef8w - mmkZ9vqzUJbmLJT9w3/82nemKLJQwPqfTkYwvb2eGOfmy7yaZB5uOTPRwhjhhOXcCYaJ1Q4pEjkj - MTKsEIel1eUiwOQCRJqEopgX/fWzYPh1/tlMM98bOgdjvTeZC3kZevl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atk7o74j8eCf+XH4u/fz0jx+Q0Ox6/pW/Hb/Hx+PT8l4+f - +C/j9x/fvvyJHn/8G38/Hn45np3OaiTM7+vfIgFEdNW/VTLaVf/WUnHtBcaT928ZvtW/Hb74a290 - Mjw9ffdz/1r/djj65eTdaNy/1b999/Nx+hqlNxr3hifjpme7buO2DfC2hTs87r06HR6/eD168a5/ - fwt3H4v6pfcu+rhNfvn3+7hJbpb+LZf1R0HrjJU+HmoBt8Zh28laYb/rsvT1UJVVy3Q4KgdScg58 - aDrPz9rBfUzIIL31kICzbBYmXxtNDWcgrTMHb+blZJifQVoq+1dXqfW8LBdlOwvvtR+SfP++4Hf2 - fYFdXqa09T3qfI86/x1RJ5Hk6+l46xuPV2Hr/yPUX3o0I2aWDAJjaIDST9LxuSnONtVBw8rX5C+V - bnfv2n5GcmPfxEc77fuh/fKkIzFZyzBqaU3/6l8AAAD//wMAG2QyY+E2AAA= + string: '{"created_at":"2022-05-04T20:26:12Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":"9400100109361117768884","updated_at":"2022-05-04T20:26:13Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_a135a9371bf14bde89d58e6cd4edf300","object":"CustomsInfo","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","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_eabfe85b4d104012a8c1da9f1d766c78","object":"CustomsItem","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_70a19c6ccbe811ec8c01ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:12+00:00","updated_at":"2022-05-04T20:26:12+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_5cd02c272b304e0a87ccf4b99a56c647","object":"Parcel","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_0b6a7b851d574ad7a8f46964e196ec80","created_at":"2022-05-04T20:26:13Z","updated_at":"2022-05-04T20:26:13Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/977d8ff0d72448b493ec01059eb9af53.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_164e8012940d49ae9eb3a85584b18d8a","object":"Rate","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_96c051622c9a45f086c56d50a49f95be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_9c9c75815d3d495dbb74ee8686db2397","object":"Rate","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_96c051622c9a45f086c56d50a49f95be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_dbc0726c8b444207ba04932a8d8a11c7","object":"Rate","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_96c051622c9a45f086c56d50a49f95be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_3d4eccb5993b48bd9aa4a79f98ce54dc","object":"Rate","created_at":"2022-05-04T20:26:12Z","updated_at":"2022-05-04T20:26:12Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_96c051622c9a45f086c56d50a49f95be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_3d4eccb5993b48bd9aa4a79f98ce54dc","object":"Rate","created_at":"2022-05-04T20:26:13Z","updated_at":"2022-05-04T20:26:13Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_96c051622c9a45f086c56d50a49f95be","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_62de9ee096a9474fbb9c2da96e77bbe1","object":"Tracker","mode":"test","tracking_code":"9400100109361117768884","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:26:13Z","updated_at":"2022-05-04T20:26:13Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_96c051622c9a45f086c56d50a49f95be","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzYyZGU5ZWUwOTZhOTQ3NGZiYjljMmRhOTZlNzdiYmUx"},"to_address":{"id":"adr_709fddaecbe811ecab0eac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:12+00:00","updated_at":"2022-05-04T20:26:13+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_70a19c6ccbe811ec8c01ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:12+00:00","updated_at":"2022-05-04T20:26:12+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_709fddaecbe811ecab0eac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:12+00:00","updated_at":"2022-05-04T20:26:13+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_96c051622c9a45f086c56d50a49f95be","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '7660' content-type: - application/json; charset=utf-8 etag: - - W/"38064fc127eba5e1cf8b9ef737c25297" + - W/"add35208f671d10f1b9fd81e0d9cebdd" expires: - '0' pragma: @@ -225,21 +153,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b3c1ff0304c2002a6b4d + - 78245fb96272e164e786b8e20013adb5 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.093924' + - '0.933934' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 28bde14e..087b161c 100644 --- a/tests/cassettes/test_shipment_convert_label.yaml +++ b/tests/cassettes/test_shipment_convert_label.yaml @@ -21,7 +21,7 @@ interactions: - keep-alive Content-Length: - '932' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -33,61 +33,30 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xZbW8bxxH+KwI/tahC7PuLvrmJEqRoXSNyv6QwiNnZWeka8sjeHW0rgf97Z48v - ovwiMbBBtWkMweDtze7tzvPMMzN3v0ywIxgoz2CYXE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UpFTyCXQMxljuOXi2Bc+oR+UMPQH0myi7onl96qcZ4KdKPc6A - rdUxDNia/r8xIJvgas3O3aY2UZYEKTklC0S02dr8BAy4fLvaJdZPgM9VhLePo6/81Igj4d8teRT+ - H0H7cyiwzXNPyAKRZPKlEEmLJigExZUQGK4okjYkn0QHuobrSq4XHtIA7R9nQZj6Y0mwXfAoDsgv - SAD5tOhzF5jJeKW0SiYUDF4HpUKqn4UUJ4InQF9/A7cfywH3VEBOQzhCBbZmR6mAmipzLAP0BwzY - n1Kpl0pfjNX8j5OHOLFpZT9CCf2FKQEyGe0ddzIJjQo+2ZA44VvpnEOZzXuUUDGabIX0EMAUaVNS - TlmJSkeZNeITUOI5vR2YFc+a7hK6+e2zv32aGUFOzRHVwc7sGGYENXVH1wcfasPdYcNLET6LGV9a - LH4lM4wSUiQhXNHMjIhJJbKCK0gQgVtl8wTM+K7jA+VP00HKqTuiXdiZHUMH6X5FufgwHT5TKJ6Y - Dk4JJ5WWSQfBlQIXj8KFzKRw0epA5UmF4grYUZ/mhVHTscN/hBc7s2N4YezUH51Afsu8SE7ryoUc - CvBT2dZ5b4JHpkcRY7P9dLx4gBIc10d0FjuzoyjBXcjRncXDlJDiQv/vUsJJEkLqZPnPSEOBAKRX - gZNGKeDSE1BCtfkxRmgxlUdUmTuzYxjBtv4z3jXcVZnyc0XiS798eJwRr8avZ5yu3/ug1SO048e7 - /cBY/TOu3UFzNX5Tu/sUMCw/9RZfpBhg9xY/hhA3b/HRc69z76Xu72/x/7ve4q/7VT/7edycPN9+ - k/v9U81vDOS0vq3i8Xvo/qZQrepdvy29qgvR9tevySp7ZK+2OWny7j8AAAD//wMAILFUwrAuAAA= + string: '{"created_at":"2022-05-04T20:26:14Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:14Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_b53087ce08604fbbbd6c80fcddd14a8b","object":"CustomsInfo","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","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_bb5b391006114a8f8baee3f05352fd71","object":"CustomsItem","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_7215ccd5cbe811ec8c45ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_116325e84ede4cf6863a742e5782c618","object":"Parcel","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_351acab605624b79a9de943141acfcd5","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_11f82e2757b14f4787c57c678015dc1d","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_10e1662d07e14f33ba7fc8d4ef0ceb78","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e879d6be98e54cf69610e2e59f565699","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_72140bcacbe811ec94e2ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_7215ccd5cbe811ec8c45ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_72140bcacbe811ec94e2ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '5563' content-type: - application/json; charset=utf-8 etag: - - W/"0ef91c193fcec611724d3fc8c3f35f07" + - W/"9361ec9c868fba5b1b4c1cb3e6adb78e" expires: - '0' location: - - /api/v2/shipments/shp_48364ab468644043bb8e2667dde78b18 + - /api/v2/shipments/shp_6b7295f147ea4ee8b5a65ea481e1eebb pragma: - no-cache referrer-policy: @@ -103,28 +72,27 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b3c6ff0304c4002a6c54 + - 78245fba6272e166e786b8e50013ae44 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.984144' + - '0.416692' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"rate": {"id": "rate_9a5567ec55784e2b8cedfb78d078ccca"}}' + body: '{"rate": {"id": "rate_e879d6be98e54cf69610e2e59f565699"}}' headers: Accept: - '*/*' @@ -134,7 +102,7 @@ interactions: - keep-alive Content-Length: - '57' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -143,71 +111,29 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/shipments/shp_48364ab468644043bb8e2667dde78b18/buy + uri: https://api.easypost.com/v2/shipments/shp_6b7295f147ea4ee8b5a65ea481e1eebb/buy response: body: - string: !!binary | - H4sIAAAAAAAAA+xaa1PjyBX9Ky5/Sipg+v3gm3eG2cxmF8iYrc2QmnL1E8TYsleSB5gt/ntuS7Ix - b20gJtkMRc2g1u1W9z3nvnT1W98VwVTBj03V3+0TRMg2ottYHhGyi9Uuk8f9rX5WjotQLYq8vxvN - pAxb/WkoS3MSyv7uP3/rO1MUWShg/s+HIxBvr8fGudkir8aZh1vOjD3FljDJZPCYBamt8NR5g4NC - FkY0TK0u5wGEC9jSOBTFrOivngXD7/MvZpL53tA5GOv9mLmQl6GXL6YWHn+11X0rUhNMVVCKI8yY - ZtYEh7iJjEfGVNzkVmgkWjjJLAuUCR01tdYLSaRzPhLKN7gVhJCPhjouAA5FpPKOcMuw4JY6hcUG - t8IJMpj5wLghDElrsUZcWcyiDRyw2+BWfCBGcBldlJFJ7nXwPqLoBdYxEhM2CRC2ESPDCEaBxegM - KMUx4zWSjnq/Sa4ESo00lhCnENPEKIex1YH64I01fJMAKcY1YIScVoJpFYzFCnstMGXBIhE3uBXi - iAV/Yr0E6gbPFA7Ucu7BwLnWiG2SKyR6QzmlCBvmuVcac4YiQATKoWSjxqwII56gGEA7PGDtsEeK - O20Vx1jIDW6FkSCIx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1ep9bwo52UrhbfaD0m+fV/w - B/u+wC4uU9j65nW+eZ3/Dq+TkuSb4XjtG493Ye2z1PpLj2bETBMgMIYGKP0kHZ+a4uS6Omiy8lXy - l0q3+1dtPyO5tW7KRzut+6n98qRjYrLaw6hNa/pX/wIAAP//AwAGeYsu4TYAAA== + string: '{"created_at":"2022-05-04T20:26:14Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":"9400100109361117768891","updated_at":"2022-05-04T20:26:16Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_b53087ce08604fbbbd6c80fcddd14a8b","object":"CustomsInfo","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","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_bb5b391006114a8f8baee3f05352fd71","object":"CustomsItem","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_7215ccd5cbe811ec8c45ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_116325e84ede4cf6863a742e5782c618","object":"Parcel","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_15b7c9dfdb5e499e982a040cff7ed1f0","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/8393ada5b1174d519e2085b4e2f65cf1.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_351acab605624b79a9de943141acfcd5","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_11f82e2757b14f4787c57c678015dc1d","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_10e1662d07e14f33ba7fc8d4ef0ceb78","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e879d6be98e54cf69610e2e59f565699","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_e879d6be98e54cf69610e2e59f565699","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_41ad8d2eb9fc41c991243dc059a40101","object":"Tracker","mode":"test","tracking_code":"9400100109361117768891","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:26:16Z","updated_at":"2022-05-04T20:26:16Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzQxYWQ4ZDJlYjlmYzQxYzk5MTI0M2RjMDU5YTQwMTAx"},"to_address":{"id":"adr_72140bcacbe811ec94e2ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:15+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_7215ccd5cbe811ec8c45ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_72140bcacbe811ec94e2ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:15+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '7660' content-type: - application/json; charset=utf-8 etag: - - W/"1c42a85ea6f3472be370f396118b2838" + - W/"88d0fc47f3c360b431db44dae8925ee8" expires: - '0' pragma: @@ -225,7 +151,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b3c9ff0304c4002a6cc2 + - 78245fba6272e167e786b8e50013ae69 x-frame-options: - SAMEORIGIN x-node: @@ -233,13 +159,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.734005' + - '0.802893' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -254,8 +179,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -263,77 +186,34 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/shipments/shp_48364ab468644043bb8e2667dde78b18/label?file_format=ZPL + uri: https://api.easypost.com/v2/shipments/shp_6b7295f147ea4ee8b5a65ea481e1eebb/label?file_format=ZPL response: body: - string: !!binary | - H4sIAAAAAAAAA+xa63PbxhH/Vzj81E4l6t4PfVNkOXHrSKqpTGJ3PJx7SrBJkAVA23LG/3v3ABAk - 9bCQ2KHa1BqPJdztHfZ2f/vC7a9DVwRTBT8x1fBwSBAh+4juY3lByCFWh0y+Gu4Ns3JShGpZ5MPD - aKZl2BvOQlmay1AOD//169CZoshCAet/Oh8Defs8Mc7Nl3k1yTxMOTPxFFvCJJPBYxaktsJT5w0O - ClkY0bC0ul4EIC6ApUkoinkx7N4Fw8/yd2aa+cGRczA2eJ65kJdhkC9nFl7/aa8/K1ITTFVQiiPM - mGbWBIe4iYxHxlTcJSs0Ei2cZJYFyoSOmlrrhSTSOR8J5TtkBSHko6GOC1CHIlJ5R7hlWHBLncJi - h6xwggxmPjBuCEPSWqwRVxazaAMH3e2QFR+IEVx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SZ+vJlcXuxtXpt19+er+tnmsL3frO5kUI/vILsltAVOD+sJwcNxg6w+XWZ10cP7H - y2z4w9lP44uz0+H6Gvzil+HdghtKiQQdfkrRJIb6Quv1mpnV+TbeetxMdWK94bj3j6emLAfnzb0u - gLKZbVpiTJbDps2N5D0GVx91eud0kuf2dNunsZbO6uSDi1/2BnAytNHNsUNh1kiqsqYjaJO94x+O - Xjw/qTkcH+8NCLhJPNymvoPN5g3roHLTRTXzZlqFIk8ivNkikm6js9SXsF5oqirMFlV3mblY2mnm - bly81qyMVtev9Q2rf3Mi/A9/L375+Iy/evPTh5fk1duzJ9+9ffXmn+zVm9Ps9M3bDy9/fjV9+eYZ - //HJET+7OMJ13Jnf156CrFZm1Z6ildJNe4qT1rutboWv356ib7WnHB3/YzA+P3rx4uzn4VZ7ytH4 - 5fnZ+GJ4qz3l7OfT1Gw3GF8Mjs4vmpaUrkul9Vdth8rR6eDpi6PT42fj47MNNN3sUNnHov7Kvos2 - lSab/f1tKolvln6Xy7rnscuPU29k60u6yNZCbYXBvstSc2SVVct0OCpHUnIO1dd0nl+2g/uYkBHV - QkvAWfIRHxtJHc2AW2cOns/LyVF+CUlwCX4uddYsy0XZUuG9tk/uW/vUn6x9yi6vU5L8zet88zr/ - HV4nleTta9pMayP/eBo2uu7rvLQZMbOkEBhDI5R+koyvTHG5/hbRfAPoSs2tJHhr17ZL7sa+qfrt - te/rtrGuZ6nT8bCqUoaf/gMAAP//AwA7hdhfwDsAAA== + string: '{"created_at":"2022-05-04T20:26:14Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":"9400100109361117768891","updated_at":"2022-05-04T20:26:16Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_b53087ce08604fbbbd6c80fcddd14a8b","object":"CustomsInfo","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","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_bb5b391006114a8f8baee3f05352fd71","object":"CustomsItem","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_7215ccd5cbe811ec8c45ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_116325e84ede4cf6863a742e5782c618","object":"Parcel","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_15b7c9dfdb5e499e982a040cff7ed1f0","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:17Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/8393ada5b1174d519e2085b4e2f65cf1.png","label_pdf_url":null,"label_zpl_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220504/bad0aae6f8674f42a246b754586c6cb2.zpl","label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_351acab605624b79a9de943141acfcd5","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_11f82e2757b14f4787c57c678015dc1d","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_10e1662d07e14f33ba7fc8d4ef0ceb78","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e879d6be98e54cf69610e2e59f565699","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_e879d6be98e54cf69610e2e59f565699","object":"Rate","created_at":"2022-05-04T20:26:15Z","updated_at":"2022-05-04T20:26:15Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_41ad8d2eb9fc41c991243dc059a40101","object":"Tracker","mode":"test","tracking_code":"9400100109361117768891","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:16Z","updated_at":"2022-05-04T20:26:16Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:16Z","shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:16Z","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":"2022-04-05T09:03:16Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrXzQxYWQ4ZDJlYjlmYzQxYzk5MTI0M2RjMDU5YTQwMTAx"},"to_address":{"id":"adr_72140bcacbe811ec94e2ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:15+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_7215ccd5cbe811ec8c45ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_72140bcacbe811ec94e2ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:15+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '8907' content-type: - application/json; charset=utf-8 etag: - - W/"a1208ba9d5aced43091f5aac86d7a601" + - W/"d27eeae403b2c5c1d1074abccf35c5e9" expires: - '0' pragma: @@ -351,21 +231,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b3caff0304c4002a6cee + - 78245fba6272e168e786b8e50013aeae x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.522264' + - '1.640868' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 533186fa..c07c2940 100644 --- a/tests/cassettes/test_shipment_create.yaml +++ b/tests/cassettes/test_shipment_create.yaml @@ -21,7 +21,7 @@ interactions: - keep-alive Content-Length: - '932' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -33,61 +33,30 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xZWW8cxxH+K8Q+JQi96KP64pti0YaDRBFM5cWBsKjuriYn3p3dzMxKog3991TP - Hlzq4hoSlrBiPhDbPdXd1fV9dc38Okkd4UB5hsPkYqKEUt8I/Y10L5S6kP5Cw0+T80nTzzoa1l07 - uSg47+l8sqC+x2vqJxf//nWSsOsa6nj9v55fsfh2PMOUlut2mDWZHyWcBYtok43GJAtSxZCEV8WA - KgWkF4aXDrcrYuGOVZpR1y27yf4snv6hfYXzJp89SYnnzv7eJGp7OmvXi8jHvz0/XhXSGh1GpZIX - EBT6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gFKPcyErdRxKWAU/X+LA57rnkRcD4NESBYD0wGVDcLWF+wpPAID9FO8/RD+9yKBnHp/RCTYih0V - CdRUwbEM0O8xYH9LpV4ofTFW8z9NPsWJTSv7AUroL0wJlBG0s9zJxASKw7vxEQwaaa1NMsO7qUFY - MJGUskJAMM4D6BjIGwhOBU2PQIln9GZgVjxpukvs5rdP/vFxZng5hSMiw07sGGZ4NbVHx4b3y8O7 - y/oXwn8WM750vfgbmSGkUDqbEgUXihABoxUqiKJNVMDnPwIzvu/4QvnjdJByao8oGHdix9BB2t+Q - Kj5Nh88MFI9MB2lSCKBTicwG4mThEimSJgqIhJAfNVBcIRvq47wANXX2YV7sxI7hBZipOzqBfM28 - cN5pI8hlJSQIKh59EjGTL/VHcY/Ki09Qgv36iO5iJ3YUJbgTObq7+DQlpLjQv19KiOJV9BQUcaCQ - MiBqg6qoIjif6OAfgRKqzQ8xQoupPKLK3IkdwwiWdZ/RZ9xVmfJzg8SXbjweZsTL8esZp+t3Pmj1 - Cdvx491+Yqz+GdfuoLkav6ndfQoYlh97ix/rN9iDt/jhj7f4v4+3+Ot+1c9+GZWT59tvcn98qvnK - QI7r2xo8/nDdrwrVGr3rt6WXdSPa/votWWWP7NU2J03e/g8AAP//AwAXGRxksC4AAA== + string: '{"created_at":"2022-05-04T20:26:10Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:10Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_5bb96b03dd4f4ccea7375d6946efad61","object":"CustomsInfo","created_at":"2022-05-04T20:26:10Z","updated_at":"2022-05-04T20:26:10Z","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_453498ba5db94695b0e75637429a295d","object":"CustomsItem","created_at":"2022-05-04T20:26:10Z","updated_at":"2022-05-04T20:26:10Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_6f938385cbe811ecaae7ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:10+00:00","updated_at":"2022-05-04T20:26:10+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_1b3ceb0abe5e491cbd1787867b3c38a8","object":"Parcel","created_at":"2022-05-04T20:26:10Z","updated_at":"2022-05-04T20:26:10Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_0fc3dbb71e054bc9aec3ce9cae3ab6a8","object":"Rate","created_at":"2022-05-04T20:26:10Z","updated_at":"2022-05-04T20:26:10Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ca6ea74a3f77456d85b30a4fbefd304c","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_626b02e9e0b84114a19d2d8825a943a4","object":"Rate","created_at":"2022-05-04T20:26:10Z","updated_at":"2022-05-04T20:26:10Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_ca6ea74a3f77456d85b30a4fbefd304c","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_1f0fb17b527c4511853563024f15f009","object":"Rate","created_at":"2022-05-04T20:26:10Z","updated_at":"2022-05-04T20:26:10Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ca6ea74a3f77456d85b30a4fbefd304c","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_c292a85b48f941f18e0e692e4084bf0f","object":"Rate","created_at":"2022-05-04T20:26:10Z","updated_at":"2022-05-04T20:26:10Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_ca6ea74a3f77456d85b30a4fbefd304c","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_6f91db53cbe811eca3f4ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:10+00:00","updated_at":"2022-05-04T20:26:10+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_6f938385cbe811ecaae7ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:10+00:00","updated_at":"2022-05-04T20:26:10+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6f91db53cbe811eca3f4ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:10+00:00","updated_at":"2022-05-04T20:26:10+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_ca6ea74a3f77456d85b30a4fbefd304c","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '5563' content-type: - application/json; charset=utf-8 etag: - - W/"0f8ca0e888c81ee473e955877155bb90" + - W/"48a92d961b556d8b10d58bac596709cb" expires: - '0' location: - - /api/v2/shipments/shp_4a31cc15336644dd810a7243ebdd1935 + - /api/v2/shipments/shp_ca6ea74a3f77456d85b30a4fbefd304c pragma: - no-cache referrer-policy: @@ -103,21 +72,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b3baff0304a8002a69b0 + - 62b330bb6272e162e786b8df00162a6e x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb1nuq c51cdb8bf2 x-runtime: - - '1.714691' + - '0.320368' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 22a4cf9f..726c1747 100644 --- a/tests/cassettes/test_shipment_create_empty_objects.yaml +++ b/tests/cassettes/test_shipment_create_empty_objects.yaml @@ -6,7 +6,7 @@ interactions: "Jack Sparrow", "company": "EasyPost", "street1": "388 Townsend St", "street2": "Apt 20", "city": "San Francisco", "state": "CA", "zip": "94107", "phone": "5555555555"}, "parcel": {"length": "10", "width": "8", "height": "4", "weight": "15.4"}, "customs_info": - [], "options": null, "tax_identifiers": null, "reference": ""}}' + {}, "options": null, "tax_identifiers": null, "reference": ""}}' headers: Accept: - '*/*' @@ -16,7 +16,7 @@ interactions: - keep-alive Content-Length: - '556' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -28,56 +28,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xZbW/cuBH+K8Z+rW9BDt/9zWh8RYv2EJzTLymCxZAcxuqttQtJm8R3yH/vSPti - O4ltBTG0bRp/MFbUkBzOPDPzDPXHLDWEHeUFdrOzGQiAn4T6SbpXAGfSnxn3enY6q9pFQ92mqWdn - BZctnc6uqW3xLbWzs3/9MUvYNBU1PP+fLy9ZfPe8wJRWm7pbVJlfJVx4bQIBihS81cETRullDlYq - TVHYwlO7mzWxcMMqLahpVs3ssBcP/7V+h8sqn5ynxGMnf68S1S2d1JvryNt/PB2vCiSIWoeYXSZN - WXtJKhqTbXImBKEnVCXklIUiE2RCnUIKBowRgOCilia7CVVJWmmHygoRnDYKoxAGEhGajDqTmNJB - 1obkigdPTssoQhFkhUoQklLe0oSqxOSgeJc8gdIlZIxBJGLs6JjAODWhKpnDxxpXUnFFO5MD5VxE - yVaGUgCntIoLIJUn742QHEk6IiVhsGhTtPYlTKgKKYUOI0DyQgdAn6SMgVQm9hWaKR0kSCe0UYEi - zi8IHjBaFaP1tiiLdkrYSqlNzGi0D9oG8uAKJ7cobVCEkKd0kEleR5E58UvGRomca62ECDpkEfWU - qqgCgZO8jpoUW6UEdk62DlxKuYAyE6qigSw4iVi4HKpIHk20wkWZwUYHfkrYCpELqmRsZgeB85kz - G5cfa6JKXk4JWwMCJRcbbRA0WyP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X4gaOG7fHuhkw3PhSYOpBOlvOY14aiYlJPCYtaShLtyjIxfkEoAoG - pyUzFtTcFgpmKkFGC8dAwTbgLmnZ7/owFNwc4Gkk7KTGAGEnOgoH8IwggOMiAFnWCp2sAM1lEFF6 - X7hKmsi1kFvgYyCgqVZNXzQe875yT3vfz93YNLBbcJT35TN6Xx7X+8VSDoq72UBa2yKQ62DxEZJL - RUOKR/D+z1XTPhb4XPXC067fSY1x/U70/y3wDeQckvLWA2lPJQDzAWmzYQasuO04guvVC7z5UuK/ - RwHk3PsRFGAnNooCwHyodKMQoD5DwOGUAK9AnQ1s/vXsMUx0zebLkFDPDAmUUStnuZOJSYN30fio - DRpprU3M9D6BhBeGOO9nJZzRlBAVJW1z7L93YAr2CJD4hT50jIrzqrnAZnlz/o+HkeHlXI+gBHux - McjwMLejScHnZeH2sP6V8N+EjOeuE1+JjKJKLEV6E03UhWWLd0wSCTAyTPQxkPGXhg+UH4aDlHM7 - olDsxcbAQdqv4IiPw+EbE8WR4YDCCPZ/dpSjjiljSTYHckAQMLpj0IbbRHGJbKiHcaFh7uzTuNiL - jcGFNnM3uoB8z7goshTCUFQqXjuFAcglE6RPrmRS4qi4eAQSHNcjrhX2YqMg4eZ69LXC45CQ4kz9 - 70LCFowgMSpwfUehvdImixgASk4plSNAAur8FCKUmMsRLHMvNgYRLOu+4YLhlmXKb00Sz914PI2I - N8N3Ai7Xn9zdtwnrRVk114eBgf2zX5s7zdXw+aD30e5x9cAtvuI+Rpf9LX5Uyu5v8UHev8r6cYv/ - 33WLv2nX7eL3QTk5RNOmqX98qvnOnBw3N33y+BG635VX++zdf1t60y9Eu19fU1UOnr3c1aTZx/8A - AAD//wMANmJExW4rAAA= + string: '{"created_at":"2022-05-04T20:29:59Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:29:59Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_f7cfdd6ecbe811ecbc66ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:29:59+00:00","updated_at":"2022-05-04T20:29:59+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_3e10fd7180694a998ef2314033f52cef","object":"Parcel","created_at":"2022-05-04T20:29:59Z","updated_at":"2022-05-04T20:29:59Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_2ceef7f288e8499b9dae50702d25ef06","object":"Rate","created_at":"2022-05-04T20:29:59Z","updated_at":"2022-05-04T20:29:59Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_52b963e2540f491bb6980b43689a42a5","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_569285a7b7984a8ca7c7e03e02d9f9e1","object":"Rate","created_at":"2022-05-04T20:29:59Z","updated_at":"2022-05-04T20:29:59Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_52b963e2540f491bb6980b43689a42a5","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_6ae198b041994a47a15d1918d35e4964","object":"Rate","created_at":"2022-05-04T20:29:59Z","updated_at":"2022-05-04T20:29:59Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_52b963e2540f491bb6980b43689a42a5","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_5f1a81ba6cf84d1885b2ae09556d7a99","object":"Rate","created_at":"2022-05-04T20:29:59Z","updated_at":"2022-05-04T20:29:59Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_52b963e2540f491bb6980b43689a42a5","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_f7cdca50cbe811ec80e3ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:29:59+00:00","updated_at":"2022-05-04T20:29:59+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_f7cfdd6ecbe811ecbc66ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:29:59+00:00","updated_at":"2022-05-04T20:29:59+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_f7cdca50cbe811ec80e3ac1f6bc72124","object":"Address","created_at":"2022-05-04T20:29:59+00:00","updated_at":"2022-05-04T20:29:59+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_52b963e2540f491bb6980b43689a42a5","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4729' content-type: - application/json; charset=utf-8 etag: - - W/"56e859ff80f87384119b42c202f7c420" + - W/"3786cb29b911a5735e81c0ea76df90f9" expires: - '0' location: - - /api/v2/shipments/shp_6d43000d32f548699b6108a4623a792a + - /api/v2/shipments/shp_52b963e2540f491bb6980b43689a42a5 pragma: - no-cache referrer-policy: @@ -93,21 +65,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b3d1ff0304c8002a6e83 + - 78245fb66272e247e786bc840013e4f4 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '2.515254' + - '0.240073' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 a1d45bf9..7cde8f77 100644 --- a/tests/cassettes/test_shipment_create_tax_identifier.yaml +++ b/tests/cassettes/test_shipment_create_tax_identifier.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '587' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,57 +29,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xZ227cyBH9FWFeox30/aI371q7cZA4xo7z4sAgqrurLWZHnAHJsa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ajxqiI1DiOb7viRVP6vYc2uXVk398nhmO - z9UIZdibjWGGE3MzWhvulofXD+teMvcoZnztevELmZETUi/sNYu0NDO0S44iSOqYQxZcHoMZv7T0 - QOnzdOB8bkYUjHuzMXTg5gtSxf10eKRQHJkOTpNEQGI+eKeIBC5Tz6gF18nokNUxqodroVgABerz - vFBibs3DvNibjeGF0nM7OoF8y7zgWgtpQQZprPLWBRMl1SCa9lHgpDsqL+6hBJ3rEd3F3mwUJagT - Gd1d3E8Jzs7k/y4lMnMhGS7AuKRiJEpgyJZr7yRIwe0RKCGa9BAjJJvzEVXm3mwMI8jWPqLPuK4y - +WNF4ms3Hg8z4vXwnYDS9Ufv7rsITZVX7eVhYKj+Cdf2RnM1fD4oGO0uV597i68si7h/i++9wP1b - /JCimX1/i/9f+xZ/06276vfBOT6cpk3bfP9U842BHDZXRTy+H91vCtWi3uXb0uuyEO5+fUlWOSC7 - 2OUkGttuW9zM9BDbT1flahvE7dfovRWN/PXZ06fnzw8j1e6z9bN/Lkro6q7bbD8+7yP6y4+Ukj78 - CQAA//8DAPJExx/UKwAA + string: '{"created_at":"2022-05-04T20:26:22Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:22Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_7660b495cbe811ecabb7ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:22+00:00","updated_at":"2022-05-04T20:26:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_6706f1c99d004c67a43e7f4cad14fde4","object":"Parcel","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_54f1ca8587ba4b2e92c761bdaa735c37","object":"Rate","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_2339c0348b35491e93a3645dc99b09ac","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_db1f3f711f114c63899ef790c6d739b3","object":"Rate","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_2339c0348b35491e93a3645dc99b09ac","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_f9ef88a5d4424643b56b85c7324bdb7c","object":"Rate","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_2339c0348b35491e93a3645dc99b09ac","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_fed2cdb9494f4479846e8d239489dc13","object":"Rate","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_2339c0348b35491e93a3645dc99b09ac","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_765e711ccbe811ec8d14ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:22+00:00","updated_at":"2022-05-04T20:26:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_7660b495cbe811ecabb7ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:22+00:00","updated_at":"2022-05-04T20:26:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_765e711ccbe811ec8d14ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:22+00:00","updated_at":"2022-05-04T20:26:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_2339c0348b35491e93a3645dc99b09ac","object":"Shipment","tax_identifiers":[{"entity":"SENDER","tax_id":"HIDDEN","tax_id_type":"IOSS","issuing_country":"GB"}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4831' content-type: - application/json; charset=utf-8 etag: - - W/"948c98f1f4efe70629d01a3766d59e9d" + - W/"0846f7e4125da2c1d5f94efb438eb518" expires: - '0' location: - - /api/v2/shipments/shp_271ba7a4a03546b7827eaecd0fa49cac + - /api/v2/shipments/shp_2339c0348b35491e93a3645dc99b09ac pragma: - no-cache referrer-policy: @@ -90,28 +61,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b3d4ff0304c9002a6f1d + - 78245fbb6272e16ee786b9010013b03f x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb9nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.968452' + - '0.257762' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_create_with_ids.yaml b/tests/cassettes/test_shipment_create_with_ids.yaml index 4b456ccf..a9c4ebd3 100644 --- a/tests/cassettes/test_shipment_create_with_ids.yaml +++ b/tests/cassettes/test_shipment_create_with_ids.yaml @@ -12,7 +12,7 @@ interactions: - keep-alive Content-Length: - '190' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -24,26 +24,22 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: !!binary | - H4sIAAAAAAAAA4yRsW7DIBCGX8VibSIBdm3HW1S1Q6dKTmfrDGeV1gYLcNM0yrv3cKRU6lQm7rsP - 7hecmdGsYaB9V/C8F7tCQFlwIVDVIHtQYih7VfV5KdmGuf4dVSR/r7XHEAgpjxBRd5Cw5FJueb4V - 1UHKRuwaLu84bzgncZn1/0QLE5LyDOoja2fw3h3THDfNYE/UeIRwenEhEgzRI0ZBMK/r7OCONqDV - WfvbkynsHDOZblYmpgtasNmTB6tMUG41KRjxhz0V32amLT0Dr9api40+HXptqZzfnE3m/W0RxAnM - yBq7jOOGTU4nIeKaT1F6g74bQJlxHX616O2MRhsN3A4OqNHD2EX46tKXXOka7Q/7RG8GoyAaZwNr - zpfLDwAAAP//AwBruVUmxQEAAA== + string: '{"id":"adr_76a2cd08cbe811ec8d21ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:22+00:00","updated_at":"2022-05-04T20:26:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '453' content-type: - application/json; charset=utf-8 etag: - - W/"0785e35ea1cbbcfede6e6374be2791e2" + - W/"cf3eeb02e7aa70343d6107060b89fa1a" expires: - '0' location: - - /api/v2/addresses/adr_403b1941a64011ec8a2bac1f6bc7b362 + - /api/v2/addresses/adr_76a2cd08cbe811ec8d21ac1f6bc7b362 pragma: - no-cache referrer-policy: @@ -59,21 +55,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b3d6ff0304ca002a6f81 + - 78245fb66272e16ee786b9020013b05c x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.042048' + - '0.031807' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -92,7 +87,7 @@ interactions: - keep-alive Content-Length: - '190' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -104,26 +99,22 @@ interactions: uri: https://api.easypost.com/v2/addresses response: body: - string: !!binary | - H4sIAAAAAAAAA4yRsW7DIBCGX8VibSIBduKELaraoVMlp7N1gbNCa4MFuGka5d17OFIqdSoT990H - 9wsuzBqmGJjQVnxVV7qsYF1xIVCD1B1o0a0PHLgRyBbMH95RJ/J3xgSMkZAOCAlNCxlLLuWSl0tR - 76VUYqu4fOBccU7iNJr/iQ4GJOUF9EfRjBCCP+U5fhjBnanxBPH86mMiGFNATIJgudkUe39yEZ0p - mt+ezGHHVMh8s7YpX9CAK54DOG2j9rNJwYg/7qj4tiNtt5Xg9Tx1cinkQ28NlePRu2yu7osgDmB7 - ptzU9ws2eJOFhHM+Tekthpbe0fbz8JtFb2cNumThfrBDgwH6NsFXm7/kRudof9gnBttZDcl6F5m6 - XK8/AAAA//8DAHXjoAzFAQAA + string: '{"id":"adr_76b17473cbe811ec8d25ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:22+00:00","updated_at":"2022-05-04T20:26:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '453' content-type: - application/json; charset=utf-8 etag: - - W/"18e8a7a115eb648dfa26a5d0e51bf880" + - W/"6af45bc12e30887609cd8bd0766ab653" expires: - '0' location: - - /api/v2/addresses/adr_40574c34a64011eca2cfac1f6b0a0d1e + - /api/v2/addresses/adr_76b17473cbe811ec8d25ac1f6bc7b362 pragma: - no-cache referrer-policy: @@ -139,21 +130,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b3d6ff0304ca002a6f8c + - 78245fb66272e16ee786b9020013b063 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.026637' + - '0.030072' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -170,7 +160,7 @@ interactions: - keep-alive Content-Length: - '75' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -182,24 +172,20 @@ interactions: uri: https://api.easypost.com/v2/parcels response: body: - string: !!binary | - H4sIAAAAAAAAA4SMuxLCIBBF/2XrmAECCeErLKxsMhvYPBQTBslYOP67MGNvt/fec/YNqwMDIVo/ - oFK8E2NrNVOyRYdqYlxQz0nqjusJKtjHG9mUhTNGSz43NhImcgOWVjAhTqw58e4ihOG9Yc01M0dw - fxlP25wWMJzVrILX6krQ5V5onZdsyhJCJEfTuuVvAe0dZwKzHd5n5YdxVcsKHrvLCyR6Jvh8AQAA - //8DAMSddHPlAAAA + string: '{"id":"prcl_7c5092538a614fc7ab31bcd118ca79f3","object":"Parcel","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '229' content-type: - application/json; charset=utf-8 etag: - - W/"ac59b26a30ca256708fe32f69fa3cd0c" + - W/"3213613d6b31031f1803e86d71ec745b" expires: - '0' location: - - /api/v2/parcels.prcl_a55172b6c80546ada5f012e91e48718f + - /api/v2/parcels.prcl_7c5092538a614fc7ab31bcd118ca79f3 pragma: - no-cache referrer-policy: @@ -215,30 +201,29 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b3d6ff0304ca002a6f9b + - 78245fb66272e16ee786b9020013b066 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.025070' + - '0.021809' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: code: 201 message: Created - request: - body: '{"shipment": {"from_address": {"id": "adr_403b1941a64011ec8a2bac1f6bc7b362"}, - "to_address": {"id": "adr_40574c34a64011eca2cfac1f6b0a0d1e"}, "parcel": {"id": - "prcl_a55172b6c80546ada5f012e91e48718f"}}}' + body: '{"shipment": {"from_address": {"id": "adr_76a2cd08cbe811ec8d21ac1f6bc7b362"}, + "to_address": {"id": "adr_76b17473cbe811ec8d25ac1f6bc7b362"}, "parcel": {"id": + "prcl_7c5092538a614fc7ab31bcd118ca79f3"}}}' headers: Accept: - '*/*' @@ -248,7 +233,7 @@ interactions: - keep-alive Content-Length: - '199' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -260,56 +245,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+yZbY8buQ2A/8rCX7tnSBT1tt+CJle0aA/BbfrlisCgJCo7Pe/YmBknt3fIfy/H - b7t5WztIYLdpkiDwaCiJIh+RlOaPSe6YBi4zGiZXE1AAPyjzg/YvAK50vFLml8nlpOlnHQ+rrp1c - VZr3fDm55b6nV9xPrv71xyRT1zXcSf9/Pr8W8e3zjHJerNph1hR5lWnGxpCnBJCDwggUstYpsilc - KJE10nW4W7IId6LSjLtu0U32c0nzX9vXNG/KxZOcpe3i703mtueLdnWbZPq3l8erAs7F7GuAwB51 - UrEqdspkiNmY4PiEqijGTC4ZMJwQCQJQciYlF1w1jtwJVbEBEAqoypDQso5ZFxVsjilYrZ0/oSqm - QnTZY0I26GKNYpHiPPicSwVjT8lKFmtgTMUXRi4YNJtkbRH1bIwKT6gKAjvwmqgGhyZxIJuc8kkX - cMlDOCW2OlWtCEELwLVmispmpBKVz6aUUzrIR9AmcAhWaXEUJuKsLFW0FTHUeEJVYslFGbZRZ8Ic - c7RgrQICn1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AAA= + string: '{"created_at":"2022-05-04T20:26:22Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:22Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_76a2cd08cbe811ec8d21ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:22+00:00","updated_at":"2022-05-04T20:26:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_7c5092538a614fc7ab31bcd118ca79f3","object":"Parcel","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_d6ee31e86b5e421eb48ddac570974cbe","object":"Rate","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8ed97268ed0b4992aa49cd2fed4ac621","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_d03dd7fe2a1d43c0a3a0f21f35beef46","object":"Rate","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_8ed97268ed0b4992aa49cd2fed4ac621","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_f7be9a005e514a30859bc6cb42d669d6","object":"Rate","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8ed97268ed0b4992aa49cd2fed4ac621","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_76c84b05a12d42328d81ae7b3bb89825","object":"Rate","created_at":"2022-05-04T20:26:22Z","updated_at":"2022-05-04T20:26:22Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_8ed97268ed0b4992aa49cd2fed4ac621","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_76b17473cbe811ec8d25ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:22+00:00","updated_at":"2022-05-04T20:26:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_76a2cd08cbe811ec8d21ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:22+00:00","updated_at":"2022-05-04T20:26:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_76b17473cbe811ec8d25ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:22+00:00","updated_at":"2022-05-04T20:26:22+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_8ed97268ed0b4992aa49cd2fed4ac621","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4729' content-type: - application/json; charset=utf-8 etag: - - W/"7b2d6e489ff01516c506b8ce3a4e0fd1" + - W/"30e78265fa6eecd06353d9df1987f3e8" expires: - '0' location: - - /api/v2/shipments/shp_2783366428a24115902cbf534c0f82cd + - /api/v2/shipments/shp_8ed97268ed0b4992aa49cd2fed4ac621 pragma: - no-cache referrer-policy: @@ -325,21 +282,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b3d7ff0304ca002a6fa8 + - 78245fb66272e16ee786b9020013b06b x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.756789' + - '0.255081' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_get_lowest_smartrate.yaml b/tests/cassettes/test_shipment_get_lowest_smartrate.yaml index 6821e36c..e193a5cd 100644 --- a/tests/cassettes/test_shipment_get_lowest_smartrate.yaml +++ b/tests/cassettes/test_shipment_get_lowest_smartrate.yaml @@ -27,15 +27,15 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at":"2022-04-28T18:59:21Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-04-28T18:59:21Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_50039c8bc72511ec879dac1f6b0a0d1e","object":"Address","created_at":"2022-04-28T18:59:21+00:00","updated_at":"2022-04-28T18:59:21+00:00","name":"Jack + string: '{"created_at":"2022-05-04T20:26:24Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:24Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_7804e92bcbe811eca58eac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:24+00:00","updated_at":"2022-05-04T20:26:24+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_17345230780f4d678c9238bddd58a352","object":"Parcel","created_at":"2022-04-28T18:59:21Z","updated_at":"2022-04-28T18:59:21Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_076a98d189974521aa38e589a7f56ebe","object":"Rate","created_at":"2022-04-28T18:59:21Z","updated_at":"2022-04-28T18:59:21Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_e984ef2c29b6496da5b8f285a7a7a611","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_40b1192ce3d8411da5a24dd9ea3a9d44","object":"Rate","created_at":"2022-04-28T18:59:21Z","updated_at":"2022-04-28T18:59:21Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_e984ef2c29b6496da5b8f285a7a7a611","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_788645615e2040f8a369a60b1786491d","object":"Rate","created_at":"2022-04-28T18:59:21Z","updated_at":"2022-04-28T18:59:21Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_e984ef2c29b6496da5b8f285a7a7a611","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_2241d0fec79846f8b19d9f4b163db825","object":"Rate","created_at":"2022-04-28T18:59:21Z","updated_at":"2022-04-28T18:59:21Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_e984ef2c29b6496da5b8f285a7a7a611","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_50021074c72511ec879cac1f6b0a0d1e","object":"Address","created_at":"2022-04-28T18:59:21+00:00","updated_at":"2022-04-28T18:59:21+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_bff25ff71c6f47e7a5df9edcd5853de4","object":"Parcel","created_at":"2022-05-04T20:26:24Z","updated_at":"2022-05-04T20:26:24Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_0d1598a88c6d448fabba046ba602504a","object":"Rate","created_at":"2022-05-04T20:26:25Z","updated_at":"2022-05-04T20:26:25Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a75e7ef9f90f4d69a3197e1fd5dce15b","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_2b1ce8b41e5b4b14b88bc81577a1888e","object":"Rate","created_at":"2022-05-04T20:26:25Z","updated_at":"2022-05-04T20:26:25Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a75e7ef9f90f4d69a3197e1fd5dce15b","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_8da980fb97214472a34e60ddaa953b16","object":"Rate","created_at":"2022-05-04T20:26:25Z","updated_at":"2022-05-04T20:26:25Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_a75e7ef9f90f4d69a3197e1fd5dce15b","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_88bb96e6d40147a3b3ca6a205c547288","object":"Rate","created_at":"2022-05-04T20:26:25Z","updated_at":"2022-05-04T20:26:25Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_a75e7ef9f90f4d69a3197e1fd5dce15b","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_7802ff50cbe811ec95fbac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:24+00:00","updated_at":"2022-05-04T20:26:24+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_50039c8bc72511ec879dac1f6b0a0d1e","object":"Address","created_at":"2022-04-28T18:59:21+00:00","updated_at":"2022-04-28T18:59:21+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_7804e92bcbe811eca58eac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:24+00:00","updated_at":"2022-05-04T20:26:24+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_50021074c72511ec879cac1f6b0a0d1e","object":"Address","created_at":"2022-04-28T18:59:21+00:00","updated_at":"2022-04-28T18:59:21+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_7802ff50cbe811ec95fbac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:24+00:00","updated_at":"2022-05-04T20:26:24+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_e984ef2c29b6496da5b8f285a7a7a611","object":"Shipment"}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_a75e7ef9f90f4d69a3197e1fd5dce15b","object":"Shipment"}' headers: cache-control: - no-cache, no-store @@ -44,11 +44,11 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"6e0dc254ebb4eadba7870cc2c82258c9" + - W/"04a868aa9320370213340ce772fde969" expires: - '0' location: - - /api/v2/shipments/shp_e984ef2c29b6496da5b8f285a7a7a611 + - /api/v2/shipments/shp_a75e7ef9f90f4d69a3197e1fd5dce15b pragma: - no-cache referrer-policy: @@ -59,27 +59,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - f1b599b4626ae409e7873002000ce710 + - 78245fb56272e170e786b9060013b0f3 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.270848' + - '0.312797' x-version-label: - - easypost-202204281816-b5dc9c446b-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -101,10 +99,10 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/shipments/shp_e984ef2c29b6496da5b8f285a7a7a611/smartrate + uri: https://api.easypost.com/v2/shipments/shp_a75e7ef9f90f4d69a3197e1fd5dce15b/smartrate response: body: - string: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T18:59:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_076a98d189974521aa38e589a7f56ebe","list_currency":"USD","list_rate":7.22,"mode":"test","object":"Rate","rate":7.22,"retail_currency":"USD","retail_rate":7.22,"service":"ParcelSelect","shipment_id":"shp_e984ef2c29b6496da5b8f285a7a7a611","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":3,"percentile_90":4,"percentile_95":4,"percentile_97":5,"percentile_99":7},"updated_at":"2022-04-28T18:59:21Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T18:59:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_40b1192ce3d8411da5a24dd9ea3a9d44","list_currency":"USD","list_rate":5.49,"mode":"test","object":"Rate","rate":5.49,"retail_currency":"USD","retail_rate":5.49,"service":"First","shipment_id":"shp_e984ef2c29b6496da5b8f285a7a7a611","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":2,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-04-28T18:59:21Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T18:59:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_788645615e2040f8a369a60b1786491d","list_currency":"USD","list_rate":7.37,"mode":"test","object":"Rate","rate":7.37,"retail_currency":"USD","retail_rate":8.7,"service":"Priority","shipment_id":"shp_e984ef2c29b6496da5b8f285a7a7a611","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-04-28T18:59:21Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T18:59:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_2241d0fec79846f8b19d9f4b163db825","list_currency":"USD","list_rate":23.75,"mode":"test","object":"Rate","rate":23.75,"retail_currency":"USD","retail_rate":27.4,"service":"Express","shipment_id":"shp_e984ef2c29b6496da5b8f285a7a7a611","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-04-28T18:59:21Z"}]}' + string: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_0d1598a88c6d448fabba046ba602504a","list_currency":"USD","list_rate":7.22,"mode":"test","object":"Rate","rate":7.22,"retail_currency":"USD","retail_rate":7.22,"service":"ParcelSelect","shipment_id":"shp_a75e7ef9f90f4d69a3197e1fd5dce15b","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":4,"percentile_97":5,"percentile_99":7},"updated_at":"2022-05-04T20:26:25Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2b1ce8b41e5b4b14b88bc81577a1888e","list_currency":"USD","list_rate":5.49,"mode":"test","object":"Rate","rate":5.49,"retail_currency":"USD","retail_rate":5.49,"service":"First","shipment_id":"shp_a75e7ef9f90f4d69a3197e1fd5dce15b","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":2,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-05-04T20:26:25Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_8da980fb97214472a34e60ddaa953b16","list_currency":"USD","list_rate":23.75,"mode":"test","object":"Rate","rate":23.75,"retail_currency":"USD","retail_rate":27.4,"service":"Express","shipment_id":"shp_a75e7ef9f90f4d69a3197e1fd5dce15b","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-05-04T20:26:25Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_88bb96e6d40147a3b3ca6a205c547288","list_currency":"USD","list_rate":7.37,"mode":"test","object":"Rate","rate":7.37,"retail_currency":"USD","retail_rate":8.7,"service":"Priority","shipment_id":"shp_a75e7ef9f90f4d69a3197e1fd5dce15b","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-05-04T20:26:25Z"}]}' headers: cache-control: - no-cache, no-store @@ -113,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"fe2fd8f33d9108258c405815a1041d90" + - W/"28249fac14a5226903a47218e0b2853b" expires: - '0' pragma: @@ -131,20 +129,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - f1b599b4626ae409e7873002000ce720 + - 78245fb56272e171e786b9060013b110 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.067815' + - '0.063599' x-version-label: - - easypost-202204281816-b5dc9c446b-master + - easypost-202205041833-02730cc398-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 96abe776..2e3111ff 100644 --- a/tests/cassettes/test_shipment_insure.yaml +++ b/tests/cassettes/test_shipment_insure.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '593' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,49 +29,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xYbW/bNhD+K4a+LrFJinrzNyNNtnbNC+J0XTMUAt9ks5ElgZKa2EX++456cRwn - TQy0W4a1RouIx7sjec/DI3lfHGEUq5SMWeWMHYII2UfuPg4uCBnjcOzhS2fP0WVsVFWbzBknLC3V - nrNQZclmqnTGf32EVi4VWFeqrEA7LyqdZ9D1xRG1MSoTS+h8N30FfQVbLlRW2b5qWVij6eHJq8Nz - 53bPkTCPmMnPLBPQgUBiVKKsPTSzOk33nLJiVQ2enTq7yvLrDDxWhokrnc1i0U4ioghh+y9yfQw/ - igI/RKBYF/KphRK7UM4qMY+17Mdr2/2om7IuAL1Q1GWVL8pYZ0neyxKTL2A90oCqXbB16zBpYjeS - OEmUYD5FGCvBiQiYwInPRUAwoTaG/JMSdqKTzn7vWaB+QWiMdljonWLGFjZibyCAg2nBjMmv7Tj5 - omCZheyQlcuzvMG0rIxSFQahG4aDCwh9qTI5mN71ETvZohoQ61noyjqYsmxwZABPXYrcaeGzIx5M - oLHSRQMXRkEzap1VpiWK5ck8z6ymt/6BU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jQiiA6VfMS3eh5hmruDlRrdEo9s08wvtx+fbWtLWzuUP0WeO54u45N - u8KuvJOovtDT49kHoHvy1jzVYuvt0rga9i+Y5pEiPx368rc35s/Vh5uTi/P5MXlzdfnr8bX9vlwc - 0+NP6dXJ6t3Nyfvj5YfVH/PjxWvcMCH/WhkFuS7hfRmF2f9NGQUxJLH6Z8so5EEZZXLw+2B6Njk/ - P31/v4wymX44O51ePCyjnL4/seWvwfRiMDm7aEsn62pKV1jqKimTk8HR+eTk4PX04PSJSso+9pub - x79RTqlMrb6lnGLnTe3fshaiAbf1qIzJTUe4NQ+7B2XP/V3NvsCrtNJVbRfnBsMg8Dy4+KR5NuuE - +5iQoRv5UQA80wsVr9pITRYwW8FGb/MynmQzOJZK5/bWVoDqsig7Ldxk7dpkP8t8/7MyH6+X9tj6 - mXV+Zp3/Rtaxl+T7x/FGqfVIWdp1RcWm4NpK2MICAjI0RPZnYzxnZmYve+3021v5+vJn32iPe+2q - uVt+7X10J78fuwLwjheT9Rym3bXGuf0bAAD//wMALzHp8KoaAAA= + string: '{"created_at":"2022-05-04T20:26:18Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768907","updated_at":"2022-05-04T20:26:18Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_7400ae39cbe811ec9544ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:18+00:00","updated_at":"2022-05-04T20:26:18+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_31c5430055614a2c967bfeaaab521846","object":"Parcel","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_1b48449c37864d4ca8aff1bc715f5e89","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/545806ed105849da897943fcb91cf015.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_bb310bb56e6942b989e59c8cc87210a4","object":"Rate","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_8171c07ad2d9496f8e4a6359f2bf9a95","object":"Rate","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_b15c68af250c4f61ac416ea4ecbbba76","object":"Rate","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_db8dd73381e74e48b2cb8922befe3295","object":"Rate","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_bb310bb56e6942b989e59c8cc87210a4","object":"Rate","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_f676429a00ad499aa97697370c807481","object":"Tracker","mode":"test","tracking_code":"9400100109361117768907","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrX2Y2NzY0MjlhMDBhZDQ5OWFhOTc2OTczNzBjODA3NDgx"},"to_address":{"id":"adr_73ff029acbe811ec8ca7ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:18+00:00","updated_at":"2022-05-04T20:26:18+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_7400ae39cbe811ec9544ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:18+00:00","updated_at":"2022-05-04T20:26:18+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_73ff029acbe811ec8ca7ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:18+00:00","updated_at":"2022-05-04T20:26:18+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '6826' content-type: - application/json; charset=utf-8 etag: - - W/"2e30ca60d452a1ce97cb0ae568bbcf10" + - W/"280fa87fcd639c11637ec7796b8988c0" expires: - '0' location: - - /api/v2/shipments/shp_214eb4eca7e7454eb4b22e1e7a574055 + - /api/v2/shipments/shp_9db7a6ac1ad3405a987ef6224f6064f8 pragma: - no-cache referrer-policy: @@ -87,21 +66,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5076233b3cbff0304c5002a6d52 + - 78245fb56272e16ae786b8e60013af28 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.103199' + - '0.909429' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -118,7 +96,7 @@ interactions: - keep-alive Content-Length: - '17' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -127,54 +105,27 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/shipments/shp_214eb4eca7e7454eb4b22e1e7a574055/insure + uri: https://api.easypost.com/v2/shipments/shp_9db7a6ac1ad3405a987ef6224f6064f8/insure response: body: - string: !!binary | - H4sIAAAAAAAAA+xZ227bOBN+FUO3mzgiRZ18Z6Tp33abA2J3e1gUAkVRNhtZEiiqORR99x2SkmI7 - SeNF283i3wYJIg6H5PCbT0PO6IvDJKeKZwlVzsTBLsb7rrePwjnGExRNfPTB2XNEk0iuWlk6k5wW - Dd9zVrxp6II3zuTPj9CqMg6jFW8UaFe1ElUJXV8c1krJS3YNnW9mz6CvptcrXirdp65rPWh2dPLs - 6Nz5uudkYEdCs8+0ZNDhgkTynOvx0CzbothzGkVVCzM7bXlRVpclzKgkZReiXCTMGhET10X6N/YC - BD/EDYPIBcW2zr61Uaw3mlLFlonI+vVsu191XdYB0AtZ26hq1SSizKtelstqBfvJJKjqDetpHZrJ - xIszlOec0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HKh - U0trvq0BDKnmxiV4Y9bu29HWvDr7/b55X/Zf8LZmRrta/LH7kLVjEjVY0ec/zte/AAAA//8DAOJx - evV2HwAA + string: '{"created_at":"2022-05-04T20:26:18Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768907","updated_at":"2022-05-04T20:26:18Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_7400ae39cbe811ec9544ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:18+00:00","updated_at":"2022-05-04T20:26:18+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"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_31c5430055614a2c967bfeaaab521846","object":"Parcel","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_1b48449c37864d4ca8aff1bc715f5e89","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26: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/20220504/545806ed105849da897943fcb91cf015.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_bb310bb56e6942b989e59c8cc87210a4","object":"Rate","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_8171c07ad2d9496f8e4a6359f2bf9a95","object":"Rate","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_b15c68af250c4f61ac416ea4ecbbba76","object":"Rate","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_db8dd73381e74e48b2cb8922befe3295","object":"Rate","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_bb310bb56e6942b989e59c8cc87210a4","object":"Rate","created_at":"2022-05-04T20:26:18Z","updated_at":"2022-05-04T20:26:18Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":null,"to_address":{"id":"adr_73ff029acbe811ec8ca7ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:18+00:00","updated_at":"2022-05-04T20:26:18+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_7400ae39cbe811ec9544ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:18+00:00","updated_at":"2022-05-04T20:26:18+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_73ff029acbe811ec8ca7ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:18+00:00","updated_at":"2022-05-04T20:26:18+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false},{"object":"Fee","type":"InsuranceFee","amount":"1.00000","charged":true,"refunded":false}],"id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '6413' content-type: - application/json; charset=utf-8 etag: - - W/"df6a5d054105c946fbbbd4d42779aa99" + - W/"dd2d7fa4c589f112bf2d42dd64398398" expires: - '0' pragma: @@ -192,21 +143,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5076233b3cdff0304c5002a6d96 + - 78245fb56272e16be786b8e60013af6a x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.219366' + - '0.145643' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 3501ecfa..ba82b6d7 100644 --- a/tests/cassettes/test_shipment_lowest_rate.yaml +++ b/tests/cassettes/test_shipment_lowest_rate.yaml @@ -33,17 +33,17 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at":"2022-04-28T18:57:34Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":null,"updated_at":"2022-04-28T18:57:34Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_2b0e819d57f44670a6c2b773091d6e46","object":"CustomsInfo","created_at":"2022-04-28T18:57:34Z","updated_at":"2022-04-28T18:57:34Z","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_25b0a95924f3436f8833dda24d887cf5","object":"CustomsItem","created_at":"2022-04-28T18:57:34Z","updated_at":"2022-04-28T18:57:34Z","description":"Sweet - shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_103ed611c72511ec8613ac1f6bc72124","object":"Address","created_at":"2022-04-28T18:57:34+00:00","updated_at":"2022-04-28T18:57:34+00:00","name":"Jack + string: '{"created_at":"2022-05-04T20:26:23Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:23Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_27490d3c6a834201b60bb9a20d1b9473","object":"CustomsInfo","created_at":"2022-05-04T20:26:23Z","updated_at":"2022-05-04T20:26:23Z","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_e1329b6186ca4c2e967dbd45b116629c","object":"CustomsItem","created_at":"2022-05-04T20:26:23Z","updated_at":"2022-05-04T20:26:23Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_77137445cbe811ec95d7ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:23+00:00","updated_at":"2022-05-04T20:26:23+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_8a439a1e8e8a4bc79be344a854a415ef","object":"Parcel","created_at":"2022-04-28T18:57:34Z","updated_at":"2022-04-28T18:57:34Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_ff3d6ffaee6c46ee8a5a0e8d394b38cc","object":"Rate","created_at":"2022-04-28T18:57:34Z","updated_at":"2022-04-28T18:57:34Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_efa76747ef7142ec91858b4c52ae9297","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_dad038bfeb844531972ea935cffb468a","object":"Rate","created_at":"2022-04-28T18:57:34Z","updated_at":"2022-04-28T18:57:34Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_efa76747ef7142ec91858b4c52ae9297","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_bd463d0e6b064dc8a2e41a0560192c2a","object":"Rate","created_at":"2022-04-28T18:57:34Z","updated_at":"2022-04-28T18:57:34Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_efa76747ef7142ec91858b4c52ae9297","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_b18ba7be0b1f43bcab6aefdb288f1d80","object":"Rate","created_at":"2022-04-28T18:57:34Z","updated_at":"2022-04-28T18:57:34Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_efa76747ef7142ec91858b4c52ae9297","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_103ccdf9c72511eca6c7ac1f6bc7b362","object":"Address","created_at":"2022-04-28T18:57:34+00:00","updated_at":"2022-04-28T18:57:34+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_25587052df564f78b57b06caf0cf7468","object":"Parcel","created_at":"2022-05-04T20:26:23Z","updated_at":"2022-05-04T20:26:23Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_d8d0b38e584f45eeae02ca00bb8ae2ac","object":"Rate","created_at":"2022-05-04T20:26:23Z","updated_at":"2022-05-04T20:26:23Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_a098dedef5ea41e2b202be32586aad79","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_10d75b3b86cf4047a3f8dc691e328f8c","object":"Rate","created_at":"2022-05-04T20:26:23Z","updated_at":"2022-05-04T20:26:23Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a098dedef5ea41e2b202be32586aad79","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_f316067858b444d1b0f4ac9539e68046","object":"Rate","created_at":"2022-05-04T20:26:23Z","updated_at":"2022-05-04T20:26:23Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_a098dedef5ea41e2b202be32586aad79","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_49935b0c7d3a433197cae8d9227648bd","object":"Rate","created_at":"2022-05-04T20:26:23Z","updated_at":"2022-05-04T20:26:23Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_a098dedef5ea41e2b202be32586aad79","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_771197afcbe811ec95d6ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:23+00:00","updated_at":"2022-05-04T20:26:23+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_103ed611c72511ec8613ac1f6bc72124","object":"Address","created_at":"2022-04-28T18:57:34+00:00","updated_at":"2022-04-28T18:57:34+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_77137445cbe811ec95d7ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:23+00:00","updated_at":"2022-05-04T20:26:23+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_103ccdf9c72511eca6c7ac1f6bc7b362","object":"Address","created_at":"2022-04-28T18:57:34+00:00","updated_at":"2022-04-28T18:57:34+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_771197afcbe811ec95d6ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:23+00:00","updated_at":"2022-05-04T20:26:23+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_efa76747ef7142ec91858b4c52ae9297","object":"Shipment"}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_a098dedef5ea41e2b202be32586aad79","object":"Shipment"}' headers: cache-control: - no-cache, no-store @@ -52,11 +52,11 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"91633abe966841fad14c77f99fcf1245" + - W/"58df5d4fa41117c1cd32ad7f3be9dde5" expires: - '0' location: - - /api/v2/shipments/shp_efa76747ef7142ec91858b4c52ae9297 + - /api/v2/shipments/shp_a098dedef5ea41e2b202be32586aad79 pragma: - no-cache referrer-policy: @@ -72,20 +72,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - f1b599b4626ae39ee7872fc0000cc90c + - 78245fb76272e16fe786b9040013b088 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.288933' + - '0.361034' x-version-label: - - easypost-202204281816-b5dc9c446b-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_lowest_smartrate.yaml b/tests/cassettes/test_shipment_lowest_smartrate.yaml index 9b81b1a2..fd33c26c 100644 --- a/tests/cassettes/test_shipment_lowest_smartrate.yaml +++ b/tests/cassettes/test_shipment_lowest_smartrate.yaml @@ -27,15 +27,15 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: '{"created_at":"2022-04-28T19:01:30Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-04-28T19:01:30Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_9cecadc6c72511eca837ac1f6bc72124","object":"Address","created_at":"2022-04-28T19:01:30+00:00","updated_at":"2022-04-28T19:01:30+00:00","name":"Jack + string: '{"created_at":"2022-05-04T20:26:23Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:23Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_777fd874cbe811ec95e8ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:23+00:00","updated_at":"2022-05-04T20:26:23+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_cde1dc99be6d405591bf81648dd01fd2","object":"Parcel","created_at":"2022-04-28T19:01:30Z","updated_at":"2022-04-28T19:01:30Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_eb4654fab59d4b46a55eb5a500c8729f","object":"Rate","created_at":"2022-04-28T19:01:30Z","updated_at":"2022-04-28T19:01:30Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_00a095c4c0da4f639ae00c0bb1187759","object":"Rate","created_at":"2022-04-28T19:01:30Z","updated_at":"2022-04-28T19:01:30Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_5518eb5014cc4ebc838b1c37a85680e2","object":"Rate","created_at":"2022-04-28T19:01:30Z","updated_at":"2022-04-28T19:01:30Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_f251402c3ed34f0abd73dad02afdc24d","object":"Rate","created_at":"2022-04-28T19:01:30Z","updated_at":"2022-04-28T19:01:30Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_9cea8d92c72511eca834ac1f6bc72124","object":"Address","created_at":"2022-04-28T19:01:30+00:00","updated_at":"2022-04-28T19:01:30+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_459bf3ad407742a3ab389fbd133d92cf","object":"Parcel","created_at":"2022-05-04T20:26:23Z","updated_at":"2022-05-04T20:26:23Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_1bf9fc25687348949fb744b933d2c72b","object":"Rate","created_at":"2022-05-04T20:26:24Z","updated_at":"2022-05-04T20:26:24Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_24e4d016e5ee410aa30e4046d9ab2e3f","object":"Rate","created_at":"2022-05-04T20:26:24Z","updated_at":"2022-05-04T20:26:24Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_0643b8e678364026ab503a5bb919849f","object":"Rate","created_at":"2022-05-04T20:26:24Z","updated_at":"2022-05-04T20:26:24Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_91ad99e5901b482d8fc04d03b2b2acc7","object":"Rate","created_at":"2022-05-04T20:26:24Z","updated_at":"2022-05-04T20:26:24Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_777df655cbe811ecabd2ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:23+00:00","updated_at":"2022-05-04T20:26:23+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_9cecadc6c72511eca837ac1f6bc72124","object":"Address","created_at":"2022-04-28T19:01:30+00:00","updated_at":"2022-04-28T19:01:30+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_777fd874cbe811ec95e8ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:23+00:00","updated_at":"2022-05-04T20:26:23+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_9cea8d92c72511eca834ac1f6bc72124","object":"Address","created_at":"2022-04-28T19:01:30+00:00","updated_at":"2022-04-28T19:01:30+00:00","name":"Jack + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_777df655cbe811ecabd2ac1f6bc7bdc6","object":"Address","created_at":"2022-05-04T20:26:23+00:00","updated_at":"2022-05-04T20:26:23+00:00","name":"Jack Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_09d34a4c766c4164b068a7aaf1921230","object":"Shipment"}' + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","object":"Shipment"}' headers: cache-control: - no-cache, no-store @@ -44,11 +44,11 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"babb6f5875f0f46860b4c824e0351171" + - W/"e665bc726e5b72bb6151bafc16931bdb" expires: - '0' location: - - /api/v2/shipments/shp_09d34a4c766c4164b068a7aaf1921230 + - /api/v2/shipments/shp_de101d80a5564a1ea9ce6c5e6b8f9c4a pragma: - no-cache referrer-policy: @@ -64,20 +64,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - f1b599b7626ae48ae7873338000d1356 + - 78245fbb6272e16fe786b9050013b0ba x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.308983' + - '0.241012' x-version-label: - - easypost-202204281816-b5dc9c446b-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -99,10 +99,10 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/shipments/shp_09d34a4c766c4164b068a7aaf1921230/smartrate + uri: https://api.easypost.com/v2/shipments/shp_de101d80a5564a1ea9ce6c5e6b8f9c4a/smartrate response: body: - string: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_eb4654fab59d4b46a55eb5a500c8729f","list_currency":"USD","list_rate":7.37,"mode":"test","object":"Rate","rate":7.37,"retail_currency":"USD","retail_rate":8.7,"service":"Priority","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-04-28T19:01:30Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_00a095c4c0da4f639ae00c0bb1187759","list_currency":"USD","list_rate":23.75,"mode":"test","object":"Rate","rate":23.75,"retail_currency":"USD","retail_rate":27.4,"service":"Express","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-04-28T19:01:30Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5518eb5014cc4ebc838b1c37a85680e2","list_currency":"USD","list_rate":7.22,"mode":"test","object":"Rate","rate":7.22,"retail_currency":"USD","retail_rate":7.22,"service":"ParcelSelect","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":3,"percentile_90":4,"percentile_95":4,"percentile_97":5,"percentile_99":7},"updated_at":"2022-04-28T19:01:30Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f251402c3ed34f0abd73dad02afdc24d","list_currency":"USD","list_rate":5.49,"mode":"test","object":"Rate","rate":5.49,"retail_currency":"USD","retail_rate":5.49,"service":"First","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":2,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-04-28T19:01:30Z"}]}' + string: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_1bf9fc25687348949fb744b933d2c72b","list_currency":"USD","list_rate":23.75,"mode":"test","object":"Rate","rate":23.75,"retail_currency":"USD","retail_rate":27.4,"service":"Express","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-05-04T20:26:24Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_24e4d016e5ee410aa30e4046d9ab2e3f","list_currency":"USD","list_rate":7.22,"mode":"test","object":"Rate","rate":7.22,"retail_currency":"USD","retail_rate":7.22,"service":"ParcelSelect","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":4,"percentile_97":5,"percentile_99":7},"updated_at":"2022-05-04T20:26:24Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_0643b8e678364026ab503a5bb919849f","list_currency":"USD","list_rate":7.37,"mode":"test","object":"Rate","rate":7.37,"retail_currency":"USD","retail_rate":8.7,"service":"Priority","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-05-04T20:26:24Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_91ad99e5901b482d8fc04d03b2b2acc7","list_currency":"USD","list_rate":5.49,"mode":"test","object":"Rate","rate":5.49,"retail_currency":"USD","retail_rate":5.49,"service":"First","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":2,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-05-04T20:26:24Z"}]}' headers: cache-control: - no-cache, no-store @@ -111,7 +111,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"9cc7e2843d509c9c85a68cbe8f37a92d" + - W/"5e2610902ec2665e8e800424f8d63eb7" expires: - '0' pragma: @@ -124,25 +124,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - f1b599b7626ae48ae7873338000d1385 + - 78245fbb6272e170e786b9050013b0d0 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.066923' + - '0.066122' x-version-label: - - easypost-202204281816-b5dc9c446b-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -164,10 +166,10 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/shipments/shp_09d34a4c766c4164b068a7aaf1921230/smartrate + uri: https://api.easypost.com/v2/shipments/shp_de101d80a5564a1ea9ce6c5e6b8f9c4a/smartrate response: body: - string: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_eb4654fab59d4b46a55eb5a500c8729f","list_currency":"USD","list_rate":7.37,"mode":"test","object":"Rate","rate":7.37,"retail_currency":"USD","retail_rate":8.7,"service":"Priority","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-04-28T19:01:30Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_00a095c4c0da4f639ae00c0bb1187759","list_currency":"USD","list_rate":23.75,"mode":"test","object":"Rate","rate":23.75,"retail_currency":"USD","retail_rate":27.4,"service":"Express","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-04-28T19:01:30Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5518eb5014cc4ebc838b1c37a85680e2","list_currency":"USD","list_rate":7.22,"mode":"test","object":"Rate","rate":7.22,"retail_currency":"USD","retail_rate":7.22,"service":"ParcelSelect","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":3,"percentile_90":4,"percentile_95":4,"percentile_97":5,"percentile_99":7},"updated_at":"2022-04-28T19:01:30Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f251402c3ed34f0abd73dad02afdc24d","list_currency":"USD","list_rate":5.49,"mode":"test","object":"Rate","rate":5.49,"retail_currency":"USD","retail_rate":5.49,"service":"First","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":2,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-04-28T19:01:30Z"}]}' + string: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_1bf9fc25687348949fb744b933d2c72b","list_currency":"USD","list_rate":23.75,"mode":"test","object":"Rate","rate":23.75,"retail_currency":"USD","retail_rate":27.4,"service":"Express","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-05-04T20:26:24Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_24e4d016e5ee410aa30e4046d9ab2e3f","list_currency":"USD","list_rate":7.22,"mode":"test","object":"Rate","rate":7.22,"retail_currency":"USD","retail_rate":7.22,"service":"ParcelSelect","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":4,"percentile_97":5,"percentile_99":7},"updated_at":"2022-05-04T20:26:24Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_0643b8e678364026ab503a5bb919849f","list_currency":"USD","list_rate":7.37,"mode":"test","object":"Rate","rate":7.37,"retail_currency":"USD","retail_rate":8.7,"service":"Priority","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-05-04T20:26:24Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_91ad99e5901b482d8fc04d03b2b2acc7","list_currency":"USD","list_rate":5.49,"mode":"test","object":"Rate","rate":5.49,"retail_currency":"USD","retail_rate":5.49,"service":"First","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":2,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-05-04T20:26:24Z"}]}' headers: cache-control: - no-cache, no-store @@ -176,7 +178,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"9cc7e2843d509c9c85a68cbe8f37a92d" + - W/"5e2610902ec2665e8e800424f8d63eb7" expires: - '0' pragma: @@ -189,25 +191,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - f1b599b7626ae48ae7873338000d1397 + - 78245fbb6272e170e786b9050013b0d7 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb2nuq fde591f008 - - extlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.078279' + - '0.087774' x-version-label: - - easypost-202204281816-b5dc9c446b-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -229,10 +233,10 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/shipments/shp_09d34a4c766c4164b068a7aaf1921230/smartrate + uri: https://api.easypost.com/v2/shipments/shp_de101d80a5564a1ea9ce6c5e6b8f9c4a/smartrate response: body: - string: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_eb4654fab59d4b46a55eb5a500c8729f","list_currency":"USD","list_rate":7.37,"mode":"test","object":"Rate","rate":7.37,"retail_currency":"USD","retail_rate":8.7,"service":"Priority","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-04-28T19:01:30Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_00a095c4c0da4f639ae00c0bb1187759","list_currency":"USD","list_rate":23.75,"mode":"test","object":"Rate","rate":23.75,"retail_currency":"USD","retail_rate":27.4,"service":"Express","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-04-28T19:01:30Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5518eb5014cc4ebc838b1c37a85680e2","list_currency":"USD","list_rate":7.22,"mode":"test","object":"Rate","rate":7.22,"retail_currency":"USD","retail_rate":7.22,"service":"ParcelSelect","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":3,"percentile_90":4,"percentile_95":4,"percentile_97":5,"percentile_99":7},"updated_at":"2022-04-28T19:01:30Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-04-28T19:01:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f251402c3ed34f0abd73dad02afdc24d","list_currency":"USD","list_rate":5.49,"mode":"test","object":"Rate","rate":5.49,"retail_currency":"USD","retail_rate":5.49,"service":"First","shipment_id":"shp_09d34a4c766c4164b068a7aaf1921230","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":2,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-04-28T19:01:30Z"}]}' + string: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_1bf9fc25687348949fb744b933d2c72b","list_currency":"USD","list_rate":23.75,"mode":"test","object":"Rate","rate":23.75,"retail_currency":"USD","retail_rate":27.4,"service":"Express","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-05-04T20:26:24Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_24e4d016e5ee410aa30e4046d9ab2e3f","list_currency":"USD","list_rate":7.22,"mode":"test","object":"Rate","rate":7.22,"retail_currency":"USD","retail_rate":7.22,"service":"ParcelSelect","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":4,"percentile_97":5,"percentile_99":7},"updated_at":"2022-05-04T20:26:24Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_0643b8e678364026ab503a5bb919849f","list_currency":"USD","list_rate":7.37,"mode":"test","object":"Rate","rate":7.37,"retail_currency":"USD","retail_rate":8.7,"service":"Priority","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-05-04T20:26:24Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_91ad99e5901b482d8fc04d03b2b2acc7","list_currency":"USD","list_rate":5.49,"mode":"test","object":"Rate","rate":5.49,"retail_currency":"USD","retail_rate":5.49,"service":"First","shipment_id":"shp_de101d80a5564a1ea9ce6c5e6b8f9c4a","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":2,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-05-04T20:26:24Z"}]}' headers: cache-control: - no-cache, no-store @@ -241,7 +245,7 @@ interactions: content-type: - application/json; charset=utf-8 etag: - - W/"9cc7e2843d509c9c85a68cbe8f37a92d" + - W/"5e2610902ec2665e8e800424f8d63eb7" expires: - '0' pragma: @@ -259,20 +263,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - f1b599b7626ae48ae7873338000d13af + - 78245fbb6272e170e786b9050013b0dd x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.084543' + - '0.067375' x-version-label: - - easypost-202204281816-b5dc9c446b-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_refund.yaml b/tests/cassettes/test_shipment_refund.yaml index 1b451320..71b45c93 100644 --- a/tests/cassettes/test_shipment_refund.yaml +++ b/tests/cassettes/test_shipment_refund.yaml @@ -17,7 +17,7 @@ interactions: - keep-alive Content-Length: - '577' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -29,49 +29,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xYbW/bNhD+K4a+zrFJinrzNyNNtnVtksXusmQoBIoibbayJFBUE6fIf99Rkh3H - SRMDzZphi1Gg4fHueLx7dMe7rw7XghmRxsw4I4cgQvaQu4eDKSEjHI4898LpO6qKtTC1zp2RZFkl - +s5CVBWbicoZ/fURVkUqQNqIygB3URpV5LD11eG11iLnS9j8MHkDeyVbLkRu7J5ZllZocnD05uDU - uek7KdgRs/QLyzlsIKBoIYWVh2VeZ1nfqQwzNWh26vxzXlzmoNFoxj+rfBbz1oiIIoTtv8j1Mfwo - CvwoAMa6TB+7KLUXTZjh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QdAp3wgB+RgDgl40+oiJkEREhgejTMEo8eBOFnuAyoczlLxL9pu5ORGZPfQwBhDyN - gI5rNwQ0rDshgDwjAsjLIiBhSZSGnISERzSNBIPyD+WIRz6nLsH4BRBwqHT1WOjh+RM9HfqOa5fQ - d6z/g9B/bHq5Ok+3eqmKs7x7inWE5vuDALYu+mcRs/ND8hUxPz5ZtI29dWoHAqM/x3CYRwRPhBdK - KCFQN3iKE8lRBH0zF3ITA9NOfjt8Ow8MHhg2tCTwjmk60Y2d54JapWa2BUuW291Xu9qKzW1Uvyc8 - t7hd+6a9YTfekWI16FnFc+WAruWtk0zxrd6lUTVYdTBNk5J+OvDTX97qP6/58nz6YXlxdqQuph/o - xafT7PhNpo7Ojj6/P3u7OL8ee+9//v3qnPyxaJBQfGuMkngRJasxSkJE0o5ReECg5/nRY5Tx/m+9 - ycn49PT47O4YZTw5PzmeTO+PUY7Pjuz4qzeZ9sYn03Z0sp6mdIOlbpIyPuodno6P9n+d7B8/MknZ - w37z9vwR4xSja/E94xRrN7X/VzXnTXBbjULrQneAW+OwayhX2N9V7Ct0pUaZ2l7ODQZB4Hnw9M2K - fNYR9zAhAzeCLx5wphYivm49NV6AtZwN3xVVPM5nUJYq5+bGToDqqqw6Ltxk7Vrnr2O+/9iYL6mX - tmy9Zp3XrPPvyDr2kXy3HG+MWg+FTSbdULEZuLYUtrABARoaIPuzPp4zPbOPvdb89lW+fvzZHu1h - rd00d0uvfY/upPdjNwDe8WGytmHSPWucm78BAAD//wMAH8YP26oaAAA= + string: '{"created_at":"2022-05-04T20:26:19Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768914","updated_at":"2022-05-04T20:26:20Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_74cb3d71cbe811ec8ccdac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:19+00:00","updated_at":"2022-05-04T20:26:19+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_585c42ab88874ce39d652787bfa372f0","object":"Parcel","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_5c6ac6830e4e4dd4a18b328c5c84ce5f","created_at":"2022-05-04T20:26:20Z","updated_at":"2022-05-04T20:26:20Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26:20Z","label_resolution":300,"label_size":"4x6","label_type":"default","label_file_type":"image/png","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220504/bda38c13fb994fb392114ba1387d6b90.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_2fece6bc1e1540f58331bd5b900ce1a1","object":"Rate","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_f5a226e23cfb43bfaea5bd7a62552b02","object":"Rate","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_f8256a7116f8437b8afe69d84ff8661f","object":"Rate","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_06832fc91adc480dabf3ee173714f22c","object":"Rate","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_06832fc91adc480dabf3ee173714f22c","object":"Rate","created_at":"2022-05-04T20:26:20Z","updated_at":"2022-05-04T20:26:20Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_65d28aa48508454c90161af51b62fe8b","object":"Tracker","mode":"test","tracking_code":"9400100109361117768914","status":"unknown","status_detail":"unknown","created_at":"2022-05-04T20:26:20Z","updated_at":"2022-05-04T20:26:20Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzY1ZDI4YWE0ODUwODQ1NGM5MDE2MWFmNTFiNjJmZThi"},"to_address":{"id":"adr_74c942b6cbe811ec956aac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:19+00:00","updated_at":"2022-05-04T20:26:19+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_74cb3d71cbe811ec8ccdac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:19+00:00","updated_at":"2022-05-04T20:26:19+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_74c942b6cbe811ec956aac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:19+00:00","updated_at":"2022-05-04T20:26:19+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_6fb386eba55a4e0596e0193bd63afc61","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '6826' content-type: - application/json; charset=utf-8 etag: - - W/"cedf8e836680f2ff6f18310965ed44e0" + - W/"932eb2db9aed8369edc75f2df5749154" expires: - '0' location: - - /api/v2/shipments/shp_f1c69672aa5b4ffe98381da815b9ee16 + - /api/v2/shipments/shp_6fb386eba55a4e0596e0193bd63afc61 pragma: - no-cache referrer-policy: @@ -82,28 +61,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b3cdff0304c6002a6db1 + - 78245fb96272e16be786b8e70013af84 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.843458' + - '1.044032' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -120,7 +96,7 @@ interactions: - keep-alive Content-Length: - '2' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -129,54 +105,32 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/shipments/shp_f1c69672aa5b4ffe98381da815b9ee16/refund + uri: https://api.easypost.com/v2/shipments/shp_6fb386eba55a4e0596e0193bd63afc61/refund response: body: - string: !!binary | - H4sIAAAAAAAAA+xZbW/bOBL+K4K+nu2Q1Lu/GW563V43ycbupc2iECiKctjKkkBRTZ0i//2GoqTY - TtJ4sW1zuKthwOZwSA6feTTkjL7aTHKqeBpTZ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Xu329OJE19ytxdKanS1NvXYo4Xbxqivf - zk6sl+ezk/lvi/mp/Xj5doz9NuH9GTVcJRv+d2q42m5X/9YNY61zzYxcylJ2sWQ42Tqq9Rw8dNhX - O4f1VKM35wSTIPA8yLfzslh1wjEmZOJEcL8AnukYcWOQmq3BWkaP3pR1PCtWcAmuIc7psnNTV3Wn - hds7YiOLX+8W/sfeLSTNRl+Sf0WdX1HnvyPq6JS8W6a7aW3dP15yHUy6NxntvdRI6Fo7BGRogvRH - Y3xF5UqnlsZ8UwoYUs2dS/DOrN0rpL15dfZ70LwfurdOB6Y6gw19lmLf/gcAAP//AwDoZlM/Hx8A - AA== + string: '{"created_at":"2022-05-04T20:26:19Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100109361117768914","updated_at":"2022-05-04T20:26:20Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_74cb3d71cbe811ec8ccdac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:19+00:00","updated_at":"2022-05-04T20:26:19+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_585c42ab88874ce39d652787bfa372f0","object":"Parcel","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_5c6ac6830e4e4dd4a18b328c5c84ce5f","created_at":"2022-05-04T20:26:20Z","updated_at":"2022-05-04T20:26:20Z","date_advance":0,"integrated_form":"none","label_date":"2022-05-04T20:26:20Z","label_resolution":300,"label_size":"4x6","label_type":"default","label_file_type":"image/png","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220504/bda38c13fb994fb392114ba1387d6b90.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_2fece6bc1e1540f58331bd5b900ce1a1","object":"Rate","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_f5a226e23cfb43bfaea5bd7a62552b02","object":"Rate","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_f8256a7116f8437b8afe69d84ff8661f","object":"Rate","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_06832fc91adc480dabf3ee173714f22c","object":"Rate","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":"submitted","scan_form":null,"selected_rate":{"id":"rate_06832fc91adc480dabf3ee173714f22c","object":"Rate","created_at":"2022-05-04T20:26:20Z","updated_at":"2022-05-04T20:26:20Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},"tracker":{"id":"trk_65d28aa48508454c90161af51b62fe8b","object":"Tracker","mode":"test","tracking_code":"9400100109361117768914","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:20Z","updated_at":"2022-05-04T20:26:20Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:20Z","shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:20Z","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":"2022-04-05T09:03:20Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrXzY1ZDI4YWE0ODUwODQ1NGM5MDE2MWFmNTFiNjJmZThi"},"to_address":{"id":"adr_74c942b6cbe811ec956aac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:19+00:00","updated_at":"2022-05-04T20:26:19+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":1,"return_address":{"id":"adr_74cb3d71cbe811ec8ccdac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:19+00:00","updated_at":"2022-05-04T20:26:19+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_74c942b6cbe811ec956aac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:19+00:00","updated_at":"2022-05-04T20:26:19+00:00","name":"JACK + SPARROW","company":"EASYPOST","street1":"388 TOWNSEND ST APT 20","street2":null,"city":"SAN + FRANCISCO","state":"CA","zip":"94107-1670","country":"US","phone":"5555555555","email":null,"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":"5.49000","charged":true,"refunded":false}],"id":"shp_6fb386eba55a4e0596e0193bd63afc61","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '7967' content-type: - application/json; charset=utf-8 etag: - - W/"8289476f904b82b98ab81408fa550349" + - W/"aafe750fd2ec940ac4a576482f3ec92e" expires: - '0' pragma: @@ -194,21 +148,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b3ceff0304c6002a6de2 + - 78245fb96272e16ce786b8e70013afe4 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.144295' + - '0.140366' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-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 382f23e0..9da6cca7 100644 --- a/tests/cassettes/test_shipment_regenerate_rates.yaml +++ b/tests/cassettes/test_shipment_regenerate_rates.yaml @@ -21,7 +21,7 @@ interactions: - keep-alive Content-Length: - '932' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -33,62 +33,30 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xZWW8jxxH+KwKfEkQm+j70trFlw0GyWVibFwcLorq6WpqYHDIzw92Vjf3vqR4e - ovaQaOyCShzrQeD0VHdX1/fVNf3LBDuCgfIMhsnFRAmlvhL6K+lfKnUhw4XRP07OJ00/62hYd+3k - osC8p/PJ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mmh5xznhbKp5AiGe7zAxbrnGkRHTn5FiyeA/vLtapdUPwE+VxDe - Po6+8lNzrOfvljwK/4+g/TkU2Oa4pwwAFLLkCpOzHhmLVD82ZJ6vHHotSD0BCzaZ9ormddeHUoBS - jzNhK3VcChhF/9/iQDbWcw1ERiO3HhBAW55TSEvlJZdCT8AA/Q3cfgz/e5FATkM4IhJsxY6KBGqq - zLEM0B8wYH9KpV4qfTFW8z9OHuLEppX9CCX0F6YE8AztHXcyCY0KPtmQjAUrnXMos3mPEhqdZOKg - EiKbFCBGwRvkejXmuCkyT0CJ5/R2YFY8a7pL6Oa3z/72aWYEOTVHRIad2DHMCGrqjo4NH5aHd4cN - L0X4LGZ86XrxVzIDECQpLMEAGJ1DysLlKARprbLS8gmY8V3HB8qfpoOUU3dEwbgTO4YO0v2KVPEw - HT4zUDwxHYLTxUuhHONvgHzSBM47FULylsZvo08XKK6ADfVpXhg19e5xXuzEjuGFsVN/dAL5LfNC - JY3RCeu94qrSAWjtnBJoScRAxj0pLx6gBPv1Ed3FTuwoSnAncnR38TAlpLjQ/7uUACRPBZMl54wx - GlIhLjBDREVSjfdUp6aEavNjjNBiKo+oMndixzCCZf1n9Bl3Vab83CDxpRuPxxnxarw943T93oVW - j9COl3f7gbH6Z1y7g+ZqvFO7uwoYlp/6is/FiFe7r/ghBNx/xdfuXkf7+1f8/66v+Ot+1c9+HpWT - 59s7ud+van5jIKf1bQ0ev7vubwrVGr3r3dKruhBtf/2arLJH9mqbkybv/gMAAP//AwArqUY+sC4A - AA== + string: '{"created_at":"2022-05-04T20:26:14Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:14Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_29462dd0da6a4d45b8599eca89b76d0a","object":"CustomsInfo","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","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_8307bd59062c4fd9b655fbea38c330d7","object":"CustomsItem","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_71a18c60cbe811ec94d1ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_45543abcb3a744ac8bee6eca41983844","object":"Parcel","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_6bccfa93927a4aed90e6c03dfcff6688","object":"Rate","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_682d94f490154a5085ae72f5893feb45","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_15ea015a79a34b2ca16575110049682b","object":"Rate","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_682d94f490154a5085ae72f5893feb45","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_7c1c40e8094d4129abaadde6a875eef1","object":"Rate","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_682d94f490154a5085ae72f5893feb45","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_c5a139c7747c4af1aa64446cdd82c9b1","object":"Rate","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_682d94f490154a5085ae72f5893feb45","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_719fc115cbe811ec94d0ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_71a18c60cbe811ec94d1ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_719fc115cbe811ec94d0ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:14+00:00","updated_at":"2022-05-04T20:26:14+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_682d94f490154a5085ae72f5893feb45","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '5563' content-type: - application/json; charset=utf-8 etag: - - W/"7569d12e0381f938107b0370ff472246" + - W/"66bd9fe55273163358c84e1d5ad2a501" expires: - '0' location: - - /api/v2/shipments/shp_652fc789031b4707ba0450bd493f8fa0 + - /api/v2/shipments/shp_682d94f490154a5085ae72f5893feb45 pragma: - no-cache referrer-policy: @@ -104,21 +72,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3c2ff0304c3002a6b9a + - 78245fbb6272e166e786b8e40013ae0e x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb8nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.616938' + - '0.275659' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -135,7 +102,7 @@ interactions: - keep-alive Content-Length: - '2' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -144,34 +111,19 @@ interactions: x-client-user-agent: - suppressed method: POST - uri: https://api.easypost.com/v2/shipments/shp_652fc789031b4707ba0450bd493f8fa0/rerate + uri: https://api.easypost.com/v2/shipments/shp_682d94f490154a5085ae72f5893feb45/rerate response: body: - string: !!binary | - H4sIAAAAAAAAA+SY3W4bNxCF30XXzoIcDv90FyBprxoEsXuTolgMyWGyhSIb1CqIEOTdS6lWHVu2 - xEAGFmkBASsOD7lLno/k7H6dFRp5NZv/8XU2pNl8V+wDBcDMUTrBqAiIhLABonJehhzC7GJ2Hf7i - ONYG72qDWo6F65/U0zYGAuCFUC+kvQKYSzdH875q1jfppObTdeJaW59prKUVl89D3AbeUom8uOTF - 9q71dlTKwKVW/H759rIGts9dS7YD2FavS+Fl3OzqX22reaRh0d9X3QYPxIthNT6Q7kIHwsSL4TOX - TZ9oU+cQ7kW2zZfrxeJBsP+wpkLLkblOd6bFii9mdbD9YV+rj8PNJ16O/c6Y1ceb3mjI0TovlAxo - qyUkUIuQ0KvsMom7iekpxuv1vm2kPoA22rJ33jAmoyg6qSVFhYYiSp59u/iegK3lGrNBxYgJKhAR - GEnIaCIlNQkBZbguw7g56r6yp913nRXN7u86bHJfPqP7clr3s3LKeOlV1AYtJycxa43sYnQRyE/g - /i9DWR1b+LpDf9r6W1WL9bfS/9vCj2B9zmgTAGFE4SNHXRe8c15pRpjA+tdfbgqvVkfMB9VZfdp9 - sB22rvx9l03+P+L2OQj803JKCqSJQWiOCVRCzttVX0/+CFJE75XiCShQr2jz2PF/jwPZOdfAwa2s - iQPoAFs5UAcQ/DtKgCtQcyHq7/3sGBZjWT9OhXpmJKi2UNZkE0JEcDZoF1CTlsaYKBM+RCJZzroK - VJCo2XhjwAo2HKBywmICJN7wl7FS8XIor6ksNi9/e5oMJztsSAz3shYyHHSmOTU8TA7uBuuuhDuL - jOfOFn6QjCwIqZ4XXhIjC09S+Pry4FIEF1SaIlv4tdQBpadxkLIzDenCXtaCgzQ/8KZwHIczN4qJ - cTApEvqgBFmPWRpfkwfhHSpHxkqJk24Ul1Qn6mkuEDprTnOxl7VwgbqzzQfIf5kLK1k4ZYWRzJg9 - kWVrXFQqGh2CzpNycQSJuq4bcsu9rAmJmoc255bHkZBirn5eJAJnh6EmElCvlNBpY23WuR4brE2a - 4isDLNMpIpToZEOWuZe1EFG19ozPTHdZpjx3k3ju18/TRPz57W8AAAD//wMA3s0nQoUUAAA= + string: '{"rates":[{"id":"rate_e433ecce74fe4d59b499bfe0fac91f54","object":"Rate","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_682d94f490154a5085ae72f5893feb45","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_20a94322a4184be5834a3d8ae02bc627","object":"Rate","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_682d94f490154a5085ae72f5893feb45","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_e5646d0915b347eb9e7da57b93fabc52","object":"Rate","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_682d94f490154a5085ae72f5893feb45","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_63e8add74410424c86eefa20408fd836","object":"Rate","created_at":"2022-05-04T20:26:14Z","updated_at":"2022-05-04T20:26:14Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_682d94f490154a5085ae72f5893feb45","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2060' content-type: - application/json; charset=utf-8 etag: - - W/"ff2c1f69802fb0fcb6ec7de1bd8acf6f" + - W/"883eeb1b8a8ba81f5895c11377e9cc03" expires: - '0' pragma: @@ -184,28 +136,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3c4ff0304c3002a6bf1 + - 78245fbb6272e166e786b8e40013ae2a x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.914472' + - '0.228379' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_retrieve.yaml b/tests/cassettes/test_shipment_retrieve.yaml index 7ab898b0..ba654188 100644 --- a/tests/cassettes/test_shipment_retrieve.yaml +++ b/tests/cassettes/test_shipment_retrieve.yaml @@ -21,7 +21,7 @@ interactions: - keep-alive Content-Length: - '932' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -33,62 +33,30 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+xa227cyBH9FWGeEkQ76PtFb85au9gg8Ro7zssGxqC6u1pidoYzITmytYb/PdWc - qyxZoiNhlDg2IENsVjer65w6XUXqwyg2CB2mKXSjs5FgQnzH5HfcvhHijLszaX4dnY6qdtpgt2rq - 0VmGWYunozm2LVxgOzr7x4dRhKapsKH5f389IfPN9RRiXKzqbloluhVhGjhXOiTQynllPDphs9U+ - cOMlgkg0tbteIhk35NIUm2bRjHbPouGf6iuYVenkRYw0dvLXKmLd4km9mgd6/MfT4a4kyYNQVllM - XKH1wSQZE3B0LNCIP6IrjLGUQUZt6MEUEpei0EFxo4OMjpsjuuKU9iiARe+M8g4hcMeTN1wqDMzk - I7riU0xMovY8goo+ei20ZgKEpdDoZI/oinZCiSRYRhGURu4jT8zp6IPTnJtjupJ1cN44LgkkxaIJ - SiZD/yftyT0ZjgmQATDkgdbRKC6Cj8yJrJXIWXHH9DEziIfMGSjBGaqcI3imo4LkmY0ypWO6EpVU - FqRhzFulJQTGtIiIoBOohOyIrghjfLTZCYdW8cB8ZmiYjMJHKZ3BY6otiYrRNsdss7I6eUwps5wM - 9zkLOKYrIVqRnY0OhVTZJwieRfQhqUCya+UxdUUw4EQKpUEoZkPgxFsXuMoBteDHdAWlBAtBiOiY - 8gJc5Dx4lAkpQKCP6YrTKjCbExGWXAETMmWU0UwWGhtxzDNIRBJ8RdywBBIm5ThJrNbJRKpayLsj - umI9EcKhc5pxckkFwMg0ZKWzUi4ftV4ROYHUUjJOkqaT81wrloktVCtIccx6RWbhCQwVFEoqKLOX - ISRjhY0xZSGPKfxKoBGWA2QqnWRABzoYSmqehAlWuGMChCpS3kghkegLwgkIhiJjnMnSwDEBQh0d - pXOigpJq25wD5Y+hYkEonxiVLY915S3ZLlIx7LDtaOZi2VWLmtqSD6MZBJxN86KZ963N61c/lk6m - vlrQGtPNAmcjLoq4xVXTYB2vy4YmL2lgCddzrLuyzsbByfmrl+e/0O5HqbgK6QrqSDcYjTS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yHbhnu - josE1xQ/fmOk2wFyY3B6saIjgPQI0+49Km10enstUtllOWbWdVR7uSQhsgg6lvcZVO4ySR2jNMbG - QIeBAMvv63iFpt4bCU6DKhkJ0XHNIVLFDFFx7Au6PfqKheSiYk5oarw8AJVr1mdhrKeWI9tnQP+H - qjmUjlvQE9v9w9BvrIZAvzEdBL14QujF80JvUaOApLTXXiVfXkrLkIQN2ZIO4n+Q+G4A9O4+6M/f - L7eH6mfApwrC6ofRF3ashmb+dslB+N+B9mMosDnjnpEFpPgy0f1AXZqS3AEyFb1nVtEhyKJ5Bhas - T9oJzspT7zsChHiYCRurYUdAb/r/pgNU3foQrHFWGGWN8pF6dhNyFkpEHvQzMEC+hOu78L+hBHzs - 3AAl2JgNUgIxFmooA+QtBux2KcQbIc/6av7X0X2cWLeyd1BCPjElgAclLfWVIUQlnA3aBaVBc2NM - 5El9WhUIBIc+JWpCFdLkLJyhMZkVRMvdM1DiFb7viBUvquYcmtn1i799nhmOj9UAZdiaDWGGE2Mz - WBtul4f7zbo3zD2KGU9dL34hMwxI6heMkFp5YoYKpV8uH7tSSCDZczDjx4Y2lD5PB87HZkDBuDUb - QgduvuCouJ8OjxSKZ6aDlNQu0KEBKMsfe1iwIrCcFCt/T0Ct9LMKxQQoUJ/nhRJjax7mxdZsCC+U - HtvBB8jXzAsrg0wymGgdKi6iC0HZ5FgSHIXIz9Fb7HlxDyUorwd0F1uzQZSgTmRwd3E/JTg7k/+7 - lFBCWMuQmkyPSiUG4JJz0fOYuJY6PgMlRJ0eYoRkYz6gytyaDWEE2dpH9Bn7KpM/ViSeuvF4mBFv - +69ndFx/8kGrjVD3H+92A331T7g2B81V/01t/ymgW3zuLX5QXtvtW3xgIq3f4jNgid94qfvtLf5/ - 11v8Vbtsp7/3zvHTzTe5b59qvjKQw+q6iMe31P2qUC3qXb4tvS0L4ea3LzlVdshONmfS6OO/AQAA - //8DAENmqOSwLgAA + string: '{"created_at":"2022-05-04T20:26:11Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:11Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_38a02d0d8264484bad2dcefbe583da4b","object":"CustomsInfo","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","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_a3eb42d8e7804c2296a91e444f5b7cf7","object":"CustomsItem","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_6fe78f61cbe811ec8bd6ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:11+00:00","updated_at":"2022-05-04T20:26:11+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_dea97f8b435e407e86bce45cadf27849","object":"Parcel","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_8781bb3c940146e9a2330897d1e6b4b5","object":"Rate","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dfbc4ce548641b78c0966ec6c497bcf","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_a194a19e4ff14e9b8edce7bd541963d4","object":"Rate","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_8dfbc4ce548641b78c0966ec6c497bcf","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_65547345651b463dbbf7255cc118cd80","object":"Rate","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dfbc4ce548641b78c0966ec6c497bcf","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_befe35f4d15c4121a8feb7d2c059036e","object":"Rate","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_8dfbc4ce548641b78c0966ec6c497bcf","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_6fe5cc48cbe811ec9478ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:11+00:00","updated_at":"2022-05-04T20:26:11+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_6fe78f61cbe811ec8bd6ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:11+00:00","updated_at":"2022-05-04T20:26:11+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6fe5cc48cbe811ec9478ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:11+00:00","updated_at":"2022-05-04T20:26:11+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_8dfbc4ce548641b78c0966ec6c497bcf","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '5563' content-type: - application/json; charset=utf-8 etag: - - W/"7d84feffc30608829e8721178cb33201" + - W/"bc6b90d35a7edc12751eb1e1289383cf" expires: - '0' location: - - /api/v2/shipments/shp_307ea5c7c3d74b03a243667cbdf02a71 + - /api/v2/shipments/shp_8dfbc4ce548641b78c0966ec6c497bcf pragma: - no-cache referrer-policy: @@ -99,28 +67,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3bcff0304a9002a6a0a + - 78245fba6272e163e786b8e00013ad22 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.908891' + - '0.281314' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -135,8 +100,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -144,61 +107,29 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/shipments/shp_307ea5c7c3d74b03a243667cbdf02a71 + uri: https://api.easypost.com/v2/shipments/shp_8dfbc4ce548641b78c0966ec6c497bcf response: body: - string: !!binary | - H4sIAAAAAAAAA+xa227cyBH9FWGeEkQ76PtFb85au9gg8Ro7zssGxqC6u1pidoYzITmytYb/PdWc - qyxZoiNhlDg2IENsVjer65w6XUXqwyg2CB2mKXSjs5FgQnzH5HfcvhHijLszaX4dnY6qdtpgt2rq - 0VmGWYunozm2LVxgOzr7x4dRhKapsKH5f389IfPN9RRiXKzqbloluhVhGjhXOiTQynllPDphs9U+ - cOMlgkg0tbteIhk35NIUm2bRjHbPouGf6iuYVenkRYw0dvLXKmLd4km9mgd6/MfT4a4kyYNQVllM - XKH1wSQZE3B0LNCIP6IrjLGUQUZt6MEUEpei0EFxo4OMjpsjuuKU9iiARe+M8g4hcMeTN1wqDMzk - I7riU0xMovY8goo+ei20ZgKEpdDoZI/oinZCiSRYRhGURu4jT8zp6IPTnJtjupJ1cN44LgkkxaIJ - SiZD/yftyT0ZjgmQATDkgdbRKC6Cj8yJrJXIWXHH9DEziIfMGSjBGaqcI3imo4LkmY0ypWO6EpVU - FqRhzFulJQTGtIiIoBOohOyIrghjfLTZCYdW8cB8ZmiYjMJHKZ3BY6otiYr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4Y2lD5PB87HZkDBuDUb - QgduvuCouJ8OjxSKZ6aDlNQu0KEBKMsfe1iwIrCcFCt/T0Ct9LMKxQQoUJ/nhRJjax7mxdZsCC+U - HtvBB8jXzAsrg0wymGgdKi6iC0HZ5FgSHIXIz9Fb7HlxDyUorwd0F1uzQZSgTmRwd3E/JTg7k/+7 - lFBCWMuQmkyPSiUG4JJz0fOYuJY6PgMlRJ0eYoRkYz6gytyaDWEE2dpH9Bn7KpM/ViSeuvF4mBFv - +69ndFx/8kGrjVD3H+92A331T7g2B81V/01t/ymgW3zuLX5QXtvtW3xgIq3f4jNgid94qfvtLf5/ - 11v8Vbtsp7/3zvHTzTe5b59qvjKQw+q6iMe31P2qUC3qXb4tvS0L4ea3LzlVdshONmfS6OO/AQAA - //8DAENmqOSwLgAA + string: '{"created_at":"2022-05-04T20:26:11Z","is_return":false,"messages":[],"mode":"test","options":{"label_format":"PNG","invoice_number":"123","currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":"123","status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:11Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":{"id":"cstinfo_38a02d0d8264484bad2dcefbe583da4b","object":"CustomsInfo","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","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_a3eb42d8e7804c2296a91e444f5b7cf7","object":"CustomsItem","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.0","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]},"from_address":{"id":"adr_6fe78f61cbe811ec8bd6ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:11+00:00","updated_at":"2022-05-04T20:26:11+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_dea97f8b435e407e86bce45cadf27849","object":"Parcel","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_8781bb3c940146e9a2330897d1e6b4b5","object":"Rate","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dfbc4ce548641b78c0966ec6c497bcf","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_a194a19e4ff14e9b8edce7bd541963d4","object":"Rate","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_8dfbc4ce548641b78c0966ec6c497bcf","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_65547345651b463dbbf7255cc118cd80","object":"Rate","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_8dfbc4ce548641b78c0966ec6c497bcf","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_befe35f4d15c4121a8feb7d2c059036e","object":"Rate","created_at":"2022-05-04T20:26:11Z","updated_at":"2022-05-04T20:26:11Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_8dfbc4ce548641b78c0966ec6c497bcf","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_6fe5cc48cbe811ec9478ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:11+00:00","updated_at":"2022-05-04T20:26:11+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_6fe78f61cbe811ec8bd6ac1f6bc7b362","object":"Address","created_at":"2022-05-04T20:26:11+00:00","updated_at":"2022-05-04T20:26:11+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_6fe5cc48cbe811ec9478ac1f6b0a0d1e","object":"Address","created_at":"2022-05-04T20:26:11+00:00","updated_at":"2022-05-04T20:26:11+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_8dfbc4ce548641b78c0966ec6c497bcf","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '5563' content-type: - application/json; charset=utf-8 etag: - - W/"7d84feffc30608829e8721178cb33201" + - W/"bc6b90d35a7edc12751eb1e1289383cf" expires: - '0' pragma: @@ -216,21 +147,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3beff0304a9002a6a79 + - 78245fba6272e163e786b8e00013ad39 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.148535' + - '0.077070' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_shipment_smartrate.yaml b/tests/cassettes/test_shipment_smartrate.yaml index 0d153dc9..e2b05477 100644 --- a/tests/cassettes/test_shipment_smartrate.yaml +++ b/tests/cassettes/test_shipment_smartrate.yaml @@ -15,7 +15,7 @@ interactions: - keep-alive Content-Length: - '477' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -27,56 +27,28 @@ interactions: uri: https://api.easypost.com/v2/shipments response: body: - string: !!binary | - H4sIAAAAAAAAA+yaWW/cOBKA/4rRr+tp8Chefgs2mcUudgfBOPuSRdAoksVYO211Q1In8Qzy36fY - l+0ctrIO5Jls8hC0qKJYqvpYB+XfZqkjHCgvcJidzZRQ6gehf5DuhVJn0p8Z83J2Omv6RUfDpmtn - ZwWXPZ3OLqnv8TX1s7P//DZL2HUNdTz/38/PWXx/vcCUVpt2WDSZbyVcCBmL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2KgOEc21Oe5ADV3 - 9n4uDmJjuAAzd6MTyLfMBa+iUUudOY2AMs5n61E4jxKVjO5xubgDCd7XIzqLg9goJLgLGd1Z3I2E - FGf6z4uEUfWvWTTIkjx4rklFLpqS9dKHbEx8BCRUm+8jQou5HFFlHsTGEMGy7gHHTNdVpnxokPja - hw/3E/Fq+52A0/UHZ/d9wnZRVt3lcWBb/bNfuxvN1fbzQfXR/nL1uVN860iYwyk+KhV2p/gCRZY0 - +36K/4c9xd/0637x61Y5ud1Nm679/qnmG3Ny3FzV4PF9635TXq3Ru35belUfRPtfX5JVjp493+ek - 2fvfAQAA//8DAGMwOvJuKwAA + string: '{"created_at":"2022-05-04T20:26:20Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2022-05-04T20:26:20Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_75bd5dbecbe811eca52cac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:20+00:00","updated_at":"2022-05-04T20:26:20+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_cd3139845dde49b5bf40307007de88ed","object":"Parcel","created_at":"2022-05-04T20:26:20Z","updated_at":"2022-05-04T20:26:20Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_aaf15379e5e84ee0a53f33003d4ec6d6","object":"Rate","created_at":"2022-05-04T20:26:21Z","updated_at":"2022-05-04T20:26:21Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.75","currency":"USD","retail_rate":"27.40","retail_currency":"USD","list_rate":"23.75","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_416d520e9b69472382ac70e6b33481e2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_80e7a16cff97436c9dd9e06c6b6f3934","object":"Rate","created_at":"2022-05-04T20:26:21Z","updated_at":"2022-05-04T20:26:21Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.22","currency":"USD","retail_rate":"7.22","retail_currency":"USD","list_rate":"7.22","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_416d520e9b69472382ac70e6b33481e2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_ae8cd6f2fa504af1bf43768116d8d94e","object":"Rate","created_at":"2022-05-04T20:26:21Z","updated_at":"2022-05-04T20:26:21Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.37","currency":"USD","retail_rate":"8.70","retail_currency":"USD","list_rate":"7.37","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_416d520e9b69472382ac70e6b33481e2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"},{"id":"rate_61869bff91874aaab64a1dc01ef4fd5d","object":"Rate","created_at":"2022-05-04T20:26:21Z","updated_at":"2022-05-04T20:26:21Z","mode":"test","service":"First","carrier":"USPS","rate":"5.49","currency":"USD","retail_rate":"5.49","retail_currency":"USD","list_rate":"5.49","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_416d520e9b69472382ac70e6b33481e2","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_75bb6ca3cbe811eca52bac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:20+00:00","updated_at":"2022-05-04T20:26:20+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_75bd5dbecbe811eca52cac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:20+00:00","updated_at":"2022-05-04T20:26:20+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_75bb6ca3cbe811eca52bac1f6bc72124","object":"Address","created_at":"2022-05-04T20:26:20+00:00","updated_at":"2022-05-04T20:26:20+00:00","name":"Jack + Sparrow","company":"EasyPost","street1":"388 Townsend St","street2":"Apt 20","city":"San + Francisco","state":"CA","zip":"94107","country":"US","phone":"5555555555","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_416d520e9b69472382ac70e6b33481e2","object":"Shipment"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4729' content-type: - application/json; charset=utf-8 etag: - - W/"c25d4673f833d12472ca39927a00bf6b" + - W/"c53d98709b606b3d31035f17d8052306" expires: - '0' location: - - /api/v2/shipments/shp_ee757f7586ce4e7abd51955df6aae769 + - /api/v2/shipments/shp_416d520e9b69472382ac70e6b33481e2 pragma: - no-cache referrer-policy: @@ -92,21 +64,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b3cfff0304c7002a6df2 + - 78245fba6272e16ce786b8e80013b003 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '1.938091' + - '0.264893' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -121,8 +92,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -130,38 +99,19 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/shipments/shp_ee757f7586ce4e7abd51955df6aae769/smartrate + uri: https://api.easypost.com/v2/shipments/shp_416d520e9b69472382ac70e6b33481e2/smartrate response: body: - string: !!binary | - H4sIAAAAAAAAA+zY3W/bNhAA8P9Fz6nAu+On3gq029OGYsleOgwGP1cNihPIclEj8P8+2o4T24oT - LkmbAA3gB+N0pCnxR57oq6qPs3k3VM1fV5W3fd/GvmqqP08/nVYn28DEen8xnw6TNuRr3k4cCilU - NNrIyIMk6zUIsJ64tJ5DXDXtox1imNjcdYUM8R2jd6DOEBvQjZCfVznzvo9Tv1j/4IccCLFrv8Z+ - MQm5bdVM5113EJz8M7e9nQ4x5qEk283iXsJiVjV4UsXZMBlH16PvV51wEjFK7QIFxz1aI3nijKQJ - CayDlIfStbmP0QDX0X49OFVj7vP8IuTv1ZB/MV++cP9Gv7rhP1YpJ9VuZh8H23bjLq/ju6mz2H9t - /arfT7b3sTuN3arbfOFLe3ketxMx+3I5iVEJlZTQ0kcelXVBgBEiJGltVNLkRkN7HiftdDLk5zZr - 8+iuqsuYu50ObRcngq2fzU5EiaqhvYgeRUxuxfcjOUfsR1TVyP2IqRqzPKnml+EBG8uTn0ijE1Yb - I0WSTHLHo0PyiIkrtEpQNCUaRc1NmcZNZpHGTeqtxl/afvYdGcKIIY4Y4oghjhjiiCGOGNJPxnDT - 6g6Jmwu3GKNRgceUrDSae9JaEWkBkhPZYFwRRqRaiTKN16lFHFHVfJfjx2+XuXjNfiRIGIGEEUh4 - FEjxGkGq7wcS7tQIuxQVOARmPQtEnPLEUcAIHHxIVjsuyqo0qdIqvcosgqhrtVek+/aib4fFa4NY - sjPSYyCqDcTbmRIepVJMpcAMlwxd3i7QCo7gZbSB3fHQS+Q9PIzDqb2dFPpgFzfvTTtLZr1iNtNY - IdRa3yV8b7Zv0o7Z2OFWIdbIj8I80E6jtXRzl4hnSA1j+fP5cMntra6hn8c7lxI9UuOx3cSC46Rk - ks55jlo5sVqDNpcGKT0EXgSZHvWmSSPIVACZlvtIDXhHTJHnMnCvo0GlEkZJUqOwEV4A6e/x25Cd - vm/7j7bvFu9/O25VQ83xYavbtBKrGmuJpVbhuFXQZ0w/ySq8RqvPVf1hZBVGVuHAKgnJgTPpRDKc - RXIUSSbrkIG2iewLWP21z484HAcKUG/m5H6g27QSoCDzcfh5gD5xM30DegAU8iulyvumd/l10pLT - XOYt1acQlHPWpBfdTE9tnrrjUjnWSj4sdZtWIpWLWhWX/TepP1Jqvm+yBBRy8ecolA5SW6a0BYvg - 1MtKvQdp3vtEAdLrtCKk+fx8/ND0v5ACa+gN6fMhFZliAuKQvOY6H9RZSBS91KBNEMK9AFKchoeM - Equh4Py0TSsxmnNVccnHe85P8NSNFF+jURwZxZFRHBkt+SNg/I8ULpd/L/8DAAD//wMAyGY+IiAa - AAA= + string: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_aaf15379e5e84ee0a53f33003d4ec6d6","list_currency":"USD","list_rate":23.75,"mode":"test","object":"Rate","rate":23.75,"retail_currency":"USD","retail_rate":27.4,"service":"Express","shipment_id":"shp_416d520e9b69472382ac70e6b33481e2","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":4},"updated_at":"2022-05-04T20:26:21Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_80e7a16cff97436c9dd9e06c6b6f3934","list_currency":"USD","list_rate":7.22,"mode":"test","object":"Rate","rate":7.22,"retail_currency":"USD","retail_rate":7.22,"service":"ParcelSelect","shipment_id":"shp_416d520e9b69472382ac70e6b33481e2","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":3,"percentile_90":3,"percentile_95":4,"percentile_97":5,"percentile_99":7},"updated_at":"2022-05-04T20:26:21Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":1,"est_delivery_days":1,"id":"rate_ae8cd6f2fa504af1bf43768116d8d94e","list_currency":"USD","list_rate":7.37,"mode":"test","object":"Rate","rate":7.37,"retail_currency":"USD","retail_rate":8.7,"service":"Priority","shipment_id":"shp_416d520e9b69472382ac70e6b33481e2","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":1,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-05-04T20:26:21Z"},{"carrier":"USPS","carrier_account_id":"ca_b25657e9896e4d63ac8151ac346ac41e","created_at":"2022-05-04T20:26:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_61869bff91874aaab64a1dc01ef4fd5d","list_currency":"USD","list_rate":5.49,"mode":"test","object":"Rate","rate":5.49,"retail_currency":"USD","retail_rate":5.49,"service":"First","shipment_id":"shp_416d520e9b69472382ac70e6b33481e2","time_in_transit":{"percentile_50":1,"percentile_75":1,"percentile_85":1,"percentile_90":2,"percentile_95":2,"percentile_97":2,"percentile_99":3},"updated_at":"2022-05-04T20:26:21Z"}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2619' content-type: - application/json; charset=utf-8 etag: - - W/"5e6b3106d20ddea83b85858ef0d58ee0" + - W/"d5d74a4b7deb530601e214072e10f606" expires: - '0' pragma: @@ -179,21 +129,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b3d1ff0304c7002a6e73 + - 78245fba6272e16de786b8e80013b019 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.169611' + - '0.067440' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_all.yaml b/tests/cassettes/test_tracker_all.yaml index 7b07c20d..defd9767 100644 --- a/tests/cassettes/test_tracker_all.yaml +++ b/tests/cassettes/test_tracker_all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,37 +18,41 @@ interactions: uri: https://api.easypost.com/v2/trackers?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA+yXW2/iOBTHvwrKM21tx86Ft26hN5W0pXRoslohx3bAIQkoMTOlo373cQhQ2u3s - dDplH6pESCQ+J+fy9+WnfDdUTtlE5IXR+vu7IbnR0iOTIbU4dHDIIpNjLHjoYsfhtkUjjCzEETea - xjSMBVPav19F0EPplIsygCiUflpGltloyKrhTgDB6oLaXCiq5jqtMcvFUPtmhVSb4SEXispEW1fP - 8xmnSmg7y4W+4UNapkYAoT1g7kG7j1ALui1AAu1TOf+3TyFHmXYJF0YrmydJ0/gm5Gis1k+6BV1D - Ir+KfDFcpv55pLGcpSJTw1K96m1G81xqSVrG7c3VzbYWVV+V2s8V1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UxDbDkWxgCbYegIZFk258J2 - Quh8StqAmja/TZtda1bTpqbNzmlzRoL4Vn+7BJPL9l+TIL7W3zee9OLJvT8IEj8+I932IbnsH2ra - 6BU1psUwnea6WpXPxeMPAAAA//8DAHqKo6OcIAAA + string: '{"trackers":[{"id":"trk_b68b2c3788434d0ca26580993c2dd5de","object":"Tracker","mode":"test","tracking_code":"EZ1000000001","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:25Z","updated_at":"2022-05-04T20:26:25Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:25Z","shipment_id":null,"carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:25Z","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":"2022-04-05T09:03:25Z","source":"USPS","carrier_code":null,"tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"}}],"fees":[{"object":"Fee","type":"TrackerFee","amount":"0.02000","charged":false,"refunded":false}],"carrier_detail":{"object":"CarrierDetail","service":"First-Class + Package Service","container_type":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrX2I2OGIyYzM3ODg0MzRkMGNhMjY1ODA5OTNjMmRkNWRl"},{"id":"trk_ce81ee3ab88e4134b3806b390d1da93c","object":"Tracker","mode":"test","tracking_code":"EZ1000000001","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:25Z","updated_at":"2022-05-04T20:26:25Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:25Z","shipment_id":null,"carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:25Z","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":"2022-04-05T09:03:25Z","source":"USPS","carrier_code":null,"tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"}}],"fees":[{"object":"Fee","type":"TrackerFee","amount":"0.02000","charged":false,"refunded":false}],"carrier_detail":{"object":"CarrierDetail","service":"First-Class + Package Service","container_type":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrX2NlODFlZTNhYjg4ZTQxMzRiMzgwNmIzOTBkMWRhOTNj"},{"id":"trk_65d28aa48508454c90161af51b62fe8b","object":"Tracker","mode":"test","tracking_code":"9400100109361117768914","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:20Z","updated_at":"2022-05-04T20:26:20Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:20Z","shipment_id":"shp_6fb386eba55a4e0596e0193bd63afc61","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:20Z","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":"2022-04-05T09:03:20Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrXzY1ZDI4YWE0ODUwODQ1NGM5MDE2MWFmNTFiNjJmZThi"},{"id":"trk_f676429a00ad499aa97697370c807481","object":"Tracker","mode":"test","tracking_code":"9400100109361117768907","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:19Z","updated_at":"2022-05-04T20:26:19Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:19Z","shipment_id":"shp_9db7a6ac1ad3405a987ef6224f6064f8","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:19Z","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":"2022-04-05T09:03:19Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrX2Y2NzY0MjlhMDBhZDQ5OWFhOTc2OTczNzBjODA3NDgx"},{"id":"trk_41ad8d2eb9fc41c991243dc059a40101","object":"Tracker","mode":"test","tracking_code":"9400100109361117768891","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:16Z","updated_at":"2022-05-04T20:26:16Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:16Z","shipment_id":"shp_6b7295f147ea4ee8b5a65ea481e1eebb","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:16Z","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":"2022-04-05T09:03:16Z","source":"USPS","carrier_code":null,"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,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrXzQxYWQ4ZDJlYjlmYzQxYzk5MTI0M2RjMDU5YTQwMTAx"}],"has_more":true}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '8348' content-type: - application/json; charset=utf-8 etag: - - W/"acb90b1d0d57d8f3e9766209b979674b" + - W/"0cd6b510147346544bc0734367f5ed2a" expires: - '0' pragma: @@ -68,7 +70,7 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5076233b3daff0304e5002a7048 + - 78245fbc6272e172e786b9090013b156 x-frame-options: - SAMEORIGIN x-node: @@ -76,13 +78,12 @@ interactions: x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.130889' + - '0.142938' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_create.yaml b/tests/cassettes/test_tracker_create.yaml index da572794..983f386b 100644 --- a/tests/cassettes/test_tracker_create.yaml +++ b/tests/cassettes/test_tracker_create.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive Content-Length: - '46' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -22,30 +22,22 @@ interactions: uri: https://api.easypost.com/v2/trackers response: body: - string: !!binary | - H4sIAAAAAAAAA8xU226bQBD9FYtnX4Dg2OE5jqqqrpzalWtXEVp2B1gbFrSXujjyv2fWEJykVZuX - SuUFODPMnHOG2UeHMyd0tNxH04lPAgh8IB4EgZdMYy+Jgxug7njKaMCcvlPGO6Aa81eS0D1IhIqS - gS0ASuObtjgXaUQbeLb13PbyMKw00UYhXkmIMFcorjs4YqAJzzFqxF6UB4ERKoFoYBGxTX3X9wfu - 1cCbrHw/9G5Cd7zFHFOxv+YongpMiWsnFCbP+84BeJrhB95keN13kDx2z/kPkHVkq/2hUsarAoSO - rG9NLUqk5GhG6HxdLpYvXWgUoeDvj2+8w+htIxctBKVIansuJAyWbYMeF0kpC6J5KXoSKCA7OwMG - ikpeWfiZwPtsbXKtOs2Li0L/F4WlkfQ8PKLqRXmeayuxHWtTqVOZl5Q0dH6j8tNzEItwXb+k3FWi - pRFadrEjr5rH06n/Pt+sZxWGejmJIe+1f82/MWu68iahO/0PzXq4tH4tI+GC5PyIjoRaGug7XEUS - tJHIIiG5QqQycc5pZKTdv0zrSoWj0Zn0EFBZhcqGtCxGbDe7Zh8+ym/H9GpezNzt6r7ermc/8e7O - 15tgs7srNrv78XY9P3xeZfvN8cse1SQAb7bgDsBuSl3B5ThpMFJYhYi6Q9fHg8OakRGZWvotWwmJ - EawDTg+nJwAAAP//AwDXAf5KyAQAAA== + string: '{"id":"trk_ce81ee3ab88e4134b3806b390d1da93c","object":"Tracker","mode":"test","tracking_code":"EZ1000000001","status":"pre_transit","status_detail":"unknown","created_at":"2022-05-04T20:26:25Z","updated_at":"2022-05-04T20:26:25Z","signed_by":null,"weight":17.6,"est_delivery_date":"2022-05-04T20:26:25Z","shipment_id":null,"carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + information received","description":null,"status":"pre_transit","status_detail":null,"datetime":"2022-04-04T20:26:25Z","source":"EasyPost","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":null,"datetime":"2022-04-05T15:15:25Z","source":"EasyPost","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/djE6dHJrX2NlODFlZTNhYjg4ZTQxMzRiMzgwNmIzOTBkMWRhOTNj","fees":[{"object":"Fee","type":"TrackerFee","amount":"0.02000","charged":false,"refunded":false}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '1224' content-type: - application/json; charset=utf-8 etag: - - W/"0f47b87bb04f779d6864d4d374dd4b01" + - W/"f328046556f01fc9b653ad37e903e994" expires: - '0' location: - - /api/v2/trackers/trk_872a4e42ea1e441f8b1fb49ec058dc4d + - /api/v2/trackers/trk_ce81ee3ab88e4134b3806b390d1da93c pragma: - no-cache referrer-policy: @@ -61,21 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5096233b3d9ff0304e3002a7014 + - 78245fb56272e171e786b9070013b120 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.095792' + - '0.096570' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_create_list.yaml b/tests/cassettes/test_tracker_create_list.yaml index 1fe26b1e..335c76e2 100644 --- a/tests/cassettes/test_tracker_create_list.yaml +++ b/tests/cassettes/test_tracker_create_list.yaml @@ -11,7 +11,7 @@ interactions: - keep-alive Content-Length: - '134' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -23,13 +23,12 @@ interactions: uri: https://api.easypost.com/v2/trackers/create_list response: body: - string: !!binary | - H4sIAAAAAAAAA6quBQAAAP//AwBDv6ajAgAAAA== + string: '{}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2' content-type: - application/json; charset=utf-8 etag: @@ -46,26 +45,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50d6233b3daff0304e6002a705d + - 78245fb56272e172e786bc180013b17a x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.036569' + - '0.043364' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_tracker_retrieve.yaml b/tests/cassettes/test_tracker_retrieve.yaml index f497ee5c..8d2506b6 100644 --- a/tests/cassettes/test_tracker_retrieve.yaml +++ b/tests/cassettes/test_tracker_retrieve.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive Content-Length: - '46' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -22,30 +22,22 @@ interactions: uri: https://api.easypost.com/v2/trackers response: body: - string: !!binary | - H4sIAAAAAAAAA8xUXW+bQBD8KxbP/oALsR2ecdNarWXVjlpTRei4W/DZcKC7oxGJ/N+7ZwhO06rN - S6XyBLPL7Mwsx5MjuBM4Rh1jOuXe3E9YesV9H3hy48/nfDalqU+mhBPuDJ0yOQAz2L9VlB1BIVSU - HCwBaINPxuJCZjFr4UXkud3lYVkbamqNeKUgxl6phenhmIOhIsdqLY+yfJBYYQqoAR5TO5S4hIzc - q5E32xISeDeBex1hT13xv/ZokUlsSRonkHWeD50HENkeX/Bm4+nQQfE4PRffQTWxZfsD015UBUgT - 29xaLkaVEhhG4Nxt1puXKbSO0PC3p1fZYTVs7WKEoDXN7My1gtGmGzAQMi1VQY0o5UABA1Rnd8BB - MyUqCz8LeFusba91Z0RxcUh+cVjWip2XR3WzLs977Sx2a22Zepd5yWgr5zcuPz4XkUSY5qXknomV - tTSqrz2Kqr09nYZvy81mVmFpkNME8kH31fybsOZbbxa48/8wrPvL6J9tpELSXDxiIoFRNQwdoWMF - plaoIqW5RqSqk1ywuFb2/O2NqXQwmZxFjwGdVehszMpiwg+LKX+/VF/JgkThwl/dLg/RYXVchZ/z - 6PbD9SrM/ChkZPdl53467JooXB7RTQrw6hS8A7Anpang8jtpMVpYh4i6Y5fgj8OGsacqs/I7tQrS - WvIeON2ffgAAAP//AwAAkMahyAQAAA== + string: '{"id":"trk_b68b2c3788434d0ca26580993c2dd5de","object":"Tracker","mode":"test","tracking_code":"EZ1000000001","status":"pre_transit","status_detail":"unknown","created_at":"2022-05-04T20:26:25Z","updated_at":"2022-05-04T20:26:25Z","signed_by":null,"weight":17.6,"est_delivery_date":"2022-05-04T20:26:25Z","shipment_id":null,"carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + information received","description":null,"status":"pre_transit","status_detail":null,"datetime":"2022-04-04T20:26:25Z","source":"EasyPost","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":null,"datetime":"2022-04-05T15:15:25Z","source":"EasyPost","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/djE6dHJrX2I2OGIyYzM3ODg0MzRkMGNhMjY1ODA5OTNjMmRkNWRl","fees":[{"object":"Fee","type":"TrackerFee","amount":"0.02000","charged":false,"refunded":false}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '1224' content-type: - application/json; charset=utf-8 etag: - - W/"f1b6719e9882bb240ac9425efaead041" + - W/"f16b68a3c40a6879543f5ed686d585f2" expires: - '0' location: - - /api/v2/trackers/trk_a6d184bcf3d44edb9488d76af4262d2d + - /api/v2/trackers/trk_b68b2c3788434d0ca26580993c2dd5de pragma: - no-cache referrer-policy: @@ -61,21 +53,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3d9ff0304e4002a7027 + - 78245fb96272e171e786b9080013b132 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb9nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.105707' + - '0.169186' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -90,8 +81,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -99,31 +88,24 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/trackers/trk_a6d184bcf3d44edb9488d76af4262d2d + uri: https://api.easypost.com/v2/trackers/trk_b68b2c3788434d0ca26580993c2dd5de response: body: - string: !!binary | - H4sIAAAAAAAAA7xUXW/aMBT9K5GfoQ1pykfeJqBf6mhVqNZmmiIT3wRDcCLb6cQq/vuu4xBYR6dp - UscL8T3X955zbN9XwhkJiJariHZZp+/P4+SM+T6w+cDv91mvSxPf63rMY6RF8vkSYo35M0njFUgM - rXMGpgAojStt4lykUWzD47Dj1r8OwkpTXSqMFxIizBWK6yYcMdCUZ4jW67JgVAPisQT8YBE1rT3X - 89ruWbvTm3le0BkE7nmIOTb5zzmKpwJT5hsSiDLLWuQ78HShdyuUgBwy/gJyE1Wt36+04MUahI6M - e3Z3TKXkaElAHqf300MvrC6U/fX1jYOIjqxoNBKUoqnpeS+hPa0bONciyZ2p+dK5U1dmoGLJC81z - sev+j86aP83Xe6Xeb0rzUsawV1XLrA/YNm+UZnlMLasjSm93IBbhenPIvKkU56XQssF+8MJ+bret - v/PO+FYg5NzSOWTO0N6cD/esP+u4wXn34z0jV3eP09ndhDTGkdkTOW4c6fXc7hnZbr+1SALw5gJe - gBGjNwXs37ON0bUphlH3xPXw5ZryCypT9DFIaKagRSQkpWBNwHTYidz5dtBqaKHmuBTIF14ZdMGl - 0u1hRpVy7pECHiJedosaUQJ3CCxqab7zTCsLs6OwOadf4VzylIsD13eOOrOnloOOVYOqzvqPh1Td - UM1FVemQ3vDq08PtuGI4HbYcb+BXDA+zj9C0HdKS4rXWgEPvzWCzOM00SGEs5AxHDE+qAWYxLrjm - NNtvpFrDuqinJfItynnG46iU5pEstC5UcHpaUTkBqjZFrvRJnK9P2XLcZVc38skbe+Fo7E8ub5bh - crKajB6y8PL6fDJK/XAUe89fnt3Py+dNOLpZke1PAAAA//8DAOfQfRmZBgAA + string: '{"id":"trk_b68b2c3788434d0ca26580993c2dd5de","object":"Tracker","mode":"test","tracking_code":"EZ1000000001","status":"pre_transit","status_detail":"status_update","created_at":"2022-05-04T20:26:25Z","updated_at":"2022-05-04T20:26:25Z","signed_by":null,"weight":null,"est_delivery_date":"2022-05-04T20:26:25Z","shipment_id":null,"carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment + Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-04-04T20:26:25Z","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":"2022-04-05T09:03:25Z","source":"USPS","carrier_code":null,"tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"}}],"fees":[{"object":"Fee","type":"TrackerFee","amount":"0.02000","charged":false,"refunded":false}],"carrier_detail":{"object":"CarrierDetail","service":"First-Class + Package Service","container_type":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"object":"TrackingLocation","city":"HOUSTON","state":"TX","country":null,"zip":"77063"},"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"guaranteed_delivery_date":null,"alternate_identifier":null,"initial_delivery_attempt":null},"public_url":"https://track.easypost.com/djE6dHJrX2I2OGIyYzM3ODg0MzRkMGNhMjY1ODA5OTNjMmRkNWRl"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '1689' content-type: - application/json; charset=utf-8 etag: - - W/"40c6c0b1c381e8c02ff0a6d5808ef4cd" + - W/"935421bf0097b6498b685b5325437c4f" expires: - '0' pragma: @@ -141,21 +123,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3d9ff0304e4002a7039 + - 78245fb96272e171e786b9080013b146 x-frame-options: - SAMEORIGIN x-node: - - bigweb4nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.052093' + - '0.045831' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_retrieve.yaml b/tests/cassettes/test_user_retrieve.yaml index c634f530..1033d789 100644 --- a/tests/cassettes/test_user_retrieve.yaml +++ b/tests/cassettes/test_user_retrieve.yaml @@ -18,28 +18,29 @@ interactions: uri: https://api.easypost.com/v2/users response: body: - string: !!binary | - H4sIAAAAAAAAA9SYS4/bNhDHv8rC164XM+TweUpR9NZDDu4lRSDwMYxVyA9IdoBFkO/e0SbZZhPU - 6qEoIp0sDUnNj/zPQ/6w6esmbq4Tj50hbWyyOdgSCKoPqIPFpIvLAUJTm/vNKf/J5SITfpcJcn9O - Ix8v3bzG8ToM95tjOrCYf03T4+vTdLl7/XjZn453vwy9jLv7rc9jGh/vdjxdpnm62Lg7Xg9ZVosb - 83yJ7T2PfetZVr6MV77flJHThWuX5tcrQLcFvQXcgY6AUdMbmZPTkI5ldgAeYL7md4x94e4sfNO+ - Px/EjRfmkcs+je+4S4fTdbZ94pi4nI5VfO3+YcDz48t+5Gl/Gp63YJ+mLvfD0B/fdQcW/GdLKV1j - 7kbh+OSDFgcqt3QdZA+P03Wcvf/mRX8/fzkXN9/aDv2xP1wPYsaHJzY+pH6Q28rvf2I5kbOcyPb8 - dCKvvtw/lNNBhpZ9P1Q5y03848NXkgi5KJOwgmuGrFchOBFJ0C5rqNTgtiT+taw+q+azWH4ehu1u - L9s3bWehiAS+U4oHEJUAPmEuKEXBFswWcacwmhDBvXnJ+/bj/dfI2iYdjC/VmkQmqIy1Zkequaq1 - VWlFyDQHhzHRqNvIzRh0PoNWhag49kVZxJY8EZoaaF3IFIVa6dvIjM1DUgymedIYgoVitQPxGNjx - aoTttkrtECOGSOY2smViDibYjI4KllQ1eYliCW1QjtuKkN0OICofKSwIGxopCd8MphAABcXF5uxb - tiG05laBrJ4KHc3pi1yEhViWfI3gjIQvIKHmHCSy0UIuksGp6f8DWX78J8zhqbiHqP1tZjRZOI3U - pZpIoQ9BKlat7GvAYjCsjhkpKnubWXG2VhwGUyt5xyJtHVRwqtUiT3hF0g5zzqYQcUHakqJF29aB - qpmCzx6l62m6+FbAgrerQkY3n7JeaEaUQ+tCkgLFQM4qn5XKgIbd3KOQWReyJGwv8bwQzCB1CYm9 - 4kbAQfovKsV63bJq0pSsC1mSF0S9IOyAUHQpuYBL0oBRkBMGxKKCL1bK9KqQlaRsE3GhGak1eDdX - ZEgibE0pGSuNWGZnW3FrimWEHahIOuoFYYusqcrKRaEikzGhz06EDsGq0tw6+q8vyLOwrVAvfVhI - keKaDCU3N5/ZMWXrpHZl7Zxb+Efhh0I2OwXRyBckfYf89uNfAAAA//8DANSEovlGEQAA + string: '{"id":"user_54356a6b96c940d8913961a3c7b909f2","object":"User","parent_id":null,"name":"EasyPost + Python Client Library Tests","phone_number":"5555555555","verified":true,"created_at":"2017-03-01T03:01:34Z","balance":"0.00000","price_per_shipment":"0.00000","recharge_amount":null,"secondary_recharge_amount":null,"recharge_threshold":null,"has_billing_method":null,"cc_fee_rate":"0.03","default_insurance_amount":null,"insurance_fee_rate":"0.01","insurance_fee_minimum":"1.00","email":"dev+easypost-python@easypost.com","children":[{"id":"user_9bc25a1d07f54682997435937b30d4f0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-11T21:59:07Z","children":[]},{"id":"user_36a3958cd65a4592b1ddb742f7d3362a","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-14T03:55:52Z","children":[]},{"id":"user_f55178b032c44c7e8c2611fa84415d94","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-14T04:03:23Z","children":[]},{"id":"user_e1f80a2e05f84319960c63701a30e7e0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-07-22T11:19:45Z","children":[]},{"id":"user_6e4ee9596b174c1cad3480d47f5027ef","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-07-27T00:28:49Z","children":[]},{"id":"user_f0f42ddbb05c400492ec6bb8fb699ff7","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-04T21:47:02Z","children":[]},{"id":"user_c25107511f01413eb978b160bcf544f3","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Testing","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T03:09:38Z","children":[]},{"id":"user_15beb95593da4218991d0dde8d91c519","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Testing","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T03:14:26Z","children":[]},{"id":"user_2eb666a605dd487e92e392972fdcdd4e","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T04:49:12Z","children":[]},{"id":"user_60c5106702db498b81feef3c8fc06086","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T17:14:37Z","children":[]},{"id":"user_271679a319e047628b22b015e7395845","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T18:48:09Z","children":[]},{"id":"user_10d3414e82ef40e9b1d4cc683fb2f1fa","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T19:30:32Z","children":[]},{"id":"user_910c3ccbc07a44c49015011c298c6ad3","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T23:05:15Z","children":[]},{"id":"user_dd98700490a04734aa56843be76fc786","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-10T02:43:39Z","children":[]},{"id":"user_d344d010c21245b1a18b714e0962cf7f","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-10T19:36:43Z","children":[]},{"id":"user_f5b66eda54a74ee9b7e4b672ebb37772","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-15T20:51:54Z","children":[]}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4422' content-type: - application/json; charset=utf-8 etag: @@ -61,20 +62,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 5f1c10696255a1e0e7799365002d78f9 + - 78245fbb6272e172e786bc190013b18c x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.165558' + - '0.174809' x-version-label: - - easypost-202204112244-205415e174-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -99,16 +100,13 @@ interactions: uri: https://api.easypost.com/v2/users/user_9bc25a1d07f54682997435937b30d4f0 response: body: - string: !!binary | - H4sIAAAAAAAAA0SOS07EMBBEr4K8nkhtO7bT3nEDFpnNIBT50yFGGQ9yEiSEuDudFctW1at+P6Jk - 4cWxUZswJmWCzOBm09tBIbpeG9Quasj9DOIiHvGD0s7AlQG+P0Ojuk//G4YJG2xEm7CHPKDUaGXQ - yUUEnBUzNdyJ6y/f+/KoT8/r2o1Lqe9bN9K2Uz5XOaCpHvfIT7wYAIwxIOE0+KJW5sI1v7eDLiI1 - CkxN4bRSoKAD00k5KukNenA3ZtJS1syiwr++/f4BAAD//wMAgde8NPIAAAA= + string: '{"id":"user_9bc25a1d07f54682997435937b30d4f0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-11T21:59:07Z","children":[]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '242' content-type: - application/json; charset=utf-8 etag: @@ -130,20 +128,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 5f1c10696255a1e0e7799365002d7909 + - 78245fbb6272e173e786bc190013b19e x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq fde591f008 - - extlb2nuq fde591f008 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.039502' + - '0.036887' x-version-label: - - easypost-202204112244-205415e174-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_retrieve_me.yaml b/tests/cassettes/test_user_retrieve_me.yaml index c0d90fe9..3ea2ed7b 100644 --- a/tests/cassettes/test_user_retrieve_me.yaml +++ b/tests/cassettes/test_user_retrieve_me.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,28 +18,29 @@ interactions: uri: https://api.easypost.com/v2/users response: body: - string: !!binary | - H4sIAAAAAAAAA9SYS4/bNhDHv8rC164XM+TweUpR9NZDDu4lRSDwMYxVyA9IdoBFkO/e0SbZZhPU - 6qEoIp0sDUnNj/zPQ/6w6esmbq4Tj50hbWyyOdgSCKoPqIPFpIvLAUJTm/vNKf/J5SITfpcJcn9O - Ix8v3bzG8ToM95tjOrCYf03T4+vTdLl7/XjZn453vwy9jLv7rc9jGh/vdjxdpnm62Lg7Xg9ZVosb - 83yJ7T2PfetZVr6MV77flJHThWuX5tcrQLcFvQXcgY6AUdMbmZPTkI5ldgAeYL7md4x94e4sfNO+ - Px/EjRfmkcs+je+4S4fTdbZ94pi4nI5VfO3+YcDz48t+5Gl/Gp63YJ+mLvfD0B/fdQcW/GdLKV1j - 7kbh+OSDFgcqt3QdZA+P03Wcvf/mRX8/fzkXN9/aDv2xP1wPYsaHJzY+pH6Q28rvf2I5kbOcyPb8 - dCKvvtw/lNNBhpZ9P1Q5y03848NXkgi5KJOwgmuGrFchOBFJ0C5rqNTgtiT+taw+q+azWH4ehu1u - L9s3bWehiAS+U4oHEJUAPmEuKEXBFswWcacwmhDBvXnJ+/bj/dfI2iYdjC/VmkQmqIy1Zkequaq1 - VWlFyDQHhzHRqNvIzRh0PoNWhag49kVZxJY8EZoaaF3IFIVa6dvIjM1DUgymedIYgoVitQPxGNjx - aoTttkrtECOGSOY2smViDibYjI4KllQ1eYliCW1QjtuKkN0OICofKSwIGxopCd8MphAABcXF5uxb - tiG05laBrJ4KHc3pi1yEhViWfI3gjIQvIKHmHCSy0UIuksGp6f8DWX78J8zhqbiHqP1tZjRZOI3U - pZpIoQ9BKlat7GvAYjCsjhkpKnubWXG2VhwGUyt5xyJtHVRwqtUiT3hF0g5zzqYQcUHakqJF29aB - qpmCzx6l62m6+FbAgrerQkY3n7JeaEaUQ+tCkgLFQM4qn5XKgIbd3KOQWReyJGwv8bwQzCB1CYm9 - 4kbAQfovKsV63bJq0pSsC1mSF0S9IOyAUHQpuYBL0oBRkBMGxKKCL1bK9KqQlaRsE3GhGak1eDdX - ZEgibE0pGSuNWGZnW3FrimWEHahIOuoFYYusqcrKRaEikzGhz06EDsGq0tw6+q8vyLOwrVAvfVhI - keKaDCU3N5/ZMWXrpHZl7Zxb+Efhh0I2OwXRyBckfYf89uNfAAAA//8DANSEovlGEQAA + string: '{"id":"user_54356a6b96c940d8913961a3c7b909f2","object":"User","parent_id":null,"name":"EasyPost + Python Client Library Tests","phone_number":"5555555555","verified":true,"created_at":"2017-03-01T03:01:34Z","balance":"0.00000","price_per_shipment":"0.00000","recharge_amount":null,"secondary_recharge_amount":null,"recharge_threshold":null,"has_billing_method":null,"cc_fee_rate":"0.03","default_insurance_amount":null,"insurance_fee_rate":"0.01","insurance_fee_minimum":"1.00","email":"dev+easypost-python@easypost.com","children":[{"id":"user_9bc25a1d07f54682997435937b30d4f0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-11T21:59:07Z","children":[]},{"id":"user_36a3958cd65a4592b1ddb742f7d3362a","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-14T03:55:52Z","children":[]},{"id":"user_f55178b032c44c7e8c2611fa84415d94","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-14T04:03:23Z","children":[]},{"id":"user_e1f80a2e05f84319960c63701a30e7e0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-07-22T11:19:45Z","children":[]},{"id":"user_6e4ee9596b174c1cad3480d47f5027ef","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-07-27T00:28:49Z","children":[]},{"id":"user_f0f42ddbb05c400492ec6bb8fb699ff7","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-04T21:47:02Z","children":[]},{"id":"user_c25107511f01413eb978b160bcf544f3","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Testing","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T03:09:38Z","children":[]},{"id":"user_15beb95593da4218991d0dde8d91c519","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Testing","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T03:14:26Z","children":[]},{"id":"user_2eb666a605dd487e92e392972fdcdd4e","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T04:49:12Z","children":[]},{"id":"user_60c5106702db498b81feef3c8fc06086","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T17:14:37Z","children":[]},{"id":"user_271679a319e047628b22b015e7395845","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T18:48:09Z","children":[]},{"id":"user_10d3414e82ef40e9b1d4cc683fb2f1fa","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T19:30:32Z","children":[]},{"id":"user_910c3ccbc07a44c49015011c298c6ad3","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T23:05:15Z","children":[]},{"id":"user_dd98700490a04734aa56843be76fc786","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-10T02:43:39Z","children":[]},{"id":"user_d344d010c21245b1a18b714e0962cf7f","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-10T19:36:43Z","children":[]},{"id":"user_f5b66eda54a74ee9b7e4b672ebb37772","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-15T20:51:54Z","children":[]}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4422' content-type: - application/json; charset=utf-8 etag: @@ -63,21 +62,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b3dbff0304e8002a7075 + - 78245fbb6272e173e786bc1b0013b1a9 x-frame-options: - SAMEORIGIN x-node: - - bigweb6nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.234725' + - '0.171906' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_update.yaml b/tests/cassettes/test_user_update.yaml index d0cb9f9f..4378023a 100644 --- a/tests/cassettes/test_user_update.yaml +++ b/tests/cassettes/test_user_update.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,28 +18,29 @@ interactions: uri: https://api.easypost.com/v2/users response: body: - string: !!binary | - H4sIAAAAAAAAA9SYS4/bNhDHv8rC164XM+TweUpR9NZDDu4lRSDwMYxVyA9IdoBFkO/e0SbZZhPU - 6qEoIp0sDUnNj/zPQ/6w6esmbq4Tj50hbWy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zxb+Efhh0I2OwXRyBckfYf89uNfAAAA//8DANSEovlGEQAA + string: '{"id":"user_54356a6b96c940d8913961a3c7b909f2","object":"User","parent_id":null,"name":"EasyPost + Python Client Library Tests","phone_number":"5555555555","verified":true,"created_at":"2017-03-01T03:01:34Z","balance":"0.00000","price_per_shipment":"0.00000","recharge_amount":null,"secondary_recharge_amount":null,"recharge_threshold":null,"has_billing_method":null,"cc_fee_rate":"0.03","default_insurance_amount":null,"insurance_fee_rate":"0.01","insurance_fee_minimum":"1.00","email":"dev+easypost-python@easypost.com","children":[{"id":"user_9bc25a1d07f54682997435937b30d4f0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-11T21:59:07Z","children":[]},{"id":"user_36a3958cd65a4592b1ddb742f7d3362a","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-14T03:55:52Z","children":[]},{"id":"user_f55178b032c44c7e8c2611fa84415d94","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-14T04:03:23Z","children":[]},{"id":"user_e1f80a2e05f84319960c63701a30e7e0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-07-22T11:19:45Z","children":[]},{"id":"user_6e4ee9596b174c1cad3480d47f5027ef","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-07-27T00:28:49Z","children":[]},{"id":"user_f0f42ddbb05c400492ec6bb8fb699ff7","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-04T21:47:02Z","children":[]},{"id":"user_c25107511f01413eb978b160bcf544f3","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Testing","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T03:09:38Z","children":[]},{"id":"user_15beb95593da4218991d0dde8d91c519","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Testing","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T03:14:26Z","children":[]},{"id":"user_2eb666a605dd487e92e392972fdcdd4e","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T04:49:12Z","children":[]},{"id":"user_60c5106702db498b81feef3c8fc06086","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T17:14:37Z","children":[]},{"id":"user_271679a319e047628b22b015e7395845","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T18:48:09Z","children":[]},{"id":"user_10d3414e82ef40e9b1d4cc683fb2f1fa","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T19:30:32Z","children":[]},{"id":"user_910c3ccbc07a44c49015011c298c6ad3","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T23:05:15Z","children":[]},{"id":"user_dd98700490a04734aa56843be76fc786","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-10T02:43:39Z","children":[]},{"id":"user_d344d010c21245b1a18b714e0962cf7f","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-10T19:36:43Z","children":[]},{"id":"user_f5b66eda54a74ee9b7e4b672ebb37772","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-15T20:51:54Z","children":[]}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4422' content-type: - application/json; charset=utf-8 etag: @@ -58,28 +57,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b3dbff0304e9002a7090 + - 78245fbb6272e173e786bc1c0013b1c5 x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.178590' + - '0.273488' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -96,7 +92,7 @@ interactions: - keep-alive Content-Length: - '33' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -108,28 +104,29 @@ interactions: uri: https://api.easypost.com/v2/users/user_54356a6b96c940d8913961a3c7b909f2 response: body: - string: !!binary | - H4sIAAAAAAAAA9SYS4/bNhDHv8rC164XM+TweUpR9NZDDu4lRSDwMYxVyA9IdoBFkO/e0SbZZhPU - 6qEoIp0sDUnNj/zPQ/6w6esmbq4Tj50hbWyyOdgSCKoPqIPFpIvLAUJTm/vNKf/J5SITfpcJcn9O - Ix8v3bzG8ToM95tjOrCYf03T4+vTdLl7/XjZn453vwy9jLv7rc9jGh/vdjxdpnm62Lg7Xg9ZVosb - 83yJ7T2PfetZVr6MV77flJHThWuX5tcrQLcFvQXcgY6AUdMbmZPTkI5ldgAeYL7md4x94e4sfNO+ - Px/EjRfmkcs+je+4S4fTdbZ94pi4nI5VfO3+YcDz48t+5Gl/Gp63YJ+mLvfD0B/fdQcW/GdLKV1j - 7kbh+OSDFgcqt3QdZA+P03Wcvf/mRX8/fzkXN9/aDv2xP1wPYsaHJzY+pH6Q28rvf2I5kbOcyPb8 - dCKvvtw/lNNBhpZ9P1Q5y03848NXkgi5KJOwgmuGrFchOBFJ0C5rqNTgtiT+taw+q+azWH4ehu1u - L9s3bWehiAS+U4oHEJUAPmEuKEXBFswWcacwmhDBvXnJ+/bj/dfI2iYdjC/VmkQmqIy1Zkequaq1 - VWlFyDQHhzHRqNvIzRh0PoNWhag49kVZxJY8EZoaaF3IFIVa6dvIjM1DUgymedIYgoVitQPxGNjx - aoTttkrtECOGSOY2smViDibYjI4KllQ1eYliCW1QjtuKkN0OICofKSwIGxopCd8MphAABcXF5uxb - tiG05laBrJ4KHc3pi1yEhViWfI3gjIQvIKHmHCSy0UIuksGp6f8DWX78J8zhqbiHqP1tZjRZOI3U - pZpIoQ9BKlat7GvAYjCsjhkpKnubWXG2VhwGUyt5xyJtHVRwqtUiT3hF0g5zzqYQcUHakqJF29aB - qpmCzx6l62m6+FbAgrerQkY3n7JeaEaUQ+tCkgLFQM4qn5XKgIbd3KOQWReyJGwv8bwQzCB1CYm9 - 4kbAQfovKsV63bJq0pSsC1mSF0S9IOyAUHQpuYBL0oBRkBMGxKKCL1bK9KqQlaRsE3GhGak1eDdX - ZEgibE0pGSuNWGZnW3FrimWEHahIOuoFYYusqcrKRaEikzGhz06EDsGq0tw6+q8vyLOwrVAvfVhI - keKaDCU3N5/ZMWXrpHZl7Zxb+Efhh0I2OwXRyBckfYf89uNfAAAA//8DANSEovlGEQAA + string: '{"id":"user_54356a6b96c940d8913961a3c7b909f2","object":"User","parent_id":null,"name":"EasyPost + Python Client Library Tests","phone_number":"5555555555","verified":true,"created_at":"2017-03-01T03:01:34Z","balance":"0.00000","price_per_shipment":"0.00000","recharge_amount":null,"secondary_recharge_amount":null,"recharge_threshold":null,"has_billing_method":null,"cc_fee_rate":"0.03","default_insurance_amount":null,"insurance_fee_rate":"0.01","insurance_fee_minimum":"1.00","email":"dev+easypost-python@easypost.com","children":[{"id":"user_9bc25a1d07f54682997435937b30d4f0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-11T21:59:07Z","children":[]},{"id":"user_36a3958cd65a4592b1ddb742f7d3362a","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-14T03:55:52Z","children":[]},{"id":"user_f55178b032c44c7e8c2611fa84415d94","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-14T04:03:23Z","children":[]},{"id":"user_e1f80a2e05f84319960c63701a30e7e0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-07-22T11:19:45Z","children":[]},{"id":"user_6e4ee9596b174c1cad3480d47f5027ef","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-07-27T00:28:49Z","children":[]},{"id":"user_f0f42ddbb05c400492ec6bb8fb699ff7","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-04T21:47:02Z","children":[]},{"id":"user_c25107511f01413eb978b160bcf544f3","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Testing","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T03:09:38Z","children":[]},{"id":"user_15beb95593da4218991d0dde8d91c519","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Testing","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T03:14:26Z","children":[]},{"id":"user_2eb666a605dd487e92e392972fdcdd4e","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T04:49:12Z","children":[]},{"id":"user_60c5106702db498b81feef3c8fc06086","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T17:14:37Z","children":[]},{"id":"user_271679a319e047628b22b015e7395845","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T18:48:09Z","children":[]},{"id":"user_10d3414e82ef40e9b1d4cc683fb2f1fa","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T19:30:32Z","children":[]},{"id":"user_910c3ccbc07a44c49015011c298c6ad3","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T23:05:15Z","children":[]},{"id":"user_dd98700490a04734aa56843be76fc786","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-10T02:43:39Z","children":[]},{"id":"user_d344d010c21245b1a18b714e0962cf7f","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-10T19:36:43Z","children":[]},{"id":"user_f5b66eda54a74ee9b7e4b672ebb37772","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-15T20:51:54Z","children":[]}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4422' content-type: - application/json; charset=utf-8 etag: @@ -146,28 +143,25 @@ interactions: - chunked x-backend: - easypost - x-canary: - - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e5086233b3dcff0304e9002a70ad + - 78245fbb6272e174e786bc1c0013b1db x-frame-options: - SAMEORIGIN x-node: - - bigweb7nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.179274' + - '0.229088' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_user_update_brand.yaml b/tests/cassettes/test_user_update_brand.yaml index 05a908fa..305edf72 100644 --- a/tests/cassettes/test_user_update_brand.yaml +++ b/tests/cassettes/test_user_update_brand.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,28 +18,29 @@ interactions: uri: https://api.easypost.com/v2/users response: body: - string: !!binary | - H4sIAAAAAAAAA9SYS4/bNhDHv8rC164XM+TweUpR9NZDDu4lRSDwMYxVyA9IdoBFkO/e0SbZZhPU - 6qEoIp0sDUnNj/zPQ/6w6esmbq4Tj50hbWyyOdgSCKoPqIPFpIvLAUJTm/vNKf/J5SITfpcJcn9O - Ix8v3bzG8ToM95tjOrCYf03T4+vTdLl7/XjZn453vwy9jLv7rc9jGh/vdjxdpnm62Lg7Xg9ZVosb - 83yJ7T2PfetZVr6MV77flJHThWuX5tcrQLcFvQXcgY6AUdMbmZPTkI5ldgAeYL7md4x94e4sfNO+ - Px/EjRfmkcs+je+4S4fTdbZ94pi4nI5VfO3+YcDz48t+5Gl/Gp63YJ+mLvfD0B/fdQcW/GdLKV1j - 7kbh+OSDFgcqt3QdZA+P03Wcvf/mRX8/fzkXN9/aDv2xP1wPYsaHJzY+pH6Q28rvf2I5kbOcyPb8 - dCKvvtw/lNNBhpZ9P1Q5y03848NXkgi5KJOwgmuGrFchOBFJ0C5rqNTgtiT+taw+q+azWH4ehu1u - L9s3bWehiAS+U4oHEJUAPmEuKEXBFswWcacwmhDBvXnJ+/bj/dfI2iYdjC/VmkQmqIy1Zkequaq1 - VWlFyDQHhzHRqNvIzRh0PoNWhag49kVZxJY8EZoaaF3IFIVa6dvIjM1DUgymedIYgoVitQPxGNjx - aoTttkrtECOGSOY2smViDibYjI4KllQ1eYliCW1QjtuKkN0OICofKSwIGxopCd8MphAABcXF5uxb - tiG05laBrJ4KHc3pi1yEhViWfI3gjIQvIKHmHCSy0UIuksGp6f8DWX78J8zhqbiHqP1tZjRZOI3U - pZpIoQ9BKlat7GvAYjCsjhkpKnubWXG2VhwGUyt5xyJtHVRwqtUiT3hF0g5zzqYQcUHakqJF29aB - qpmCzx6l62m6+FbAgrerQkY3n7JeaEaUQ+tCkgLFQM4qn5XKgIbd3KOQWReyJGwv8bwQzCB1CYm9 - 4kbAQfovKsV63bJq0pSsC1mSF0S9IOyAUHQpuYBL0oBRkBMGxKKCL1bK9KqQlaRsE3GhGak1eDdX - ZEgibE0pGSuNWGZnW3FrimWEHahIOuoFYYusqcrKRaEikzGhz06EDsGq0tw6+q8vyLOwrVAvfVhI - keKaDCU3N5/ZMWXrpHZl7Zxb+Efhh0I2OwXRyBckfYf89uNfAAAA//8DANSEovlGEQAA + string: '{"id":"user_54356a6b96c940d8913961a3c7b909f2","object":"User","parent_id":null,"name":"EasyPost + Python Client Library Tests","phone_number":"5555555555","verified":true,"created_at":"2017-03-01T03:01:34Z","balance":"0.00000","price_per_shipment":"0.00000","recharge_amount":null,"secondary_recharge_amount":null,"recharge_threshold":null,"has_billing_method":null,"cc_fee_rate":"0.03","default_insurance_amount":null,"insurance_fee_rate":"0.01","insurance_fee_minimum":"1.00","email":"dev+easypost-python@easypost.com","children":[{"id":"user_9bc25a1d07f54682997435937b30d4f0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-11T21:59:07Z","children":[]},{"id":"user_36a3958cd65a4592b1ddb742f7d3362a","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-14T03:55:52Z","children":[]},{"id":"user_f55178b032c44c7e8c2611fa84415d94","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-05-14T04:03:23Z","children":[]},{"id":"user_e1f80a2e05f84319960c63701a30e7e0","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-07-22T11:19:45Z","children":[]},{"id":"user_6e4ee9596b174c1cad3480d47f5027ef","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2020-07-27T00:28:49Z","children":[]},{"id":"user_f0f42ddbb05c400492ec6bb8fb699ff7","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-04T21:47:02Z","children":[]},{"id":"user_c25107511f01413eb978b160bcf544f3","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Testing","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T03:09:38Z","children":[]},{"id":"user_15beb95593da4218991d0dde8d91c519","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Testing","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T03:14:26Z","children":[]},{"id":"user_2eb666a605dd487e92e392972fdcdd4e","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T04:49:12Z","children":[]},{"id":"user_60c5106702db498b81feef3c8fc06086","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T17:14:37Z","children":[]},{"id":"user_271679a319e047628b22b015e7395845","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T18:48:09Z","children":[]},{"id":"user_10d3414e82ef40e9b1d4cc683fb2f1fa","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T19:30:32Z","children":[]},{"id":"user_910c3ccbc07a44c49015011c298c6ad3","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-09T23:05:15Z","children":[]},{"id":"user_dd98700490a04734aa56843be76fc786","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-10T02:43:39Z","children":[]},{"id":"user_d344d010c21245b1a18b714e0962cf7f","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-10T19:36:43Z","children":[]},{"id":"user_f5b66eda54a74ee9b7e4b672ebb37772","object":"User","parent_id":"user_54356a6b96c940d8913961a3c7b909f2","name":"Python + All-Things-Tested","phone_number":"8005550100","verified":true,"created_at":"2022-03-15T20:51:54Z","children":[]}]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '4422' content-type: - application/json; charset=utf-8 etag: @@ -58,26 +57,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b3dcff0304ea002a70c6 + - 78245fb56272e174e786bc1d0013b1f8 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.316698' + - '0.288630' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -94,7 +94,7 @@ interactions: - keep-alive Content-Length: - '20' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -106,17 +106,12 @@ interactions: uri: https://api.easypost.com/v2/users/user_54356a6b96c940d8913961a3c7b909f2/brand response: body: - string: !!binary | - H4sIAAAAAAAAA1SQ206FMBBF/6W+CoXeaM+jie/+AemNiwIlbZGcGP/dgYOJPnW6urv3zHyh0aEb - MtG1jVKicZQ5KxWTQkheGSspI1YCYzV6RjZMIYL8qSaUcQFkCn0AMOS8phvGOiWfU+l1uq8h5dKG - +WJ4nHXvEzZRL25cevyrKdYIT/FeHFZFo4ntOOUdKdNnfwW0Q/Tdn5R93/9FgGzRswfFK9A3oEA0 - zLVs03RUl8HjGsy7txnEL0croNySj+25hrPijHKhhVHCKlY5qWqqRK2pbYyqVEfgh9H2o49hW1x7 - reRhnQd/tnGeNfr+AQAA//8DADRZktNeAQAA + string: '{"id":"brd_79967d34dc894866850bc8342c84dc41","color":"#123456","logo":"https://assets.easypost.com/assets/images/branding/easypost-primary-logo-7a2cf535f2.svg","logo_href":"https://www.easypost.com","name":"EasyPost","ad":null,"ad_href":null,"object":"Brand","user_id":"user_54356a6b96c940d8913961a3c7b909f2","background_color":null,"theme":"theme1"}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '350' content-type: - application/json; charset=utf-8 etag: @@ -138,21 +133,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b3dcff0304ea002a70e6 + - 78245fb56272e174e786bc1d0013b212 x-frame-options: - SAMEORIGIN x-node: - - bigweb9nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.020350' + - '0.020821' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_all.yaml b/tests/cassettes/test_webhook_all.yaml index e8f8aeea..bc15e1f7 100644 --- a/tests/cassettes/test_webhook_all.yaml +++ b/tests/cassettes/test_webhook_all.yaml @@ -8,8 +8,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -20,13 +18,12 @@ interactions: uri: https://api.easypost.com/v2/webhooks?page_size=5 response: body: - string: !!binary | - H4sIAAAAAAAAA6pWKk9NysjPzy5WsoqOrQUAAAD//wMAA9lGdQ8AAAA= + string: '{"webhooks":[]}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '15' content-type: - application/json; charset=utf-8 etag: @@ -48,21 +45,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50a6233b3deff030504002a7154 + - 78245fbb6272e176e786bc200013b2a8 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb2nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.022467' + - '0.024083' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_create.yaml b/tests/cassettes/test_webhook_create.yaml index 6dbf9fbb..b525cb60 100644 --- a/tests/cassettes/test_webhook_create.yaml +++ b/tests/cassettes/test_webhook_create.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive Content-Length: - '42' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -22,19 +22,16 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: !!binary | - H4sIAAAAAAAAAyyMQQ7CIBRE78LaWvhFEM5hYuKm+cBvrII0LU1MjHcXEpcz89582ByYZfecn6OU - YJT0HpXkQpA/Iw5Ki9MELuiJEzuw7B7kSxWu5JpTq5QD1aLQVmra19juSlls39Mb0xLp6HOqk18J - C4URmw8coONDJ/QFwApjublVJswbuviHXnuM3x8AAAD//wMAC16opKEAAAA= + string: '{"id":"hook_7a9a34aacbe811ec81cc394f23051432","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-05-04T20:26:29Z","disabled_at":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '161' content-type: - application/json; charset=utf-8 etag: - - W/"04f158f3a20fdab7f32f91ae3a23452a" + - W/"f2907b17951347c3704c06aa8fcdf1c5" expires: - '0' pragma: @@ -47,26 +44,27 @@ interactions: - chunked x-backend: - easypost + x-canary: + - direct x-content-type-options: - nosniff x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b3ddff0304eb002a70f3 + - 78245fb96272e175e786bc1e0013b224 x-frame-options: - SAMEORIGIN x-node: - - bigweb1nuq + - bigweb7nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.144016' + - '0.135799' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -83,8 +81,6 @@ interactions: - keep-alive Content-Length: - '0' - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -92,16 +88,15 @@ interactions: x-client-user-agent: - suppressed method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_442964cca64011ec8aa36715f2bd7f0e + uri: https://api.easypost.com/v2/webhooks/hook_7a9a34aacbe811ec81cc394f23051432 response: body: - string: !!binary | - H4sIAAAAAAAAA6quBQAAAP//AwBDv6ajAgAAAA== + string: '{}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2' content-type: - application/json; charset=utf-8 etag: @@ -123,21 +118,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e50c6233b3ddff0304eb002a7102 + - 78245fb96272e175e786bc1e0013b231 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb4nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.235763' + - '0.281437' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_delete.yaml b/tests/cassettes/test_webhook_delete.yaml index 5fc0c48a..dfc876ab 100644 --- a/tests/cassettes/test_webhook_delete.yaml +++ b/tests/cassettes/test_webhook_delete.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive Content-Length: - '42' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -22,19 +22,16 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: !!binary | - H4sIAAAAAAAAAyyM2wrCMBBE/yXPanNr0XyHIPhSctlgddOUdguC+O9uQFgGdmbOfMSUhBOPWl9j - NtmnPshgrVYK4sXmYTCsJkLWvRIHUcMTIjFwg9AYtkpNwAbBRvztK7Y5osV1Hbx9WRBOsRaO4gqe - II2+8VpqfZSW76rOThln5Z07adp8wH9p3hG/PwAAAP//AwAxbj0koQAAAA== + string: '{"id":"hook_7bb59622cbe811ecbe406de1722528e2","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-05-04T20:26:31Z","disabled_at":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '161' content-type: - application/json; charset=utf-8 etag: - - W/"1d44f0bc80b70cff5ce607e5677f0eb9" + - W/"c26732ab62d8f1f9bb8465354363b57a" expires: - '0' pragma: @@ -52,21 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 0c9d7bba624b3553ff235ede0035110b + - 78245fb96272e176e786bc210013b2b7 x-frame-options: - SAMEORIGIN x-node: - - bigweb2nuq + - bigweb5nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb1nuq fde591f008 - - intlb2wdc fde591f008 - - extlb1wdc fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.138548' + - '0.155813' x-version-label: - - easypost-202204012111-554198a807-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -83,8 +79,6 @@ interactions: - keep-alive Content-Length: - '0' - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -92,16 +86,15 @@ interactions: x-client-user-agent: - suppressed method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_f3fad5b0b44211ec94f66394f3cef251 + uri: https://api.easypost.com/v2/webhooks/hook_7bb59622cbe811ecbe406de1722528e2 response: body: - string: !!binary | - H4sIAAAAAAAAA6quBQAAAP//AwBDv6ajAgAAAA== + string: '{}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2' content-type: - application/json; charset=utf-8 etag: @@ -123,21 +116,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - 0c9d7bba624b3553ff235ede00351140 + - 78245fb96272e177e786bc210013b2c8 x-frame-options: - SAMEORIGIN x-node: - - bigweb8nuq + - bigweb3nuq x-permitted-cross-domain-policies: - none x-proxied: - intlb1nuq fde591f008 - - intlb1wdc fde591f008 - - extlb1wdc fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.402625' + - '0.353777' x-version-label: - - easypost-202204012111-554198a807-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/cassettes/test_webhook_retrieve.yaml b/tests/cassettes/test_webhook_retrieve.yaml index ff7c54d5..6eceab8b 100644 --- a/tests/cassettes/test_webhook_retrieve.yaml +++ b/tests/cassettes/test_webhook_retrieve.yaml @@ -10,7 +10,7 @@ interactions: - keep-alive Content-Length: - '42' - Content-type: + Content-Type: - application/json authorization: - EZTK-NONE @@ -22,19 +22,16 @@ interactions: uri: https://api.easypost.com/v2/webhooks response: body: - string: !!binary | - H4sIAAAAAAAAAyyMwQrCMBBE/yVna3fTaGy+QxC8lE2yYjU1pU1BEP/dDXicmffmo8aonLrn/ByM - IcDDzdDRACKHk2WylsF3FqEPpHYq+weHIsKFfXWkmnJkKQqvRdK2pHpXyuzalt80zYn3IU8yhYWp - cByo+hq0bqBr0J61dtg7hKswcVzJpz/02lL6/gAAAP//AwDvuxPMoQAAAA== + string: '{"id":"hook_7affffa6cbe811eca49265eed4e67fcc","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-05-04T20:26:30Z","disabled_at":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '161' content-type: - application/json; charset=utf-8 etag: - - W/"f0ec64cd7ee006e85410fd9d3398d082" + - W/"761ee21b9c0af25a85ecf3d5ee58731e" expires: - '0' pragma: @@ -52,21 +49,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3ddff0304ec002a7120 + - 78245fb76272e175e786bc1f0013b269 x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb2wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.180863' + - '0.164057' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -81,8 +77,6 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -90,22 +84,19 @@ interactions: x-client-user-agent: - suppressed method: GET - uri: https://api.easypost.com/v2/webhooks/hook_44a015f4a64011ec87ea77e0b37109ca + uri: https://api.easypost.com/v2/webhooks/hook_7affffa6cbe811eca49265eed4e67fcc response: body: - string: !!binary | - H4sIAAAAAAAAAyyMwQrCMBBE/yVna3fTaGy+QxC8lE2yYjU1pU1BEP/dDXicmffmo8aonLrn/ByM - IcDDzdDRACKHk2WylsF3FqEPpHYq+weHIsKFfXWkmnJkKQqvRdK2pHpXyuzalt80zYn3IU8yhYWp - cByo+hq0bqBr0J61dtg7hKswcVzJpz/02lL6/gAAAP//AwDvuxPMoQAAAA== + string: '{"id":"hook_7affffa6cbe811eca49265eed4e67fcc","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-05-04T20:26:30Z","disabled_at":null}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '161' content-type: - application/json; charset=utf-8 etag: - - W/"f0ec64cd7ee006e85410fd9d3398d082" + - W/"761ee21b9c0af25a85ecf3d5ee58731e" expires: - '0' pragma: @@ -123,21 +114,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3deff0304ec002a7133 + - 78245fb76272e176e786bc1f0013b274 x-frame-options: - SAMEORIGIN x-node: - - bigweb5nuq + - bigweb6nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb1nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb1nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.089139' + - '0.024657' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: @@ -154,8 +144,6 @@ interactions: - keep-alive Content-Length: - '0' - Content-type: - - application/json authorization: - EZTK-NONE user-agent: @@ -163,16 +151,15 @@ interactions: x-client-user-agent: - suppressed method: DELETE - uri: https://api.easypost.com/v2/webhooks/hook_44a015f4a64011ec87ea77e0b37109ca + uri: https://api.easypost.com/v2/webhooks/hook_7affffa6cbe811eca49265eed4e67fcc response: body: - string: !!binary | - H4sIAAAAAAAAA6quBQAAAP//AwBDv6ajAgAAAA== + string: '{}' headers: cache-control: - no-cache, no-store - content-encoding: - - gzip + content-length: + - '2' content-type: - application/json; charset=utf-8 etag: @@ -194,21 +181,20 @@ interactions: x-download-options: - noopen x-ep-request-uuid: - - c758e5066233b3deff0304ec002a713d + - 78245fb76272e176e786bc1f0013b27b x-frame-options: - SAMEORIGIN x-node: - - bigweb3nuq + - bigweb1nuq x-permitted-cross-domain-policies: - none x-proxied: - - intlb2nuq 3e97db20d4 - - intlb1wdc 3e97db20d4 - - extlb1wdc 3e97db20d4 + - intlb2nuq fde591f008 + - extlb2nuq c51cdb8bf2 x-runtime: - - '0.246376' + - '0.300071' x-version-label: - - easypost-202203171927-d8d87a16dd-master + - easypost-202205041833-02730cc398-master x-xss-protection: - 1; mode=block status: diff --git a/tests/conftest.py b/tests/conftest.py index bf397d38..e35e0553 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -51,13 +51,19 @@ def prod_api_key(): @pytest.fixture(scope="module") def vcr_config(): return { - # Replace the Authorization request header with "DUMMY" in cassettes "filter_headers": [ ("authorization", "EZTK-NONE"), ("x-client-user-agent", "suppressed"), ("user-agent", "easypost/v2 pythonclient/suppressed"), ], "decode_compressed_response": True, + "match_on": [ + "body", + "headers", + "method", + "query", + "uri", + ], } @@ -97,7 +103,7 @@ def report_type(): # If you need to re-record cassettes, increment this date by 1 @pytest.fixture def report_date(): - return "2022-04-11" + return "2022-05-04" @pytest.fixture @@ -235,7 +241,7 @@ def one_call_buy_shipment(basic_address, basic_parcel, usps_service, usps_carrie # USPS only does "next-day" pickups including Saturday but not Sunday or Holidays. @pytest.fixture def basic_pickup(basic_address): - pickup_date = "2022-04-27" + pickup_date = "2022-05-06" return { "address": basic_address, diff --git a/tests/test_batch.py b/tests/test_batch.py index 0e68d486..b1f01798 100644 --- a/tests/test_batch.py +++ b/tests/test_batch.py @@ -1,3 +1,5 @@ +# import time + import pytest import easypost diff --git a/tests/test_shipment.py b/tests/test_shipment.py index 4b173089..2d33cd6e 100644 --- a/tests/test_shipment.py +++ b/tests/test_shipment.py @@ -115,7 +115,6 @@ def test_shipment_smartrate(basic_shipment): def test_shipment_create_empty_objects(basic_shipment): shipment_data = basic_shipment shipment_data["customs_info"] = {} - shipment_data["customs_info"]["customs_item"] = {} shipment_data["options"] = None shipment_data["tax_identifiers"] = None shipment_data["reference"] = ""