diff --git a/customs.go b/customs.go index cbfba04..b74e579 100644 --- a/customs.go +++ b/customs.go @@ -48,6 +48,7 @@ type createCustomsItemRequest struct { } // CreateCustomsInfo creates a new CustomsInfo object. +// // c := easypost.New(MyEasyPostAPIKey) // out, err := c.CreateCustomsInfo( // &easypost.CustomsInfo{ @@ -95,6 +96,7 @@ func (c *Client) GetCustomsInfoWithContext(ctx context.Context, customsInfoID st } // CreateCustomsItem creates a new CustomsItem object. +// // c := easypost.New(MyEasyPostAPIKey) // out, err := c.CreateCustomsItem( // &easypost.CustomsItem{ diff --git a/tests/bootstrap_test.go b/tests/bootstrap_test.go index bf943e3..64d3724 100644 --- a/tests/bootstrap_test.go +++ b/tests/bootstrap_test.go @@ -41,6 +41,112 @@ type ClientTests struct { fixture *Fixture } +// contains returns true if the string is in the list. +func contains(elements []string, target string) bool { + for _, element := range elements { + if target == element { + return true + } + } + return false +} + +// applyCensorsToJsonList applies the censors to a JSON list. +func (c *ClientTests) applyCensorsToJsonList(list []interface{}, elementsToCensor map[string]interface{}) []interface{} { + if len(list) == 0 { + // short circuit and return the list if it is empty + return list + } + + for index, value := range list { + if value == nil { + // don't need to worry about censoring nil values + continue + } + + // nolint:gosimple + switch value.(type) { + case map[string]interface{}: + // value is a dictionary + list[index] = c.applyCensorsToJsonDictionary(value.(map[string]interface{}), elementsToCensor) + case []map[string]interface{}: + // value is a list of dictionaries + list[index] = c.applyCensorsToJsonList(value.([]interface{}), elementsToCensor) + default: + // value is a single value or a normal list, nothing to censor + } + } + + return list +} + +// applyCensorsToJsonDictionary applies the censors to a JSON dictionary. +func (c *ClientTests) applyCensorsToJsonDictionary(dictionary map[string]interface{}, elementsToCensor map[string]interface{}) map[string]interface{} { + if len(dictionary) == 0 { + // short circuit and return the dictionary if it is empty + return dictionary + } + + for key, value := range dictionary { + if value == nil { + // don't need to worry about censoring nil values + continue + } + + var censorKeys []string + for k := range elementsToCensor { + censorKeys = append(censorKeys, k) + } + + if contains(censorKeys, key) { + // element should be censored + // replace value with corresponding censor value + dictionary[key] = elementsToCensor[key] + } else { + // element doesn't need to be censored + // nolint:gosimple + switch value.(type) { + case map[string]interface{}: + // value is a dictionary + dictionary[key] = c.applyCensorsToJsonDictionary(value.(map[string]interface{}), elementsToCensor) + case []interface{}: + // value is a list + dictionary[key] = c.applyCensorsToJsonList(value.([]interface{}), elementsToCensor) + default: + // value is a single value, nothing to censor + } + } + } + + return dictionary +} + +func (c *ClientTests) censorJsonData(data string, elementsToCensor map[string]interface{}) string { + var jsonMap map[string]interface{} + mapErr := json.Unmarshal([]byte(data), &jsonMap) + if mapErr != nil { + // data is not a JSON dictionary + var jsonList []interface{} + listErr := json.Unmarshal([]byte(data), &jsonList) + + if listErr != nil { + // data is not a JSON list either + // short circuit and return the data + return data + } + + // data is a JSON list + censoredList := c.applyCensorsToJsonList(jsonList, elementsToCensor) + censoredListBytes, _ := json.Marshal(censoredList) + return string(censoredListBytes) + } + + // data is a JSON dictionary + censoredDictionary := c.applyCensorsToJsonDictionary(jsonMap, elementsToCensor) + censoredDictionaryBytes, _ := json.Marshal(censoredDictionary) + return string(censoredDictionaryBytes) +} + func (c *ClientTests) SetupTest() { pathComponents := append( []string{"cassettes/"}, strings.Split(c.T().Name(), "/")[1], @@ -48,24 +154,10 @@ func (c *ClientTests) SetupTest() { r, err := recorder.New(filepath.Join(pathComponents...)) c.Require().NoError(err) - // Strictly match the URL, method, and body of the requests - r.SetMatcher(func(r *http.Request, i cassette.Request) bool { - if r.Body == nil { - return cassette.DefaultMatcher(r, i) - } - var b bytes.Buffer - if _, err := b.ReadFrom(r.Body); err != nil { - return false - } - r.Body = ioutil.NopCloser(&b) - return cassette.DefaultMatcher(r, i) && (b.String() == "" || b.String() == i.Body) - }) - // Filter sensitive data from cassettes // Replace value has to be type specific to its corresponding struct - responseBodyScrubbers := map[string]interface{}{ + responseBodyElementsToCensor := map[string]interface{}{ "api_keys": []string{}, - "children": []string{}, "client_ip": "REDACTED", "test_credentials": map[string]string{}, "credentials": map[string]string{}, @@ -74,7 +166,29 @@ func (c *ClientTests) SetupTest() { "key": "REDACTED", "phone_number": "REDACTED", "phone": "REDACTED", + "fields": map[string]string{}, } + + // Strictly match the URL, method, and body of the requests + r.SetMatcher(func(r *http.Request, i cassette.Request) bool { + if r.Body == nil { + return cassette.DefaultMatcher(r, i) + } + var b bytes.Buffer + if _, err := b.ReadFrom(r.Body); err != nil { + return false + } + r.Body = ioutil.NopCloser(&b) + bString := b.String() + if bString == "" && i.Body == "" { + // short circuit and return true if the body is empty as it should be + return true + } + // run the request body through the same censors before comparing to the recording + bStringCensored := c.censorJsonData(bString, responseBodyElementsToCensor) + return cassette.DefaultMatcher(r, i) && (bStringCensored == i.Body) + }) + r.AddSaveFilter(func(i *cassette.Interaction) error { // Filter headers if i.Request.Headers["Authorization"] != nil { @@ -89,48 +203,15 @@ func (c *ClientTests) SetupTest() { i.Request.Headers["X-Client-User-Agent"] = []string{"REDACTED"} } - // Filter response bodies - var responseBodyBytes []byte - var responseBodyString string - - for scrubber, replaceValue := range responseBodyScrubbers { - if strings.Contains(i.Response.Body, scrubber) { - var responseBody = i.Response.Body - var arrayObjects []map[string]interface{} - - if json.Unmarshal([]byte(responseBody), &arrayObjects) == nil { - err := json.Unmarshal([]byte(responseBody), &arrayObjects) - if err != nil { - fmt.Println(err) - os.Exit(1) - } - for index, object := range arrayObjects { - for key := range object { - if key == scrubber { - arrayObjects[index][key] = replaceValue - } - } - } - - responseBodyBytes, _ = json.Marshal(arrayObjects) - } else { - var responseMap map[string]interface{} - err := json.Unmarshal([]byte(responseBody), &responseMap) - if err != nil { - fmt.Println(err) - os.Exit(1) - } - - if _, keyExists := responseMap[scrubber]; keyExists { - responseMap[scrubber] = replaceValue - } - responseBodyBytes, _ = json.Marshal(responseMap) - } - - responseBodyString = string(responseBodyBytes) - i.Response.Body = responseBodyString - } - } + // Censor request data + var requestBody = i.Request.Body + var censoredRequestBody = c.censorJsonData(requestBody, responseBodyElementsToCensor) + i.Request.Body = censoredRequestBody + + // Censor response data + var responseBody = i.Response.Body + var censoredResponseBody = c.censorJsonData(responseBody, responseBodyElementsToCensor) + i.Response.Body = censoredResponseBody return nil }) diff --git a/tests/cassettes/TestAddressAll.yaml b/tests/cassettes/TestAddressAll.yaml index 4994f26..53e42f6 100644 --- a/tests/cassettes/TestAddressAll.yaml +++ b/tests/cassettes/TestAddressAll.yaml @@ -14,28 +14,28 @@ interactions: url: https://api.easypost.com/v2/addresses method: GET response: - body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-16T20:26:52+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_c37681a01da111ed80adac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-16T20:26:52+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-16T20:26:52+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_c374ed631da111ed827aac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-16T20:26:52+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-16T20:24:37+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_734943801da111edaca0ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-16T20:24:37+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-16T20:24:37+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_734739691da111ed85baac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-16T20:24:37+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-16T20:24:37+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_72d506fb1da111edac31ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-16T20:24:37+00:00","verifications":{},"zip":"90277"}],"has_more":true}' + body: '{"addresses":[{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T16:23:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b2397d4939c911ed898bac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T16:23:15+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T16:23:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b237ff4439c911ed8c6cac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T16:23:16+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T16:20:06+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_416fbd5239c911edbdd9ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T16:20:06+00:00","verifications":{},"zip":"94107"},{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T16:20:06+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_416dea2b39c911eda133ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T16:20:06+00:00","verifications":{},"zip":"90277"},{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T16:20:06+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_4128c3ad39c911edaff8ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T16:20:06+00:00","verifications":{},"zip":"94107"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b8b6abbc8b5fe068e5a8c7748b4b85e3" + - W/"968d788609e8949d091fbf8f0cc8f27f" Expires: - "0" Pragma: @@ -46,28 +46,26 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccaaff246ba1007006fc + - 8f5eb2cf632b563aec7d9989000d8c2b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.045307" + - "0.044161" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestAddressCreate.yaml b/tests/cassettes/TestAddressCreate.yaml index 58cc184..55ae9ab 100644 --- a/tests/cassettes/TestAddressCreate.yaml +++ b/tests/cassettes/TestAddressCreate.yaml @@ -2,8 +2,9 @@ version: 1 interactions: - request: - body: '{"address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"}}' form: {} headers: Authorization: @@ -15,20 +16,20 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fac3f0fc1fe611ed96cdac1f6bc72124","mode":"test","name":"Jack + body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:21:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_407842ad39da11eda2c9ac1f6b0a0d1e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:22+00:00","verifications":{},"zip":"94107"}' + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:21:46+00:00","verifications":{},"zip":"94107"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"628606126d8e29f5b749ad857ee98409" + - W/"830a773acf113453f62f75fef411ff37" Expires: - "0" Location: - - /api/v2/addresses/adr_fac3f0fc1fe611ed96cdac1f6bc72124 + - /api/v2/addresses/adr_407842ad39da11eda2c9ac1f6b0a0d1e Pragma: - no-cache Referrer-Policy: @@ -37,26 +38,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccaaff246ba100700720 + - 8f5eb2cf632b563aec7d9989000d8c40 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.033966" + - "0.034110" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestAddressCreateAndVerify.yaml b/tests/cassettes/TestAddressCreateAndVerify.yaml index ffa4e18..22d2fab 100644 --- a/tests/cassettes/TestAddressCreateAndVerify.yaml +++ b/tests/cassettes/TestAddressCreateAndVerify.yaml @@ -2,8 +2,8 @@ version: 1 interactions: - request: - body: '{"verify":["delivery"],"address":{"street1":"417 montgomery street","street2":"FL - 5","city":"San Francisco","state":"CA","zip":"94104","country":"US","company":"EasyPost","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","company":"EasyPost","country":"US","email":"REDACTED","phone":"REDACTED","state":"CA","street1":"417 + montgomery street","street2":"FL 5","zip":"94104"},"verify":["delivery"]}' form: {} headers: Authorization: @@ -15,8 +15,8 @@ interactions: url: https://api.easypost.com/v2/addresses/create_and_verify method: POST response: - body: '{"address":{"carrier_facility":null,"city":"SAN FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-08-19T17:47:23+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_fb11cfe01fe611edaf5aac1f6bc7b362","mode":"test","name":null,"object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"417 - MONTGOMERY ST FL 5","street2":"","updated_at":"2022-08-19T17:47:23+00:00","verifications":{"delivery":{"details":{"latitude":37.79342,"longitude":-122.40288,"time_zone":"America/Los_Angeles"},"errors":[{"code":"E.SECONDARY_INFORMATION.INVALID","field":"street2","message":"Invalid + body: '{"address":{"carrier_facility":null,"city":"SAN FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-09-21T18:21:46+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_40a95f8a39da11edadf2ac1f6bc7b362","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"417 + MONTGOMERY ST FL 5","street2":"","updated_at":"2022-09-21T18:21:46+00:00","verifications":{"delivery":{"details":{"latitude":37.79342,"longitude":-122.40288,"time_zone":"America/Los_Angeles"},"errors":[{"code":"E.SECONDARY_INFORMATION.INVALID","field":"street2","message":"Invalid secondary information(Apt/Suite#)","suggestion":null}],"success":true}},"zip":"94104-1129"}}' headers: Cache-Control: @@ -24,11 +24,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"12a5e135df1b010153e6d97e478a5a30" + - W/"5bd1cefbdc4516f32efe588ac8ddbd5e" Expires: - "0" Location: - - /api/v2/addresses/adr_fb11cfe01fe611edaf5aac1f6bc7b362 + - /api/v2/addresses/adr_40a95f8a39da11edadf2ac1f6bc7b362 Pragma: - no-cache Referrer-Policy: @@ -42,21 +42,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccabff246ba10070074b + - 8f5eb2cf632b563aec7d9989000d8c50 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.048570" + - "0.117256" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestAddressCreateVerify.yaml b/tests/cassettes/TestAddressCreateVerify.yaml index 79e6699..f801593 100644 --- a/tests/cassettes/TestAddressCreateVerify.yaml +++ b/tests/cassettes/TestAddressCreateVerify.yaml @@ -2,8 +2,8 @@ version: 1 interactions: - request: - body: '{"verify":["delivery"],"address":{"street1":"417 montgomery street","street2":"FL - 5","city":"San Francisco","state":"CA","zip":"94104","country":"US","company":"EasyPost","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","company":"EasyPost","country":"US","email":"REDACTED","phone":"REDACTED","state":"CA","street1":"417 + montgomery street","street2":"FL 5","zip":"94104"},"verify":["delivery"]}' form: {} headers: Authorization: @@ -15,8 +15,8 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"SAN FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-08-19T17:47:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fb4f53d71fe611edafceac1f6bc7b362","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"417 - MONTGOMERY ST FL 5","street2":"","updated_at":"2022-08-19T17:47:23+00:00","verifications":{"delivery":{"details":{"latitude":37.79342,"longitude":-122.40288,"time_zone":"America/Los_Angeles"},"errors":[{"code":"E.SECONDARY_INFORMATION.INVALID","field":"street2","message":"Invalid + body: '{"carrier_facility":null,"city":"SAN FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-09-21T18:21:47+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_40d2da3a39da11edae02ac1f6bc7b362","mode":"test","name":null,"object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"417 + MONTGOMERY ST FL 5","street2":"","updated_at":"2022-09-21T18:21:47+00:00","verifications":{"delivery":{"details":{"latitude":37.79342,"longitude":-122.40288,"time_zone":"America/Los_Angeles"},"errors":[{"code":"E.SECONDARY_INFORMATION.INVALID","field":"street2","message":"Invalid secondary information(Apt/Suite#)","suggestion":null}],"success":true}},"zip":"94104-1129"}' headers: Cache-Control: @@ -24,11 +24,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"ddb967be5ec4e86cef53041807b98a91" + - W/"048b40eb04f3612f9ec62eec6afdcfec" Expires: - "0" Location: - - /api/v2/addresses/adr_fb4f53d71fe611edafceac1f6bc7b362 + - /api/v2/addresses/adr_40d2da3a39da11edae02ac1f6bc7b362 Pragma: - no-cache Referrer-Policy: @@ -42,21 +42,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccabff246ba100700774 + - 8f5eb2cf632b563aec7d9989000d8c7f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.044064" + - "0.067032" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestAddressCreateVerifyStrict.yaml b/tests/cassettes/TestAddressCreateVerifyStrict.yaml index e6379b0..68df0d7 100644 --- a/tests/cassettes/TestAddressCreateVerifyStrict.yaml +++ b/tests/cassettes/TestAddressCreateVerifyStrict.yaml @@ -2,9 +2,9 @@ version: 1 interactions: - request: - body: '{"verify_strict":["true"],"address":{"street1":"388 Townsend St","street2":"Apt - 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"verify_strict":["true"]}' form: {} headers: Authorization: @@ -16,20 +16,20 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fb8de7f31fe611ed9815ac1f6b0a0d1e","mode":"test","name":"JACK + body: '{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:21:47+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_41180cea39da11eda2f9ac1f6b0a0d1e","mode":"test","name":"JACK SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2022-08-19T17:47:24+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2022-09-21T18:21:47+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b18886f61aaeee07c9ca4181fe267bb8" + - W/"41da8201240687444371c79efbc3cf04" Expires: - "0" Location: - - /api/v2/addresses/adr_fb8de7f31fe611ed9815ac1f6b0a0d1e + - /api/v2/addresses/adr_41180cea39da11eda2f9ac1f6b0a0d1e Pragma: - no-cache Referrer-Policy: @@ -43,21 +43,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccacff246ba10070079f + - 8f5eb2cf632b563bec7d9989000d8cc1 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.045934" + - "0.045599" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestAddressRetrieve.yaml b/tests/cassettes/TestAddressRetrieve.yaml index d8f84b3..487ab15 100644 --- a/tests/cassettes/TestAddressRetrieve.yaml +++ b/tests/cassettes/TestAddressRetrieve.yaml @@ -2,8 +2,9 @@ version: 1 interactions: - request: - body: '{"address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"}}' form: {} headers: Authorization: @@ -15,20 +16,20 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fba9f4f21fe611edb069ac1f6bc7b362","mode":"test","name":"Jack + body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:21:47+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_413be4c739da11eda519ac1f6bc7bdc6","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:24+00:00","verifications":{},"zip":"94107"}' + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:21:47+00:00","verifications":{},"zip":"94107"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"1ee62d8b2cb34c5f1aac9575de835577" + - W/"6a3f5cb84e1e3b3a8b733757e7c0e087" Expires: - "0" Location: - - /api/v2/addresses/adr_fba9f4f21fe611edb069ac1f6bc7b362 + - /api/v2/addresses/adr_413be4c739da11eda519ac1f6bc7bdc6 Pragma: - no-cache Referrer-Policy: @@ -42,7 +43,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccacff246ba1007007a9 + - 8f5eb2cf632b563bec7d9989000d8cd4 X-Frame-Options: - SAMEORIGIN X-Node: @@ -50,13 +51,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.028685" + - "0.033819" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -70,19 +71,19 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses/adr_fba9f4f21fe611edb069ac1f6bc7b362 + url: https://api.easypost.com/v2/addresses/adr_413be4c739da11eda519ac1f6bc7bdc6 method: GET response: - body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fba9f4f21fe611edb069ac1f6bc7b362","mode":"test","name":"Jack + body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:21:47+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_413be4c739da11eda519ac1f6bc7bdc6","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:24+00:00","verifications":{},"zip":"94107"}' + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:21:47+00:00","verifications":{},"zip":"94107"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"1ee62d8b2cb34c5f1aac9575de835577" + - W/"6a3f5cb84e1e3b3a8b733757e7c0e087" Expires: - "0" Pragma: @@ -98,21 +99,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccacff246ba1007007b2 + - 8f5eb2cf632b563bec7d9989000d8cff X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.102166" + - "0.028370" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestAddressVerify.yaml b/tests/cassettes/TestAddressVerify.yaml index 4468ac8..834c9cf 100644 --- a/tests/cassettes/TestAddressVerify.yaml +++ b/tests/cassettes/TestAddressVerify.yaml @@ -2,8 +2,9 @@ version: 1 interactions: - request: - body: '{"address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"}}' form: {} headers: Authorization: @@ -15,20 +16,20 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_fbec519f1fe611edb0c1ac1f6bc7b362","mode":"test","name":"Jack + body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:21:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_4184ab4139da11eda31eac1f6b0a0d1e","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:24+00:00","verifications":{},"zip":"94107"}' + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:21:48+00:00","verifications":{},"zip":"94107"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"ead968f42f9c8425fa197ea58270b89c" + - W/"fb6f1d51302395f22aff6c1854d3b1e6" Expires: - "0" Location: - - /api/v2/addresses/adr_fbec519f1fe611edb0c1ac1f6bc7b362 + - /api/v2/addresses/adr_4184ab4139da11eda31eac1f6b0a0d1e Pragma: - no-cache Referrer-Policy: @@ -37,28 +38,26 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccacff246ba1007007d4 + - 8f5eb2cf632b563cec7d9989000d8d1a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.034961" + - "0.040138" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -72,23 +71,23 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/addresses/adr_fbec519f1fe611edb0c1ac1f6bc7b362/verify + url: https://api.easypost.com/v2/addresses/adr_4184ab4139da11eda31eac1f6b0a0d1e/verify method: GET response: - body: '{"address":{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:24+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_fc0c8c0f1fe611ed98baac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2022-08-19T17:47:24+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"}}' + body: '{"address":{"carrier_facility":null,"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:21:48+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_41ac623939da11eda532ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":"","updated_at":"2022-09-21T18:21:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"}}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"7af0e03d4ffe43d0e8bb07f808550f58" + - W/"e8841395dd7f88e4371498a408a926f7" Expires: - "0" Location: - - /api/v2/addresses/adr_fc0c8c0f1fe611ed98baac1f6bc72124 + - /api/v2/addresses/adr_41ac623939da11eda532ac1f6bc7bdc6 Pragma: - no-cache Referrer-Policy: @@ -102,21 +101,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccacff246ba1007007e3 + - 8f5eb2cf632b563cec7d9989000d8d45 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.047957" + - "0.049421" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestApiKeysAll.yaml b/tests/cassettes/TestApiKeysAll.yaml index e250d5e..99efa2a 100644 --- a/tests/cassettes/TestApiKeysAll.yaml +++ b/tests/cassettes/TestApiKeysAll.yaml @@ -12,14 +12,14 @@ interactions: url: https://api.easypost.com/v2/api_keys method: GET response: - body: '{"children":[],"id":"user_a76997d126dd488f8ad22d52301300b0","keys":[]}' + body: '{"children":[{"children":[],"id":"user_1d75fce0f97c4c3aa42ea008528a1ef0","keys":[]},{"children":[],"id":"user_6bf3fb5f29984af69d11d4b73cfeaf45","keys":[]},{"children":[],"id":"user_e1c08a41e8cc42a3844cf69c621ceaa4","keys":[]},{"children":[],"id":"user_3f50745c5e954c8cb5291be5bb865564","keys":[]},{"children":[],"id":"user_8187177ecada4f4eabbb63efb949fd4b","keys":[]},{"children":[],"id":"user_e19439099a66487d88e67a7d15fe2674","keys":[]},{"children":[],"id":"user_7835460ae64943399d7c1e3d044b6297","keys":[]},{"children":[],"id":"user_62d6974267664be5bf8145e63f276b5b","keys":[]},{"children":[],"id":"user_cee546d8c66741beb37d868ab55c33d7","keys":[]},{"children":[],"id":"user_c9c49c9dc4914ec1944d75a7c4c8b0f0","keys":[]},{"children":[],"id":"user_9dbf6f15404144c4aa82bb8307f72044","keys":[]},{"children":[],"id":"user_95932f5a5b8c4ab0945194e6c598e4f4","keys":[]},{"children":[],"id":"user_47c4bb6afd6a431ba4eac7e9156cd5f0","keys":[]},{"children":[],"id":"user_7659605a245a417184471cd1d0158afa","keys":[]},{"children":[],"id":"user_250ebf668e894efa80954c9b83b1ab09","keys":[]},{"children":[],"id":"user_27fcc563b8284e5f8397e5ef9dff575d","keys":[]},{"children":[],"id":"user_05a6a09963c24498ab9dd1a4fea1ece0","keys":[]},{"children":[],"id":"user_d8f15f6501704f208d09c06515914ac6","keys":[]},{"children":[],"id":"user_f78d0b7b091d4b7cbdc930c417f1fcdb","keys":[]},{"children":[],"id":"user_1dd9b4bb7b39431587f21ad0a597646d","keys":[]},{"children":[],"id":"user_f717cf4d121f45eebefd75067d6f863d","keys":[]},{"children":[],"id":"user_be3064cfc1da4a118c1b10df28a56b7e","keys":[]},{"children":[],"id":"user_7fdb66f7e8b04471983619b81adf7bc1","keys":[]},{"children":[],"id":"user_010f0b8deb0444a68115fb0279ad9be6","keys":[]},{"children":[],"id":"user_20b3b0634f4f42e6b8ffa2dae194dc8d","keys":[]},{"children":[],"id":"user_85f45115de214f7f8d6f399f11765e8d","keys":[]},{"children":[],"id":"user_cb22d053980d4f9e882f54fe7237a00c","keys":[]},{"children":[],"id":"user_b15ac22820c64e0d8214b05e4cc9d432","keys":[]}],"id":"user_a76997d126dd488f8ad22d52301300b0","keys":[]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"1f564a6343b826e50e6a759c1de6a401" + - W/"b23faf1c2d1ae0fd25c6d46d47f6a4bd" Expires: - "0" Pragma: @@ -35,21 +35,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccadff246ba100700809 + - 8f5eb2cf632b563cec7d9989000d8d5b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.052239" + - "0.038272" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchAddRemoveShipment.yaml b/tests/cassettes/TestBatchAddRemoveShipment.yaml index 4eb87aa..89c5324 100644 --- a/tests/cassettes/TestBatchAddRemoveShipment.yaml +++ b/tests/cassettes/TestBatchAddRemoveShipment.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:25+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_fc4d618c1fe611edb166ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:47:25+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:47:25Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:25+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_fc4fe5201fe611ed9922ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:25+00:00","verifications":{},"zip":"90277"},"id":"shp_051fbbaf59ec48798fea0bae2469fc50","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:47:25Z","height":4,"id":"prcl_3a71debb2bba407d904b1c246570d9df","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:25Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:47:26Z","date_advance":0,"id":"pl_23ad7a59be6241eba1d8237b201c42fe","integrated_form":"none","label_date":"2022-08-19T17:47:26Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/04048c9e4a6d4071bfd2993dc1c1084f.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:47:26Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_65747b6ca84a48738d1cb260056bfdf9","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_051fbbaf59ec48798fea0bae2469fc50","updated_at":"2022-08-19T17:47:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b692dee044e244e69c9fc9ee0df23bc2","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_051fbbaf59ec48798fea0bae2469fc50","updated_at":"2022-08-19T17:47:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_320f550cf7a9452b967651c3a0f22a49","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_051fbbaf59ec48798fea0bae2469fc50","updated_at":"2022-08-19T17:47:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_a35cc2825641454c9020e1bcbc5eba76","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_051fbbaf59ec48798fea0bae2469fc50","updated_at":"2022-08-19T17:47:25Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:25+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_fc4fe5201fe611ed9922ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:25+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_65747b6ca84a48738d1cb260056bfdf9","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_051fbbaf59ec48798fea0bae2469fc50","updated_at":"2022-08-19T17:47:26Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:25+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_fc4d618c1fe611edb166ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:47:25+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:47:26Z","est_delivery_date":null,"fees":[],"id":"trk_c230909933e24e73aad037eeceb0fdf9","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MyMzA5MDk5MzNlMjRlNzNhYWQwMzdlZWNlYjBmZGY5","shipment_id":"shp_051fbbaf59ec48798fea0bae2469fc50","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133883554","tracking_details":[],"updated_at":"2022-08-19T17:47:26Z","weight":null},"tracking_code":"9400100109361133883554","updated_at":"2022-08-19T17:47:26Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:21:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_41f5de9639da11eda342ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:21:49+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:21:49Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:21:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_41f7f8ef39da11edae6fac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:21:49+00:00","verifications":{},"zip":"90277"},"id":"shp_d98895a968714ad6ac02e478730955aa","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:21:49Z","height":4,"id":"prcl_3b97e20c99cb4554ad573dd9450c1598","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:21:49Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:21:49Z","date_advance":0,"id":"pl_f04a2956d6f4413e8e2742081a9f2dd0","integrated_form":"none","label_date":"2022-09-21T18:21:49Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/d16b18df187f4dc1957dc5b66eba3d9f.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:21:49Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:21:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_13ffd80063f74432bad803110695abfa","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_d98895a968714ad6ac02e478730955aa","updated_at":"2022-09-21T18:21:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:21:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_7ad99153ff3a463395eeaaa020d3737b","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_d98895a968714ad6ac02e478730955aa","updated_at":"2022-09-21T18:21:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:21:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ecb776a50be14d609970c27a64710c3e","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_d98895a968714ad6ac02e478730955aa","updated_at":"2022-09-21T18:21:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:21:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_5004e1d508da4452a04eb71ed0615376","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_d98895a968714ad6ac02e478730955aa","updated_at":"2022-09-21T18:21:49Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:21:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_41f7f8ef39da11edae6fac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:21:49+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:21:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_5004e1d508da4452a04eb71ed0615376","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_d98895a968714ad6ac02e478730955aa","updated_at":"2022-09-21T18:21:49Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:21:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_41f5de9639da11eda342ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:21:49+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:21:49Z","est_delivery_date":null,"fees":[],"id":"trk_32cc92b085b44f679108e423615c86c1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzMyY2M5MmIwODViNDRmNjc5MTA4ZTQyMzYxNWM4NmMx","shipment_id":"shp_d98895a968714ad6ac02e478730955aa","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710022","tracking_details":[],"updated_at":"2022-09-21T18:21:49Z","weight":null},"tracking_code":"9400100109361138710022","updated_at":"2022-09-21T18:21:49Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"046322affc0506e3b740431365755c52" + - W/"92872b5fabc74941d47ffc06ba9568a8" Expires: - "0" Location: - - /api/v2/shipments/shp_051fbbaf59ec48798fea0bae2469fc50 + - /api/v2/shipments/shp_d98895a968714ad6ac02e478730955aa Pragma: - no-cache Referrer-Policy: @@ -54,7 +55,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccadff246ba100700827 + - 8f5eb2cf632b563cec7d9989000d8d84 X-Frame-Options: - SAMEORIGIN X-Node: @@ -62,23 +63,24 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.261617" + - "0.996452" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -91,29 +93,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:26+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_fd3214ca1fe611edb262ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:47:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:47:26Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:26+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_fd33e66e1fe611ed9a34ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:26+00:00","verifications":{},"zip":"90277"},"id":"shp_5576774e31b94a2bb197c9228349c36c","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:47:26Z","height":4,"id":"prcl_f8f895863e11443c8292b32f7289db4a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:26Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:47:27Z","date_advance":0,"id":"pl_6cd2555714e545f2b2641f1bea3939be","integrated_form":"none","label_date":"2022-08-19T17:47:27Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/6af3e1bdb32c45cfa4af08eee2cdd4cf.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:47:27Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_3a69df4a3a614d34ab34a2c6a9638c6b","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_5576774e31b94a2bb197c9228349c36c","updated_at":"2022-08-19T17:47:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0cfcef03f45c4b4a9fda1bc870e8fdf7","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_5576774e31b94a2bb197c9228349c36c","updated_at":"2022-08-19T17:47:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d5678cdcc77d448f88e8789c7059e272","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_5576774e31b94a2bb197c9228349c36c","updated_at":"2022-08-19T17:47:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_7ef6897d37354eeebac580a1dcf79e94","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_5576774e31b94a2bb197c9228349c36c","updated_at":"2022-08-19T17:47:27Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:26+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_fd33e66e1fe611ed9a34ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:26+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0cfcef03f45c4b4a9fda1bc870e8fdf7","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_5576774e31b94a2bb197c9228349c36c","updated_at":"2022-08-19T17:47:27Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:26+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_fd3214ca1fe611edb262ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:47:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:47:27Z","est_delivery_date":null,"fees":[],"id":"trk_347e0a12a5604301ada9535936ee582c","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzM0N2UwYTEyYTU2MDQzMDFhZGE5NTM1OTM2ZWU1ODJj","shipment_id":"shp_5576774e31b94a2bb197c9228349c36c","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133883561","tracking_details":[],"updated_at":"2022-08-19T17:47:27Z","weight":null},"tracking_code":"9400100109361133883561","updated_at":"2022-08-19T17:47:27Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:21:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_42ae0a0739da11eda386ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:21:50+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:21:50Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:21:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_42b072f039da11ed9cb0ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:21:50+00:00","verifications":{},"zip":"90277"},"id":"shp_62772a4568c14a0e9282fb100d2e1d43","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:21:50Z","height":4,"id":"prcl_89cd7ca3a8924fc3b55f218a1d070565","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:21:50Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:21:50Z","date_advance":0,"id":"pl_786c0932ac6e464e99e607fa8a2eca2f","integrated_form":"none","label_date":"2022-09-21T18:21:50Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/cf33a8a079004d5b9ed08cd780712080.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:21:51Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:21:50Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_45823ab71d5644038cb4396c0c8fe9e2","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_62772a4568c14a0e9282fb100d2e1d43","updated_at":"2022-09-21T18:21:50Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:21:50Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_53fcba1cd9b44398a394e2a2847b99ec","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_62772a4568c14a0e9282fb100d2e1d43","updated_at":"2022-09-21T18:21:50Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:21:50Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_724d919444ae469ca5402869380cf4d8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_62772a4568c14a0e9282fb100d2e1d43","updated_at":"2022-09-21T18:21:50Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:21:50Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_e4132dcf38174f88ae69ab3e17f3441f","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_62772a4568c14a0e9282fb100d2e1d43","updated_at":"2022-09-21T18:21:50Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:21:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_42b072f039da11ed9cb0ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:21:50+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:21:50Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_724d919444ae469ca5402869380cf4d8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_62772a4568c14a0e9282fb100d2e1d43","updated_at":"2022-09-21T18:21:50Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:21:50+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_42ae0a0739da11eda386ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:21:50+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:21:51Z","est_delivery_date":null,"fees":[],"id":"trk_6be50a7976a045a481f314443800cbcd","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzZiZTUwYTc5NzZhMDQ1YTQ4MWYzMTQ0NDM4MDBjYmNk","shipment_id":"shp_62772a4568c14a0e9282fb100d2e1d43","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710039","tracking_details":[],"updated_at":"2022-09-21T18:21:51Z","weight":null},"tracking_code":"9400100109361138710039","updated_at":"2022-09-21T18:21:51Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"3f9e6ca7a1042d499b92d47890885a88" + - W/"d366f5a68a3e7769bd4c00f3abf375ea" Expires: - "0" Location: - - /api/v2/shipments/shp_5576774e31b94a2bb197c9228349c36c + - /api/v2/shipments/shp_62772a4568c14a0e9282fb100d2e1d43 Pragma: - no-cache Referrer-Policy: @@ -127,21 +129,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccaeff246ba1007008da + - 8f5eb2cf632b563eec7d9989000d8e32 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.472579" + - "1.123655" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -160,14 +162,14 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"id":"batch_550501e8b761489c8f3c7e00ce4df0b1","object":"Batch","mode":"test","state":"created","num_shipments":0,"reference":null,"created_at":"2022-08-19T17:47:28Z","updated_at":"2022-08-19T17:47: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}' + body: '{"created_at":"2022-09-21T18:21:51Z","id":"batch_6d221dec7c7046d8b2c5d78ec220bb90","label_url":null,"mode":"test","num_shipments":0,"object":"EasyPost::Entity::Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:51Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"bf45d31044ce77a1a5a922a84679b44f" + - W/"3e9e425f1b2de7510168593043c3210f" Expires: - "0" Pragma: @@ -183,28 +185,28 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb0ff246ba100700995 + - 8f5eb2cf632b563fec7d9989000d8ea6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.042374" + - "0.033918" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"shipments":{"0":"shp_051fbbaf59ec48798fea0bae2469fc50","1":"shp_5576774e31b94a2bb197c9228349c36c"}}' + body: '{"shipments":{"0":"shp_d98895a968714ad6ac02e478730955aa","1":"shp_62772a4568c14a0e9282fb100d2e1d43"}}' form: {} headers: Authorization: @@ -213,17 +215,17 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_550501e8b761489c8f3c7e00ce4df0b1/add_shipments + url: https://api.easypost.com/v2/batches/batch_6d221dec7c7046d8b2c5d78ec220bb90/add_shipments method: POST response: - body: '{"id":"batch_550501e8b761489c8f3c7e00ce4df0b1","object":"Batch","mode":"test","state":"created","num_shipments":2,"reference":null,"created_at":"2022-08-19T17:47:28Z","updated_at":"2022-08-19T17:47:28Z","scan_form":null,"shipments":[{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361133883554","id":"shp_051fbbaf59ec48798fea0bae2469fc50"},{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361133883561","id":"shp_5576774e31b94a2bb197c9228349c36c"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":2,"postage_purchase_failed":0},"pickup":null,"label_url":null}' + body: '{"created_at":"2022-09-21T18:21:51Z","id":"batch_6d221dec7c7046d8b2c5d78ec220bb90","label_url":null,"mode":"test","num_shipments":2,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"postage_purchased","id":"shp_62772a4568c14a0e9282fb100d2e1d43","reference":null,"tracking_code":"9400100109361138710039"},{"batch_message":null,"batch_status":"postage_purchased","id":"shp_d98895a968714ad6ac02e478730955aa","reference":null,"tracking_code":"9400100109361138710022"}],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":2,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:51Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"5d90edf0ed482a5d7dc795228a0cfbbe" + - W/"434ea509128176c3828381f6788cde4f" Expires: - "0" Pragma: @@ -239,28 +241,28 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb0ff246ba1007009c4 + - 8f5eb2cf632b563fec7d9989000d8eb6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.149860" + - "0.043923" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"shipments":{"0":"shp_051fbbaf59ec48798fea0bae2469fc50","1":"shp_5576774e31b94a2bb197c9228349c36c"}}' + body: '{"shipments":{"0":"shp_d98895a968714ad6ac02e478730955aa","1":"shp_62772a4568c14a0e9282fb100d2e1d43"}}' form: {} headers: Authorization: @@ -269,17 +271,17 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_550501e8b761489c8f3c7e00ce4df0b1/remove_shipments + url: https://api.easypost.com/v2/batches/batch_6d221dec7c7046d8b2c5d78ec220bb90/remove_shipments method: POST response: - body: '{"id":"batch_550501e8b761489c8f3c7e00ce4df0b1","object":"Batch","mode":"test","state":"purchased","num_shipments":0,"reference":null,"created_at":"2022-08-19T17:47:28Z","updated_at":"2022-08-19T17:47:29Z","scan_form":null,"shipments":[],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' + body: '{"created_at":"2022-09-21T18:21:51Z","id":"batch_6d221dec7c7046d8b2c5d78ec220bb90","label_url":null,"mode":"test","num_shipments":0,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"purchased","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:51Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"2c957c381c0f34f33097d2486ffdd189" + - W/"daf4ed19fb177176af1023e395cff9ba" Expires: - "0" Pragma: @@ -295,21 +297,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb1ff246ba1007009fb + - 8f5eb2cf632b563fec7d9989000d8ec2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.044679" + - "0.090419" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchAll.yaml b/tests/cassettes/TestBatchAll.yaml index 230cf40..b17370b 100644 --- a/tests/cassettes/TestBatchAll.yaml +++ b/tests/cassettes/TestBatchAll.yaml @@ -14,16 +14,16 @@ interactions: url: https://api.easypost.com/v2/batches method: GET response: - body: '{"batches":[{"id":"batch_2dffde0589804fbe87169c522fe89c7e","object":"Batch","mode":"test","state":"created","num_shipments":0,"reference":null,"created_at":"2022-08-16T20:24:11Z","updated_at":"2022-08-16T20:24:11Z","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},{"id":"batch_435adfe37d784ff79c5eb810c94f58fc","object":"Batch","mode":"test","state":"purchase_failed","num_shipments":1,"reference":null,"created_at":"2022-08-16T20:24:11Z","updated_at":"2022-08-16T20:24:11Z","scan_form":null,"shipments":[{"batch_status":"postage_purchase_failed","batch_message":"A - carrier and service must be provided to purchase through a Batch.","reference":null,"tracking_code":null,"id":"shp_5cff2c499ace470baf25b5642a307772"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":1},"pickup":null,"label_url":null},{"id":"batch_5a471b58218842e3a7dade0a4328dd1c","object":"Batch","mode":"test","state":"created","num_shipments":0,"reference":null,"created_at":"2022-08-16T20:24:12Z","updated_at":"2022-08-16T20:24:12Z","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},{"id":"batch_9feab5db1d2d4e698c63c6b9cad41be4","object":"Batch","mode":"test","state":"purchase_failed","num_shipments":2,"reference":null,"created_at":"2022-08-16T20:24:12Z","updated_at":"2022-08-16T20:24:12Z","scan_form":null,"shipments":[{"batch_status":"postage_purchase_failed","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_d52c892f8edb404993aaddc082d4bd29"},{"batch_status":"postage_purchase_failed","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_38b06d9d12c542658e74d620a2ebc415"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":2},"pickup":null,"label_url":null},{"id":"batch_12a549db561141d1be99309a2a55aa39","object":"Batch","mode":"test","state":"purchase_failed","num_shipments":1,"reference":null,"created_at":"2022-08-16T20:24:12Z","updated_at":"2022-08-16T20:24:12Z","scan_form":null,"shipments":[{"batch_status":"postage_purchase_failed","batch_message":"A - carrier and service must be provided to purchase through a Batch.","reference":null,"tracking_code":null,"id":"shp_1bfb182e845845a4b782db18c99e3c40"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":1},"pickup":null,"label_url":null}],"has_more":true}' + body: '{"batches":[{"created_at":"2022-08-22T18:42:33Z","id":"batch_aac730f823f44c9b9ad71c8fcb29d405","label_url":null,"mode":"test","num_shipments":0,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-08-22T18:42:33Z"},{"created_at":"2022-09-19T20:12:08Z","id":"batch_61d855ec55354e82accf9bb049731b14","label_url":null,"mode":"test","num_shipments":0,"object":"Batch","pickup":null,"reference":null,"scan_form":{"address":null,"batch_id":"batch_61d855ec55354e82accf9bb049731b14","confirmation":null,"created_at":"2022-09-19T20:12:08Z","form_file_type":null,"form_url":null,"id":"sf_632316f858164c4aab6f5e50282c0b90","message":"Please + provide a valid list of shipments.","object":"ScanForm","status":"failed","tracking_codes":[],"updated_at":"2022-09-19T20:12:08Z"},"shipments":[],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-19T20:12:08Z"},{"created_at":"2022-09-19T20:22:23Z","id":"batch_3d5e339ae4a243be8ece39b774c34bf1","label_url":null,"mode":"test","num_shipments":0,"object":"Batch","pickup":null,"reference":null,"scan_form":{"address":null,"batch_id":"batch_3d5e339ae4a243be8ece39b774c34bf1","confirmation":null,"created_at":"2022-09-19T20:22:23Z","form_file_type":null,"form_url":null,"id":"sf_8e8ee5cabc3a4ff6bfdea19a9f060caa","message":"Please + provide a valid list of shipments.","object":"ScanForm","status":"failed","tracking_codes":[],"updated_at":"2022-09-19T20:22:23Z"},"shipments":[],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-19T20:22:23Z"},{"created_at":"2022-09-20T23:28:00Z","id":"batch_7d095c7f36ba451b858b78758c240da9","label_url":null,"mode":"test","num_shipments":0,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"created","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-20T23:28:01Z"},{"created_at":"2022-09-20T23:28:01Z","id":"batch_bc95dad72d8a4405b945797f73c99cc1","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"postage_purchased","id":"shp_aebd79d812274875ba4834e20e75e332","reference":null,"tracking_code":"9400100109361138553360"}],"state":"purchased","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":1,"queued_for_purchase":0},"updated_at":"2022-09-20T23:28:03Z"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"4a2a2447da20581294aaa7742550bb97" + - W/"0ffd20448c977b8ab8f38164b8e25574" Expires: - "0" Pragma: @@ -39,21 +39,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb1ff246ba100700a0b + - 8f5eb2cf632b5640ec7d9989000d8ef5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.074979" + - "0.089460" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchBuy.yaml b/tests/cassettes/TestBatchBuy.yaml index fd31166..c672ed1 100644 --- a/tests/cassettes/TestBatchBuy.yaml +++ b/tests/cassettes/TestBatchBuy.yaml @@ -2,11 +2,11 @@ version: 1 interactions: - request: - body: '{"batch":{"shipments":[{"to_address":{"street1":"388 Townsend St","street2":"Apt - 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}]}}' + body: '{"batch":{"shipments":[{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}]}}' form: {} headers: Authorization: @@ -18,14 +18,14 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"id":"batch_ccf28cc68181458395f6974b2f5d91bd","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:29Z","updated_at":"2022-08-19T17:47:29Z","scan_form":null,"shipments":[],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' + body: '{"created_at":"2022-09-21T18:21:52Z","id":"batch_e9bef1fe5d754382a05901a1568350e0","label_url":null,"mode":"test","num_shipments":1,"object":"EasyPost::Entity::Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:52Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"6d01d170453f8c7f2c0c133448c6febd" + - W/"7c8920e0525f362f268a01dcfe96548e" Expires: - "0" Pragma: @@ -36,26 +36,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb1ff246ba100700a34 + - 8f5eb2cf632b5640ec7d9989000d8f0b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.042130" + - "0.037550" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -69,17 +71,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_ccf28cc68181458395f6974b2f5d91bd/buy + url: https://api.easypost.com/v2/batches/batch_e9bef1fe5d754382a05901a1568350e0/buy method: POST response: - body: '{"id":"batch_ccf28cc68181458395f6974b2f5d91bd","object":"Batch","mode":"test","state":"created","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:29Z","updated_at":"2022-08-19T17:47:30Z","scan_form":null,"shipments":[{"batch_status":"queued_for_purchase","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_1d5f700250ec4c00beaf4510fd2272d6"}],"status":{"created":1,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' + body: '{"created_at":"2022-09-21T18:21:52Z","id":"batch_e9bef1fe5d754382a05901a1568350e0","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"queued_for_purchase","id":"shp_4097dbd249be4ca1ad24fd798088a07b","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:52Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"2c39785a571e06fdbc6b6e9a00316c56" + - W/"5f9580b3d7a7a54e73f5798147c32852" Expires: - "0" Pragma: @@ -90,28 +92,26 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb2ff246ba100700a4a + - 8f5eb2cf632b5640ec7d9989000d8f28 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.047584" + - "0.055397" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchCreate.yaml b/tests/cassettes/TestBatchCreate.yaml index 41b57e0..6a46c68 100644 --- a/tests/cassettes/TestBatchCreate.yaml +++ b/tests/cassettes/TestBatchCreate.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"batch":{"shipments":[{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}]}}' + body: '{"batch":{"shipments":[{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}]}}' form: {} headers: Authorization: @@ -17,14 +18,14 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"id":"batch_580bd7aa863042caa210d0d2b7d509b7","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:30Z","updated_at":"2022-08-19T17:47:30Z","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}' + body: '{"created_at":"2022-09-21T18:21:53Z","id":"batch_4c690f63ad3b4169ae56fead89bef8df","label_url":null,"mode":"test","num_shipments":1,"object":"EasyPost::Entity::Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:53Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"81ecb192269d69badafc4ac9732f4980" + - W/"e98fbeb85b7b71f68b71f904aad6d238" Expires: - "0" Pragma: @@ -40,21 +41,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb2ff246ba100700a69 + - 8f5eb2cf632b5641ec7d9989000d8f3f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.040082" + - "0.038355" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchCreateAndBuy.yaml b/tests/cassettes/TestBatchCreateAndBuy.yaml index 15cfb45..28f7b18 100644 --- a/tests/cassettes/TestBatchCreateAndBuy.yaml +++ b/tests/cassettes/TestBatchCreateAndBuy.yaml @@ -2,15 +2,15 @@ version: 1 interactions: - request: - body: '{"batch":{"shipments":[{"to_address":{"street1":"388 Townsend St","street2":"Apt - 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]},{"to_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}]}}' + body: '{"batch":{"shipments":[{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}},{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}]}}' form: {} headers: Authorization: @@ -22,14 +22,14 @@ interactions: url: https://api.easypost.com/v2/batches/create_and_buy method: POST response: - body: '{"id":"batch_d8729bdabcd2499682ebc92f70f4f62c","object":"Batch","mode":"test","state":"creating","num_shipments":2,"reference":null,"created_at":"2022-08-19T17:47:30Z","updated_at":"2022-08-19T17:47:30Z","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}' + body: '{"created_at":"2022-09-21T18:21:53Z","id":"batch_6d1827710950409b9fa5e8b6b4ebd38b","label_url":null,"mode":"test","num_shipments":2,"object":"EasyPost::Entity::Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:53Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b93b89da1742ac28e4b308440dee1f42" + - W/"91670235e0bf8b9af8d1529923e187e8" Expires: - "0" Pragma: @@ -45,21 +45,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb2ff246ba100700a7f + - 8f5eb2cf632b5641ec7d9989000d8f54 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.036973" + - "0.035804" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchCreateScanForm.yaml b/tests/cassettes/TestBatchCreateScanForm.yaml index b201eb5..272ae67 100644 --- a/tests/cassettes/TestBatchCreateScanForm.yaml +++ b/tests/cassettes/TestBatchCreateScanForm.yaml @@ -2,11 +2,11 @@ version: 1 interactions: - request: - body: '{"batch":{"shipments":[{"to_address":{"street1":"388 Townsend St","street2":"Apt - 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}]}}' + body: '{"batch":{"shipments":[{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}]}}' form: {} headers: Authorization: @@ -18,14 +18,14 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"id":"batch_13cc297d60e7438db6ac3c129e58ca7f","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:30Z","updated_at":"2022-08-19T17:47:30Z","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}' + body: '{"created_at":"2022-09-21T18:21:53Z","id":"batch_fcdbd9872ef741df98b8ee0785a25a80","label_url":null,"mode":"test","num_shipments":1,"object":"EasyPost::Entity::Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:53Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"3fe78867d2b60f4620ebdfe6416e1eef" + - W/"a68cd71580f321235ffccd934db0cd1a" Expires: - "0" Pragma: @@ -41,7 +41,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb2ff246ba100700a9f + - 8f5eb2cf632b5641ec7d9989000d8f86 X-Frame-Options: - SAMEORIGIN X-Node: @@ -49,13 +49,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.039120" + - "0.034923" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -69,17 +69,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_13cc297d60e7438db6ac3c129e58ca7f/buy + url: https://api.easypost.com/v2/batches/batch_fcdbd9872ef741df98b8ee0785a25a80/buy method: POST response: - body: '{"id":"batch_13cc297d60e7438db6ac3c129e58ca7f","object":"Batch","mode":"test","state":"created","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:30Z","updated_at":"2022-08-19T17:47:30Z","scan_form":null,"shipments":[{"batch_status":"queued_for_purchase","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_00eea1e82e824dc7a9b3b3dfe08cbbd3"}],"status":{"created":1,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' + body: '{"created_at":"2022-09-21T18:21:53Z","id":"batch_fcdbd9872ef741df98b8ee0785a25a80","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"queued_for_purchase","id":"shp_17b468c09cc14fe6987829a88b144fb5","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:53Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"4bb808973f4cbbe74743142541191028" + - W/"dc214e86b9a00eced66e632b12167d8e" Expires: - "0" Pragma: @@ -95,21 +95,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb2ff246ba100700ab0 + - 8f5eb2cf632b5641ec7d9989000d8fa5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.062157" + - "0.053702" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -127,17 +127,17 @@ interactions: - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_13cc297d60e7438db6ac3c129e58ca7f/scan_form + url: https://api.easypost.com/v2/batches/batch_fcdbd9872ef741df98b8ee0785a25a80/scan_form method: POST response: - body: '{"id":"batch_13cc297d60e7438db6ac3c129e58ca7f","object":"Batch","mode":"test","state":"purchased","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:30Z","updated_at":"2022-08-19T17:47:36Z","scan_form":{"id":"sf_19a9f92a2a0e46da8316132399b4a4b2","object":"ScanForm","created_at":"2022-08-19T17:47:36Z","updated_at":"2022-08-19T17:47:36Z","tracking_codes":[],"address":null,"status":"creating","message":null,"form_url":null,"form_file_type":null,"batch_id":"batch_13cc297d60e7438db6ac3c129e58ca7f","confirmation":null},"shipments":[{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361133883592","id":"shp_00eea1e82e824dc7a9b3b3dfe08cbbd3"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":1,"postage_purchase_failed":0},"pickup":null,"label_url":null}' + body: '{"created_at":"2022-09-21T18:21:53Z","id":"batch_fcdbd9872ef741df98b8ee0785a25a80","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":{"address":null,"batch_id":"batch_fcdbd9872ef741df98b8ee0785a25a80","confirmation":null,"created_at":"2022-09-21T18:21:59Z","form_file_type":null,"form_url":null,"id":"sf_9f422ff68ce64b1c893978f6588cb546","message":null,"object":"ScanForm","status":"creating","tracking_codes":[],"updated_at":"2022-09-21T18:21:59Z"},"shipments":[{"batch_message":null,"batch_status":"postage_purchased","id":"shp_17b468c09cc14fe6987829a88b144fb5","reference":null,"tracking_code":"9400100109361138710060"}],"state":"purchased","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":1,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:59Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"f76cfef65e0f1d25ac28d264eff4950c" + - W/"32d122a9b5165c17eb5c465db1635a29" Expires: - "0" Pragma: @@ -153,21 +153,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb8ff246ba100700cc8 + - 8f5eb2cf632b5647ec7d9989000d9299 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.110159" + - "0.153544" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchLabel.yaml b/tests/cassettes/TestBatchLabel.yaml index 3bf3db5..c092670 100644 --- a/tests/cassettes/TestBatchLabel.yaml +++ b/tests/cassettes/TestBatchLabel.yaml @@ -2,11 +2,11 @@ version: 1 interactions: - request: - body: '{"batch":{"shipments":[{"to_address":{"street1":"388 Townsend St","street2":"Apt - 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}]}}' + body: '{"batch":{"shipments":[{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}]}}' form: {} headers: Authorization: @@ -18,14 +18,14 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"id":"batch_b898852f18ef49ada0ab13ac61578e1b","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:36Z","updated_at":"2022-08-19T17:47:36Z","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}' + body: '{"created_at":"2022-09-21T18:21:59Z","id":"batch_51a28e0c3a6b4d798816dbf01e59be19","label_url":null,"mode":"test","num_shipments":1,"object":"EasyPost::Entity::Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:59Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"ffbfc95aebc25fa5a09f1e63c04f590a" + - W/"a8bf4377c8571fdfc27785f0fd51d4f4" Expires: - "0" Pragma: @@ -41,21 +41,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb8ff246ba100700cdf + - 8f5eb2cf632b5647ec7d9989000d92d9 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.041416" + - "0.050734" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -69,17 +69,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_b898852f18ef49ada0ab13ac61578e1b/buy + url: https://api.easypost.com/v2/batches/batch_51a28e0c3a6b4d798816dbf01e59be19/buy method: POST response: - body: '{"id":"batch_b898852f18ef49ada0ab13ac61578e1b","object":"Batch","mode":"test","state":"created","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:36Z","updated_at":"2022-08-19T17:47:36Z","scan_form":null,"shipments":[{"batch_status":"queued_for_purchase","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_c618389938aa4459a00e394ee5c3396d"}],"status":{"created":1,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' + body: '{"created_at":"2022-09-21T18:21:59Z","id":"batch_51a28e0c3a6b4d798816dbf01e59be19","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"queued_for_purchase","id":"shp_1a15f03a56a64dec8a6b98e1d29a1642","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:21:59Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"cad872df9842b4b17191db5cbf3de461" + - W/"108e686ede8119880923cf5dbb59dcb6" Expires: - "0" Pragma: @@ -95,21 +95,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccb8ff246ba100700cec + - 8f5eb2cf632b5647ec7d9989000d92e7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.068757" + - "0.059347" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -127,17 +127,17 @@ interactions: - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_b898852f18ef49ada0ab13ac61578e1b/label + url: https://api.easypost.com/v2/batches/batch_51a28e0c3a6b4d798816dbf01e59be19/label method: POST response: - body: '{"id":"batch_b898852f18ef49ada0ab13ac61578e1b","object":"Batch","mode":"test","state":"label_generating","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:36Z","updated_at":"2022-08-19T17:47:41Z","scan_form":null,"shipments":[{"batch_status":"postage_purchased","batch_message":null,"reference":null,"tracking_code":"9400100109361133883721","id":"shp_c618389938aa4459a00e394ee5c3396d"}],"status":{"created":0,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":1,"postage_purchase_failed":0},"pickup":null,"label_url":null}' + body: '{"created_at":"2022-09-21T18:21:59Z","id":"batch_51a28e0c3a6b4d798816dbf01e59be19","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"postage_purchased","id":"shp_1a15f03a56a64dec8a6b98e1d29a1642","reference":null,"tracking_code":"9400100109361138710084"}],"state":"label_generating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":1,"queued_for_purchase":0},"updated_at":"2022-09-21T18:22:05Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"746dfa8abcd4467c52f18c71c3145185" + - W/"7d4ae47906b6a6ad27e5fd2071921614" Expires: - "0" Pragma: @@ -153,21 +153,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccbdff246ba100700f5f + - 8f5eb2cf632b564dec7d9989000d95bb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.031121" + - "0.060791" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestBatchRetrieve.yaml b/tests/cassettes/TestBatchRetrieve.yaml index c5de560..27a38b7 100644 --- a/tests/cassettes/TestBatchRetrieve.yaml +++ b/tests/cassettes/TestBatchRetrieve.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"batch":{"shipments":[{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}]}}' + body: '{"batch":{"shipments":[{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}]}}' form: {} headers: Authorization: @@ -17,14 +18,14 @@ interactions: url: https://api.easypost.com/v2/batches method: POST response: - body: '{"id":"batch_6fbb93c0fb4a4062966cbcf14d62a538","object":"Batch","mode":"test","state":"creating","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:42Z","updated_at":"2022-08-19T17:47:42Z","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}' + body: '{"created_at":"2022-09-21T18:22:05Z","id":"batch_d0b153e1ddd3423bb1a51a8c6257c3e7","label_url":null,"mode":"test","num_shipments":1,"object":"EasyPost::Entity::Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[],"state":"creating","status":{"created":0,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:22:05Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"feaae1e563831d9462af5becd1d823c3" + - W/"795de0729be5cb14bca51f4adb4ca361" Expires: - "0" Pragma: @@ -40,21 +41,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccbdff246ba100700f69 + - 8f5eb2cf632b564dec7d9989000d95d7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.046843" + - "0.041663" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -68,17 +69,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/batches/batch_6fbb93c0fb4a4062966cbcf14d62a538 + url: https://api.easypost.com/v2/batches/batch_d0b153e1ddd3423bb1a51a8c6257c3e7 method: GET response: - body: '{"id":"batch_6fbb93c0fb4a4062966cbcf14d62a538","object":"Batch","mode":"test","state":"created","num_shipments":1,"reference":null,"created_at":"2022-08-19T17:47:42Z","updated_at":"2022-08-19T17:47:42Z","scan_form":null,"shipments":[{"batch_status":"created","batch_message":null,"reference":null,"tracking_code":null,"id":"shp_6624ae8ffdb54a43b598164b8bdac555"}],"status":{"created":1,"queued_for_purchase":0,"creation_failed":0,"postage_purchased":0,"postage_purchase_failed":0},"pickup":null,"label_url":null}' + body: '{"created_at":"2022-09-21T18:22:05Z","id":"batch_d0b153e1ddd3423bb1a51a8c6257c3e7","label_url":null,"mode":"test","num_shipments":1,"object":"Batch","pickup":null,"reference":null,"scan_form":null,"shipments":[{"batch_message":null,"batch_status":"created","id":"shp_15d0b3c5a508488198866aea6520ccab","reference":null,"tracking_code":null}],"state":"created","status":{"created":1,"creation_failed":0,"postage_purchase_failed":0,"postage_purchased":0,"queued_for_purchase":0},"updated_at":"2022-09-21T18:22:05Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"27403feedc40b82ff24c97c735911613" + - W/"b10ce000ab2784a38c15bc2b67aae837" Expires: - "0" Pragma: @@ -89,26 +90,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccbeff246ba100700f89 + - 8f5eb2cf632b564dec7d9989000d95fb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.024880" + - "0.024286" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountAll.yaml b/tests/cassettes/TestCarrierAccountAll.yaml index 31dd82b..91610dc 100644 --- a/tests/cassettes/TestCarrierAccountAll.yaml +++ b/tests/cassettes/TestCarrierAccountAll.yaml @@ -13,18 +13,16 @@ interactions: method: GET response: body: '[{"billing_type":"easypost","clone":false,"created_at":"2020-05-07T23:43:48Z","credentials":{},"description":"USPS - Account","fields":{"credentials":{"address_city":{"label":"City","value":"","visibility":"visible"},"address_state":{"label":"State","value":"","visibility":"visible"},"address_street":{"label":"Street - Address","value":"","visibility":"visible"},"address_zip":{"label":"ZIP Code","value":"","visibility":"visible"},"company_name":{"label":"Account - Holder Name","value":"","visibility":"visible"},"email":{"label":"Email Address","value":null,"visibility":"visible"},"phone":{"label":"Phone - Number","value":"","visibility":"visible"},"shipper_id":{"label":"Shipper Identifier - (Optional)","value":"","visibility":"visible"}}},"id":"ca_e606176ddb314afe896733636dba2f3b","logo":null,"object":"CarrierAccount","readable":"USPS","reference":null,"test_credentials":{},"type":"UspsAccount","updated_at":"2020-05-08T02:33:20Z"}]' + Account","fields":{},"id":"ca_e606176ddb314afe896733636dba2f3b","logo":null,"object":"CarrierAccount","readable":"USPS","reference":null,"test_credentials":null,"type":"UspsAccount","updated_at":"2020-05-08T02:33:20Z"},{"billing_type":"carrier","clone":false,"created_at":"2022-09-19T21:06:35Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-09-19T21:06:35Z"}]' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"00b9f4caf48afe55b116350f299f1588" + - W/"7b9d9f80969372ab1a33e10ed7f8fd50" Expires: - "0" Pragma: @@ -40,21 +38,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccbeff246ba100700fbe + - 8f5eb2cf632b564dec7d9989000d9622 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.102642" + - "0.116523" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountCreate.yaml b/tests/cassettes/TestCarrierAccountCreate.yaml index 741250e..e204ab8 100644 --- a/tests/cassettes/TestCarrierAccountCreate.yaml +++ b/tests/cassettes/TestCarrierAccountCreate.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"carrier_account":{"type":"DhlEcsAccount","credentials":{"client_id":"123456","client_secret":"123abc","distribution_center":"USLAX1","pickup_id":"123456"},"test_credentials":{"client_id":"123456","client_secret":"123abc","distribution_center":"USLAX1","pickup_id":"123456"}}}' + body: '{"carrier_account":{"credentials":{},"test_credentials":{},"type":"DhlEcsAccount"}}' form: {} headers: Authorization: @@ -14,24 +14,16 @@ interactions: url: https://api.easypost.com/v2/carrier_accounts method: POST response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2022-08-19T17:47:43Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{"credentials":{"client_id":{"label":"DHL - eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"DHL - eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"DHL - eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"DHL - eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}},"test_credentials":{"client_id":{"label":"Test - DHL eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"Test - DHL eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"Test - DHL eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"Test - DHL eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}}},"id":"ca_3c172b6d87264f788e7cc4076436bd63","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-08-19T17:47:43Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2022-09-21T18:22:06Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_769d1d1316b3429bb45302b179acf72c","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-09-21T18:22:06Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b47043375024a98d0d4ca7071a0ce2ff" + - W/"126954b0c0d5a0a799165327a9080f57" Expires: - "0" Pragma: @@ -47,21 +39,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccbeff246ba100700fe6 + - 8f5eb2cf632b564eec7d9989000d9666 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.118375" + - "0.126358" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -75,7 +67,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_3c172b6d87264f788e7cc4076436bd63 + url: https://api.easypost.com/v2/carrier_accounts/ca_769d1d1316b3429bb45302b179acf72c method: DELETE response: body: '{}' @@ -101,21 +93,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccbfff246ba100700ff5 + - 8f5eb2cf632b564eec7d9989000d969f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.117345" + - "0.251633" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountDelete.yaml b/tests/cassettes/TestCarrierAccountDelete.yaml index cf43e0d..31c622a 100644 --- a/tests/cassettes/TestCarrierAccountDelete.yaml +++ b/tests/cassettes/TestCarrierAccountDelete.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"carrier_account":{"type":"DhlEcsAccount","credentials":{"client_id":"123456","client_secret":"123abc","distribution_center":"USLAX1","pickup_id":"123456"},"test_credentials":{"client_id":"123456","client_secret":"123abc","distribution_center":"USLAX1","pickup_id":"123456"}}}' + body: '{"carrier_account":{"credentials":{},"test_credentials":{},"type":"DhlEcsAccount"}}' form: {} headers: Authorization: @@ -14,24 +14,16 @@ interactions: url: https://api.easypost.com/v2/carrier_accounts method: POST response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2022-08-19T17:47:43Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{"credentials":{"client_id":{"label":"DHL - eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"DHL - eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"DHL - eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"DHL - eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}},"test_credentials":{"client_id":{"label":"Test - DHL eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"Test - DHL eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"Test - DHL eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"Test - DHL eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}}},"id":"ca_21f73eb3139d491787920e79d8a7b5f8","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-08-19T17:47:43Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2022-09-21T18:22:07Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_d8cac82047d847f5bc6047dfed0bd4b6","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-09-21T18:22:07Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"28c3f333e67d461905d6440dee6ae8cc" + - W/"44b37b96482a9463669333be1b18388d" Expires: - "0" Pragma: @@ -47,21 +39,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccbfff246ba10070101e + - 8f5eb2cf632b564fec7d9989000d96d8 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.127055" + - "0.129508" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -75,7 +67,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_21f73eb3139d491787920e79d8a7b5f8 + url: https://api.easypost.com/v2/carrier_accounts/ca_d8cac82047d847f5bc6047dfed0bd4b6 method: DELETE response: body: '{}' @@ -101,21 +93,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccbfff246ba100701042 + - 8f5eb2cf632b564fec7d9989000d979a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.118281" + - "0.206676" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountRetrieve.yaml b/tests/cassettes/TestCarrierAccountRetrieve.yaml index f45dc01..bb5a9b9 100644 --- a/tests/cassettes/TestCarrierAccountRetrieve.yaml +++ b/tests/cassettes/TestCarrierAccountRetrieve.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"carrier_account":{"type":"DhlEcsAccount","credentials":{"client_id":"123456","client_secret":"123abc","distribution_center":"USLAX1","pickup_id":"123456"},"test_credentials":{"client_id":"123456","client_secret":"123abc","distribution_center":"USLAX1","pickup_id":"123456"}}}' + body: '{"carrier_account":{"credentials":{},"test_credentials":{},"type":"DhlEcsAccount"}}' form: {} headers: Authorization: @@ -14,24 +14,16 @@ interactions: url: https://api.easypost.com/v2/carrier_accounts method: POST response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2022-08-19T17:47:44Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{"credentials":{"client_id":{"label":"DHL - eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"DHL - eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"DHL - eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"DHL - eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}},"test_credentials":{"client_id":{"label":"Test - DHL eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"Test - DHL eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"Test - DHL eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"Test - DHL eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}}},"id":"ca_ace079f57d784bf8a3012bc8b4af1fc6","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-08-19T17:47:44Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2022-09-21T18:22:08Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_399a61d5f4d14333849fb3b6b2c17a8e","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-09-21T18:22:08Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"bf0071ccca932b77edbb9a0d4bcd6a31" + - W/"262d19850609170c1f81a77ef34ef300" Expires: - "0" Pragma: @@ -42,28 +34,26 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc0ff246ba100701051 + - 8f5eb2cf632b5650ec7d9989000d9817 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.116050" + - "0.138437" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -77,27 +67,19 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_ace079f57d784bf8a3012bc8b4af1fc6 + url: https://api.easypost.com/v2/carrier_accounts/ca_399a61d5f4d14333849fb3b6b2c17a8e method: GET response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2022-08-19T17:47:44Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{"credentials":{"client_id":{"label":"DHL - eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"DHL - eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"DHL - eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"DHL - eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}},"test_credentials":{"client_id":{"label":"Test - DHL eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"Test - DHL eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"Test - DHL eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"Test - DHL eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}}},"id":"ca_ace079f57d784bf8a3012bc8b4af1fc6","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-08-19T17:47:44Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2022-09-21T18:22:08Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_399a61d5f4d14333849fb3b6b2c17a8e","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-09-21T18:22:08Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"bf0071ccca932b77edbb9a0d4bcd6a31" + - W/"262d19850609170c1f81a77ef34ef300" Expires: - "0" Pragma: @@ -113,21 +95,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc0ff246ba100701072 + - 8f5eb2cf632b5650ec7d9989000d984a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.031599" + - "0.027932" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -141,7 +123,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_ace079f57d784bf8a3012bc8b4af1fc6 + url: https://api.easypost.com/v2/carrier_accounts/ca_399a61d5f4d14333849fb3b6b2c17a8e method: DELETE response: body: '{}' @@ -167,7 +149,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc0ff246ba10070109c + - 8f5eb2cf632b5650ec7d9989000d9881 X-Frame-Options: - SAMEORIGIN X-Node: @@ -175,13 +157,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.177166" + - "0.133790" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountTypes.yaml b/tests/cassettes/TestCarrierAccountTypes.yaml index f89896f..616a2aa 100644 --- a/tests/cassettes/TestCarrierAccountTypes.yaml +++ b/tests/cassettes/TestCarrierAccountTypes.yaml @@ -12,308 +12,42 @@ interactions: url: https://api.easypost.com/v2/carrier_types method: GET response: - body: '[{"fields":{"credentials":{"access_key_id":{"label":"AWS Access Key ID","visibility":"visible"},"merchant_id":{"label":"Seller - ID","visibility":"visible"},"secret_key":{"label":"Secret Key","visibility":"password"}}},"logo":null,"object":"CarrierType","readable":"Amazon - MWS","type":"AmazonMwsAccount"},{"fields":{"credentials":{"facility":{"label":"APC - Facility (e.g., NJ, LA)","visibility":"visible"},"password":{"label":"APC Password","visibility":"password"},"shipper_id":{"label":"APC - Shipper ID","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"APC","type":"ApcAccount"},{"fields":{"credentials":{"account_number":{"label":"Asendia - Account Number","visibility":"visible"},"company_name":{"label":"Company Name","visibility":"visible"},"epacket":{"label":"ePacket","visibility":"checkbox"},"ftp_password":{"label":"FTP - Password","visibility":"password"},"ftp_username":{"label":"FTP Username","visibility":"visible"},"internationalexpress":{"label":"International - Express","visibility":"checkbox"},"ipa":{"label":"IPA","visibility":"checkbox"},"isal":{"label":"ISAL","visibility":"checkbox"},"other":{"label":"Other","visibility":"checkbox"},"pmei":{"label":"PMEI","visibility":"checkbox"},"pmi":{"label":"PMI","visibility":"checkbox"},"prioritytracked":{"label":"Priority - Tracked","visibility":"checkbox"}}},"logo":null,"object":"CarrierType","readable":"Asendia - USA (Legacy)","type":"AsendiaAccount"},{"fields":{"credentials":{"account_number":{"label":"AsendiaUsa - Account Number","visibility":"visible"},"api_key":{"label":"AsendiaUsa API key","visibility":"masked"},"carrier_facility":{"label":"AsendiaUsa - Carrier Facility / Processing Location (Optional)","visibility":"select"},"password":{"label":"AsendiaUsa - Password","visibility":"password"},"sub_account_number":{"label":"AsendiaUsa - Sub Account Number","visibility":"visible"},"username":{"label":"AsendiaUsa - Username","visibility":"visible"}},"test_credentials":{"account_number":{"label":"Test - AsendiaUsa Account Number","visibility":"visible"},"api_key":{"label":"Test - AsendiaUsa API key","visibility":"masked"},"carrier_facility":{"label":"Test - AsendiaUsa Carrier Facility / Processing Location (Optional)","visibility":"select"},"password":{"label":"Test - AsendiaUsa Password","visibility":"password"},"sub_account_number":{"label":"Test - AsendiaUsa Sub Account Number","visibility":"visible"},"username":{"label":"Test - AsendiaUsa Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Asendia - USA","type":"AsendiaUsaAccount"},{"fields":{"credentials":{"account_number":{"label":"Australia - Post Account Number","visibility":"visible"},"api_key":{"label":"Australia Post - API Key","visibility":"masked"},"api_secret":{"label":"Australia Post Secret - Key","visibility":"password"},"print_as_you_go":{"label":"Print as you go","visibility":"checkbox"}}},"logo":null,"object":"CarrierType","readable":"Australia - Post","type":"AustraliaPostAccount"},{"fields":{"credentials":{"api_key":{"label":"Client - Secret","visibility":"masked"}},"test_credentials":{"api_key":{"label":"Client - Secret","visibility":"masked"}}},"logo":null,"object":"CarrierType","readable":"AxlehireV3","type":"AxlehireV3Account"},{"fields":{"credentials":{"api_key":{"label":"Better - Trucks API key","visibility":"masked"}},"test_credentials":{"api_key":{"label":"Test - Better Trucks API key","visibility":"masked"}}},"logo":null,"object":"CarrierType","readable":"Better - Trucks","type":"BetterTrucksAccount"},{"fields":{"credentials":{"api_key":{"label":"Bond - API key","visibility":"masked"}},"test_credentials":{"api_key":{"label":"Test - Bond API key","visibility":"masked"}}},"logo":null,"object":"CarrierType","readable":"Bond","type":"BondAccount"},{"fields":{"credentials":{"api_key":{"label":"CanadaPost - API Key","visibility":"masked"},"contract_id":{"label":"CanadaPost Contract - ID (contract customers only)","visibility":"visible"},"customer_number":{"label":"CanadaPost - Customer Number","visibility":"visible"},"has_credit_card":{"label":"CanadaPost - account has credit card?","visibility":"checkbox"},"not_platform":{"label":"CanadaPost - account not registered through platform?","visibility":"invisible"}},"custom_workflow":true,"test_credentials":{"api_key":{"label":"CanadaPost - Test API Key","visibility":"masked"},"contract_id":{"label":"CanadaPost Test - Contract ID (contract customers only)","visibility":"visible"},"customer_number":{"label":"CanadaPost - Test Customer Number","visibility":"visible"},"has_credit_card":{"label":"CanadaPost - Test account has credit card?","visibility":"checkbox"},"not_platform":{"label":"CanadaPost - Test account not registered through platform?","visibility":"invisible"}}},"logo":null,"object":"CarrierType","readable":"Canada - Post","type":"CanadaPostAccount"},{"fields":{"credentials":{"account_number":{"label":"Canpar - Account Number","visibility":"visible"},"password":{"label":"Canpar Password","visibility":"password"},"username":{"label":"Canpar - Username","visibility":"visible"}},"test_credentials":{"account_number":{"label":"Test - Canpar Account Number","visibility":"visible"},"password":{"label":"Test Canpar - Password","visibility":"password"},"username":{"label":"Test Canpar Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Canpar","type":"CanparAccount"},{"fields":{"credentials":{"password":{"label":"CDL - Last Mile Solutions customer password","visibility":"password"},"tracking_code_prefix":{"label":"CDL - Last Mile Solutions tracking code prefix","visibility":"visible"},"username":{"label":"CDL - Last Mile Solutions customer username","visibility":"visible"}},"test_credentials":{"password":{"label":"CDL - Last Mile Solutions customer test password","visibility":"password"},"tracking_code_prefix":{"label":"CDL - Last Mile Solutions tracking code prefix","visibility":"visible"},"username":{"label":"CDL - Last Mile Solutions customer test username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"CDL - Last Mile Solutions","type":"ColumbusLastMileAccount"},{"fields":{"credentials":{"api_key":{"label":"Courier - Express API key","visibility":"masked"},"shipper_id":{"label":"Courier Express - shipper ID","visibility":"visible"}},"test_credentials":{"api_key":{"label":"Test - Courier Express API key","visibility":"masked"},"shipper_id":{"label":"Test - Courier Express shipper ID","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Courier - Express","type":"CourierExpressAccount"},{"fields":{"credentials":{"password":{"label":"Password","visibility":"password"},"username":{"label":"Account - Number","visibility":"visible"}},"test_credentials":{"password":{"label":"Password","visibility":"password"},"username":{"label":"Account - Number","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"CouriersPlease","type":"CouriersPleaseAccount"},{"fields":{"credentials":{"account_code":{"label":" - 3-letter account code for customers with multiple accounts","visibility":"visible"},"origin_terminal":{"label":" - Dai Post default origin terminal","visibility":"visible"},"password":{"label":" - Dai Post client secret","visibility":"password"},"username":{"label":" Dai Post - customer username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Dai - Post","type":"DaiPostAccount"},{"fields":{"credentials":{"account_number":{"label":"Deutsche - Post UK Account Number","visibility":"visible"},"client_id":{"label":"Deutsche - Post UK Client ID","visibility":"visible"},"client_secret":{"label":"Deutsche - Post UK Secret","visibility":"password"}},"test_credentials":{"account_number":{"label":"Test - Deutsche Post UK Account Number","visibility":"visible"},"client_id":{"label":"Test - Deutsche Post UK Client ID","visibility":"visible"},"client_secret":{"label":"Test - Deutsche Post UK Secret","visibility":"password"}}},"logo":null,"object":"CarrierType","readable":"Deutsche - Post UK","type":"DeutschePostUKAccount"},{"fields":{"credentials":{"account_number":{"label":"DHL - Ecommerce Asia Account Number","visibility":"visible"},"barcode_prefix":{"label":"DHL - Ecommerce Asia Customer ID","visibility":"visible"},"client_id":{"label":"DHL - Ecommerce Asia Contract Number","visibility":"visible"},"password":{"label":"DHL - Ecommerce Asia Password","visibility":"password"}},"test_credentials":{"account_number":{"label":"Test - DHL Ecommerce Asia Account Number","visibility":"visible"},"barcode_prefix":{"label":"Test - DHL Ecommerce Asia Customer ID","visibility":"visible"},"client_id":{"label":"Test - DHL Ecommerce Asia Contract Number","visibility":"visible"},"password":{"label":"Test - DHL Ecommerce Asia Password","visibility":"password"}}},"logo":null,"object":"CarrierType","readable":"DHL - Ecommerce Asia","type":"DhlEcommerceAsiaAccount"},{"fields":{"credentials":{"client_id":{"label":"DHL - eCommerce Solutions client ID","visibility":"visible"},"client_secret":{"label":"DHL - eCommerce Solutions client secret","visibility":"password"},"distribution_center":{"label":"DHL - eCommerce Solutions distribution center","visibility":"visible"},"pickup_id":{"label":"DHL - eCommerce Solutions pickup ID","visibility":"visible"}},"test_credentials":{"client_id":{"label":"Test - DHL eCommerce Solutions client ID","visibility":"visible"},"client_secret":{"label":"Test - DHL eCommerce Solutions client secret","visibility":"password"},"distribution_center":{"label":"Test - DHL eCommerce Solutions distribution center","visibility":"visible"},"pickup_id":{"label":"Test - DHL eCommerce Solutions pickup ID","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"DHL - eCommerce Solutions","type":"DhlEcsAccount"},{"fields":{"credentials":{"account_number":{"label":"DHL - Account Number","visibility":"visible"},"country":{"label":"Account Country - Code (2 Letter)","visibility":"visible"},"is_reseller":{"label":"Reseller Account? - (check if yes)","visibility":"checkbox"},"password":{"label":"Password (Optional)","visibility":"password"},"site_id":{"label":"Site - ID (Optional)","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"DHL - Express","type":"DhlExpressAccount"},{"fields":{"credentials":{"account_number":{"label":"DHL - Parcel Account Number","visibility":"visible"},"api_key":{"label":"DHL Parcel - API Key","visibility":"masked"},"user_id":{"label":"DHL Parcel User ID","visibility":"visible"}},"test_credentials":{"account_number":{"label":"DHL - Parcel Account Number","visibility":"visible"},"api_key":{"label":"DHL Parcel - API Key","visibility":"masked"},"user_id":{"label":"DHL Parcel User ID","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"DHL - Parcel","type":"DhlParcelAccount"},{"fields":{"credentials":{"customer_number":{"label":"DPD - Customer Number","visibility":"visible"},"password":{"label":"WebConnect Password","visibility":"password"},"username":{"label":"WebConnect - Username","visibility":"visible"}},"test_credentials":{"customer_number":{"label":"DPD - Customer Number","visibility":"visible"},"password":{"label":"Test WebConnect - Password","visibility":"password"},"username":{"label":"Test WebConnect Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"DPD","type":"DpdAccount"},{"fields":{"credentials":{"account_number":{"label":"DPD - UK Account Number","visibility":"visible"},"password":{"label":"DPD UK Password","visibility":"password"},"username":{"label":"DPD - UK Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"DPD - UK","type":"DpdUkAccount"},{"fields":{"credentials":{"client_id":{"label":"Tracking - Subscriber ID","visibility":"visible"},"customer_id":{"label":"Subscriber ID","visibility":"visible"},"customer_number":{"label":"Customer - Number","visibility":"visible"},"hub_id":{"label":"Office Number","visibility":"visible"},"password":{"label":"Password","visibility":"password"},"secret_key":{"label":"Tracking - Password","visibility":"password"},"user_id":{"label":"Tracking Login","visibility":"visible"},"username":{"label":"Login","visibility":"visible"}},"test_credentials":{"client_id":{"label":"Test - Tracking Subscriber ID","visibility":"visible"},"customer_id":{"label":"Test - Subscriber ID","visibility":"visible"},"customer_number":{"label":"Test Customer - Number","visibility":"visible"},"hub_id":{"label":"Test Office Number","visibility":"visible"},"password":{"label":"Test - Password","visibility":"password"},"secret_key":{"label":"Test Tracking Password","visibility":"password"},"user_id":{"label":"Test - Tracking Login","visibility":"visible"},"username":{"label":"Test Login","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Estafeta","type":"EstafetaAccount"},{"fields":{"credentials":{"api_key":{"label":"API - Key","visibility":"masked"}}},"logo":null,"object":"CarrierType","readable":"Fastway","type":"FastwayAccount"},{"fields":{"creation_fields":{"address_information":{"shipping_city":{"label":"Shipping - City","visibility":"visible"},"shipping_country_code":{"label":"Shipping Country - Code","visibility":"visible"},"shipping_postal_code":{"label":"Shipping Postal - Code ","visibility":"visible"},"shipping_state":{"label":"Shipping State","visibility":"visible"},"shipping_streets":{"label":"Shipping - Street","visibility":"visible"}},"company_information":{"corporate_city":{"label":"Company - City","visibility":"visible"},"corporate_company_name":{"label":"Company Name","visibility":"visible"},"corporate_country_code":{"label":"Company - Country Code","visibility":"visible"},"corporate_email_address":{"label":"Company - Email","visibility":"visible"},"corporate_first_name":{"label":"Company Contact - First Name","visibility":"visible"},"corporate_job_title":{"label":"Company - Contact Job Title","visibility":"visible"},"corporate_last_name":{"label":"Company - Contact Last Name","visibility":"visible"},"corporate_phone_number":{"label":"Company - Phone","visibility":"visible"},"corporate_postal_code":{"label":"Company Postal - Code","visibility":"visible"},"corporate_state":{"label":"Company State","visibility":"visible"},"corporate_streets":{"label":"Company - Street","visibility":"visible"}},"credential_information":{"account_number":{"label":"FedEx - Account #","visibility":"visible"}}},"credentials":{"account_number":{"label":"FedEx - Account Number","visibility":"readonly"},"key":{"label":"FedEx Production Authentication - Key","visibility":"invisible"},"meter_number":{"label":"FedEx Production Meter - Number","visibility":"invisible"},"password":{"label":"FedEx Production Password","visibility":"invisible"}},"custom_workflow":true,"test_credentials":{"account_number":{"label":"FedEx - Account Number","visibility":"readonly"},"key":{"label":"FedEx Developer Test - Key","visibility":"invisible"},"meter_number":{"label":"FedEx Test Meter Number","visibility":"invisible"},"password":{"label":"FedEx - Test Password","visibility":"invisible"}}},"logo":null,"object":"CarrierType","readable":"FedEx","type":"FedexAccount"},{"fields":{"credentials":{"api_key":{"label":"FedEx - Cross Border API key","visibility":"masked"},"origin_hub":{"label":"FedEx Cross - Border Origin Hub","visibility":"select"}},"test_credentials":{"api_key":{"label":"Test - FedEx Cross Border API key","visibility":"masked"},"origin_hub":{"label":"Test - FedEx Cross Border Origin Hub","visibility":"select"}}},"logo":null,"object":"CarrierType","readable":"FedEx - Cross Border","type":"FedexCrossBorderAccount"},{"fields":{"credentials":{"customer_id":{"label":"Customer - Code","visibility":"visible"},"fimspremium":{"label":"FIMS Premium","visibility":"checkbox"},"fimsstandard":{"label":"FIMS - Standard","visibility":"checkbox"},"mailviewlight":{"label":"MailView Light","visibility":"checkbox"},"mailviewpremium":{"label":"MailView - Premium","visibility":"checkbox"},"service_id":{"label":"Service ID","visibility":"password"}}},"logo":null,"object":"CarrierType","readable":"FedEx - MailView","type":"FedexMailviewAccount"},{"fields":{"credentials":{"account_number":{"label":"FedEx - SameDay City Account Number","visibility":"visible"},"api_key":{"label":"FedEx - SameDay City Shipment API Key","visibility":"masked"},"tracking_api_key":{"label":"FedEx - SameDay City Tracking API Key","visibility":"masked"}}},"logo":null,"object":"CarrierType","readable":"FedEx - SameDay City","type":"FedexSamedayCityAccount"},{"fields":{"creation_fields":{"address_information":{"shipping_city":{"label":"Shipping - City","visibility":"visible"},"shipping_country_code":{"label":"Shipping Country - Code","visibility":"visible"},"shipping_postal_code":{"label":"Shipping Postal - Code ","visibility":"visible"},"shipping_state":{"label":"Shipping State","visibility":"visible"},"shipping_streets":{"label":"Shipping - Street","visibility":"visible"}},"company_information":{"corporate_city":{"label":"Company - City","visibility":"visible"},"corporate_company_name":{"label":"Company Name","visibility":"visible"},"corporate_country_code":{"label":"Company - Country Code","visibility":"visible"},"corporate_email_address":{"label":"Company - Email","visibility":"visible"},"corporate_first_name":{"label":"Company Contact - First Name","visibility":"visible"},"corporate_job_title":{"label":"Company - Contact Job Title","visibility":"visible"},"corporate_last_name":{"label":"Company - Contact Last Name","visibility":"visible"},"corporate_phone_number":{"label":"Company - Phone","visibility":"visible"},"corporate_postal_code":{"label":"Company Postal - Code","visibility":"visible"},"corporate_state":{"label":"Company State","visibility":"visible"},"corporate_streets":{"label":"Company - Street","visibility":"visible"}},"credential_information":{"account_number":{"label":"FedEx - SmartPost Account #","visibility":"visible"},"hub_id":{"label":"FedEx SmartPost - Hub ID","visibility":"visible"}}},"credentials":{"account_number":{"label":"FedEx - SmartPost Account Number","visibility":"visible"},"hub_id":{"label":"FedEx SmartPost - HubID","visibility":"visible"},"key":{"label":"FedEx SmartPost Access Key","visibility":"masked"},"meter_number":{"label":"Fedex - SmartPost Meter Number","visibility":"visible"},"password":{"label":"SmartPost - Access Key Password","visibility":"password"}},"custom_workflow":true},"logo":null,"object":"CarrierType","readable":"FedEx - SmartPost","type":"FedexSmartpostAccount"},{"fields":{"credentials":{"account_number":{"label":"Globegistics - Account Number","visibility":"visible"},"facility":{"label":"Globegistics Facility","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Globegistics","type":"GlobegisticsAccount"},{"fields":{"credentials":{"account_number":{"label":"GSO - Account Number","visibility":"visible"},"password":{"label":"Password","visibility":"password"},"username":{"label":"Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"GSO","type":"GsoAccount"},{"fields":{"credentials":{"client_id":{"label":"Evri - Client ID","visibility":"visible"},"client_licence":{"label":"Evri Client License","visibility":"masked"},"client_name":{"label":"Evri - Client name","visibility":"visible"},"group_id":{"label":"Evri Group ID","visibility":"visible"},"password":{"label":"Evri - Password","visibility":"password"},"username":{"label":"Evri Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Evri","type":"HermesAccount"},{"fields":{"credentials":{"account_number":{"label":"Interlink - Express Account Number","visibility":"visible"},"password":{"label":"Interlink - Express Password","visibility":"password"},"username":{"label":"Interlink Express - Username","visibility":"visible"},"vat_number":{"label":"VAT Number","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Interlink - Express","type":"InterlinkExpressAccount"},{"fields":{"credentials":{"api_id":{"label":"LaserShipV2 - API ID","visibility":"visible"},"api_key":{"label":"LaserShipV2 API Key","visibility":"masked"},"cargo_claim_value":{"label":"LaserShipV2 - Cargo Insurance Claim Value (USD)","visibility":"visible"},"facility":{"label":"LaserShipV2 - Customer Branch","visibility":"visible"},"injection_city":{"label":"Injection - Address City","visibility":"visible"},"injection_contact":{"label":"Injection - Address Contact","visibility":"visible"},"injection_country":{"label":"Injection - Address Country Code","visibility":"visible"},"injection_email":{"label":"Injection - Address Email","visibility":"visible"},"injection_instruction":{"label":"Injection - Address Instruction","visibility":"visible"},"injection_location_type":{"label":"Injection - Address Location Type (\"Business\" or \"Residence\")","visibility":"visible"},"injection_note":{"label":"Injection - Address Note","visibility":"visible"},"injection_organization":{"label":"Injection - Address Organization","visibility":"visible"},"injection_phone":{"label":"Injection - Address Phone","visibility":"visible"},"injection_phone_ext":{"label":"Injection - Address Phone Extension","visibility":"visible"},"injection_state":{"label":"Injection - Address State","visibility":"visible"},"injection_street1":{"label":"Injection - Address Street1","visibility":"visible"},"injection_street2":{"label":"Injection - Address Street2","visibility":"visible"},"injection_zip":{"label":"Injection - Address Postal Code","visibility":"visible"},"is_reseller":{"label":"3PL Account? - (check if yes)","visibility":"checkbox"}}},"logo":null,"object":"CarrierType","readable":"LaserShipV2","type":"LasershipV2Account"},{"fields":{"credentials":{"account_number":{"label":"Loomis - Express Account Number","visibility":"visible"},"password":{"label":"Loomis - Express Password","visibility":"password"},"username":{"label":"Loomis Express - Username","visibility":"visible"}},"test_credentials":{"account_number":{"label":"Test - Loomis Express Account Number","visibility":"visible"},"password":{"label":"Test - Loomis Express Password","visibility":"password"},"username":{"label":"Test - Loomis Express Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Loomis - Express","type":"LoomisExpressAccount"},{"fields":{"credentials":{"account_number":{"label":"LSO - Production Account Number","visibility":"visible"},"password":{"label":"LSO - Production Password","visibility":"password"},"username":{"label":"LSO Production - Username","visibility":"visible"}},"test_credentials":{"account_number":{"label":"LSO - Test Account Number","visibility":"visible"},"password":{"label":"LSO Test Password","visibility":"password"},"username":{"label":"LSO - Test Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"LSO","type":"LsoAccount"},{"fields":{"credentials":{"client_facility_id":{"label":"Client - Facility ID","visibility":"visible"},"client_id":{"label":"Client ID","visibility":"visible"},"client_secret":{"label":"Client - Secret","visibility":"password"},"fulfiller_facility_id":{"label":"Newgistics - Facility ID","visibility":"visible"},"merchant_id":{"label":"Merchant ID","visibility":"visible"},"tracking_api_key":{"label":"Tracking - API Key","visibility":"masked"}},"test_credentials":{"client_facility_id":{"label":"Client - Facility ID","visibility":"visible"},"client_id":{"label":"Client ID","visibility":"visible"},"client_secret":{"label":"Client - Secret","visibility":"password"},"fulfiller_facility_id":{"label":"Newgistics - Facility ID","visibility":"visible"},"merchant_id":{"label":"Merchant ID","visibility":"visible"},"tracking_api_key":{"label":"Tracking - API Key","visibility":"masked"}}},"logo":null,"object":"CarrierType","readable":"Newgistics","type":"NewgisticsAccount"},{"fields":{"credentials":{"api_access_key":{"label":"API - Access Key","visibility":"masked"},"return_api_access_key":{"label":"Return - API Access Key","visibility":"masked"}},"test_credentials":{"api_access_key":{"label":"Test - API Access Key","visibility":"masked"},"return_api_access_key":{"label":"Test - Return API Access Key","visibility":"masked"}}},"logo":null,"object":"CarrierType","readable":"OmniParcel","type":"OmniParcelAccount"},{"fields":{"credentials":{"account_number":{"label":"OnTrac - Account Number","visibility":"visible"},"password":{"label":"OnTrac API Password","visibility":"password"}},"test_credentials":{"account_number":{"label":"OnTrac - Test Account Number","visibility":"visible"},"password":{"label":"OnTrac Test - API Password","visibility":"password"}}},"logo":null,"object":"CarrierType","readable":"OnTrac","type":"OntracAccount"},{"fields":{"credentials":{"account_number":{"label":"Account - Number","visibility":"visible"},"aws_sftp_username":{"label":"SFTP Username","visibility":"visible"},"company_name":{"label":"Company - Name","visibility":"visible"},"facility_code":{"label":"Facility Code/Cost Center - ID for manifesting (optional)","visibility":"visible"},"mailer_id":{"label":"Mailer - ID","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"OSM - Worldwide","type":"OsmWorldwideAccount"},{"fields":{"credentials":{"account_number":{"label":"Parcelforce - Contract Number","visibility":"visible"},"department_id":{"label":"Department - ID - not required","visibility":"visible"},"password":{"label":"expressLink - API Password","visibility":"password"},"username":{"label":"expressLink API - Username","visibility":"visible"}},"test_credentials":{"account_number":{"label":"Parcelforce - Test Contract Number","visibility":"visible"},"department_id":{"label":"Test - Department ID - not required","visibility":"visible"},"password":{"label":"Test - expressLink API Password","visibility":"password"},"username":{"label":"Test - expressLink API Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Parcel - Force","type":"ParcelForceAccount"},{"fields":{"credentials":{"api_key":{"label":"Parcll - API key","visibility":"masked"},"origin_hub":{"label":"Parcll Origin Hub","visibility":"select"},"user_id":{"label":"Parcll - User Id","visibility":"visible"}},"test_credentials":{"api_key":{"label":"Test - Parcll API key","visibility":"masked"},"origin_hub":{"label":"Test Parcll Origin - Hub","visibility":"select"},"user_id":{"label":"Test Parcll User Id","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Parcll","type":"ParcllAccount"},{"fields":{"credentials":{"api_key":{"label":"Passport - Global API key","visibility":"masked"},"company_name":{"label":"Customer company - name registered with Passport Global","visibility":"visible"},"email":{"label":"Customer - email address registered with Passport Global","visibility":"visible"},"name":{"label":"Customer - name registered with Passport Global","visibility":"visible"},"phone":{"label":"Customer - phone number registered with Passport Global (optional)","visibility":"visible"}},"test_credentials":{"api_key":{"label":"Passport - Global Test API key","visibility":"masked"},"company_name":{"label":"Customer - company name registered with Passport Global","visibility":"visible"},"email":{"label":"Customer - email address registered with Passport Global","visibility":"visible"},"name":{"label":"Customer - name registered with Passport Global","visibility":"visible"},"phone":{"label":"Customer - phone number registered with Passport Global (optional)","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Passport - Global","type":"PassportGlobalAccount"},{"fields":{"credentials":{"account_number":{"label":"Purolator - Account Number","visibility":"visible"},"api_key":{"label":"Production API Key","visibility":"masked"},"password":{"label":"Production - API Key Password","visibility":"password"}}},"logo":null,"object":"CarrierType","readable":"Purolator","type":"PurolatorAccount"},{"fields":{"credentials":{"account_number":{"label":"Royal - Mail Account Number","visibility":"visible"},"posting_location_number":{"label":"Posting - Location Number","visibility":"visible"},"username":{"label":"OBA Email Address","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Royal - Mail","type":"RoyalMailAccount"},{"fields":{"credentials":{"account_number":{"label":"ePostGlobal - Account Number","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"ePost - Global","type":"RRDonnelleyAccount"},{"fields":{"credentials":{"api_key":{"label":"Sendle - API Key","visibility":"masked"},"user_id":{"label":"Sendle ID","visibility":"visible"}},"test_credentials":{"api_key":{"label":"Sendle - Sandbox API Key","visibility":"masked"},"user_id":{"label":"Sendle Sandbox ID","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Sendle","type":"SendleAccount"},{"fields":{"credentials":{"checkword":{"label":"SF - Express checkword","visibility":"visible"},"customer_code":{"label":"SF Express - customer code","visibility":"visible"},"customer_id":{"label":"SF Express customer - id","visibility":"visible"}},"test_credentials":{"checkword":{"label":"Test - SF Express checkword","visibility":"visible"},"customer_code":{"label":"Test - SF Express customer code","visibility":"visible"},"customer_id":{"label":"Test - SF Express customer id","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"SF - Express","type":"SfExpressAccount"},{"fields":{"credentials":{"account_number":{"label":"Spee-Dee - Account Number","visibility":"visible"},"ftp_password":{"label":"Spee-Dee FTP - Password","visibility":"password"},"ftp_username":{"label":"Spee-Dee FTP Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"Spee-Dee","type":"SpeedeeAccount"},{"fields":{"credentials":{"account_number":{"label":"StarTrack - Account Number","visibility":"visible"},"api_key":{"label":"StarTrack API Key","visibility":"masked"},"api_secret":{"label":"StarTrack - Secret Key","visibility":"password"},"print_as_you_go":{"label":"Print as you - go","visibility":"checkbox"}}},"logo":null,"object":"CarrierType","readable":"StarTrack","type":"StarTrackAccount"},{"fields":{"credentials":{"account_number":{"label":"TForce - Account Number","visibility":"visible"},"password":{"label":"TForce Password","visibility":"password"},"username":{"label":"TForce - Username","visibility":"visible"}},"test_credentials":{"account_number":{"label":"Test - TForce Account Number","visibility":"visible"},"password":{"label":"Test TForce - Password","visibility":"password"},"username":{"label":"Test TForce Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"TForce","type":"TforceConciseAccount"},{"fields":{"credentials":{"ftp_password":{"label":"FTP - Password","visibility":"password"},"ftp_username":{"label":"FTP Username","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"UDS","type":"UdsAccount"},{"fields":{"credentials":{"access_license_number":{"label":"UPS - Access License Number","visibility":"invisible"},"account_number":{"label":"UPS - Account Number","visibility":"readonly"},"password":{"label":"UPS.com Password","visibility":"invisible"},"user_id":{"label":"UPS.com - User ID","visibility":"invisible"}},"custom_workflow":true},"logo":null,"object":"CarrierType","readable":"UPS","type":"UpsAccount"},{"fields":{"credentials":{"api_key":{"label":"i-Parcel - API key","visibility":"masked"}}},"logo":null,"object":"CarrierType","readable":"UPS - i-Parcel","type":"UpsIparcelAccount"},{"fields":{"credentials":{"account_number":{"label":"UPS - Shipper Number","visibility":"visible"},"customer_guid":{"label":"UPS customer - GUID (optional)","visibility":"visible"},"customer_id":{"label":"UPS customer - id (optional)","visibility":"visible"},"password":{"label":"UPS.com Password","visibility":"password"},"user_id":{"label":"UPS.com - User ID","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"UPS - Mail Innovations","type":"UpsMailInnovationsAccount"},{"fields":{"credentials":{"address_city":{"label":"City","visibility":"visible"},"address_state":{"label":"State","visibility":"visible"},"address_street":{"label":"Street - Address","visibility":"visible"},"address_zip":{"label":"ZIP Code","visibility":"visible"},"company_name":{"label":"Account - Holder Name","visibility":"visible"},"email":{"label":"Email Address","visibility":"visible"},"phone":{"label":"Phone - Number","visibility":"visible"},"shipper_id":{"label":"Shipper Identifier (Optional)","visibility":"visible"}}},"logo":null,"object":"CarrierType","readable":"USPS","type":"UspsAccount"},{"fields":{"credentials":{"api_key":{"label":"Veho - Production API Key","visibility":"masked"}},"test_credentials":{"api_key":{"label":"Veho - Test API Key","visibility":"masked"}}},"logo":null,"object":"CarrierType","readable":"Veho","type":"VehoAccount"}]' + body: '[{"fields":{},"logo":null,"object":"CarrierType","readable":"Amazon MWS","type":"AmazonMwsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"APC","type":"ApcAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Asendia + USA (Legacy)","type":"AsendiaAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Asendia + USA","type":"AsendiaUsaAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Australia + Post","type":"AustraliaPostAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"AxlehireV3","type":"AxlehireV3Account"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Better + Trucks","type":"BetterTrucksAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Bond","type":"BondAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Canada + Post","type":"CanadaPostAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Canpar","type":"CanparAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"CDL + Last Mile Solutions","type":"ColumbusLastMileAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Courier + Express","type":"CourierExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"CouriersPlease","type":"CouriersPleaseAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Dai + Post","type":"DaiPostAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Deutsche + Post UK","type":"DeutschePostUKAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DHL + Ecommerce Asia","type":"DhlEcommerceAsiaAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DHL + eCommerce Solutions","type":"DhlEcsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DHL + Express","type":"DhlExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DHL + Parcel","type":"DhlParcelAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DPD","type":"DpdAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"DPD + UK","type":"DpdUkAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Estafeta","type":"EstafetaAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Fastway","type":"FastwayAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx","type":"FedexAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx + Cross Border","type":"FedexCrossBorderAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx + MailView","type":"FedexMailviewAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx + SameDay City","type":"FedexSamedayCityAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"FedEx + SmartPost","type":"FedexSmartpostAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Globegistics","type":"GlobegisticsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"GSO","type":"GsoAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Evri","type":"HermesAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Interlink + Express","type":"InterlinkExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"LaserShipV2","type":"LasershipV2Account"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Loomis + Express","type":"LoomisExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"LSO","type":"LsoAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Newgistics","type":"NewgisticsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"OmniParcel","type":"OmniParcelAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"OnTrac","type":"OntracAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"OSM + Worldwide","type":"OsmWorldwideAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Parcel + Force","type":"ParcelForceAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Parcll","type":"ParcllAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Passport + Global","type":"PassportGlobalAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Purolator","type":"PurolatorAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Royal + Mail","type":"RoyalMailAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"ePost + Global","type":"RRDonnelleyAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Sendle","type":"SendleAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"SF + Express","type":"SfExpressAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Spee-Dee","type":"SpeedeeAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"StarTrack","type":"StarTrackAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Swyft","type":"SwyftAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"TForce","type":"TforceConciseAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UDS","type":"UdsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UPS","type":"UpsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UPS + i-Parcel","type":"UpsIparcelAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"UPS + Mail Innovations","type":"UpsMailInnovationsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"USPS","type":"UspsAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"Veho","type":"VehoAccount"},{"fields":{},"logo":null,"object":"CarrierType","readable":"XDelivery","type":"XDeliveryAccount"}]' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"f9f7c974c65e710285fe3c38fe492e01" + - W/"ab9b21e41223013b1cefac95928e4073" Expires: - "0" Pragma: @@ -329,7 +63,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc1ff246ba1007010b1 + - 8f5eb2cf632b5651ec7d9989000d989a X-Frame-Options: - SAMEORIGIN X-Node: @@ -337,13 +71,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.025027" + - "0.028440" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCarrierAccountUpdate.yaml b/tests/cassettes/TestCarrierAccountUpdate.yaml index 222c30f..714b11f 100644 --- a/tests/cassettes/TestCarrierAccountUpdate.yaml +++ b/tests/cassettes/TestCarrierAccountUpdate.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"carrier_account":{"type":"DhlEcsAccount","credentials":{"client_id":"123456","client_secret":"123abc","distribution_center":"USLAX1","pickup_id":"123456"},"test_credentials":{"client_id":"123456","client_secret":"123abc","distribution_center":"USLAX1","pickup_id":"123456"}}}' + body: '{"carrier_account":{"credentials":{},"test_credentials":{},"type":"DhlEcsAccount"}}' form: {} headers: Authorization: @@ -14,24 +14,16 @@ interactions: url: https://api.easypost.com/v2/carrier_accounts method: POST response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2022-09-19T21:09:16Z","credentials":{},"description":"DHL - eCommerce Solutions Account","fields":{"credentials":{"client_id":{"label":"DHL - eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"DHL - eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"DHL - eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"DHL - eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}},"test_credentials":{"client_id":{"label":"Test - DHL eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"Test - DHL eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"Test - DHL eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"Test - DHL eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}}},"id":"ca_145f3b337d7a44149ff677fa6dfbdf40","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-09-19T21:09:16Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2022-09-21T18:22:09Z","credentials":{},"description":"DHL + eCommerce Solutions Account","fields":{},"id":"ca_46e8f472ac31495895513e90fedf866b","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-09-21T18:22:09Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e93da959f4b0b70a9e81ea828a5b1779" + - W/"021dc22a22738672b1d934e563f01130" Expires: - "0" Pragma: @@ -47,28 +39,28 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - dcb58cf26328da7ce7886e22000a0969 + - 8f5eb2cf632b5651ec7d9989000d98c7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 29913d444b - - extlb1nuq 29913d444b + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.123143" + - "0.121496" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"carrier_account":{"id":"ca_145f3b337d7a44149ff677fa6dfbdf40","description":"My - custom description","credentials":null,"test_credentials":null}}' + body: '{"carrier_account":{"credentials":null,"description":"My custom description","id":"ca_46e8f472ac31495895513e90fedf866b","test_credentials":null}}' form: {} headers: Authorization: @@ -77,27 +69,19 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_145f3b337d7a44149ff677fa6dfbdf40 + url: https://api.easypost.com/v2/carrier_accounts/ca_46e8f472ac31495895513e90fedf866b method: PATCH response: - body: '{"billing_type":"carrier","clone":false,"created_at":"2022-09-19T21:09:16Z","credentials":{},"description":"My - custom description","fields":{"credentials":{"client_id":{"label":"DHL eCommerce - Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"DHL - eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"DHL - eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"DHL - eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}},"test_credentials":{"client_id":{"label":"Test - DHL eCommerce Solutions client ID","value":"123456","visibility":"visible"},"client_secret":{"label":"Test - DHL eCommerce Solutions client secret","value":"********","visibility":"password"},"distribution_center":{"label":"Test - DHL eCommerce Solutions distribution center","value":"USLAX1","visibility":"visible"},"pickup_id":{"label":"Test - DHL eCommerce Solutions pickup ID","value":"123456","visibility":"visible"}}},"id":"ca_145f3b337d7a44149ff677fa6dfbdf40","logo":null,"object":"CarrierAccount","readable":"DHL - eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-09-19T21:09:16Z"}' + body: '{"billing_type":"carrier","clone":false,"created_at":"2022-09-21T18:22:09Z","credentials":{},"description":"My + custom description","fields":{},"id":"ca_46e8f472ac31495895513e90fedf866b","logo":null,"object":"CarrierAccount","readable":"DHL + eCommerce Solutions","reference":null,"test_credentials":{},"type":"DhlEcsAccount","updated_at":"2022-09-21T18:22:09Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e521cc683f35a528781eb123c633be0b" + - W/"47febe450de67899518f989947e9c972" Expires: - "0" Pragma: @@ -113,20 +97,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - dcb58cf26328da7ce7886e22000a0977 + - 8f5eb2cf632b5651ec7d9989000d98e8 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - intlb1nuq 29913d444b - - extlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.142906" + - "0.136648" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -140,7 +125,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/carrier_accounts/ca_145f3b337d7a44149ff677fa6dfbdf40 + url: https://api.easypost.com/v2/carrier_accounts/ca_46e8f472ac31495895513e90fedf866b method: DELETE response: body: '{}' @@ -166,20 +151,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - dcb58cf26328da7ce7886e22000a0986 + - 8f5eb2cf632b5652ec7d9989000d991e X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 29913d444b - - extlb1nuq 29913d444b + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.121902" + - "0.126368" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCustomsInfoCreate.yaml b/tests/cassettes/TestCustomsInfoCreate.yaml index f35647c..b2b9844 100644 --- a/tests/cassettes/TestCustomsInfoCreate.yaml +++ b/tests/cassettes/TestCustomsInfoCreate.yaml @@ -2,9 +2,9 @@ version: 1 interactions: - request: - body: '{"customs_info":{"eel_pfc":"NOEEI 30.37(a)","contents_type":"merchandise","customs_certify":true,"customs_signer":"Steve - Brule","non_delivery_option":"return","restriction_type":"none","customs_items":[{"description":"Sweet - shirts","quantity":2,"weight":11,"hs_tariff_number":"654321","origin_country":"US"}]}}' + body: '{"customs_info":{"contents_type":"merchandise","customs_certify":true,"customs_items":[{"description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.25","weight":11}],"customs_signer":"Steve + Brule","eel_pfc":"NOEEI 30.37(a)","non_delivery_option":"return","restriction_type":"none"}}' form: {} headers: Authorization: @@ -16,20 +16,20 @@ interactions: url: https://api.easypost.com/v2/customs_infos method: POST response: - body: '{"id":"cstinfo_1a95e3744bbe46a3a460e1390c720406","object":"CustomsInfo","created_at":"2022-08-19T19:56:53Z","updated_at":"2022-08-19T19:56:53Z","contents_explanation":null,"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_259dae1328f14556b35609d0148817df","object":"CustomsItem","created_at":"2022-08-19T19:56:53Z","updated_at":"2022-08-19T19:56:53Z","description":"Sweet - shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":null,"weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]}' + body: '{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:22:10Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:22:10Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_8dc89b0fe8f54dd7be93e2bad6c6fd86","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:22:10Z","value":"23.25","weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_1b4029fe9bfb4278bbd1569b487d82f2","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:22:10Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"be3b3a919eb3af163dde0c7b2153408e" + - W/"49323460285491b7c61d72fc364f8b1d" Expires: - "0" Location: - - /api/v2/customs_infos/cstinfo_1a95e3744bbe46a3a460e1390c720406 + - /api/v2/customs_infos/cstinfo_1b4029fe9bfb4278bbd1569b487d82f2 Pragma: - no-cache Referrer-Policy: @@ -43,20 +43,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 9c287c3762ffeb05ff24e19c00087ea0 + - 8f5eb2cf632b5652ec7d9989000d9938 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb1nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.031956" + - "0.036246" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestCustomsInfoRetrieve.yaml b/tests/cassettes/TestCustomsInfoRetrieve.yaml index ee7f940..a588131 100644 --- a/tests/cassettes/TestCustomsInfoRetrieve.yaml +++ b/tests/cassettes/TestCustomsInfoRetrieve.yaml @@ -2,9 +2,9 @@ version: 1 interactions: - request: - body: '{"customs_info":{"eel_pfc":"NOEEI 30.37(a)","contents_type":"merchandise","customs_certify":true,"customs_signer":"Steve - Brule","non_delivery_option":"return","restriction_type":"none","customs_items":[{"description":"Sweet - shirts","quantity":2,"weight":11,"hs_tariff_number":"654321","origin_country":"US"}]}}' + body: '{"customs_info":{"contents_type":"merchandise","customs_certify":true,"customs_items":[{"description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.25","weight":11}],"customs_signer":"Steve + Brule","eel_pfc":"NOEEI 30.37(a)","non_delivery_option":"return","restriction_type":"none"}}' form: {} headers: Authorization: @@ -16,20 +16,20 @@ interactions: url: https://api.easypost.com/v2/customs_infos method: POST response: - body: '{"id":"cstinfo_a99e8fbfdc904d2ca29b462bfa944c0f","object":"CustomsInfo","created_at":"2022-08-19T17:47:45Z","updated_at":"2022-08-19T17:47:45Z","contents_explanation":null,"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_d645ccf2a2ee44dca4af409dc46fa61c","object":"CustomsItem","created_at":"2022-08-19T17:47:45Z","updated_at":"2022-08-19T17:47:45Z","description":"Sweet - shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":null,"weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]}' + body: '{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:22:10Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:22:10Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_8d662e3f50554f87bf83dd873c4a7ac0","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:22:10Z","value":"23.25","weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_65252fb1cd7b481a8e71a48f7b21791a","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:22:10Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"9a9d0a8e7464bdddecc8338562406272" + - W/"254899692633cbf8773a4d14034fdbf7" Expires: - "0" Location: - - /api/v2/customs_infos/cstinfo_a99e8fbfdc904d2ca29b462bfa944c0f + - /api/v2/customs_infos/cstinfo_65252fb1cd7b481a8e71a48f7b21791a Pragma: - no-cache Referrer-Policy: @@ -38,28 +38,26 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc1ff246ba1007010dd + - 8f5eb2cf632b5652ec7d9989000d995e X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.035912" + - "0.041372" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -73,19 +71,19 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/customs_infos/cstinfo_a99e8fbfdc904d2ca29b462bfa944c0f + url: https://api.easypost.com/v2/customs_infos/cstinfo_65252fb1cd7b481a8e71a48f7b21791a method: GET response: - body: '{"id":"cstinfo_a99e8fbfdc904d2ca29b462bfa944c0f","object":"CustomsInfo","created_at":"2022-08-19T17:47:45Z","updated_at":"2022-08-19T17:47:45Z","contents_explanation":null,"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_d645ccf2a2ee44dca4af409dc46fa61c","object":"CustomsItem","created_at":"2022-08-19T17:47:45Z","updated_at":"2022-08-19T17:47:45Z","description":"Sweet - shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":null,"weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}]}' + body: '{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:22:10Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:22:10Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_8d662e3f50554f87bf83dd873c4a7ac0","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:22:10Z","value":"23.25","weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_65252fb1cd7b481a8e71a48f7b21791a","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:22:10Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"9a9d0a8e7464bdddecc8338562406272" + - W/"254899692633cbf8773a4d14034fdbf7" Expires: - "0" Pragma: @@ -101,21 +99,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc1ff246ba1007010fd + - 8f5eb2cf632b5652ec7d9989000d9979 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.021202" + - "0.025455" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestCustomsItemCreate.yaml b/tests/cassettes/TestCustomsItemCreate.yaml index c074173..8aaa8f0 100644 --- a/tests/cassettes/TestCustomsItemCreate.yaml +++ b/tests/cassettes/TestCustomsItemCreate.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"customs_item":{"description":"Sweet shirts","quantity":2,"weight":11,"hs_tariff_number":"654321","origin_country":"US"}}' + body: '{"customs_item":{"description":"Sweet shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.25","weight":11}}' form: {} headers: Authorization: @@ -14,19 +14,19 @@ interactions: url: https://api.easypost.com/v2/customs_items method: POST response: - body: '{"id":"cstitem_ae3bd42092bd43108c552eac8bd12f49","object":"CustomsItem","created_at":"2022-08-19T20:08:37Z","updated_at":"2022-08-19T20:08:37Z","description":"Sweet - shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.25","weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}' + body: '{"code":null,"created_at":"2022-09-21T18:22:11Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_ee14481102e24df8a9fdf2b442f222c4","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:22:11Z","value":"23.25","weight":11}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"a3138115da6d4db9482b99b70b3c05ed" + - W/"d98637f3e4ee7e8c6e4a9ff104e80c5f" Expires: - "0" Location: - - /api/v2/customs_items/cstitem_ae3bd42092bd43108c552eac8bd12f49 + - /api/v2/customs_items/cstitem_ee14481102e24df8a9fdf2b442f222c4 Pragma: - no-cache Referrer-Policy: @@ -40,20 +40,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 9c287c3d62ffedc5ff24e25c00098f68 + - 8f5eb2cf632b5653ec7d9989000d9994 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb1nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.095091" + - "0.029216" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestCustomsItemRetrieve.yaml b/tests/cassettes/TestCustomsItemRetrieve.yaml index 25bc003..442a32c 100644 --- a/tests/cassettes/TestCustomsItemRetrieve.yaml +++ b/tests/cassettes/TestCustomsItemRetrieve.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"customs_item":{"description":"Sweet shirts","quantity":2,"weight":11,"hs_tariff_number":"654321","origin_country":"US"}}' + body: '{"customs_item":{"description":"Sweet shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":"23.25","weight":11}}' form: {} headers: Authorization: @@ -14,19 +14,19 @@ interactions: url: https://api.easypost.com/v2/customs_items method: POST response: - body: '{"id":"cstitem_fb0b3407c8924072a4ca4798e96b4f0c","object":"CustomsItem","created_at":"2022-08-19T17:47:46Z","updated_at":"2022-08-19T17:47:46Z","description":"Sweet - shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":null,"weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}' + body: '{"code":null,"created_at":"2022-09-21T18:22:11Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_5aeeaca2d0b84f508f072ea32bee7bf0","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:22:11Z","value":"23.25","weight":11}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"bcebc3473cd356ffc768ae7b42b24c24" + - W/"e0634667bbc2b1d4191114757a6a8c27" Expires: - "0" Location: - - /api/v2/customs_items/cstitem_fb0b3407c8924072a4ca4798e96b4f0c + - /api/v2/customs_items/cstitem_5aeeaca2d0b84f508f072ea32bee7bf0 Pragma: - no-cache Referrer-Policy: @@ -40,21 +40,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc2ff246ba10070111a + - 8f5eb2cf632b5653ec7d9989000d99d3 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.025739" + - "0.138491" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -68,18 +68,18 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/customs_items/cstitem_fb0b3407c8924072a4ca4798e96b4f0c + url: https://api.easypost.com/v2/customs_items/cstitem_5aeeaca2d0b84f508f072ea32bee7bf0 method: GET response: - body: '{"id":"cstitem_fb0b3407c8924072a4ca4798e96b4f0c","object":"CustomsItem","created_at":"2022-08-19T17:47:46Z","updated_at":"2022-08-19T17:47:46Z","description":"Sweet - shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"value":null,"weight":11.0,"code":null,"mode":"test","manufacturer":null,"currency":null,"eccn":null,"printed_commodity_identifier":null}' + body: '{"code":null,"created_at":"2022-09-21T18:22:11Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_5aeeaca2d0b84f508f072ea32bee7bf0","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:22:11Z","value":"23.25","weight":11}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"bcebc3473cd356ffc768ae7b42b24c24" + - W/"e0634667bbc2b1d4191114757a6a8c27" Expires: - "0" Pragma: @@ -95,21 +95,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc2ff246ba10070113f + - 8f5eb2cf632b5653ec7d9989000d9a10 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.019122" + - "0.023217" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEndShipperAll.yaml b/tests/cassettes/TestEndShipperAll.yaml index f73f94e..41d4c87 100644 --- a/tests/cassettes/TestEndShipperAll.yaml +++ b/tests/cassettes/TestEndShipperAll.yaml @@ -14,28 +14,28 @@ interactions: url: https://api.easypost.com/v2/end_shippers method: GET response: - body: '{"end_shippers":[{"city":"SAN FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-08-17T21:16:16+00:00","email":"TEST@EXAMPLE.COM","id":"es_8d2455918db745e68ad1b4e3cb17fdcb","name":"JACK - SPARROW","object":"EndShipper","phone":"5555555555","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-17T21:16:16+00:00","zip":"94107-1670"},{"city":"SAN - FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-08-17T22:05:32+00:00","email":"TEST@EXAMPLE.COM","id":"es_9904839af4974a75976f4406ae1888c2","name":"JACK - SPARROW","object":"EndShipper","phone":"5555555555","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-17T22:05:32+00:00","zip":"94107-1670"},{"city":"SAN - FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-08-17T22:06:41+00:00","email":"TEST@EXAMPLE.COM","id":"es_5733ebe4037848aeab898f266d7f5df3","name":"JACK - SPARROW","object":"EndShipper","phone":"5555555555","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-17T22:06:41+00:00","zip":"94107-1670"},{"city":"SAN - FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-08-17T22:06:42+00:00","email":"TEST@EXAMPLE.COM","id":"es_249216c6d0c343c6b8ea8d9a340625c1","name":"JACK - SPARROW","object":"EndShipper","phone":"5555555555","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-17T22:06:42+00:00","zip":"94107-1670"},{"city":"SAN - FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-08-17T22:06:43+00:00","email":"TEST@EXAMPLE.COM","id":"es_2bdf245164ec4a12adea806f7b94ed54","name":"JACK - SPARROW","object":"EndShipper","phone":"5555555555","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-17T22:06:43+00:00","zip":"94107-1670"}],"has_more":true}' + body: '{"end_shippers":[{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T15:54:21+00:00","email":"REDACTED","id":"es_b4d6563ab66249fa8b02c0e820bf9745","mode":"test","name":"JACK + SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T15:54:21+00:00","zip":"94107-1670"},{"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T15:54:21+00:00","email":"REDACTED","id":"es_195fab316cd54a4389e352f788fee7eb","mode":"test","name":"JACK + SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T15:54:21+00:00","zip":"94107-1670"},{"city":"SAN + FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-09-21T15:54:22+00:00","email":"REDACTED","id":"es_9e9e5459af2547dfb98ffdd3dd28a4f5","mode":"test","name":"CAPTAIN + SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T15:54:22+00:00","zip":"94107-1670"},{"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T16:19:10+00:00","email":"REDACTED","id":"es_1b855ed6515c44e991af489b6e3ee785","mode":"test","name":"JACK + SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T16:19:10+00:00","zip":"94107-1670"},{"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T16:19:10+00:00","email":"REDACTED","id":"es_5842c25848874425b2fbe1f7f892326c","mode":"test","name":"JACK + SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T16:19:10+00:00","zip":"94107-1670"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b4f1d73b31319a61246080f5267ec6ed" + - W/"1b7898a0057791f07def4b5028b0ced6" Expires: - "0" Pragma: @@ -46,25 +46,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - bffd75b363069a39e78a860500842ad6 + - 8f5eb2cf632b5654ec7d9989000d9a38 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb1nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.059082" + - "0.090942" X-Version-Label: - - easypost-202208241853-b300c23ebd-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEndShipperCreate.yaml b/tests/cassettes/TestEndShipperCreate.yaml index d9fa97a..e0aa3d8 100644 --- a/tests/cassettes/TestEndShipperCreate.yaml +++ b/tests/cassettes/TestEndShipperCreate.yaml @@ -2,8 +2,9 @@ version: 1 interactions: - request: - body: '{"address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"}}' form: {} headers: Authorization: @@ -15,16 +16,16 @@ interactions: url: https://api.easypost.com/v2/end_shippers method: POST response: - body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-08-24T21:38:01+00:00","email":"REDACTED","id":"es_fa2f64e932a34f74b9588679737d104d","name":"JACK + body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:12+00:00","email":"REDACTED","id":"es_175c05d61f8c48a396665886d336d257","mode":"test","name":"JACK SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2022-08-24T21:38:01+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2022-09-21T18:22:12+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"a494232c8b18f73b77077c763292c6f2" + - W/"57cc5cf12f61e596758c20c9c4424835" Expires: - "0" Pragma: @@ -35,25 +36,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - bffd75b363069a39e78a860500842adb + - 8f5eb2cf632b5654ec7d9989000d9a69 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb1nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.033472" + - "0.039007" X-Version-Label: - - easypost-202208241853-b300c23ebd-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestEndShipperRetrieve.yaml b/tests/cassettes/TestEndShipperRetrieve.yaml index 7cd3458..83e97df 100644 --- a/tests/cassettes/TestEndShipperRetrieve.yaml +++ b/tests/cassettes/TestEndShipperRetrieve.yaml @@ -2,8 +2,9 @@ version: 1 interactions: - request: - body: '{"address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"}}' form: {} headers: Authorization: @@ -15,16 +16,16 @@ interactions: url: https://api.easypost.com/v2/end_shippers method: POST response: - body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-08-24T21:38:01+00:00","email":"REDACTED","id":"es_26ab326c9d5f49cc93b88dd78c4ff5c7","name":"JACK + body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:12+00:00","email":"REDACTED","id":"es_7f798c940569425caa36eafe8dd41178","mode":"test","name":"JACK SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2022-08-24T21:38:01+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2022-09-21T18:22:12+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"c4a471864b99e260e95893f15d9e989d" + - W/"8bf4c86a3b864e2972c4abe2e5391de3" Expires: - "0" Pragma: @@ -40,7 +41,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - bffd75b363069a39e78a860500842adf + - 8f5eb2cf632b5654ec7d9989000d9a90 X-Frame-Options: - SAMEORIGIN X-Node: @@ -48,12 +49,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb1nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.038484" + - "0.042191" X-Version-Label: - - easypost-202208241853-b300c23ebd-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -67,19 +69,19 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/end_shippers/es_26ab326c9d5f49cc93b88dd78c4ff5c7 + url: https://api.easypost.com/v2/end_shippers/es_7f798c940569425caa36eafe8dd41178 method: GET response: - body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-08-24T21:38:01+00:00","email":"REDACTED","id":"es_26ab326c9d5f49cc93b88dd78c4ff5c7","name":"JACK + body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:12+00:00","email":"REDACTED","id":"es_7f798c940569425caa36eafe8dd41178","mode":"test","name":"JACK SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-24T21:38:01+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:12+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"dc67ede9df009997804e7144e7277de6" + - W/"f4427a9b6c7b3774cda6984cbdb1a244" Expires: - "0" Pragma: @@ -95,7 +97,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - bffd75b363069a39e78a860500842ae5 + - 8f5eb2cf632b5654ec7d9989000d9aba X-Frame-Options: - SAMEORIGIN X-Node: @@ -103,12 +105,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb1nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.034294" + - "0.034331" X-Version-Label: - - easypost-202208241853-b300c23ebd-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEndShipperUpdate.yaml b/tests/cassettes/TestEndShipperUpdate.yaml index fdb7f9b..2cd8d61 100644 --- a/tests/cassettes/TestEndShipperUpdate.yaml +++ b/tests/cassettes/TestEndShipperUpdate.yaml @@ -2,8 +2,9 @@ version: 1 interactions: - request: - body: '{"address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"}}' form: {} headers: Authorization: @@ -15,16 +16,16 @@ interactions: url: https://api.easypost.com/v2/end_shippers method: POST response: - body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-08-24T21:48:57+00:00","email":"REDACTED","id":"es_c13b91493daf46bea7b3f5b006f3a876","name":"JACK + body: '{"city":"SAN FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:13+00:00","email":"REDACTED","id":"es_6ecdc5a7690c41a99db4bc8956d858a0","mode":"test","name":"JACK SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2022-08-24T21:48:57+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2022-09-21T18:22:13+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"1176af3f8a112ea6bf04a8d3c215a469" + - W/"4a455eb7c89c6123787b0cd857d92859" Expires: - "0" Pragma: @@ -40,29 +41,30 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 70da33d963069cc9e78a86aa008a7493 + - 8f5eb2cf632b5655ec7d9989000d9ad7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.047548" + - "0.039581" X-Version-Label: - - easypost-202208241853-b300c23ebd-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"address":{"id":"es_c13b91493daf46bea7b3f5b006f3a876","object":"EndShipper","created_at":"2022-08-24T21:48:57Z","updated_at":"2022-08-24T21:48:57Z","street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Captain - Sparrow","company":"EasyPost","phone":"9999999999","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","company":"EasyPost","country":"US","created_at":"2022-09-21T18:22:13Z","email":"REDACTED","id":"es_6ecdc5a7690c41a99db4bc8956d858a0","mode":"test","name":"Captain + Sparrow","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:13Z","zip":"94107"}}' form: {} headers: Authorization: @@ -71,19 +73,19 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/end_shippers/es_c13b91493daf46bea7b3f5b006f3a876 + url: https://api.easypost.com/v2/end_shippers/es_6ecdc5a7690c41a99db4bc8956d858a0 method: PUT response: - body: '{"city":"SAN FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-08-24T21:48:57+00:00","email":"REDACTED","id":"es_c13b91493daf46bea7b3f5b006f3a876","name":"CAPTAIN + body: '{"city":"SAN FRANCISCO","company":"EASYPOST","country":"US","created_at":"2022-09-21T18:22:13+00:00","email":"REDACTED","id":"es_6ecdc5a7690c41a99db4bc8956d858a0","mode":"test","name":"CAPTAIN SPARROW","object":"EndShipper","phone":"REDACTED","state":"CA","street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2022-08-24T21:48:57+00:00","zip":"94107-1670"}' + TOWNSEND ST APT 20","street2":"","updated_at":"2022-09-21T18:22:13+00:00","zip":"94107-1670"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"291961407aa97dd6b8824e6f82a53d9a" + - W/"3f9d435e402462bbb70106609fbb122e" Expires: - "0" Pragma: @@ -94,27 +96,26 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 70da33d963069cc9e78a86aa008a749d + - 8f5eb2cf632b5655ec7d9989000d9b06 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.054333" + - "0.059590" X-Version-Label: - - easypost-202208241853-b300c23ebd-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestError.yaml b/tests/cassettes/TestError.yaml index 5dce35b..239fe2c 100644 --- a/tests/cassettes/TestError.yaml +++ b/tests/cassettes/TestError.yaml @@ -14,8 +14,8 @@ interactions: url: https://api.easypost.com/v2/shipments method: POST response: - body: '{"error":{"code":"PARAMETER.REQUIRED","message":"Missing required parameter.","errors":[{"field":"shipment","message":"cannot - be blank"}]}}' + body: '{"error":{"code":"PARAMETER.REQUIRED","errors":[{"field":"shipment","message":"cannot + be blank"}],"message":"Missing required parameter."}}' headers: Cache-Control: - private, no-cache, no-store @@ -31,26 +31,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc2ff246ba100701157 + - 8f5eb2cf632b5655ec7d9989000d9b1c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.035851" + - "0.035652" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 422 Unprocessable Entity diff --git a/tests/cassettes/TestEventAll.yaml b/tests/cassettes/TestEventAll.yaml index 4224793..e46c3a4 100644 --- a/tests/cassettes/TestEventAll.yaml +++ b/tests/cassettes/TestEventAll.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/events method: GET response: - body: '{"events":[{"description":"batch.updated","id":"evt_06fcd1bc1fe711edb3b177a8c827db35","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-08-19T17:47:43.349Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_064e06001fe711ed83e6114d442c2ff5","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-08-19T17:47:42.203Z","mode":"test","object":"Event"},{"description":"batch.created","id":"evt_0642f5081fe711ed82210338122fd97c","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-08-19T17:47:42.131Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_062467001fe711ed860f67658c493e36","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-08-19T17:47:41.930Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_03a2d3361fe711ed99d619c0097af36a","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-08-19T17:47:37.726Z","mode":"test","object":"Event"}],"has_more":true}' + body: '{"events":[{"created_at":"2022-09-21T18:22:06.561Z","description":"batch.updated","id":"evt_4c63c6b839da11ed8d685d48e2c697ba","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:05.563Z","description":"batch.updated","id":"evt_4bcb6cec39da11eda0947fe3e4b3e967","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:05.462Z","description":"batch.created","id":"evt_4bbc1e2239da11ed97c50bd3489501b3","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:05.240Z","description":"batch.updated","id":"evt_4b9a473439da11edb64a1fdc09b9363a","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:00.920Z","description":"batch.updated","id":"evt_49070b3839da11edaef8653a6b54a761","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"200ffd037a334d860ed112b1fa468c17" + - W/"3bbe2343c6d080ba7e41030e598c16eb" Expires: - "0" Pragma: @@ -37,21 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc2ff246ba100701165 + - 8f5eb2cf632b5655ec7d9989000d9b4b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.215374" + - "0.191359" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEventRetrieve.yaml b/tests/cassettes/TestEventRetrieve.yaml index d7636f6..3ba46bb 100644 --- a/tests/cassettes/TestEventRetrieve.yaml +++ b/tests/cassettes/TestEventRetrieve.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/events method: GET response: - body: '{"events":[{"description":"batch.updated","id":"evt_06fcd1bc1fe711edb3b177a8c827db35","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-08-19T17:47:43.349Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_064e06001fe711ed83e6114d442c2ff5","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-08-19T17:47:42.203Z","mode":"test","object":"Event"},{"description":"batch.created","id":"evt_0642f5081fe711ed82210338122fd97c","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-08-19T17:47:42.131Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_062467001fe711ed860f67658c493e36","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-08-19T17:47:41.930Z","mode":"test","object":"Event"},{"description":"batch.updated","id":"evt_03a2d3361fe711ed99d619c0097af36a","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-08-19T17:47:37.726Z","mode":"test","object":"Event"}],"has_more":true}' + body: '{"events":[{"created_at":"2022-09-21T18:22:06.561Z","description":"batch.updated","id":"evt_4c63c6b839da11ed8d685d48e2c697ba","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:05.563Z","description":"batch.updated","id":"evt_4bcb6cec39da11eda0947fe3e4b3e967","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:05.462Z","description":"batch.created","id":"evt_4bbc1e2239da11ed97c50bd3489501b3","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:05.240Z","description":"batch.updated","id":"evt_4b9a473439da11edb64a1fdc09b9363a","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:00.920Z","description":"batch.updated","id":"evt_49070b3839da11edaef8653a6b54a761","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"200ffd037a334d860ed112b1fa468c17" + - W/"3bbe2343c6d080ba7e41030e598c16eb" Expires: - "0" Pragma: @@ -37,21 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc3ff246ba100701198 + - 8f5eb2cf632b5656ec7d9989000d9b88 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.174509" + - "0.191090" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -65,17 +65,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/events/evt_06fcd1bc1fe711edb3b177a8c827db35 + url: https://api.easypost.com/v2/events/evt_4c63c6b839da11ed8d685d48e2c697ba method: GET response: - body: '{"description":"batch.updated","mode":"test","previous_attributes":{"state":"label_generating"},"created_at":"2022-08-19T17:47:43.000Z","pending_urls":[],"completed_urls":[],"updated_at":"2022-08-19T17:47:43.000Z","id":"evt_06fcd1bc1fe711edb3b177a8c827db35","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","object":"Event"}' + body: '{"completed_urls":[],"created_at":"2022-09-21T18:22:07.000Z","description":"batch.updated","id":"evt_4c63c6b839da11ed8d685d48e2c697ba","mode":"test","object":"Event","pending_urls":[],"previous_attributes":{"state":"label_generating"},"status":"pending","updated_at":"2022-09-21T18:22:07.000Z","user_id":"user_a76997d126dd488f8ad22d52301300b0"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b165def83da9e7401d33ed4de1d5ddee" + - W/"19645b7a1c05784db7d9af819e9a1641" Expires: - "0" Pragma: @@ -91,21 +91,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc3ff246ba1007011c0 + - 8f5eb2cf632b5656ec7d9989000d9bb9 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.030660" + - "0.029898" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestEventRetrievePayload.yaml b/tests/cassettes/TestEventRetrievePayload.yaml index e625816..30974f3 100644 --- a/tests/cassettes/TestEventRetrievePayload.yaml +++ b/tests/cassettes/TestEventRetrievePayload.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/events method: GET response: - body: '{"events":[{"description":"tracker.updated","id":"evt_2f0ff912353711edb1414b058f79ece1","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-09-15T20:44:24.740Z","mode":"test","object":"Event"},{"description":"tracker.updated","id":"evt_0b3fd340353711edb6b90118615e3ebd","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-09-15T20:43:24.655Z","mode":"test","object":"Event"},{"description":"tracker.updated","id":"evt_e7737390353611ed8f6b6f8b91f724e6","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-09-15T20:42:24.596Z","mode":"test","object":"Event"},{"description":"tracker.updated","id":"evt_c3a1e8e8353611edbf5117a095b5ccdc","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-09-15T20:41:24.502Z","mode":"test","object":"Event"},{"description":"tracker.created","id":"evt_b1c07234353611ed90604f7d07c14a3a","user_id":"user_a76997d126dd488f8ad22d52301300b0","status":"pending","created_at":"2022-09-15T20:40:54.503Z","mode":"test","object":"Event"}],"has_more":false}' + body: '{"events":[{"created_at":"2022-09-21T18:22:06.561Z","description":"batch.updated","id":"evt_4c63c6b839da11ed8d685d48e2c697ba","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:05.563Z","description":"batch.updated","id":"evt_4bcb6cec39da11eda0947fe3e4b3e967","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:05.462Z","description":"batch.created","id":"evt_4bbc1e2239da11ed97c50bd3489501b3","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:05.240Z","description":"batch.updated","id":"evt_4b9a473439da11edb64a1fdc09b9363a","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"},{"created_at":"2022-09-21T18:22:00.920Z","description":"batch.updated","id":"evt_49070b3839da11edaef8653a6b54a761","mode":"test","object":"Event","status":"pending","user_id":"user_a76997d126dd488f8ad22d52301300b0"}],"has_more":true}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"ff9685eb2e90c8955a379520f17f5f09" + - W/"3bbe2343c6d080ba7e41030e598c16eb" Expires: - "0" Pragma: @@ -37,20 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - dcb58cf26328c9bbe2b9726f00042c6a + - 8f5eb2cf632b5657ec7d9989000d9bde X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb1nuq 29913d444b + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.450236" + - "0.193640" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -64,7 +65,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/events/evt_2f0ff912353711edb1414b058f79ece1/payloads + url: https://api.easypost.com/v2/events/evt_4c63c6b839da11ed8d685d48e2c697ba/payloads method: GET response: body: '{"payloads":[]}' @@ -85,25 +86,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - dcb58cf26328c9bce2b9726f00042c9c + - 8f5eb2cf632b5657ec7d9989000d9c1f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb1nuq 29913d444b + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.033525" + - "0.032034" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestInsuranceAll.yaml b/tests/cassettes/TestInsuranceAll.yaml index 7d07bf2..66d38ae 100644 --- a/tests/cassettes/TestInsuranceAll.yaml +++ b/tests/cassettes/TestInsuranceAll.yaml @@ -14,14 +14,107 @@ interactions: url: https://api.easypost.com/v2/insurances method: GET response: - body: '{"insurances":[],"has_more":false}' + body: '{"has_more":true,"insurances":[{"amount":"100.00000","created_at":"2022-09-21T16:19:59Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T16:19:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3c94e9ae39c911edbca3ac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T16:19:58+00:00","verifications":{},"zip":"90277"},"id":"ins_0fc35aa77e3b4dd1b1d276d1795bf2b7","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_33c7b29288684c06a35298e22dc86bcb","status":"purchased","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T16:19:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_3c93373439c911ed9c24ac1f6bc72124","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T16:19:58+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2022-08-24T06:13:59Z","object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class + Package Service"},"created_at":"2022-09-21T16:19:59Z","est_delivery_date":"2022-09-21T16:22:59Z","fees":[],"finalized":true,"id":"trk_d73961558ac14c06aebd81cb61dfed1e","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Q3Mzk2MTU1OGFjMTRjMDZhZWJkODFjYjYxZGZlZDFl","shipment_id":"shp_33c7b29288684c06a35298e22dc86bcb","signed_by":"John + Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100109361138693424","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T16:22:59Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T04:59:59Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":null,"datetime":"2022-08-22T15:04:59Z","description":null,"message":"Arrived + at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH + HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":null,"datetime":"2022-08-23T16:40:59Z","description":null,"message":"Arrived + at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":null,"datetime":"2022-08-23T19:31:59Z","description":null,"message":"Arrived + at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-24T01:11:59Z","description":null,"message":"Sorting + Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-24T01:21:59Z","description":null,"message":"Out + for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-24T06:13:59Z","description":null,"message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2022-09-21T16:22:59Z","weight":null},"tracking_code":"9400100109361138693424","updated_at":"2022-09-21T16:19:59Z"},{"amount":"100.00000","created_at":"2022-09-21T16:19:15Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T16:19:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_22de37dc39c911ed9638ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T16:19:15+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_8f4d350032a0402ba2a01a536299b91a","messages":["The + tracker entered the mailstream before insurance was purchased."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-21T16:19:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_22da8ff839c911ed9305ac1f6bc72124","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T16:19:15+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2022-08-24T06:13:15Z","object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class + Package Service"},"created_at":"2022-09-21T16:19:15Z","est_delivery_date":"2022-09-21T16:22:15Z","fees":[],"finalized":true,"id":"trk_a3c45804b5ff468e8e4e7795e5e4ddf4","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2EzYzQ1ODA0YjVmZjQ2OGU4ZTRlNzc5NWU1ZTRkZGY0","shipment_id":"shp_0b8cef237caf4dd0a12ade3a6072cf10","signed_by":"John + Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100109361138693165","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T16:22:15Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T04:59:15Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":null,"datetime":"2022-08-22T15:04:15Z","description":null,"message":"Arrived + at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH + HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":null,"datetime":"2022-08-23T16:40:15Z","description":null,"message":"Arrived + at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":null,"datetime":"2022-08-23T19:31:15Z","description":null,"message":"Arrived + at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-24T01:11:15Z","description":null,"message":"Sorting + Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-24T01:21:15Z","description":null,"message":"Out + for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-24T06:13:15Z","description":null,"message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2022-09-21T16:22:15Z","weight":null},"tracking_code":"9400100109361138693165","updated_at":"2022-09-21T16:20:17Z"},{"amount":"100.00000","created_at":"2022-09-21T16:19:13Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T16:19:13+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_21f23b9639c911ed95f4ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T16:19:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_e9b2466b77d34170a0ae2bf0de5ce74b","messages":["The + tracker entered the mailstream before insurance was purchased."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-21T16:19:13+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_21ee568639c911ed92bfac1f6bc72124","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T16:19:13+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2022-08-24T06:13:14Z","object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class + Package Service"},"created_at":"2022-09-21T16:19:13Z","est_delivery_date":"2022-09-21T16:22:14Z","fees":[],"finalized":true,"id":"trk_d29c26c5ecfa4345a128885ad3f1faaf","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2QyOWMyNmM1ZWNmYTQzNDVhMTI4ODg1YWQzZjFmYWFm","shipment_id":"shp_d1ac40751690479e9337d36428eb041f","signed_by":"John + Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100109361138693158","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T16:22:14Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T04:59:14Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":null,"datetime":"2022-08-22T15:04:14Z","description":null,"message":"Arrived + at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH + HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":null,"datetime":"2022-08-23T16:40:14Z","description":null,"message":"Arrived + at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":null,"datetime":"2022-08-23T19:31:14Z","description":null,"message":"Arrived + at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-24T01:11:14Z","description":null,"message":"Sorting + Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-24T01:21:14Z","description":null,"message":"Out + for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-24T06:13:14Z","description":null,"message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2022-09-21T16:22:14Z","weight":null},"tracking_code":"9400100109361138693158","updated_at":"2022-09-21T16:20:33Z"},{"amount":"100.00000","created_at":"2022-09-20T23:29:18Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-20T23:29:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0b555000393c11edbf4dac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-20T23:29:16+00:00","verifications":{},"zip":"90277"},"id":"ins_e8e6b94bc66d44848fb6af559cc17c34","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":"shp_e67420c3a3734b6480fb8f4af9565907","status":"purchased","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-20T23:29:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_0b534299393c11ed8521ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-20T23:29:17+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2022-08-23T13:23:18Z","object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class + Package Service"},"created_at":"2022-09-20T23:29:17Z","est_delivery_date":"2022-09-20T23:32:18Z","fees":[],"finalized":true,"id":"trk_7470cf551ea442f68adb452e257d2152","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzc0NzBjZjU1MWVhNDQyZjY4YWRiNDUyZTI1N2QyMTUy","shipment_id":"shp_e67420c3a3734b6480fb8f4af9565907","signed_by":"John + Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100109361138553612","tracking_details":[{"carrier_code":null,"datetime":"2022-08-20T23:32:18Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-21T12:09:18Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":null,"datetime":"2022-08-21T22:14:18Z","description":null,"message":"Arrived + at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH + HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":null,"datetime":"2022-08-22T23:50:18Z","description":null,"message":"Arrived + at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":null,"datetime":"2022-08-23T02:41:18Z","description":null,"message":"Arrived + at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-23T08:21:18Z","description":null,"message":"Sorting + Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-23T08:31:18Z","description":null,"message":"Out + for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-23T13:23:18Z","description":null,"message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2022-09-20T23:32:18Z","weight":null},"tracking_code":"9400100109361138553612","updated_at":"2022-09-20T23:29:18Z"},{"amount":"100.00000","created_at":"2022-09-20T23:28:27Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-20T23:28:27+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_edeaef4f393b11ed89d9ac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-20T23:28:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_3db53d4ef11d4cf48a1aeb0d3af0cfe1","messages":["The + tracker entered the mailstream before insurance was purchased."],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"cancelled","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-20T23:28:27+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ede67acd393b11edb77dac1f6bc72124","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-20T23:28:27+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"},"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":"2022-08-23T13:22:27Z","object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"NORTH HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"},"service":"First-Class + Package Service"},"created_at":"2022-09-20T23:28:27Z","est_delivery_date":"2022-09-20T23:31:27Z","fees":[],"finalized":true,"id":"trk_81a2e9294fac48a089933c72715019ae","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzgxYTJlOTI5NGZhYzQ4YTA4OTkzM2M3MjcxNTAxOWFl","shipment_id":"shp_7c2389fdee1d4d10a8a0f8eb9f6f574e","signed_by":"John + Tester","status":"delivered","status_detail":"arrived_at_destination","tracking_code":"9400100109361138553438","tracking_details":[{"carrier_code":null,"datetime":"2022-08-20T23:31:27Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-21T12:08:27Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}},{"carrier_code":null,"datetime":"2022-08-21T22:13:27Z","description":null,"message":"Arrived + at USPS Origin Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"NORTH + HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77315"}},{"carrier_code":null,"datetime":"2022-08-22T23:49:27Z","description":null,"message":"Arrived + at USPS Facility","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"COLUMBIA","country":null,"object":"TrackingLocation","state":"SC","zip":"29201"}},{"carrier_code":null,"datetime":"2022-08-23T02:40:27Z","description":null,"message":"Arrived + at Post Office","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"arrived_at_facility","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-23T08:20:27Z","description":null,"message":"Sorting + Complete","object":"TrackingDetail","source":"USPS","status":"in_transit","status_detail":"status_update","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-23T08:30:27Z","description":null,"message":"Out + for Delivery","object":"TrackingDetail","source":"USPS","status":"out_for_delivery","status_detail":"out_for_delivery","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}},{"carrier_code":null,"datetime":"2022-08-23T13:22:27Z","description":null,"message":"Delivered","object":"TrackingDetail","source":"USPS","status":"delivered","status_detail":"arrived_at_destination","tracking_location":{"city":"CHARLESTON","country":null,"object":"TrackingLocation","state":"SC","zip":"29407"}}],"updated_at":"2022-09-20T23:31:27Z","weight":null},"tracking_code":"9400100109361138553438","updated_at":"2022-09-20T23:29:33Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"5f1a59bebcbbd5ae61942f9e2d9fb8d8" + - W/"a49a527abc064e0772a75ea5d742b89b" Expires: - "0" Pragma: @@ -32,26 +125,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc3ff246ba1007011c9 + - 8f5eb2cf632b5657ec7d9989000d9c35 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.026419" + - "0.226000" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestInsuranceCreate.yaml b/tests/cassettes/TestInsuranceCreate.yaml index e256f81..49d08d2 100644 --- a/tests/cassettes/TestInsuranceCreate.yaml +++ b/tests/cassettes/TestInsuranceCreate.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:48+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_09ee036d1fe711edaa51ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:47:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:47:48Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:48+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_09f034dd1fe711edbe43ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:48+00:00","verifications":{},"zip":"90277"},"id":"shp_3a3c6039e9724d368c8443c0098679f0","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:47:48Z","height":4,"id":"prcl_050792af194a4a32a45b9afd09464a47","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:48Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:47:48Z","date_advance":0,"id":"pl_07d4bca92d25465aa77daf3e87cd5676","integrated_form":"none","label_date":"2022-08-19T17:47:48Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/469a47995e54423ba3584c3320057b39.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:47:49Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_c47086465783461bb7a80e08a936034c","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_3a3c6039e9724d368c8443c0098679f0","updated_at":"2022-08-19T17:47:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_43ac459acba5404b96d120f99614744f","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_3a3c6039e9724d368c8443c0098679f0","updated_at":"2022-08-19T17:47:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_1518a7b1964242aab4351b2edfec56a2","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_3a3c6039e9724d368c8443c0098679f0","updated_at":"2022-08-19T17:47:48Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_6aa627b6fc5644eb8ceb03f969dc0ecc","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_3a3c6039e9724d368c8443c0098679f0","updated_at":"2022-08-19T17:47:48Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:48+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_09f034dd1fe711edbe43ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:48+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:48Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_1518a7b1964242aab4351b2edfec56a2","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_3a3c6039e9724d368c8443c0098679f0","updated_at":"2022-08-19T17:47:48Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:48+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_09ee036d1fe711edaa51ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:47:48+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:47:49Z","est_delivery_date":null,"fees":[],"id":"trk_0790b3e54f0f49beb93b99800e3ee7bf","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzA3OTBiM2U1NGYwZjQ5YmViOTNiOTk4MDBlM2VlN2Jm","shipment_id":"shp_3a3c6039e9724d368c8443c0098679f0","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133883776","tracking_details":[],"updated_at":"2022-08-19T17:47:49Z","weight":null},"tracking_code":"9400100109361133883776","updated_at":"2022-08-19T17:47:49Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5237491d39da11eda8e8ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:16+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:16Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_52392d7a39da11eda96eac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:16+00:00","verifications":{},"zip":"90277"},"id":"shp_23be95f3d7f741d98d398b50831f2a2f","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:16Z","height":4,"id":"prcl_13ecccbf0aa646b09e164bd865477115","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:16Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:16Z","date_advance":0,"id":"pl_cef50e7ed3fb4d8793758600551d5b0b","integrated_form":"none","label_date":"2022-09-21T18:22:16Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/33b0d86de8a14241a6e1e765b2057b0b.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:17Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_b8e4ba3ff0b34a68949bb437aa227933","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_23be95f3d7f741d98d398b50831f2a2f","updated_at":"2022-09-21T18:22:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_223df95c12374769a85e8817f98e5727","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_23be95f3d7f741d98d398b50831f2a2f","updated_at":"2022-09-21T18:22:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2aae677c063d47c8b59e3b6fca53d0c8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_23be95f3d7f741d98d398b50831f2a2f","updated_at":"2022-09-21T18:22:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_e267789f775e4b378e541f10408a1393","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_23be95f3d7f741d98d398b50831f2a2f","updated_at":"2022-09-21T18:22:16Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_52392d7a39da11eda96eac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:16+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2aae677c063d47c8b59e3b6fca53d0c8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_23be95f3d7f741d98d398b50831f2a2f","updated_at":"2022-09-21T18:22:16Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5237491d39da11eda8e8ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:16+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:17Z","est_delivery_date":null,"fees":[],"id":"trk_1525e2beb90942a0a5f0154b3231e87d","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzE1MjVlMmJlYjkwOTQyYTBhNWYwMTU0YjMyMzFlODdk","shipment_id":"shp_23be95f3d7f741d98d398b50831f2a2f","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710114","tracking_details":[],"updated_at":"2022-09-21T18:22:17Z","weight":null},"tracking_code":"9400100109361138710114","updated_at":"2022-09-21T18:22:17Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b40aa9da97860fa5d58f78e07c13d1f3" + - W/"641cbd62cacaed134359d152397a63b7" Expires: - "0" Location: - - /api/v2/shipments/shp_3a3c6039e9724d368c8443c0098679f0 + - /api/v2/shipments/shp_23be95f3d7f741d98d398b50831f2a2f Pragma: - no-cache Referrer-Policy: @@ -54,32 +55,32 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc4ff246ba1007011d8 + - 8f5eb2cf632b5658ec7d9989000d9c6f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.918115" + - "0.912967" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"insurance":{"amount":"100","carrier":"USPS","tracking_code":"9400100109361133883776","to_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"}}}' + body: '{"insurance":{"amount":"100","carrier":"USPS","from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"tracking_code":"9400100109361138710114"}}' form: {} headers: Authorization: @@ -91,29 +92,29 @@ interactions: url: https://api.easypost.com/v2/insurances method: POST response: - body: '{"amount":"100.00000","created_at":"2022-08-19T17:47:49Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:49+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0ab09aa61fe711edaaf3ac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2022-08-19T17:47:49+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_e5d850ecd1b94b6ab8917a4f8975fb7f","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2022-08-19T17:47:49+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0aacc2d61fe711edaaebac1f6bc72124","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2022-08-19T17:47:49+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + body: '{"amount":"100.00000","created_at":"2022-09-21T18:22:17Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_52e9b75a39da11eda90dac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":"","updated_at":"2022-09-21T18:22:17+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_3f97c5f96f0146d7bb2c3f11a5041cbe","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_52e42a6f39da11edb48fac1f6bc7b362","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":"","updated_at":"2022-09-21T18:22:17+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:47:49Z","est_delivery_date":"2022-08-19T17:47:49Z","fees":[],"finalized":true,"id":"trk_0790b3e54f0f49beb93b99800e3ee7bf","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzA3OTBiM2U1NGYwZjQ5YmViOTNiOTk4MDBlM2VlN2Jm","shipment_id":"shp_3a3c6039e9724d368c8443c0098679f0","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133883776","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:47:49Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:24:49Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:47:49Z","weight":null},"tracking_code":"9400100109361133883776","updated_at":"2022-08-19T17:47:49Z"}' + Package Service"},"created_at":"2022-09-21T18:22:17Z","est_delivery_date":"2022-09-21T18:22:17Z","fees":[],"finalized":true,"id":"trk_1525e2beb90942a0a5f0154b3231e87d","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzE1MjVlMmJlYjkwOTQyYTBhNWYwMTU0YjMyMzFlODdk","shipment_id":"shp_23be95f3d7f741d98d398b50831f2a2f","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710114","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:22:17Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T06:59:17Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:22:17Z","weight":null},"tracking_code":"9400100109361138710114","updated_at":"2022-09-21T18:22:17Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"15fbf5162a9d753483b0c04e27bc8f79" + - W/"8df275c525b6c620b5cc08da0855a9e9" Expires: - "0" Location: - - /api/v2/insurances/ins_e5d850ecd1b94b6ab8917a4f8975fb7f + - /api/v2/insurances/ins_3f97c5f96f0146d7bb2c3f11a5041cbe Pragma: - no-cache Referrer-Policy: @@ -127,7 +128,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc5ff246ba10070124c + - 8f5eb2cf632b5659ec7d9989000d9d1b X-Frame-Options: - SAMEORIGIN X-Node: @@ -135,13 +136,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.144756" + - "0.156334" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestInsuranceRetrieve.yaml b/tests/cassettes/TestInsuranceRetrieve.yaml index d35f8f4..5842579 100644 --- a/tests/cassettes/TestInsuranceRetrieve.yaml +++ b/tests/cassettes/TestInsuranceRetrieve.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:50+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0af52afe1fe711edbf2cac1f6bc7bdc6","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:47:50+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:47:50Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:50+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0af6dc611fe711ed8429ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:50+00:00","verifications":{},"zip":"90277"},"id":"shp_3ad5d1d14b4c46eaa641aa921cce4b30","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:47:50Z","height":4,"id":"prcl_2a5f60d2205a409389ed7344d72df3ea","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:50Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:47:50Z","date_advance":0,"id":"pl_58893a5eb50e4b7f8e0a6e3b56042181","integrated_form":"none","label_date":"2022-08-19T17:47:50Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/65d1d7312c4a479aa3db392861ed8bb5.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:47:50Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:50Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4e3a9d331d7f493cbfacad4f9bd51966","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_3ad5d1d14b4c46eaa641aa921cce4b30","updated_at":"2022-08-19T17:47:50Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:50Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_e0d3e7c5006841829a8a2eb267d37c2b","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_3ad5d1d14b4c46eaa641aa921cce4b30","updated_at":"2022-08-19T17:47:50Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:50Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bcfdba850a64407cb59b3e7c1bb19b2e","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_3ad5d1d14b4c46eaa641aa921cce4b30","updated_at":"2022-08-19T17:47:50Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:50Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_4461bcb54b0f4ea8a2cbc9ce91712317","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_3ad5d1d14b4c46eaa641aa921cce4b30","updated_at":"2022-08-19T17:47:50Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:50+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0af6dc611fe711ed8429ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:50+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:50Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bcfdba850a64407cb59b3e7c1bb19b2e","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_3ad5d1d14b4c46eaa641aa921cce4b30","updated_at":"2022-08-19T17:47:50Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:50+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0af52afe1fe711edbf2cac1f6bc7bdc6","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:47:50+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:47:51Z","est_delivery_date":null,"fees":[],"id":"trk_12b9845eb08842c88db0ecfd739e152a","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzEyYjk4NDVlYjA4ODQyYzg4ZGIwZWNmZDczOWUxNTJh","shipment_id":"shp_3ad5d1d14b4c46eaa641aa921cce4b30","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133883783","tracking_details":[],"updated_at":"2022-08-19T17:47:51Z","weight":null},"tracking_code":"9400100109361133883783","updated_at":"2022-08-19T17:47:51Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5319d63d39da11eda9c8ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:18+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:17Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_531c392939da11eda289ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:17+00:00","verifications":{},"zip":"90277"},"id":"shp_f20430bbac5d48ec968da96d06306123","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:17Z","height":4,"id":"prcl_4f0416399055460e889aa0e3358f5b5f","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:17Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:18Z","date_advance":0,"id":"pl_1a9140b1d4e347ef9f2f4b6aa88532a5","integrated_form":"none","label_date":"2022-09-21T18:22:18Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/9155d896f07e4efe93c440deb93c950e.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:18Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_55b903c391354e0eb6a963a01b605238","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_f20430bbac5d48ec968da96d06306123","updated_at":"2022-09-21T18:22:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_27ad39a5f1f64cbbbd362647f03efeba","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_f20430bbac5d48ec968da96d06306123","updated_at":"2022-09-21T18:22:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_c1f1327057034144afc8a56b6ca9275d","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_f20430bbac5d48ec968da96d06306123","updated_at":"2022-09-21T18:22:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_04ac8a8f7731409d8b65a5de507449e2","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_f20430bbac5d48ec968da96d06306123","updated_at":"2022-09-21T18:22:17Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_531c392939da11eda289ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:17+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_04ac8a8f7731409d8b65a5de507449e2","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_f20430bbac5d48ec968da96d06306123","updated_at":"2022-09-21T18:22:18Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:17+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5319d63d39da11eda9c8ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:18+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:18Z","est_delivery_date":null,"fees":[],"id":"trk_5bad20f9b5c34e3a8c6c7bff31e17f28","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzViYWQyMGY5YjVjMzRlM2E4YzZjN2JmZjMxZTE3ZjI4","shipment_id":"shp_f20430bbac5d48ec968da96d06306123","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710138","tracking_details":[],"updated_at":"2022-09-21T18:22:18Z","weight":null},"tracking_code":"9400100109361138710138","updated_at":"2022-09-21T18:22:18Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b2b6ebb4bee7e7c26e80259aac033708" + - W/"a0b5b3fd9dccb0ab20ddd6b6a7ae9c9e" Expires: - "0" Location: - - /api/v2/shipments/shp_3ad5d1d14b4c46eaa641aa921cce4b30 + - /api/v2/shipments/shp_f20430bbac5d48ec968da96d06306123 Pragma: - no-cache Referrer-Policy: @@ -49,37 +50,39 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc5ff246ba10070126a + - 8f5eb2cf632b5659ec7d9989000d9d54 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.141451" + - "0.975951" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"insurance":{"amount":"100","carrier":"USPS","tracking_code":"9400100109361133883783","to_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"}}}' + body: '{"insurance":{"amount":"100","carrier":"USPS","from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"tracking_code":"9400100109361138710138"}}' form: {} headers: Authorization: @@ -91,29 +94,29 @@ interactions: url: https://api.easypost.com/v2/insurances method: POST response: - body: '{"amount":"100.00000","created_at":"2022-08-19T17:47:51Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0bc2c5221fe711edac9dac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":"","updated_at":"2022-08-19T17:47:51+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_c3c318bee9034acdb50b71e1dd7cf9c2","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0bbea3d21fe711edac95ac1f6bc72124","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":"","updated_at":"2022-08-19T17:47:51+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + body: '{"amount":"100.00000","created_at":"2022-09-21T18:22:19Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_53edbfe639da11edaa13ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":"","updated_at":"2022-09-21T18:22:19+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_07d330c1d30c45939e1635dc89b570ee","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_53e9b68639da11eda945ac1f6bc7bdc6","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":"","updated_at":"2022-09-21T18:22:19+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:47:51Z","est_delivery_date":"2022-08-19T17:47:51Z","fees":[],"finalized":true,"id":"trk_12b9845eb08842c88db0ecfd739e152a","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzEyYjk4NDVlYjA4ODQyYzg4ZGIwZWNmZDczOWUxNTJh","shipment_id":"shp_3ad5d1d14b4c46eaa641aa921cce4b30","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133883783","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:47:51Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:24:51Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:47:51Z","weight":null},"tracking_code":"9400100109361133883783","updated_at":"2022-08-19T17:47:51Z"}' + Package Service"},"created_at":"2022-09-21T18:22:18Z","est_delivery_date":"2022-09-21T18:22:18Z","fees":[],"finalized":true,"id":"trk_5bad20f9b5c34e3a8c6c7bff31e17f28","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzViYWQyMGY5YjVjMzRlM2E4YzZjN2JmZjMxZTE3ZjI4","shipment_id":"shp_f20430bbac5d48ec968da96d06306123","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710138","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:22:18Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T06:59:18Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:22:18Z","weight":null},"tracking_code":"9400100109361138710138","updated_at":"2022-09-21T18:22:19Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"77839e4228c6b67d32a8544f02a9dfb6" + - W/"771a5c8e3164cde34bb0a7d7bc7d0da5" Expires: - "0" Location: - - /api/v2/insurances/ins_c3c318bee9034acdb50b71e1dd7cf9c2 + - /api/v2/insurances/ins_07d330c1d30c45939e1635dc89b570ee Pragma: - no-cache Referrer-Policy: @@ -122,26 +125,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc7ff246ba100701311 + - 8f5eb2cf632b565bec7d9989000d9df3 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.173380" + - "0.143799" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -155,28 +160,28 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/insurances/ins_c3c318bee9034acdb50b71e1dd7cf9c2 + url: https://api.easypost.com/v2/insurances/ins_07d330c1d30c45939e1635dc89b570ee method: GET response: - body: '{"amount":"100.00000","created_at":"2022-08-19T17:47:51Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0bc2c5221fe711edac9dac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:47:51+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_c3c318bee9034acdb50b71e1dd7cf9c2","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0bbea3d21fe711edac95ac1f6bc72124","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2022-08-19T17:47:51+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + body: '{"amount":"100.00000","created_at":"2022-09-21T18:22:19Z","fee":{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"},"from_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_53edbfe639da11edaa13ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:19+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"id":"ins_07d330c1d30c45939e1635dc89b570ee","messages":[],"mode":"test","object":"Insurance","provider":"easypost","provider_id":null,"reference":null,"shipment_id":null,"status":"pending","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_53e9b68639da11eda945ac1f6bc7bdc6","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T18:22:19+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:47:51Z","est_delivery_date":"2022-08-19T17:47:51Z","fees":[],"finalized":true,"id":"trk_12b9845eb08842c88db0ecfd739e152a","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzEyYjk4NDVlYjA4ODQyYzg4ZGIwZWNmZDczOWUxNTJh","shipment_id":"shp_3ad5d1d14b4c46eaa641aa921cce4b30","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133883783","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:47:51Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:24:51Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:47:51Z","weight":null},"tracking_code":"9400100109361133883783","updated_at":"2022-08-19T17:47:51Z"}' + Package Service"},"created_at":"2022-09-21T18:22:18Z","est_delivery_date":"2022-09-21T18:22:18Z","fees":[],"finalized":true,"id":"trk_5bad20f9b5c34e3a8c6c7bff31e17f28","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzViYWQyMGY5YjVjMzRlM2E4YzZjN2JmZjMxZTE3ZjI4","shipment_id":"shp_f20430bbac5d48ec968da96d06306123","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710138","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:22:18Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T06:59:18Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:22:18Z","weight":null},"tracking_code":"9400100109361138710138","updated_at":"2022-09-21T18:22:19Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"c34ee95fa4c58d86baebd80e9d5f6f90" + - W/"c0929eb50615e33ea082787949c70c5f" Expires: - "0" Pragma: @@ -187,28 +192,26 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc7ff246ba100701328 + - 8f5eb2cf632b565bec7d9989000d9e36 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.063149" + - "0.063887" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestOrderBuyRate.yaml b/tests/cassettes/TestOrderBuyRate.yaml index bec3ea1..f92be2e 100644 --- a/tests/cassettes/TestOrderBuyRate.yaml +++ b/tests/cassettes/TestOrderBuyRate.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"order":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"shipments":[{"to_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}],"is_return":false}}' + body: '{"order":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"is_return":false,"shipments":[{"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth + Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,41 +21,43 @@ interactions: url: https://api.easypost.com/v2/orders method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ec6f91fe711ed85dbac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:51Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ff8121fe711ed8014ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"94107"},"id":"order_41441596fd544976bfeafd18b63e60fb","is_return":false,"messages":[],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_be06870f849642b992d2afc472159195","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2f96d7d1996442ef8f173c86524ffc3d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_8f3594117e4f4d008af5201a86a66ec6","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_4450258c0059471a9b61fb7132662bad","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ff8121fe711ed8014ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ec6f91fe711ed85dbac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:51Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ff8121fe711ed8014ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"94107"},"id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_41441596fd544976bfeafd18b63e60fb","parcel":{"created_at":"2022-08-19T17:47:51Z","height":4,"id":"prcl_f338006bd56e47a9837f20a9c925477f","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:51Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:51Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_be06870f849642b992d2afc472159195","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":"2022-08-19T17:47:51Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:51Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2f96d7d1996442ef8f173c86524ffc3d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":"2022-08-19T17:47:51Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:52Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_8f3594117e4f4d008af5201a86a66ec6","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":"2022-08-19T17:47:52Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:52Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_4450258c0059471a9b61fb7132662bad","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":"2022-08-19T17:47:52Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ff8121fe711ed8014ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ec6f91fe711ed85dbac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:47:51Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ec6f91fe711ed85dbac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-08-19T17:47:51Z"}' + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5448b90139da11eda2f1ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:19Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_544a2b8039da11eda952ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"94107"},"id":"order_0cb05eb1f22a4793a07614ab72959f6e","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_16e82f855b9e438b891e7306af0f1eef","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a717d23971904d47a5d6b0e1d7a15b1b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_c011f4cd1d494b43b5378b01d39e2774","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6fc2764e40924aaab42a2d23d00512ad","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_544a2b8039da11eda952ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5448b90139da11eda2f1ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:19Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_544a2b8039da11eda952ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"94107"},"id":"shp_426798b6b5844b378d350ad44f1cfcf3","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_0cb05eb1f22a4793a07614ab72959f6e","parcel":{"created_at":"2022-09-21T18:22:19Z","height":4,"id":"prcl_7ca0577226064bc0929e9281831ff018","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:19Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_16e82f855b9e438b891e7306af0f1eef","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":"2022-09-21T18:22:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a717d23971904d47a5d6b0e1d7a15b1b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":"2022-09-21T18:22:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_c011f4cd1d494b43b5378b01d39e2774","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":"2022-09-21T18:22:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6fc2764e40924aaab42a2d23d00512ad","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":"2022-09-21T18:22:20Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_544a2b8039da11eda952ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5448b90139da11eda2f1ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:22:19Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5448b90139da11eda2f1ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-09-21T18:22:20Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"df64e302c32f26c0a7e1ccee7ecff4f2" + - W/"b9a513043574bc8a18b5006e8f717209" Expires: - "0" Location: - - /api/v2/orders/order_41441596fd544976bfeafd18b63e60fb + - /api/v2/orders/order_0cb05eb1f22a4793a07614ab72959f6e Pragma: - no-cache Referrer-Policy: @@ -69,7 +71,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc7ff246ba10070134b + - 8f5eb2cf632b565bec7d9989000d9e55 X-Frame-Options: - SAMEORIGIN X-Node: @@ -77,13 +79,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.208178" + - "0.663285" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -103,40 +105,41 @@ interactions: - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/orders/order_41441596fd544976bfeafd18b63e60fb/buy + url: https://api.easypost.com/v2/orders/order_0cb05eb1f22a4793a07614ab72959f6e/buy method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"REDONDO BEACH","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0c0ec6f91fe711ed85dbac1f6bc7b362","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2022-08-19T17:47:52+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2022-08-19T17:47:51Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ff8121fe711ed8014ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"94107"},"id":"order_41441596fd544976bfeafd18b63e60fb","is_return":false,"messages":[],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_be06870f849642b992d2afc472159195","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2f96d7d1996442ef8f173c86524ffc3d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_8f3594117e4f4d008af5201a86a66ec6","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_4450258c0059471a9b61fb7132662bad","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ff8121fe711ed8014ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0c0ec6f91fe711ed85dbac1f6bc7b362","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2022-08-19T17:47:52+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2022-08-19T17:47:51Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ff8121fe711ed8014ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"94107"},"id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_41441596fd544976bfeafd18b63e60fb","parcel":{"created_at":"2022-08-19T17:47:51Z","height":4,"id":"prcl_f338006bd56e47a9837f20a9c925477f","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:51Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:47:52Z","date_advance":0,"id":"pl_44f1e687ec4e45c8b7c37a3e4befe592","integrated_form":"none","label_date":"2022-08-19T17:47:52Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/b770aaa3f6a14255bcd97d702d90dd03.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:47:53Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:51Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_be06870f849642b992d2afc472159195","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":"2022-08-19T17:47:51Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:51Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2f96d7d1996442ef8f173c86524ffc3d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":"2022-08-19T17:47:51Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:52Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_8f3594117e4f4d008af5201a86a66ec6","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":"2022-08-19T17:47:52Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:52Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_4450258c0059471a9b61fb7132662bad","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":"2022-08-19T17:47:52Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0c0ff8121fe711ed8014ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:51+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:52Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2f96d7d1996442ef8f173c86524ffc3d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","updated_at":"2022-08-19T17:47:52Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0c0ec6f91fe711ed85dbac1f6bc7b362","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2022-08-19T17:47:52+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:47:53Z","est_delivery_date":null,"fees":[],"id":"trk_7d7d44678dc04a1988b64939664a6280","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzdkN2Q0NDY3OGRjMDRhMTk4OGI2NDkzOTY2NGE2Mjgw","shipment_id":"shp_9a40fbc6d4dc465d95acc4a09cc64c64","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133883790","tracking_details":[],"updated_at":"2022-08-19T17:47:53Z","weight":null},"tracking_code":"9400100109361133883790","updated_at":"2022-08-19T17:47:53Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2022-08-19T17:47:51+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_0c0ec6f91fe711ed85dbac1f6bc7b362","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2022-08-19T17:47:52+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"updated_at":"2022-08-19T17:47:51Z"}' + body: '{"buyer_address":{"carrier_facility":null,"city":"REDONDO BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5448b90139da11eda2f1ac1f6bc72124","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T18:22:20+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2022-09-21T18:22:19Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_544a2b8039da11eda952ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"94107"},"id":"order_0cb05eb1f22a4793a07614ab72959f6e","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_16e82f855b9e438b891e7306af0f1eef","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a717d23971904d47a5d6b0e1d7a15b1b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_c011f4cd1d494b43b5378b01d39e2774","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6fc2764e40924aaab42a2d23d00512ad","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_544a2b8039da11eda952ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5448b90139da11eda2f1ac1f6bc72124","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T18:22:20+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2022-09-21T18:22:19Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_544a2b8039da11eda952ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"94107"},"id":"shp_426798b6b5844b378d350ad44f1cfcf3","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_0cb05eb1f22a4793a07614ab72959f6e","parcel":{"created_at":"2022-09-21T18:22:19Z","height":4,"id":"prcl_7ca0577226064bc0929e9281831ff018","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:19Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:21Z","date_advance":0,"id":"pl_0095f33dadf74a79837fe9fdce71c60f","integrated_form":"none","label_date":"2022-09-21T18:22:21Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/d04ae63f157e487eb15d70eb5ebcd00e.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:21Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_16e82f855b9e438b891e7306af0f1eef","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":"2022-09-21T18:22:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a717d23971904d47a5d6b0e1d7a15b1b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":"2022-09-21T18:22:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_c011f4cd1d494b43b5378b01d39e2774","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":"2022-09-21T18:22:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6fc2764e40924aaab42a2d23d00512ad","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":"2022-09-21T18:22:20Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_544a2b8039da11eda952ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:19+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6fc2764e40924aaab42a2d23d00512ad","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","updated_at":"2022-09-21T18:22:21Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5448b90139da11eda2f1ac1f6bc72124","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T18:22:20+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:21Z","est_delivery_date":null,"fees":[],"id":"trk_62265e047ba746189d43c73b6ea6a086","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzYyMjY1ZTA0N2JhNzQ2MTg5ZDQzYzczYjZlYTZhMDg2","shipment_id":"shp_426798b6b5844b378d350ad44f1cfcf3","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710145","tracking_details":[],"updated_at":"2022-09-21T18:22:21Z","weight":null},"tracking_code":"9400100109361138710145","updated_at":"2022-09-21T18:22:21Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:19+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5448b90139da11eda2f1ac1f6bc72124","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T18:22:20+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"updated_at":"2022-09-21T18:22:20Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"ec8556daa20fd9b4a8581debf05f342e" + - W/"ca11ce4662c42e6e0497d8ec4e0a9c25" Expires: - "0" Pragma: @@ -152,21 +155,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc8ff246ba10070137e + - 8f5eb2cf632b565cec7d9989000d9ec6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.256458" + - "1.129207" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestOrderCreate.yaml b/tests/cassettes/TestOrderCreate.yaml index 414a873..29fe4fc 100644 --- a/tests/cassettes/TestOrderCreate.yaml +++ b/tests/cassettes/TestOrderCreate.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"order":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"shipments":[{"to_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}],"is_return":false}}' + body: '{"order":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"is_return":false,"shipments":[{"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth + Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,41 +21,43 @@ interactions: url: https://api.easypost.com/v2/orders method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:53+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d2fa3c61fe711edaf76ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:53+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:53Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:53+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d310bb71fe711edaf11ac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:53+00:00","verifications":{},"zip":"94107"},"id":"order_bc04ca98fa7e41edbe2564dd075fdea4","is_return":false,"messages":[],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_169621d745924988b51c3ce8213bf7b4","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9881a49abbcc42dc99d1770916b47c5c","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_f44b5c01be2a412d9e9e438ea78c89cc","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9881a49abbcc42dc99d1770916b47c5c","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_fa0330612db44b5b8964db5414dde303","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9881a49abbcc42dc99d1770916b47c5c","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3769d6b0180349d5befb03e8629fae87","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9881a49abbcc42dc99d1770916b47c5c","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:53+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d310bb71fe711edaf11ac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:53+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:53+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d2fa3c61fe711edaf76ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:53+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:53Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:53+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d310bb71fe711edaf11ac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:53+00:00","verifications":{},"zip":"94107"},"id":"shp_9881a49abbcc42dc99d1770916b47c5c","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_bc04ca98fa7e41edbe2564dd075fdea4","parcel":{"created_at":"2022-08-19T17:47:53Z","height":4,"id":"prcl_f40a1d664d814af082cf751f605a310a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:53Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_169621d745924988b51c3ce8213bf7b4","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9881a49abbcc42dc99d1770916b47c5c","updated_at":"2022-08-19T17:47:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_f44b5c01be2a412d9e9e438ea78c89cc","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9881a49abbcc42dc99d1770916b47c5c","updated_at":"2022-08-19T17:47:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_fa0330612db44b5b8964db5414dde303","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9881a49abbcc42dc99d1770916b47c5c","updated_at":"2022-08-19T17:47:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3769d6b0180349d5befb03e8629fae87","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9881a49abbcc42dc99d1770916b47c5c","updated_at":"2022-08-19T17:47:53Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:53+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d310bb71fe711edaf11ac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:53+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:53+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d2fa3c61fe711edaf76ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:53+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:47:53Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:53+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d2fa3c61fe711edaf76ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:53+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-08-19T17:47:53Z"}' + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_55b2017739da11edb59cac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:22+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:22Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_55b34c7739da11edb59dac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:22+00:00","verifications":{},"zip":"94107"},"id":"order_3d863dcd29204fdbab67063ee2fab54d","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8fdd313a1394463a8374ada3a5004776","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9ad922ef01d04346b6632392630b863c","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_874f11ee443e467e8f635fc631437806","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9ad922ef01d04346b6632392630b863c","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_0fa15e22626f45f48221925e074a2a46","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9ad922ef01d04346b6632392630b863c","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_ad3af3dac4434296b0b28e5647954a89","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9ad922ef01d04346b6632392630b863c","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_55b34c7739da11edb59dac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:22+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_55b2017739da11edb59cac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:22+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:22Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_55b34c7739da11edb59dac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:22+00:00","verifications":{},"zip":"94107"},"id":"shp_9ad922ef01d04346b6632392630b863c","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_3d863dcd29204fdbab67063ee2fab54d","parcel":{"created_at":"2022-09-21T18:22:22Z","height":4,"id":"prcl_571d3ab1e09347209910ac2070912a55","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:22Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8fdd313a1394463a8374ada3a5004776","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9ad922ef01d04346b6632392630b863c","updated_at":"2022-09-21T18:22:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_874f11ee443e467e8f635fc631437806","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9ad922ef01d04346b6632392630b863c","updated_at":"2022-09-21T18:22:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_0fa15e22626f45f48221925e074a2a46","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9ad922ef01d04346b6632392630b863c","updated_at":"2022-09-21T18:22:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_ad3af3dac4434296b0b28e5647954a89","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9ad922ef01d04346b6632392630b863c","updated_at":"2022-09-21T18:22:22Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_55b34c7739da11edb59dac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:22+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_55b2017739da11edb59cac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:22+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:22:22Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:22+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_55b2017739da11edb59cac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:22+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-09-21T18:22:22Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"144c72ff54eb3907d9dabd2813f224fc" + - W/"8afb248dd1782006309a232271785b21" Expires: - "0" Location: - - /api/v2/orders/order_bc04ca98fa7e41edbe2564dd075fdea4 + - /api/v2/orders/order_3d863dcd29204fdbab67063ee2fab54d Pragma: - no-cache Referrer-Policy: @@ -69,21 +71,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccc9ff246ba100701433 + - 8f5eb2cf632b565eec7d9989000d9f49 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.252751" + - "0.637203" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestOrderGetRates.yaml b/tests/cassettes/TestOrderGetRates.yaml index 2dd73c4..26fccae 100644 --- a/tests/cassettes/TestOrderGetRates.yaml +++ b/tests/cassettes/TestOrderGetRates.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"order":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"shipments":[{"to_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}],"is_return":false}}' + body: '{"order":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"is_return":false,"shipments":[{"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth + Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,41 +21,43 @@ interactions: url: https://api.easypost.com/v2/orders method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d6ec8691fe711ed8855ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:54Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d706ba41fe711edaf6cac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"94107"},"id":"order_3b9b3db432f04911944523a0471c52cd","is_return":false,"messages":[],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_9486cda2ce284cfdab1566355c8d833b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2f7a9486d3ff446f938581f3b61b4fd9","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_868b3e86aa7a4c2ab71c503bb32938ee","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9584e49ceb7141eba1b03dd60e813a96","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d706ba41fe711edaf6cac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d6ec8691fe711ed8855ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:54Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d706ba41fe711edaf6cac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"94107"},"id":"shp_eaa7dc478c2340c0b7907298a12bade4","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_3b9b3db432f04911944523a0471c52cd","parcel":{"created_at":"2022-08-19T17:47:54Z","height":4,"id":"prcl_a9a2d1c4c63f4df4962acd31998da03c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:54Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_9486cda2ce284cfdab1566355c8d833b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":"2022-08-19T17:47:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2f7a9486d3ff446f938581f3b61b4fd9","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":"2022-08-19T17:47:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_868b3e86aa7a4c2ab71c503bb32938ee","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":"2022-08-19T17:47:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9584e49ceb7141eba1b03dd60e813a96","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":"2022-08-19T17:47:54Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d706ba41fe711edaf6cac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d6ec8691fe711ed8855ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:47:54Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d6ec8691fe711ed8855ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-08-19T17:47:54Z"}' + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5632639839da11edb5ccac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:23Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_56337e9439da11edb5cdac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"94107"},"id":"order_14a4df5761de4a8fa1e368db804b10c8","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b689fd52bf4f451aa0157d35a4c12283","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_b4826e18631d4f5a80d11e0f44dd2774","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_c36f07a911e24ec2baca71ea345afd3e","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2760d5ce219b4f07a7775428ac758545","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_56337e9439da11edb5cdac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5632639839da11edb5ccac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:23Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_56337e9439da11edb5cdac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"94107"},"id":"shp_5ef9c5543a68435297e50eb650c2c1ac","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_14a4df5761de4a8fa1e368db804b10c8","parcel":{"created_at":"2022-09-21T18:22:23Z","height":4,"id":"prcl_cc39f59c723648dfa3cd42b10fc7d3d0","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:23Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b689fd52bf4f451aa0157d35a4c12283","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":"2022-09-21T18:22:23Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_b4826e18631d4f5a80d11e0f44dd2774","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":"2022-09-21T18:22:23Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_c36f07a911e24ec2baca71ea345afd3e","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":"2022-09-21T18:22:23Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2760d5ce219b4f07a7775428ac758545","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":"2022-09-21T18:22:23Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_56337e9439da11edb5cdac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5632639839da11edb5ccac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:22:23Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5632639839da11edb5ccac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-09-21T18:22:23Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"524db861e248b0f32b0220532b823830" + - W/"00bb745e266f5a1198737263a1e71917" Expires: - "0" Location: - - /api/v2/orders/order_3b9b3db432f04911944523a0471c52cd + - /api/v2/orders/order_14a4df5761de4a8fa1e368db804b10c8 Pragma: - no-cache Referrer-Policy: @@ -69,21 +71,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcccaff246ba100701478 + - 8f5eb2cf632b565eec7d9989000d9faa X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.239083" + - "0.639536" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -97,40 +99,41 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/orders/order_3b9b3db432f04911944523a0471c52cd/rates + url: https://api.easypost.com/v2/orders/order_14a4df5761de4a8fa1e368db804b10c8/rates method: GET response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d6ec8691fe711ed8855ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:54Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d706ba41fe711edaf6cac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"94107"},"id":"order_3b9b3db432f04911944523a0471c52cd","is_return":false,"messages":[],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b56a2bd260d4442aaf0a380d7f79073d","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_ff7aaf4f9b5c420c9a43db120dfa06d6","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a4c22de7df914ed68b4a2eb244a579f4","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_db4d3247daf240a58817145de484c466","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d706ba41fe711edaf6cac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d6ec8691fe711ed8855ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:54Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d706ba41fe711edaf6cac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"94107"},"id":"shp_eaa7dc478c2340c0b7907298a12bade4","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_3b9b3db432f04911944523a0471c52cd","parcel":{"created_at":"2022-08-19T17:47:54Z","height":4,"id":"prcl_a9a2d1c4c63f4df4962acd31998da03c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:54Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b56a2bd260d4442aaf0a380d7f79073d","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":"2022-08-19T17:47:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_ff7aaf4f9b5c420c9a43db120dfa06d6","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":"2022-08-19T17:47:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a4c22de7df914ed68b4a2eb244a579f4","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":"2022-08-19T17:47:54Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_db4d3247daf240a58817145de484c466","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_eaa7dc478c2340c0b7907298a12bade4","updated_at":"2022-08-19T17:47:54Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d706ba41fe711edaf6cac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d6ec8691fe711ed8855ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:47:54Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:54+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0d6ec8691fe711ed8855ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:54+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-08-19T17:47:54Z"}' + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5632639839da11edb5ccac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:23Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_56337e9439da11edb5cdac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"94107"},"id":"order_14a4df5761de4a8fa1e368db804b10c8","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_3e6b6b6be3634086b023a408957b3b96","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_25a78463e60f449e813f7c90cfefbdae","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_d68b8c09b1bb47848c91bd10bcedb3b2","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_4917f6ce73fb4f08af1f4426c3a9c5fd","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_56337e9439da11edb5cdac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5632639839da11edb5ccac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:23Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_56337e9439da11edb5cdac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"94107"},"id":"shp_5ef9c5543a68435297e50eb650c2c1ac","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_14a4df5761de4a8fa1e368db804b10c8","parcel":{"created_at":"2022-09-21T18:22:23Z","height":4,"id":"prcl_cc39f59c723648dfa3cd42b10fc7d3d0","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:23Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_3e6b6b6be3634086b023a408957b3b96","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":"2022-09-21T18:22:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_25a78463e60f449e813f7c90cfefbdae","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":"2022-09-21T18:22:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_d68b8c09b1bb47848c91bd10bcedb3b2","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":"2022-09-21T18:22:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_4917f6ce73fb4f08af1f4426c3a9c5fd","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_5ef9c5543a68435297e50eb650c2c1ac","updated_at":"2022-09-21T18:22:24Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_56337e9439da11edb5cdac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5632639839da11edb5ccac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:22:23Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5632639839da11edb5ccac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:23+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-09-21T18:22:23Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"2e5014e102e5c083b14ef59049b66aeb" + - W/"c61cc5cf780e7c27b5b261350ef0f983" Expires: - "0" Pragma: @@ -146,21 +149,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcccaff246ba1007014b5 + - 8f5eb2cf632b565fec7d9989000da02c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.324816" + - "0.607769" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestOrderLowestRate.yaml b/tests/cassettes/TestOrderLowestRate.yaml index 4c610b7..65a8181 100644 --- a/tests/cassettes/TestOrderLowestRate.yaml +++ b/tests/cassettes/TestOrderLowestRate.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"order":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"shipments":[{"to_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}],"is_return":false}}' + body: '{"order":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"is_return":false,"shipments":[{"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth + Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,41 +21,43 @@ interactions: url: https://api.easypost.com/v2/orders method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0df3c5ed1fe711edaff5ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:55Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0df4f2a41fe711edb08eac1f6b0a0d1e","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"id":"order_ca547f7408e14188b4aa33373338b113","is_return":false,"messages":[],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1f33f6f06ac943dcac40c540f52febb3","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9f7af8bdbf4f4fe2a5791729dd66671c","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_fb22709d5cb9441a90f8e4090dc09ea6","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9f7af8bdbf4f4fe2a5791729dd66671c","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_249e2ed4d4a5484097184787f521a80c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9f7af8bdbf4f4fe2a5791729dd66671c","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_5501e87fbc3642ab90b7b1f9648dde65","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9f7af8bdbf4f4fe2a5791729dd66671c","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0df4f2a41fe711edb08eac1f6b0a0d1e","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0df3c5ed1fe711edaff5ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:55Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0df4f2a41fe711edb08eac1f6b0a0d1e","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"id":"shp_9f7af8bdbf4f4fe2a5791729dd66671c","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_ca547f7408e14188b4aa33373338b113","parcel":{"created_at":"2022-08-19T17:47:55Z","height":4,"id":"prcl_8de9bffc59824c15a70ae0daf2291cf3","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:55Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1f33f6f06ac943dcac40c540f52febb3","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9f7af8bdbf4f4fe2a5791729dd66671c","updated_at":"2022-08-19T17:47:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_fb22709d5cb9441a90f8e4090dc09ea6","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9f7af8bdbf4f4fe2a5791729dd66671c","updated_at":"2022-08-19T17:47:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_249e2ed4d4a5484097184787f521a80c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9f7af8bdbf4f4fe2a5791729dd66671c","updated_at":"2022-08-19T17:47:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_5501e87fbc3642ab90b7b1f9648dde65","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9f7af8bdbf4f4fe2a5791729dd66671c","updated_at":"2022-08-19T17:47:55Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0df4f2a41fe711edb08eac1f6b0a0d1e","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0df3c5ed1fe711edaff5ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:47:55Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0df3c5ed1fe711edaff5ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-08-19T17:47:55Z"}' + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57381ae239da11edab56ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:24+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:24Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_573981fa39da11eda41aac1f6bc72124","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:24+00:00","verifications":{},"zip":"94107"},"id":"order_c4bd53413a624cd187fdb0340574dd28","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_feb463ada7ec445bba210c24fea89ed3","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_ed21b8bf0da24ca2be00c45959040dad","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_7c1c59d51d74401297583a0a594c1d3a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_ed21b8bf0da24ca2be00c45959040dad","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_854172c4c1f448ae9bb56770b4c52ef5","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_ed21b8bf0da24ca2be00c45959040dad","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_fff9ac9f88e940909a3ebebce9bf1038","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_ed21b8bf0da24ca2be00c45959040dad","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_573981fa39da11eda41aac1f6bc72124","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:24+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57381ae239da11edab56ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:24+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:24Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_573981fa39da11eda41aac1f6bc72124","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:24+00:00","verifications":{},"zip":"94107"},"id":"shp_ed21b8bf0da24ca2be00c45959040dad","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_c4bd53413a624cd187fdb0340574dd28","parcel":{"created_at":"2022-09-21T18:22:24Z","height":4,"id":"prcl_34f7d295c44e4d8c8c4ee15be5b216ea","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:24Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_feb463ada7ec445bba210c24fea89ed3","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_ed21b8bf0da24ca2be00c45959040dad","updated_at":"2022-09-21T18:22:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_7c1c59d51d74401297583a0a594c1d3a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_ed21b8bf0da24ca2be00c45959040dad","updated_at":"2022-09-21T18:22:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_854172c4c1f448ae9bb56770b4c52ef5","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_ed21b8bf0da24ca2be00c45959040dad","updated_at":"2022-09-21T18:22:25Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_fff9ac9f88e940909a3ebebce9bf1038","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_ed21b8bf0da24ca2be00c45959040dad","updated_at":"2022-09-21T18:22:25Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_573981fa39da11eda41aac1f6bc72124","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:24+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57381ae239da11edab56ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:24+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:22:24Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:24+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57381ae239da11edab56ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:24+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-09-21T18:22:25Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"86d8ae385a3c70fa9a567ceafb9ccfc9" + - W/"37f9d214732ef79416d562001fe40bf0" Expires: - "0" Location: - - /api/v2/orders/order_ca547f7408e14188b4aa33373338b113 + - /api/v2/orders/order_c4bd53413a624cd187fdb0340574dd28 Pragma: - no-cache Referrer-Policy: @@ -69,21 +71,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcccaff246ba100701500 + - 8f5eb2cf632b5660ec7d9989000da09c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.203475" + - "0.605326" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestOrderRetrieve.yaml b/tests/cassettes/TestOrderRetrieve.yaml index 20179d3..12c2a61 100644 --- a/tests/cassettes/TestOrderRetrieve.yaml +++ b/tests/cassettes/TestOrderRetrieve.yaml @@ -2,14 +2,14 @@ version: 1 interactions: - request: - body: '{"order":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"shipments":[{"to_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}],"is_return":false}}' + body: '{"order":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"is_return":false,"shipments":[{"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}],"to_address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth + Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,41 +21,43 @@ interactions: url: https://api.easypost.com/v2/orders method: POST response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3b90331fe711ed8951ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:55Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3d71ca1fe711ed8955ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"id":"order_fafee2ed618d4edca556746439b478b1","is_return":false,"messages":[],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5211d1c4b73e4072ad229b1b6fb30539","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a9f862aff6164ae8aef8b02a0d229798","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_dec7360b243042e5b51e9f406a96a032","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f004e6664ca349a98140be12827a5365","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3d71ca1fe711ed8955ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3b90331fe711ed8951ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:55Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3d71ca1fe711ed8955ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"id":"shp_0a0c443472974068a93eda69e8f8acdc","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_fafee2ed618d4edca556746439b478b1","parcel":{"created_at":"2022-08-19T17:47:55Z","height":4,"id":"prcl_e1f3ce3b4bb746f49a9a6cc9b30db46c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:55Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5211d1c4b73e4072ad229b1b6fb30539","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":"2022-08-19T17:47:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a9f862aff6164ae8aef8b02a0d229798","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":"2022-08-19T17:47:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_dec7360b243042e5b51e9f406a96a032","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":"2022-08-19T17:47:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f004e6664ca349a98140be12827a5365","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":"2022-08-19T17:47:55Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3d71ca1fe711ed8955ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3b90331fe711ed8951ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:47:55Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3b90331fe711ed8951ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-08-19T17:47:55Z"}' + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d1b8a739da11edaa0cac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:25Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d35d7639da11edab90ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"94107"},"id":"order_c0636837442448d0987e21a456c2e321","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1cad9c9321f144b5866629f5357dc449","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_5e82638f9ce04d83aafaf6e1f572a45a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_be10953b69574145948cf5457fede11f","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_bd18ce5f9baf4206bc5f4c42d9fa9f48","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d35d7639da11edab90ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d1b8a739da11edaa0cac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:25Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d35d7639da11edab90ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"94107"},"id":"shp_d491042166fd4595843f64573195f019","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_c0636837442448d0987e21a456c2e321","parcel":{"created_at":"2022-09-21T18:22:25Z","height":4,"id":"prcl_2b9b2450dc2347b6a70fb955a99b3911","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:25Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1cad9c9321f144b5866629f5357dc449","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":"2022-09-21T18:22:26Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_5e82638f9ce04d83aafaf6e1f572a45a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":"2022-09-21T18:22:26Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_be10953b69574145948cf5457fede11f","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":"2022-09-21T18:22:26Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_bd18ce5f9baf4206bc5f4c42d9fa9f48","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":"2022-09-21T18:22:26Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d35d7639da11edab90ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d1b8a739da11edaa0cac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:22:25Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d1b8a739da11edaa0cac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-09-21T18:22:26Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"f27f7be27eb91952bf462ff183eb47bc" + - W/"743e51bb4acace7f7da781972c0bf985" Expires: - "0" Location: - - /api/v2/orders/order_fafee2ed618d4edca556746439b478b1 + - /api/v2/orders/order_c0636837442448d0987e21a456c2e321 Pragma: - no-cache Referrer-Policy: @@ -69,21 +71,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcccbff246ba100701532 + - 8f5eb2cf632b5661ec7d9989000da12c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.249725" + - "0.675971" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -97,40 +99,41 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/orders/order_fafee2ed618d4edca556746439b478b1 + url: https://api.easypost.com/v2/orders/order_c0636837442448d0987e21a456c2e321 method: GET response: - body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3b90331fe711ed8951ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:55Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3d71ca1fe711ed8955ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"id":"order_fafee2ed618d4edca556746439b478b1","is_return":false,"messages":[],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5211d1c4b73e4072ad229b1b6fb30539","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a9f862aff6164ae8aef8b02a0d229798","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_dec7360b243042e5b51e9f406a96a032","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f004e6664ca349a98140be12827a5365","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3d71ca1fe711ed8955ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3b90331fe711ed8951ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:47:55Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3d71ca1fe711ed8955ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"id":"shp_0a0c443472974068a93eda69e8f8acdc","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_fafee2ed618d4edca556746439b478b1","parcel":{"created_at":"2022-08-19T17:47:55Z","height":4,"id":"prcl_e1f3ce3b4bb746f49a9a6cc9b30db46c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:47:55Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5211d1c4b73e4072ad229b1b6fb30539","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":"2022-08-19T17:47:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a9f862aff6164ae8aef8b02a0d229798","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":"2022-08-19T17:47:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_dec7360b243042e5b51e9f406a96a032","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":"2022-08-19T17:47:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:47:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f004e6664ca349a98140be12827a5365","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_0a0c443472974068a93eda69e8f8acdc","updated_at":"2022-08-19T17:47:55Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3d71ca1fe711ed8955ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3b90331fe711ed8951ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:47:55Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:55+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_0e3b90331fe711ed8951ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:55+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-08-19T17:47:55Z"}' + body: '{"buyer_address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d1b8a739da11edaa0cac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:25Z","customs_info":null,"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d35d7639da11edab90ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"94107"},"id":"order_c0636837442448d0987e21a456c2e321","is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Order","options":{"currency":"USD","payment":{"type":"SENDER"}},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1cad9c9321f144b5866629f5357dc449","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_5e82638f9ce04d83aafaf6e1f572a45a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_be10953b69574145948cf5457fede11f","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":null},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":null,"currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_bd18ce5f9baf4206bc5f4c42d9fa9f48","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":null}],"reference":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d35d7639da11edab90ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"94107"},"shipments":[{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d1b8a739da11edaa0cac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:25Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d35d7639da11edab90ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"94107"},"id":"shp_d491042166fd4595843f64573195f019","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":"order_c0636837442448d0987e21a456c2e321","parcel":{"created_at":"2022-09-21T18:22:25Z","height":4,"id":"prcl_2b9b2450dc2347b6a70fb955a99b3911","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:25Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_1cad9c9321f144b5866629f5357dc449","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":"2022-09-21T18:22:26Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_5e82638f9ce04d83aafaf6e1f572a45a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":"2022-09-21T18:22:26Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_be10953b69574145948cf5457fede11f","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":"2022-09-21T18:22:26Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:26Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_bd18ce5f9baf4206bc5f4c42d9fa9f48","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_d491042166fd4595843f64573195f019","updated_at":"2022-09-21T18:22:26Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d35d7639da11edab90ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d1b8a739da11edaa0cac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:22:25Z","usps_zone":4}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:25+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_57d1b8a739da11edaa0cac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:25+00:00","verifications":{},"zip":"90277"},"updated_at":"2022-09-21T18:22:26Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"f27f7be27eb91952bf462ff183eb47bc" + - W/"d034e2dfd2d5a51121d4c009e2fd05b9" Expires: - "0" Pragma: @@ -146,21 +149,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcccbff246ba100701571 + - 8f5eb2cf632b5662ec7d9989000da1b9 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.101850" + - "0.107268" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestParcelCreate.yaml b/tests/cassettes/TestParcelCreate.yaml index 5e3e8dc..2ae6d98 100644 --- a/tests/cassettes/TestParcelCreate.yaml +++ b/tests/cassettes/TestParcelCreate.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}' + body: '{"parcel":{"height":4,"length":10,"weight":15.4,"width":8}}' form: {} headers: Authorization: @@ -14,18 +14,18 @@ interactions: url: https://api.easypost.com/v2/parcels method: POST response: - body: '{"id":"prcl_80a6de22abf74e3587fb0c765541b966","object":"Parcel","created_at":"2022-08-19T17:47:56Z","updated_at":"2022-08-19T17:47:56Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"}' + body: '{"created_at":"2022-09-21T18:22:26Z","height":4,"id":"prcl_cb2a8b167df74a6daaa6810b8e091091","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:26Z","weight":15.4,"width":8}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"1e70895284b772d962676767ea0afd1c" + - W/"230b0afe3efe3fef54521d366341f22f" Expires: - "0" Location: - - /api/v2/parcels.prcl_80a6de22abf74e3587fb0c765541b966 + - /api/v2/parcels.prcl_cb2a8b167df74a6daaa6810b8e091091 Pragma: - no-cache Referrer-Policy: @@ -39,21 +39,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccccff246ba1007015ac + - 8f5eb2cf632b5662ec7d9989000da1ec X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.022643" + - "0.037520" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestParcelRetrieve.yaml b/tests/cassettes/TestParcelRetrieve.yaml index 97f62ed..67a9b6e 100644 --- a/tests/cassettes/TestParcelRetrieve.yaml +++ b/tests/cassettes/TestParcelRetrieve.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}' + body: '{"parcel":{"height":4,"length":10,"weight":15.4,"width":8}}' form: {} headers: Authorization: @@ -14,18 +14,18 @@ interactions: url: https://api.easypost.com/v2/parcels method: POST response: - body: '{"id":"prcl_c46487fc119a4377bc7ce0a25bf6fb2b","object":"Parcel","created_at":"2022-08-19T17:47:58Z","updated_at":"2022-08-19T17:47:58Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"}' + body: '{"created_at":"2022-09-21T18:22:27Z","height":4,"id":"prcl_d80b5990a83c41a9b9f6db9975fb5318","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:27Z","weight":15.4,"width":8}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"2fc079ce49faee02480292df1bdb3a58" + - W/"6cbc11226cae61e0f59a852b25f4b4d9" Expires: - "0" Location: - - /api/v2/parcels.prcl_c46487fc119a4377bc7ce0a25bf6fb2b + - /api/v2/parcels.prcl_d80b5990a83c41a9b9f6db9975fb5318 Pragma: - no-cache Referrer-Policy: @@ -39,7 +39,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcccdff246ba100701676 + - 8f5eb2cf632b5663ec7d9989000da205 X-Frame-Options: - SAMEORIGIN X-Node: @@ -47,13 +47,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.025726" + - "0.029785" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -67,17 +67,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/parcels/prcl_c46487fc119a4377bc7ce0a25bf6fb2b + url: https://api.easypost.com/v2/parcels/prcl_d80b5990a83c41a9b9f6db9975fb5318 method: GET response: - body: '{"id":"prcl_c46487fc119a4377bc7ce0a25bf6fb2b","object":"Parcel","created_at":"2022-08-19T17:47:58Z","updated_at":"2022-08-19T17:47:58Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"}' + body: '{"created_at":"2022-09-21T18:22:27Z","height":4,"id":"prcl_d80b5990a83c41a9b9f6db9975fb5318","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:27Z","weight":15.4,"width":8}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"2fc079ce49faee02480292df1bdb3a58" + - W/"6cbc11226cae61e0f59a852b25f4b4d9" Expires: - "0" Pragma: @@ -93,21 +93,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccceff246ba100701681 + - 8f5eb2cf632b5663ec7d9989000da237 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.019375" + - "0.016996" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupBuy.yaml b/tests/cassettes/TestPickupBuy.yaml index 3d823e0..71b6ae1 100644 --- a/tests/cassettes/TestPickupBuy.yaml +++ b/tests/cassettes/TestPickupBuy.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:55:33+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_1f67ccd61fe811ed8ceeac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:55:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:55:33Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:55:33+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1f6a97891fe811ed8cf3ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:55:33+00:00","verifications":{},"zip":"90277"},"id":"shp_ef54e397537f4bc5987d8ad6881b5857","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:55:33Z","height":4,"id":"prcl_063abb5317c843a29088e7a2f2624636","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:55:33Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:55:34Z","date_advance":0,"id":"pl_e498862d75fd48b5b95698e8af9d63f2","integrated_form":"none","label_date":"2022-08-19T17:55:34Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/1c8b1f16ffd34f4eb8afbe9d6a07a624.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:55:34Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a8a5082314484ef889b2a1fc3e39ffc6","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","updated_at":"2022-08-19T17:55:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f8e9ecde16874574977ac0fadab37c78","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","updated_at":"2022-08-19T17:55:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_310f90da9d8647008e8a7886bd5dc1e2","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","updated_at":"2022-08-19T17:55:33Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a9bcb912408b4a428871a15a9f679b61","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","updated_at":"2022-08-19T17:55:33Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:55:33+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1f6a97891fe811ed8cf3ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:55:33+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a9bcb912408b4a428871a15a9f679b61","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","updated_at":"2022-08-19T17:55:34Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:55:33+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_1f67ccd61fe811ed8ceeac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:55:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:55:34Z","est_delivery_date":null,"fees":[],"id":"trk_c6c054394dcc4b93bbdd398f6a25d3c0","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M2YzA1NDM5NGRjYzRiOTNiYmRkMzk4ZjZhMjVkM2Mw","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884827","tracking_details":[],"updated_at":"2022-08-19T17:55:34Z","weight":null},"tracking_code":"9400100109361133884827","updated_at":"2022-08-19T17:55:34Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:27+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_591c5ef739da11edb6dbac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:28+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:27Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:27+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_591e9f0e39da11edb6ddac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:27+00:00","verifications":{},"zip":"90277"},"id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:27Z","height":4,"id":"prcl_d187dd9717644a07b18e552bcb852597","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:27Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:28Z","date_advance":0,"id":"pl_9aa211e9fa6546c783c0e53cf72eadaf","integrated_form":"none","label_date":"2022-09-21T18:22:28Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/21f12f2c4e134e50b4c90456f3353727.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:28Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f836c866e9344d2cb46bf7d166f27bb8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","updated_at":"2022-09-21T18:22:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_dd591a8c6ab34044ba67c38462bbab45","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","updated_at":"2022-09-21T18:22:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_edca7d88d0354117a281f3cce30aa6b0","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","updated_at":"2022-09-21T18:22:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f1976519739249f4a8a2fdec69a95d79","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","updated_at":"2022-09-21T18:22:28Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:27+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_591e9f0e39da11edb6ddac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:27+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:28Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f836c866e9344d2cb46bf7d166f27bb8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","updated_at":"2022-09-21T18:22:28Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:27+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_591c5ef739da11edb6dbac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:28+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:28Z","est_delivery_date":null,"fees":[],"id":"trk_32db2392a04141459b2f73b120fea9b9","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzMyZGIyMzkyYTA0MTQxNDU5YjJmNzNiMTIwZmVhOWI5","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710176","tracking_details":[],"updated_at":"2022-09-21T18:22:28Z","weight":null},"tracking_code":"9400100109361138710176","updated_at":"2022-09-21T18:22:28Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"64c61a7861c4211c38afff476f48f94c" + - W/"5aba57e3095f471fced5cce384b9b5f2" Expires: - "0" Location: - - /api/v2/shipments/shp_ef54e397537f4bc5987d8ad6881b5857 + - /api/v2/shipments/shp_bc1fd9b4ec0242c0aa3e74df838f44a8 Pragma: - no-cache Referrer-Policy: @@ -54,38 +55,42 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffce95ff246f1f0078d902 + - 8f5eb2cf632b5663ec7d9989000da264 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.904971" + - "1.132007" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"pickup":{"min_datetime":"2022-08-22T00:00:00Z","max_datetime":"2022-08-22T00:00:00Z","instructions":"Pickup - at front door","shipment":{"id":"shp_ef54e397537f4bc5987d8ad6881b5857","object":"Shipment","mode":"test","created_at":"2022-08-19T17:55:33Z","updated_at":"2022-08-19T17:55:34Z","to_address":{"id":"adr_1f67ccd61fe811ed8ceeac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:33Z","updated_at":"2022-08-19T17:55:34Z","street1":"388 - TOWNSEND ST APT 20","city":"SAN FRANCISCO","state":"CA","zip":"94107-1670","country":"US","name":"JACK - SPARROW","phone":"5555555555","email":"TEST@EXAMPLE.COM","residential":true,"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_1f6a97891fe811ed8cf3ac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:33Z","updated_at":"2022-08-19T17:55:33Z","street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com","verifications":{"zip4":null,"delivery":null}},"return_address":{"id":"adr_1f6a97891fe811ed8cf3ac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:33Z","updated_at":"2022-08-19T17:55:33Z","street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com","verifications":{"zip4":null,"delivery":null}},"buyer_address":{"id":"adr_1f67ccd61fe811ed8ceeac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:33Z","updated_at":"2022-08-19T17:55:34Z","street1":"388 - TOWNSEND ST APT 20","city":"SAN FRANCISCO","state":"CA","zip":"94107-1670","country":"US","name":"JACK - SPARROW","phone":"5555555555","email":"TEST@EXAMPLE.COM","residential":true,"verifications":{"zip4":{"success":true,"errors":[],"details":null},"delivery":{"success":true,"errors":[],"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"}}}},"parcel":{"id":"prcl_063abb5317c843a29088e7a2f2624636","object":"Parcel","mode":"test","created_at":"2022-08-19T17:55:33Z","updated_at":"2022-08-19T17:55:33Z","length":10,"width":8,"height":4,"weight":15.4},"rates":[{"id":"rate_a8a5082314484ef889b2a1fc3e39ffc6","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:33Z","updated_at":"2022-08-19T17:55:33Z","service":"Express","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","rate":"29.50","currency":"USD","retail_rate":"33.55","retail_currency":"USD","list_rate":"29.50","list_currency":"USD","billing_type":"easypost"},{"id":"rate_f8e9ecde16874574977ac0fadab37c78","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:33Z","updated_at":"2022-08-19T17:55:33Z","service":"Priority","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","rate":"7.90","currency":"USD","retail_rate":"9.45","retail_currency":"USD","list_rate":"7.90","list_currency":"USD","delivery_days":2,"est_delivery_days":2,"billing_type":"easypost"},{"id":"rate_310f90da9d8647008e8a7886bd5dc1e2","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:33Z","updated_at":"2022-08-19T17:55:33Z","service":"ParcelSelect","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","rate":"7.75","currency":"USD","retail_rate":"7.75","retail_currency":"USD","list_rate":"7.75","list_currency":"USD","delivery_days":5,"est_delivery_days":5,"billing_type":"easypost"},{"id":"rate_a9bcb912408b4a428871a15a9f679b61","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:33Z","updated_at":"2022-08-19T17:55:33Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"}],"selected_rate":{"id":"rate_a9bcb912408b4a428871a15a9f679b61","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:34Z","updated_at":"2022-08-19T17:55:34Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"},"postage_label":{"id":"pl_e498862d75fd48b5b95698e8af9d63f2","object":"PostageLabel","created_at":"2022-08-19T17:55:34Z","updated_at":"2022-08-19T17:55:34Z","integrated_form":"none","label_date":"2022-08-19T17:55:34Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/1c8b1f16ffd34f4eb8afbe9d6a07a624.png"},"options":{"currency":"USD","payment":{"type":"SENDER"}},"tracking_code":"9400100109361133884827","usps_zone":4,"status":"unknown","tracker":{"id":"trk_c6c054394dcc4b93bbdd398f6a25d3c0","object":"Tracker","mode":"test","created_at":"2022-08-19T17:55:34Z","updated_at":"2022-08-19T17:55:34Z","tracking_code":"9400100109361133884827","status":"unknown","shipment_id":"shp_ef54e397537f4bc5987d8ad6881b5857","carrier":"USPS","public_url":"https://track.easypost.com/djE6dHJrX2M2YzA1NDM5NGRjYzRiOTNiYmRkMzk4ZjZhMjVkM2Mw"},"fees":[{"object":"Fee","type":"LabelFee","amount":"0.00000","charged":true},{"object":"Fee","type":"PostageFee","amount":"5.57000","charged":true}]},"address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"}}}' + body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2022-09-22T00:00:00Z","min_datetime":"2022-09-22T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2022-09-21T18:22:27Z","email":"REDACTED","id":"adr_591c5ef739da11edb6dbac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 + TOWNSEND ST APT 20","updated_at":"2022-09-21T18:22:28Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:27Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2022-09-21T18:22:27Z","email":"REDACTED","id":"adr_591e9f0e39da11edb6ddac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor + Dr","updated_at":"2022-09-21T18:22:27Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2022-09-21T18:22:27Z","height":4,"id":"prcl_d187dd9717644a07b18e552bcb852597","length":10,"mode":"test","object":"Parcel","updated_at":"2022-09-21T18:22:27Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:28Z","id":"pl_9aa211e9fa6546c783c0e53cf72eadaf","integrated_form":"none","label_date":"2022-09-21T18:22:28Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/21f12f2c4e134e50b4c90456f3353727.png","object":"PostageLabel","updated_at":"2022-09-21T18:22:28Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:28Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_f836c866e9344d2cb46bf7d166f27bb8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","updated_at":"2022-09-21T18:22:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:28Z","currency":"USD","id":"rate_dd591a8c6ab34044ba67c38462bbab45","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","updated_at":"2022-09-21T18:22:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:28Z","currency":"USD","delivery_days":5,"est_delivery_days":5,"id":"rate_edca7d88d0354117a281f3cce30aa6b0","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","updated_at":"2022-09-21T18:22:28Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:28Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_f1976519739249f4a8a2fdec69a95d79","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","updated_at":"2022-09-21T18:22:28Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2022-09-21T18:22:27Z","email":"REDACTED","id":"adr_591e9f0e39da11edb6ddac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor + Dr","updated_at":"2022-09-21T18:22:27Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:28Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_f836c866e9344d2cb46bf7d166f27bb8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","updated_at":"2022-09-21T18:22:28Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2022-09-21T18:22:27Z","email":"REDACTED","id":"adr_591c5ef739da11edb6dbac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 + TOWNSEND ST APT 20","updated_at":"2022-09-21T18:22:28Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2022-09-21T18:22:28Z","id":"trk_32db2392a04141459b2f73b120fea9b9","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzMyZGIyMzkyYTA0MTQxNDU5YjJmNzNiMTIwZmVhOWI5","shipment_id":"shp_bc1fd9b4ec0242c0aa3e74df838f44a8","status":"unknown","tracking_code":"9400100109361138710176","updated_at":"2022-09-21T18:22:28Z"},"tracking_code":"9400100109361138710176","updated_at":"2022-09-21T18:22:28Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -97,17 +102,17 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:55:34+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_200d24bf1fe811edb6a4ac1f6b0a0d1e","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:55:34+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-08-19T17:55:34Z","id":"pickup_787be9e75c1a479d9e1877788c622fcc","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2022-08-22T00:00:00Z","messages":[],"min_datetime":"2022-08-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-08-19T17:55:36Z","currency":"USD","id":"pickuprate_47b7992516b846e7ba61ff52af522c87","mode":"test","object":"PickupRate","pickup_id":"pickup_787be9e75c1a479d9e1877788c622fcc","rate":"0.00","service":"NextDay","updated_at":"2022-08-19T17:55:36Z"}],"reference":null,"status":"unknown","updated_at":"2022-08-19T17:55:34Z"}' + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_59e9012939da11edac48ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:29+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-09-21T18:22:29Z","id":"pickup_65320a8606854bd0b1da50413f6f96aa","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2022-09-22T00:00:00Z","messages":[],"min_datetime":"2022-09-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-09-21T18:22:30Z","currency":"USD","id":"pickuprate_060e9c7a799241eb98e8b13223b65468","mode":"test","object":"PickupRate","pickup_id":"pickup_65320a8606854bd0b1da50413f6f96aa","rate":"0.00","service":"NextDay","updated_at":"2022-09-21T18:22:30Z"}],"reference":null,"status":"unknown","updated_at":"2022-09-21T18:22:29Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"02ba789d073e99893793565e317b868d" + - W/"fe0535bded3ed5f74028f955a7e33083" Expires: - "0" Pragma: @@ -123,20 +128,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffce96ff246f1f0078d95d + - 8f5eb2cf632b5665ec7d9989000da322 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.318834" + - "0.812566" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -156,20 +162,20 @@ interactions: - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups/pickup_787be9e75c1a479d9e1877788c622fcc/buy + url: https://api.easypost.com/v2/pickups/pickup_65320a8606854bd0b1da50413f6f96aa/buy method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:55:34+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_200d24bf1fe811edb6a4ac1f6b0a0d1e","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:55:34+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC62056230","created_at":"2022-08-19T17:55:34Z","id":"pickup_787be9e75c1a479d9e1877788c622fcc","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2022-08-22T00:00:00Z","messages":[],"min_datetime":"2022-08-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-08-19T17:55:36Z","currency":"USD","id":"pickuprate_47b7992516b846e7ba61ff52af522c87","mode":"test","object":"PickupRate","pickup_id":"pickup_787be9e75c1a479d9e1877788c622fcc","rate":"0.00","service":"NextDay","updated_at":"2022-08-19T17:55:36Z"}],"reference":null,"status":"scheduled","updated_at":"2022-08-19T17:55:37Z"}' + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:29+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_59e9012939da11edac48ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:29+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC62219494","created_at":"2022-09-21T18:22:29Z","id":"pickup_65320a8606854bd0b1da50413f6f96aa","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2022-09-22T00:00:00Z","messages":[],"min_datetime":"2022-09-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-09-21T18:22:30Z","currency":"USD","id":"pickuprate_060e9c7a799241eb98e8b13223b65468","mode":"test","object":"PickupRate","pickup_id":"pickup_65320a8606854bd0b1da50413f6f96aa","rate":"0.00","service":"NextDay","updated_at":"2022-09-21T18:22:30Z"}],"reference":null,"status":"scheduled","updated_at":"2022-09-21T18:22:31Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e0b3afd9f849b49b51ed05b7495afaec" + - W/"36373840400543008ca36b9bff24d78f" Expires: - "0" Pragma: @@ -185,20 +191,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffce98ff246f1f0078d9cc + - 8f5eb2cf632b5666ec7d9989000da3c1 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.177763" + - "1.077669" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupCancel.yaml b/tests/cassettes/TestPickupCancel.yaml index 532ce39..1a06f52 100644 --- a/tests/cassettes/TestPickupCancel.yaml +++ b/tests/cassettes/TestPickupCancel.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:55:37+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_21b373101fe811edb90bac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:55:37+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:55:37Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:55:37+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_21b557601fe811edb90eac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:55:37+00:00","verifications":{},"zip":"90277"},"id":"shp_1c6254694e0841c5bc57f2ac0209886b","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:55:37Z","height":4,"id":"prcl_5794de51d1714742a5ce924258af18ce","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:55:37Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:55:38Z","date_advance":0,"id":"pl_3ba0e91c7fa349ddb8f0042cd7e5a433","integrated_form":"none","label_date":"2022-08-19T17:55:38Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/0959fa377975453ea5f49e554ae708ff.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:55:38Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_08574595b08b44f49ed10a99aa45a04a","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","updated_at":"2022-08-19T17:55:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7015f1821d6e46819a41690cf7cee82f","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","updated_at":"2022-08-19T17:55:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_02462a8b30b14be8aaa658a4e31d4665","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","updated_at":"2022-08-19T17:55:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_05f064ce7e474dd48cbb19b72c8c27f6","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","updated_at":"2022-08-19T17:55:37Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:55:37+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_21b557601fe811edb90eac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:55:37+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_05f064ce7e474dd48cbb19b72c8c27f6","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","updated_at":"2022-08-19T17:55:38Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:55:37+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_21b373101fe811edb90bac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:55:37+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:55:38Z","est_delivery_date":null,"fees":[],"id":"trk_fc48570f06b144028ca8a806ce65bde6","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2ZjNDg1NzBmMDZiMTQ0MDI4Y2E4YTgwNmNlNjViZGU2","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884834","tracking_details":[],"updated_at":"2022-08-19T17:55:38Z","weight":null},"tracking_code":"9400100109361133884834","updated_at":"2022-08-19T17:55:38Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5b575e9739da11edacd9ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:31+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:31Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5b598ef339da11edacdaac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:31+00:00","verifications":{},"zip":"90277"},"id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:31Z","height":4,"id":"prcl_bc03ee816a0b41cabf55b403275a437a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:31Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:32Z","date_advance":0,"id":"pl_ddacbb2254f54af8935ad62daf98fbcd","integrated_form":"none","label_date":"2022-09-21T18:22:32Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/9067b269987247a387678756f1d06cb6.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:32Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_ecd1a7a988dd4b4386d51986438d0c36","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","updated_at":"2022-09-21T18:22:31Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2e0d3b70779946f6b96c948fe8c4f1fc","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","updated_at":"2022-09-21T18:22:31Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_fe5add10a640453f937238d0eda72962","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","updated_at":"2022-09-21T18:22:31Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_24dba3edd81842aca1b38561b608465a","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","updated_at":"2022-09-21T18:22:31Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5b598ef339da11edacdaac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:31+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_fe5add10a640453f937238d0eda72962","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","updated_at":"2022-09-21T18:22:32Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:31+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5b575e9739da11edacd9ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:31+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:32Z","est_delivery_date":null,"fees":[],"id":"trk_570610bc2bc2449895eaf35b28320c31","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzU3MDYxMGJjMmJjMjQ0OTg5NWVhZjM1YjI4MzIwYzMx","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710183","tracking_details":[],"updated_at":"2022-09-21T18:22:32Z","weight":null},"tracking_code":"9400100109361138710183","updated_at":"2022-09-21T18:22:32Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"2f61fca50591930d463aaf12b4fc6413" + - W/"df9134c227ab73a36dd936ae04b80d92" Expires: - "0" Location: - - /api/v2/shipments/shp_1c6254694e0841c5bc57f2ac0209886b + - /api/v2/shipments/shp_5a454c7c88564ed3a5b90ff2c20179ea Pragma: - no-cache Referrer-Policy: @@ -54,7 +55,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffce99ff246f1f0078da29 + - 8f5eb2cf632b5667ec7d9989000da477 X-Frame-Options: - SAMEORIGIN X-Node: @@ -62,30 +63,34 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.001942" + - "0.938813" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"pickup":{"min_datetime":"2022-08-22T00:00:00Z","max_datetime":"2022-08-22T00:00:00Z","instructions":"Pickup - at front door","shipment":{"id":"shp_1c6254694e0841c5bc57f2ac0209886b","object":"Shipment","mode":"test","created_at":"2022-08-19T17:55:37Z","updated_at":"2022-08-19T17:55:38Z","to_address":{"id":"adr_21b373101fe811edb90bac1f6b0a0d1e","object":"Address","mode":"test","created_at":"2022-08-19T17:55:37Z","updated_at":"2022-08-19T17:55:37Z","street1":"388 - TOWNSEND ST APT 20","city":"SAN FRANCISCO","state":"CA","zip":"94107-1670","country":"US","name":"JACK - SPARROW","phone":"5555555555","email":"TEST@EXAMPLE.COM","residential":true,"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_21b557601fe811edb90eac1f6b0a0d1e","object":"Address","mode":"test","created_at":"2022-08-19T17:55:37Z","updated_at":"2022-08-19T17:55:37Z","street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com","verifications":{"zip4":null,"delivery":null}},"return_address":{"id":"adr_21b557601fe811edb90eac1f6b0a0d1e","object":"Address","mode":"test","created_at":"2022-08-19T17:55:37Z","updated_at":"2022-08-19T17:55:37Z","street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com","verifications":{"zip4":null,"delivery":null}},"buyer_address":{"id":"adr_21b373101fe811edb90bac1f6b0a0d1e","object":"Address","mode":"test","created_at":"2022-08-19T17:55:37Z","updated_at":"2022-08-19T17:55:37Z","street1":"388 - TOWNSEND ST APT 20","city":"SAN FRANCISCO","state":"CA","zip":"94107-1670","country":"US","name":"JACK - SPARROW","phone":"5555555555","email":"TEST@EXAMPLE.COM","residential":true,"verifications":{"zip4":{"success":true,"errors":[],"details":null},"delivery":{"success":true,"errors":[],"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"}}}},"parcel":{"id":"prcl_5794de51d1714742a5ce924258af18ce","object":"Parcel","mode":"test","created_at":"2022-08-19T17:55:37Z","updated_at":"2022-08-19T17:55:37Z","length":10,"width":8,"height":4,"weight":15.4},"rates":[{"id":"rate_08574595b08b44f49ed10a99aa45a04a","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:37Z","updated_at":"2022-08-19T17:55:37Z","service":"Express","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","rate":"29.50","currency":"USD","retail_rate":"33.55","retail_currency":"USD","list_rate":"29.50","list_currency":"USD","billing_type":"easypost"},{"id":"rate_7015f1821d6e46819a41690cf7cee82f","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:37Z","updated_at":"2022-08-19T17:55:37Z","service":"Priority","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","rate":"7.90","currency":"USD","retail_rate":"9.45","retail_currency":"USD","list_rate":"7.90","list_currency":"USD","delivery_days":2,"est_delivery_days":2,"billing_type":"easypost"},{"id":"rate_02462a8b30b14be8aaa658a4e31d4665","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:37Z","updated_at":"2022-08-19T17:55:37Z","service":"ParcelSelect","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","rate":"7.75","currency":"USD","retail_rate":"7.75","retail_currency":"USD","list_rate":"7.75","list_currency":"USD","delivery_days":5,"est_delivery_days":5,"billing_type":"easypost"},{"id":"rate_05f064ce7e474dd48cbb19b72c8c27f6","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:37Z","updated_at":"2022-08-19T17:55:37Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"}],"selected_rate":{"id":"rate_05f064ce7e474dd48cbb19b72c8c27f6","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:38Z","updated_at":"2022-08-19T17:55:38Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"},"postage_label":{"id":"pl_3ba0e91c7fa349ddb8f0042cd7e5a433","object":"PostageLabel","created_at":"2022-08-19T17:55:38Z","updated_at":"2022-08-19T17:55:38Z","integrated_form":"none","label_date":"2022-08-19T17:55:38Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/0959fa377975453ea5f49e554ae708ff.png"},"options":{"currency":"USD","payment":{"type":"SENDER"}},"tracking_code":"9400100109361133884834","usps_zone":4,"status":"unknown","tracker":{"id":"trk_fc48570f06b144028ca8a806ce65bde6","object":"Tracker","mode":"test","created_at":"2022-08-19T17:55:38Z","updated_at":"2022-08-19T17:55:38Z","tracking_code":"9400100109361133884834","status":"unknown","shipment_id":"shp_1c6254694e0841c5bc57f2ac0209886b","carrier":"USPS","public_url":"https://track.easypost.com/djE6dHJrX2ZjNDg1NzBmMDZiMTQ0MDI4Y2E4YTgwNmNlNjViZGU2"},"fees":[{"object":"Fee","type":"LabelFee","amount":"0.00000","charged":true},{"object":"Fee","type":"PostageFee","amount":"5.57000","charged":true}]},"address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"}}}' + body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2022-09-22T00:00:00Z","min_datetime":"2022-09-22T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2022-09-21T18:22:31Z","email":"REDACTED","id":"adr_5b575e9739da11edacd9ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 + TOWNSEND ST APT 20","updated_at":"2022-09-21T18:22:31Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:31Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2022-09-21T18:22:31Z","email":"REDACTED","id":"adr_5b598ef339da11edacdaac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor + Dr","updated_at":"2022-09-21T18:22:31Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2022-09-21T18:22:31Z","height":4,"id":"prcl_bc03ee816a0b41cabf55b403275a437a","length":10,"mode":"test","object":"Parcel","updated_at":"2022-09-21T18:22:31Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:32Z","id":"pl_ddacbb2254f54af8935ad62daf98fbcd","integrated_form":"none","label_date":"2022-09-21T18:22:32Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/9067b269987247a387678756f1d06cb6.png","object":"PostageLabel","updated_at":"2022-09-21T18:22:32Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:31Z","currency":"USD","delivery_days":5,"est_delivery_days":5,"id":"rate_ecd1a7a988dd4b4386d51986438d0c36","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","updated_at":"2022-09-21T18:22:31Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:31Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_2e0d3b70779946f6b96c948fe8c4f1fc","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","updated_at":"2022-09-21T18:22:31Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:31Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_fe5add10a640453f937238d0eda72962","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","updated_at":"2022-09-21T18:22:31Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:31Z","currency":"USD","id":"rate_24dba3edd81842aca1b38561b608465a","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","updated_at":"2022-09-21T18:22:31Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2022-09-21T18:22:31Z","email":"REDACTED","id":"adr_5b598ef339da11edacdaac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor + Dr","updated_at":"2022-09-21T18:22:31Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:32Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_fe5add10a640453f937238d0eda72962","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","updated_at":"2022-09-21T18:22:32Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2022-09-21T18:22:31Z","email":"REDACTED","id":"adr_5b575e9739da11edacd9ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 + TOWNSEND ST APT 20","updated_at":"2022-09-21T18:22:31Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2022-09-21T18:22:32Z","id":"trk_570610bc2bc2449895eaf35b28320c31","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzU3MDYxMGJjMmJjMjQ0OTg5NWVhZjM1YjI4MzIwYzMx","shipment_id":"shp_5a454c7c88564ed3a5b90ff2c20179ea","status":"unknown","tracking_code":"9400100109361138710183","updated_at":"2022-09-21T18:22:32Z"},"tracking_code":"9400100109361138710183","updated_at":"2022-09-21T18:22:32Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -97,17 +102,17 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:55:38+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2268d6c61fe811ed914cac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:55:38+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-08-19T17:55:38Z","id":"pickup_ac0d443866cf455d9b02d3bf47f9efdc","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2022-08-22T00:00:00Z","messages":[],"min_datetime":"2022-08-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-08-19T17:55:39Z","currency":"USD","id":"pickuprate_bfed0992c4844842b97cf66fd2f63e55","mode":"test","object":"PickupRate","pickup_id":"pickup_ac0d443866cf455d9b02d3bf47f9efdc","rate":"0.00","service":"NextDay","updated_at":"2022-08-19T17:55:39Z"}],"reference":null,"status":"unknown","updated_at":"2022-08-19T17:55:38Z"}' + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5c0d392739da11edad1aac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:32+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-09-21T18:22:32Z","id":"pickup_4c4cd34927704b8db845b0eef3abc3ba","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2022-09-22T00:00:00Z","messages":[],"min_datetime":"2022-09-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-09-21T18:22:33Z","currency":"USD","id":"pickuprate_6fe0c79d39844b40a39251d55b02e63b","mode":"test","object":"PickupRate","pickup_id":"pickup_4c4cd34927704b8db845b0eef3abc3ba","rate":"0.00","service":"NextDay","updated_at":"2022-09-21T18:22:33Z"}],"reference":null,"status":"unknown","updated_at":"2022-09-21T18:22:32Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"0942f84141419496ca339f35c2a400e5" + - W/"d9e279c8a2c49b3772159b688aab848e" Expires: - "0" Pragma: @@ -123,20 +128,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffce9aff246f1f0078da8a + - 8f5eb2cf632b5668ec7d9989000da541 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.912502" + - "0.731538" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -156,20 +162,20 @@ interactions: - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups/pickup_ac0d443866cf455d9b02d3bf47f9efdc/buy + url: https://api.easypost.com/v2/pickups/pickup_4c4cd34927704b8db845b0eef3abc3ba/buy method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:55:38+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2268d6c61fe811ed914cac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:55:38+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC62056232","created_at":"2022-08-19T17:55:38Z","id":"pickup_ac0d443866cf455d9b02d3bf47f9efdc","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2022-08-22T00:00:00Z","messages":[],"min_datetime":"2022-08-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-08-19T17:55:39Z","currency":"USD","id":"pickuprate_bfed0992c4844842b97cf66fd2f63e55","mode":"test","object":"PickupRate","pickup_id":"pickup_ac0d443866cf455d9b02d3bf47f9efdc","rate":"0.00","service":"NextDay","updated_at":"2022-08-19T17:55:39Z"}],"reference":null,"status":"scheduled","updated_at":"2022-08-19T17:55:40Z"}' + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5c0d392739da11edad1aac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:32+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC62219452","created_at":"2022-09-21T18:22:32Z","id":"pickup_4c4cd34927704b8db845b0eef3abc3ba","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2022-09-22T00:00:00Z","messages":[],"min_datetime":"2022-09-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-09-21T18:22:33Z","currency":"USD","id":"pickuprate_6fe0c79d39844b40a39251d55b02e63b","mode":"test","object":"PickupRate","pickup_id":"pickup_4c4cd34927704b8db845b0eef3abc3ba","rate":"0.00","service":"NextDay","updated_at":"2022-09-21T18:22:33Z"}],"reference":null,"status":"scheduled","updated_at":"2022-09-21T18:22:34Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"412272ccb964bf5dafe6c0a6f0372c47" + - W/"2cfde93847afd9fc789c8a0823bdbd2f" Expires: - "0" Pragma: @@ -180,27 +186,26 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffce9bff246f1f0078dae1 + - 8f5eb2cf632b5669ec7d9989000da5e1 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.779198" + - "0.974371" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -214,20 +219,20 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups/pickup_ac0d443866cf455d9b02d3bf47f9efdc/cancel + url: https://api.easypost.com/v2/pickups/pickup_4c4cd34927704b8db845b0eef3abc3ba/cancel method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:55:38+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2268d6c61fe811ed914cac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:55:38+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC62056232","created_at":"2022-08-19T17:55:38Z","id":"pickup_ac0d443866cf455d9b02d3bf47f9efdc","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2022-08-22T00:00:00Z","messages":[],"min_datetime":"2022-08-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-08-19T17:55:39Z","currency":"USD","id":"pickuprate_bfed0992c4844842b97cf66fd2f63e55","mode":"test","object":"PickupRate","pickup_id":"pickup_ac0d443866cf455d9b02d3bf47f9efdc","rate":"0.00","service":"NextDay","updated_at":"2022-08-19T17:55:39Z"}],"reference":null,"status":"canceled","updated_at":"2022-08-19T17:55:41Z"}' + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:32+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5c0d392739da11edad1aac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:32+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":"WTC62219452","created_at":"2022-09-21T18:22:32Z","id":"pickup_4c4cd34927704b8db845b0eef3abc3ba","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2022-09-22T00:00:00Z","messages":[],"min_datetime":"2022-09-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-09-21T18:22:33Z","currency":"USD","id":"pickuprate_6fe0c79d39844b40a39251d55b02e63b","mode":"test","object":"PickupRate","pickup_id":"pickup_4c4cd34927704b8db845b0eef3abc3ba","rate":"0.00","service":"NextDay","updated_at":"2022-09-21T18:22:33Z"}],"reference":null,"status":"canceled","updated_at":"2022-09-21T18:22:36Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"7f2790df90d21f4f884f1f94bf447b44" + - W/"3f22277fc65a45e86b48564d2065c0f4" Expires: - "0" Pragma: @@ -243,7 +248,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffce9cff246f1f0078db2b + - 8f5eb2cf632b566aec7d9989000da693 X-Frame-Options: - SAMEORIGIN X-Node: @@ -251,12 +256,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.925601" + - "1.111898" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupCreate.yaml b/tests/cassettes/TestPickupCreate.yaml index 0f59951..5c6c2b3 100644 --- a/tests/cassettes/TestPickupCreate.yaml +++ b/tests/cassettes/TestPickupCreate.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:55:41+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_242360d11fe811ed9376ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:55:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:55:41Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:55:41+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_242523981fe811edbcb1ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:55:41+00:00","verifications":{},"zip":"90277"},"id":"shp_203a72846a78437c85de8a4c83bf44fd","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:55:41Z","height":4,"id":"prcl_fe5f4f36755a448eb82e6e94a8a300cd","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:55:41Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:55:42Z","date_advance":0,"id":"pl_4bcd45a598744a29b75b3782d5b078b5","integrated_form":"none","label_date":"2022-08-19T17:55:42Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/6831127fd65c456a9e49a63326c51d8b.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:55:42Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3a348cbadcff47629dc96256e2e9d038","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","updated_at":"2022-08-19T17:55:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_1267507bbe084b7f964e27c8fa59965f","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","updated_at":"2022-08-19T17:55:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5f74b69d6b684e0196aa8ee5f06e25fa","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","updated_at":"2022-08-19T17:55:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_a26d3e61e5664caf904c1554c3469997","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","updated_at":"2022-08-19T17:55:41Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:55:41+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_242523981fe811edbcb1ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:55:41+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:42Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3a348cbadcff47629dc96256e2e9d038","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","updated_at":"2022-08-19T17:55:42Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:55:41+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_242360d11fe811ed9376ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:55:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:55:42Z","est_delivery_date":null,"fees":[],"id":"trk_c0a38afbee60488aa88057cbced27b3f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MwYTM4YWZiZWU2MDQ4OGFhODgwNTdjYmNlZDI3YjNm","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884841","tracking_details":[],"updated_at":"2022-08-19T17:55:42Z","weight":null},"tracking_code":"9400100109361133884841","updated_at":"2022-08-19T17:55:42Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5e19a8d639da11edb8bbac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:36+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:36Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5e1c2e2939da11edb8beac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:36+00:00","verifications":{},"zip":"90277"},"id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:36Z","height":4,"id":"prcl_f8bdfa0c433c41548a175d169b85b05a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:36Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:36Z","date_advance":0,"id":"pl_f22f175d199f47ef8f8f6a5029f3b039","integrated_form":"none","label_date":"2022-09-21T18:22:36Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/f98532e654094c3d86ced3b64a989395.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:37Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_dac3a058633b4d1a9f342e031e5cec4a","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","updated_at":"2022-09-21T18:22:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_6945b906ab1546549f0952169365803a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","updated_at":"2022-09-21T18:22:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b0a9e88f7d29403f9c01c7fcf4d23eca","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","updated_at":"2022-09-21T18:22:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ae8d8df0594545419456ca5887901586","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","updated_at":"2022-09-21T18:22:36Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5e1c2e2939da11edb8beac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:36+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ae8d8df0594545419456ca5887901586","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","updated_at":"2022-09-21T18:22:36Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:36+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5e19a8d639da11edb8bbac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:36+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:37Z","est_delivery_date":null,"fees":[],"id":"trk_e010ef910e894dc89b11e21121323026","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2UwMTBlZjkxMGU4OTRkYzg5YjExZTIxMTIxMzIzMDI2","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710190","tracking_details":[],"updated_at":"2022-09-21T18:22:37Z","weight":null},"tracking_code":"9400100109361138710190","updated_at":"2022-09-21T18:22:37Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"dcdccf5fdb320d95a170309402a6bd89" + - W/"809754f73c628a24ca5c4444a3a52d1f" Expires: - "0" Location: - - /api/v2/shipments/shp_203a72846a78437c85de8a4c83bf44fd + - /api/v2/shipments/shp_b70d2f23d04a4143b4ea12432a1b96bb Pragma: - no-cache Referrer-Policy: @@ -49,43 +50,49 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffce9dff246f1f0078db83 + - 8f5eb2cf632b566cec7d9989000da763 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.815522" + - "1.023257" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"pickup":{"min_datetime":"2022-08-22T00:00:00Z","max_datetime":"2022-08-22T00:00:00Z","instructions":"Pickup - at front door","shipment":{"id":"shp_203a72846a78437c85de8a4c83bf44fd","object":"Shipment","mode":"test","created_at":"2022-08-19T17:55:41Z","updated_at":"2022-08-19T17:55:42Z","to_address":{"id":"adr_242360d11fe811ed9376ac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:41Z","updated_at":"2022-08-19T17:55:41Z","street1":"388 - TOWNSEND ST APT 20","city":"SAN FRANCISCO","state":"CA","zip":"94107-1670","country":"US","name":"JACK - SPARROW","phone":"5555555555","email":"TEST@EXAMPLE.COM","residential":true,"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_242523981fe811edbcb1ac1f6b0a0d1e","object":"Address","mode":"test","created_at":"2022-08-19T17:55:41Z","updated_at":"2022-08-19T17:55:41Z","street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com","verifications":{"zip4":null,"delivery":null}},"return_address":{"id":"adr_242523981fe811edbcb1ac1f6b0a0d1e","object":"Address","mode":"test","created_at":"2022-08-19T17:55:41Z","updated_at":"2022-08-19T17:55:41Z","street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com","verifications":{"zip4":null,"delivery":null}},"buyer_address":{"id":"adr_242360d11fe811ed9376ac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:41Z","updated_at":"2022-08-19T17:55:41Z","street1":"388 - TOWNSEND ST APT 20","city":"SAN FRANCISCO","state":"CA","zip":"94107-1670","country":"US","name":"JACK - SPARROW","phone":"5555555555","email":"TEST@EXAMPLE.COM","residential":true,"verifications":{"zip4":{"success":true,"errors":[],"details":null},"delivery":{"success":true,"errors":[],"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"}}}},"parcel":{"id":"prcl_fe5f4f36755a448eb82e6e94a8a300cd","object":"Parcel","mode":"test","created_at":"2022-08-19T17:55:41Z","updated_at":"2022-08-19T17:55:41Z","length":10,"width":8,"height":4,"weight":15.4},"rates":[{"id":"rate_3a348cbadcff47629dc96256e2e9d038","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:41Z","updated_at":"2022-08-19T17:55:41Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"},{"id":"rate_1267507bbe084b7f964e27c8fa59965f","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:41Z","updated_at":"2022-08-19T17:55:41Z","service":"Express","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","rate":"29.50","currency":"USD","retail_rate":"33.55","retail_currency":"USD","list_rate":"29.50","list_currency":"USD","billing_type":"easypost"},{"id":"rate_5f74b69d6b684e0196aa8ee5f06e25fa","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:41Z","updated_at":"2022-08-19T17:55:41Z","service":"Priority","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","rate":"7.90","currency":"USD","retail_rate":"9.45","retail_currency":"USD","list_rate":"7.90","list_currency":"USD","delivery_days":2,"est_delivery_days":2,"billing_type":"easypost"},{"id":"rate_a26d3e61e5664caf904c1554c3469997","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:41Z","updated_at":"2022-08-19T17:55:41Z","service":"ParcelSelect","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","rate":"7.75","currency":"USD","retail_rate":"7.75","retail_currency":"USD","list_rate":"7.75","list_currency":"USD","delivery_days":5,"est_delivery_days":5,"billing_type":"easypost"}],"selected_rate":{"id":"rate_3a348cbadcff47629dc96256e2e9d038","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:42Z","updated_at":"2022-08-19T17:55:42Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"},"postage_label":{"id":"pl_4bcd45a598744a29b75b3782d5b078b5","object":"PostageLabel","created_at":"2022-08-19T17:55:42Z","updated_at":"2022-08-19T17:55:42Z","integrated_form":"none","label_date":"2022-08-19T17:55:42Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/6831127fd65c456a9e49a63326c51d8b.png"},"options":{"currency":"USD","payment":{"type":"SENDER"}},"tracking_code":"9400100109361133884841","usps_zone":4,"status":"unknown","tracker":{"id":"trk_c0a38afbee60488aa88057cbced27b3f","object":"Tracker","mode":"test","created_at":"2022-08-19T17:55:42Z","updated_at":"2022-08-19T17:55:42Z","tracking_code":"9400100109361133884841","status":"unknown","shipment_id":"shp_203a72846a78437c85de8a4c83bf44fd","carrier":"USPS","public_url":"https://track.easypost.com/djE6dHJrX2MwYTM4YWZiZWU2MDQ4OGFhODgwNTdjYmNlZDI3YjNm"},"fees":[{"object":"Fee","type":"LabelFee","amount":"0.00000","charged":true},{"object":"Fee","type":"PostageFee","amount":"5.57000","charged":true}]},"address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"}}}' + body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2022-09-22T00:00:00Z","min_datetime":"2022-09-22T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2022-09-21T18:22:36Z","email":"REDACTED","id":"adr_5e19a8d639da11edb8bbac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 + TOWNSEND ST APT 20","updated_at":"2022-09-21T18:22:36Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:36Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2022-09-21T18:22:36Z","email":"REDACTED","id":"adr_5e1c2e2939da11edb8beac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor + Dr","updated_at":"2022-09-21T18:22:36Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2022-09-21T18:22:36Z","height":4,"id":"prcl_f8bdfa0c433c41548a175d169b85b05a","length":10,"mode":"test","object":"Parcel","updated_at":"2022-09-21T18:22:36Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:36Z","id":"pl_f22f175d199f47ef8f8f6a5029f3b039","integrated_form":"none","label_date":"2022-09-21T18:22:36Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/f98532e654094c3d86ced3b64a989395.png","object":"PostageLabel","updated_at":"2022-09-21T18:22:37Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:36Z","currency":"USD","id":"rate_dac3a058633b4d1a9f342e031e5cec4a","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","updated_at":"2022-09-21T18:22:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:36Z","currency":"USD","delivery_days":5,"est_delivery_days":5,"id":"rate_6945b906ab1546549f0952169365803a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","updated_at":"2022-09-21T18:22:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:36Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_b0a9e88f7d29403f9c01c7fcf4d23eca","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","updated_at":"2022-09-21T18:22:36Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:36Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_ae8d8df0594545419456ca5887901586","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","updated_at":"2022-09-21T18:22:36Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2022-09-21T18:22:36Z","email":"REDACTED","id":"adr_5e1c2e2939da11edb8beac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor + Dr","updated_at":"2022-09-21T18:22:36Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:36Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_ae8d8df0594545419456ca5887901586","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","updated_at":"2022-09-21T18:22:36Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2022-09-21T18:22:36Z","email":"REDACTED","id":"adr_5e19a8d639da11edb8bbac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 + TOWNSEND ST APT 20","updated_at":"2022-09-21T18:22:36Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2022-09-21T18:22:37Z","id":"trk_e010ef910e894dc89b11e21121323026","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2UwMTBlZjkxMGU4OTRkYzg5YjExZTIxMTIxMzIzMDI2","shipment_id":"shp_b70d2f23d04a4143b4ea12432a1b96bb","status":"unknown","tracking_code":"9400100109361138710190","updated_at":"2022-09-21T18:22:37Z"},"tracking_code":"9400100109361138710190","updated_at":"2022-09-21T18:22:37Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -97,17 +104,17 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:55:42+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_24ad4cde1fe811ed9436ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:55:42+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-08-19T17:55:42Z","id":"pickup_049397ae0112400fad6292dc9beb57cb","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2022-08-22T00:00:00Z","messages":[],"min_datetime":"2022-08-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-08-19T17:55:43Z","currency":"USD","id":"pickuprate_22f1bb255172405d8b936c745f296fd9","mode":"test","object":"PickupRate","pickup_id":"pickup_049397ae0112400fad6292dc9beb57cb","rate":"0.00","service":"NextDay","updated_at":"2022-08-19T17:55:43Z"}],"reference":null,"status":"unknown","updated_at":"2022-08-19T17:55:42Z"}' + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:37+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5ed9bc4f39da11edb906ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:37+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-09-21T18:22:37Z","id":"pickup_ca0e15ae5f954c9db97daa844f22383a","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2022-09-22T00:00:00Z","messages":[],"min_datetime":"2022-09-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-09-21T18:22:38Z","currency":"USD","id":"pickuprate_809b3c4dabf248178c4a7ef45672e6fb","mode":"test","object":"PickupRate","pickup_id":"pickup_ca0e15ae5f954c9db97daa844f22383a","rate":"0.00","service":"NextDay","updated_at":"2022-09-21T18:22:38Z"}],"reference":null,"status":"unknown","updated_at":"2022-09-21T18:22:37Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"8c27209b31ad12df14e49d987f03f2a7" + - W/"014b34c638d9431fc1c09cf33d12ceec" Expires: - "0" Pragma: @@ -123,7 +130,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffce9eff246f1f0078dbc4 + - 8f5eb2cf632b566dec7d9989000da81e X-Frame-Options: - SAMEORIGIN X-Node: @@ -131,12 +138,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.822939" + - "0.772718" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupLowestRate.yaml b/tests/cassettes/TestPickupLowestRate.yaml index 50720f3..5d6577f 100644 --- a/tests/cassettes/TestPickupLowestRate.yaml +++ b/tests/cassettes/TestPickupLowestRate.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:55:43+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_2541711b1fe811edbd2eac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:55:43+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:55:43Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:55:43+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_25438e641fe811ed954bac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:55:43+00:00","verifications":{},"zip":"90277"},"id":"shp_e103ea0722d94635bbcc913c0afdab2e","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:55:43Z","height":4,"id":"prcl_067a4dcb4032445f835e741e5d7abdc3","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:55:43Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:55:44Z","date_advance":0,"id":"pl_dbf8a7e2f52f44c9971f186df1d85338","integrated_form":"none","label_date":"2022-08-19T17:55:44Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/82c71c70539a4d96bb55b8b7c2e9041e.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:55:44Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_d9c00aaf02874cb68944def245f72b1e","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","updated_at":"2022-08-19T17:55:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_55a582c169954058a5acca7dda7b0fb2","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","updated_at":"2022-08-19T17:55:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3e3e5b17f89a4889bb470c4726a243e4","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","updated_at":"2022-08-19T17:55:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_db478eb77e5745c49eaf1f708022b9c3","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","updated_at":"2022-08-19T17:55:43Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:55:43+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_25438e641fe811ed954bac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:55:43+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:44Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3e3e5b17f89a4889bb470c4726a243e4","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","updated_at":"2022-08-19T17:55:44Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:55:43+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_2541711b1fe811edbd2eac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:55:43+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:55:44Z","est_delivery_date":null,"fees":[],"id":"trk_69ab6a83f8494b57a6feb3598df9f815","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzY5YWI2YTgzZjg0OTRiNTdhNmZlYjM1OThkZjlmODE1","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884865","tracking_details":[],"updated_at":"2022-08-19T17:55:44Z","weight":null},"tracking_code":"9400100109361133884865","updated_at":"2022-08-19T17:55:44Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5f94798439da11edae77ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:38+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:38Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5f962bc339da11eda70fac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:38+00:00","verifications":{},"zip":"90277"},"id":"shp_bc76014e80e04639b674811d7f040f26","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:38Z","height":4,"id":"prcl_f926c33eb4be4e4593e46cce13718ab7","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:38Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:39Z","date_advance":0,"id":"pl_c16bd3e0dbc647049d05437624bf90e0","integrated_form":"none","label_date":"2022-09-21T18:22:39Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/682d24160f154fd6bb4d17be134183cc.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:39Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b890d0f680a847688f9a8f4c83d04d80","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cc45c1defdfb4adf900edf93a95546a3","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a0a6f2d048554b42b59f135a40421135","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_b01cf711e348426e940d2c3fd126c174","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5f962bc339da11eda70fac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:38+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cc45c1defdfb4adf900edf93a95546a3","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:39Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5f94798439da11edae77ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:38+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:39Z","est_delivery_date":null,"fees":[],"id":"trk_e4dfca5c480444f48dfb5a535837c574","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U0ZGZjYTVjNDgwNDQ0ZjQ4ZGZiNWE1MzU4MzdjNTc0","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710206","tracking_details":[],"updated_at":"2022-09-21T18:22:39Z","weight":null},"tracking_code":"9400100109361138710206","updated_at":"2022-09-21T18:22:39Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"31523e402c2208d999a1410d40b24b92" + - W/"1e6d399a3987298e4d742578d43261ee" Expires: - "0" Location: - - /api/v2/shipments/shp_e103ea0722d94635bbcc913c0afdab2e + - /api/v2/shipments/shp_bc76014e80e04639b674811d7f040f26 Pragma: - no-cache Referrer-Policy: @@ -54,38 +55,42 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffce9fff246f1f0078dc1b + - 8f5eb2cf632b566eec7d9989000da8ee X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.178032" + - "0.890022" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"pickup":{"min_datetime":"2022-08-22T00:00:00Z","max_datetime":"2022-08-22T00:00:00Z","instructions":"Pickup - at front door","shipment":{"id":"shp_e103ea0722d94635bbcc913c0afdab2e","object":"Shipment","mode":"test","created_at":"2022-08-19T17:55:43Z","updated_at":"2022-08-19T17:55:44Z","to_address":{"id":"adr_2541711b1fe811edbd2eac1f6bc72124","object":"Address","mode":"test","created_at":"2022-08-19T17:55:43Z","updated_at":"2022-08-19T17:55:43Z","street1":"388 - TOWNSEND ST APT 20","city":"SAN FRANCISCO","state":"CA","zip":"94107-1670","country":"US","name":"JACK - SPARROW","phone":"5555555555","email":"TEST@EXAMPLE.COM","residential":true,"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_25438e641fe811ed954bac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:43Z","updated_at":"2022-08-19T17:55:43Z","street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com","verifications":{"zip4":null,"delivery":null}},"return_address":{"id":"adr_25438e641fe811ed954bac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:43Z","updated_at":"2022-08-19T17:55:43Z","street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com","verifications":{"zip4":null,"delivery":null}},"buyer_address":{"id":"adr_2541711b1fe811edbd2eac1f6bc72124","object":"Address","mode":"test","created_at":"2022-08-19T17:55:43Z","updated_at":"2022-08-19T17:55:43Z","street1":"388 - TOWNSEND ST APT 20","city":"SAN FRANCISCO","state":"CA","zip":"94107-1670","country":"US","name":"JACK - SPARROW","phone":"5555555555","email":"TEST@EXAMPLE.COM","residential":true,"verifications":{"zip4":{"success":true,"errors":[],"details":null},"delivery":{"success":true,"errors":[],"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"}}}},"parcel":{"id":"prcl_067a4dcb4032445f835e741e5d7abdc3","object":"Parcel","mode":"test","created_at":"2022-08-19T17:55:43Z","updated_at":"2022-08-19T17:55:43Z","length":10,"width":8,"height":4,"weight":15.4},"rates":[{"id":"rate_d9c00aaf02874cb68944def245f72b1e","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:43Z","updated_at":"2022-08-19T17:55:43Z","service":"ParcelSelect","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","rate":"7.75","currency":"USD","retail_rate":"7.75","retail_currency":"USD","list_rate":"7.75","list_currency":"USD","delivery_days":5,"est_delivery_days":5,"billing_type":"easypost"},{"id":"rate_55a582c169954058a5acca7dda7b0fb2","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:43Z","updated_at":"2022-08-19T17:55:43Z","service":"Priority","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","rate":"7.90","currency":"USD","retail_rate":"9.45","retail_currency":"USD","list_rate":"7.90","list_currency":"USD","delivery_days":2,"est_delivery_days":2,"billing_type":"easypost"},{"id":"rate_3e3e5b17f89a4889bb470c4726a243e4","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:43Z","updated_at":"2022-08-19T17:55:43Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"},{"id":"rate_db478eb77e5745c49eaf1f708022b9c3","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:43Z","updated_at":"2022-08-19T17:55:43Z","service":"Express","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","rate":"29.50","currency":"USD","retail_rate":"33.55","retail_currency":"USD","list_rate":"29.50","list_currency":"USD","billing_type":"easypost"}],"selected_rate":{"id":"rate_3e3e5b17f89a4889bb470c4726a243e4","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:44Z","updated_at":"2022-08-19T17:55:44Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"},"postage_label":{"id":"pl_dbf8a7e2f52f44c9971f186df1d85338","object":"PostageLabel","created_at":"2022-08-19T17:55:44Z","updated_at":"2022-08-19T17:55:44Z","integrated_form":"none","label_date":"2022-08-19T17:55:44Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/82c71c70539a4d96bb55b8b7c2e9041e.png"},"options":{"currency":"USD","payment":{"type":"SENDER"}},"tracking_code":"9400100109361133884865","usps_zone":4,"status":"unknown","tracker":{"id":"trk_69ab6a83f8494b57a6feb3598df9f815","object":"Tracker","mode":"test","created_at":"2022-08-19T17:55:44Z","updated_at":"2022-08-19T17:55:44Z","tracking_code":"9400100109361133884865","status":"unknown","shipment_id":"shp_e103ea0722d94635bbcc913c0afdab2e","carrier":"USPS","public_url":"https://track.easypost.com/djE6dHJrXzY5YWI2YTgzZjg0OTRiNTdhNmZlYjM1OThkZjlmODE1"},"fees":[{"object":"Fee","type":"LabelFee","amount":"0.00000","charged":true},{"object":"Fee","type":"PostageFee","amount":"5.57000","charged":true}]},"address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"}}}' + body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2022-09-22T00:00:00Z","min_datetime":"2022-09-22T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2022-09-21T18:22:38Z","email":"REDACTED","id":"adr_5f94798439da11edae77ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 + TOWNSEND ST APT 20","updated_at":"2022-09-21T18:22:38Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:38Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2022-09-21T18:22:38Z","email":"REDACTED","id":"adr_5f962bc339da11eda70fac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor + Dr","updated_at":"2022-09-21T18:22:38Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_bc76014e80e04639b674811d7f040f26","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2022-09-21T18:22:38Z","height":4,"id":"prcl_f926c33eb4be4e4593e46cce13718ab7","length":10,"mode":"test","object":"Parcel","updated_at":"2022-09-21T18:22:38Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:39Z","id":"pl_c16bd3e0dbc647049d05437624bf90e0","integrated_form":"none","label_date":"2022-09-21T18:22:39Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/682d24160f154fd6bb4d17be134183cc.png","object":"PostageLabel","updated_at":"2022-09-21T18:22:39Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_b890d0f680a847688f9a8f4c83d04d80","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_cc45c1defdfb4adf900edf93a95546a3","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","id":"rate_a0a6f2d048554b42b59f135a40421135","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_days":5,"est_delivery_days":5,"id":"rate_b01cf711e348426e940d2c3fd126c174","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2022-09-21T18:22:38Z","email":"REDACTED","id":"adr_5f962bc339da11eda70fac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor + Dr","updated_at":"2022-09-21T18:22:38Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:39Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_cc45c1defdfb4adf900edf93a95546a3","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:39Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2022-09-21T18:22:38Z","email":"REDACTED","id":"adr_5f94798439da11edae77ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 + TOWNSEND ST APT 20","updated_at":"2022-09-21T18:22:38Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2022-09-21T18:22:39Z","id":"trk_e4dfca5c480444f48dfb5a535837c574","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U0ZGZjYTVjNDgwNDQ0ZjQ4ZGZiNWE1MzU4MzdjNTc0","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","status":"unknown","tracking_code":"9400100109361138710206","updated_at":"2022-09-21T18:22:39Z"},"tracking_code":"9400100109361138710206","updated_at":"2022-09-21T18:22:39Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -97,17 +102,17 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:55:44+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_25f871841fe811edbe02ac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:55:44+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-08-19T17:55:44Z","id":"pickup_20bc94e21c434da7ae7bf4a8a28663c5","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2022-08-22T00:00:00Z","messages":[],"min_datetime":"2022-08-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-08-19T17:55:45Z","currency":"USD","id":"pickuprate_7f1aaf66c2514bb2a834e9cf6b4f8a75","mode":"test","object":"PickupRate","pickup_id":"pickup_20bc94e21c434da7ae7bf4a8a28663c5","rate":"0.00","service":"NextDay","updated_at":"2022-08-19T17:55:45Z"}],"reference":null,"status":"unknown","updated_at":"2022-08-19T17:55:44Z"}' + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:39+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_60419d5b39da11edb982ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:39+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-09-21T18:22:39Z","id":"pickup_74e729209e6d4269baa4bb4d5b71aaf2","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2022-09-22T00:00:00Z","messages":[],"min_datetime":"2022-09-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-09-21T18:22:40Z","currency":"USD","id":"pickuprate_4d9894f2087342099d92678cfe8d86ef","mode":"test","object":"PickupRate","pickup_id":"pickup_74e729209e6d4269baa4bb4d5b71aaf2","rate":"0.00","service":"NextDay","updated_at":"2022-09-21T18:22:40Z"}],"reference":null,"status":"unknown","updated_at":"2022-09-21T18:22:39Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"5cb6933dcec8e7349546261cb4e87221" + - W/"2449c88a4137e0e5ab18522ec27633f8" Expires: - "0" Pragma: @@ -123,20 +128,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffcea0ff246f1f0078dc9b + - 8f5eb2cf632b566fec7d9989000da9a7 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.768736" + - "0.802339" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestPickupRetrieve.yaml b/tests/cassettes/TestPickupRetrieve.yaml index 691b923..e2e794b 100644 --- a/tests/cassettes/TestPickupRetrieve.yaml +++ b/tests/cassettes/TestPickupRetrieve.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:55:45+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_2684acc71fe811ed96daac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:55:45+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:55:45Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:55:45+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2686bd1b1fe811ed96deac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:55:45+00:00","verifications":{},"zip":"90277"},"id":"shp_1158ec3416c4499199930e04a69ff866","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:55:45Z","height":4,"id":"prcl_ba9c03ed5eef412e8f32f9f7e3fc6140","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:55:45Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:55:46Z","date_advance":0,"id":"pl_a1124339f99242499499a17a0e145977","integrated_form":"none","label_date":"2022-08-19T17:55:46Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/efb7027b3cec4537acbe3a39f7c90618.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:55:46Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:45Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_1966af337e4b48a4933adeee1c5006be","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","updated_at":"2022-08-19T17:55:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:45Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_72fe7f6201c94f9a9c83b3fd82974ed6","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","updated_at":"2022-08-19T17:55:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:45Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_153adfc4219d4ea2b79bf99463449ec1","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","updated_at":"2022-08-19T17:55:45Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:45Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c8ab7e57ce4343fdbc8d9c26872abee3","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","updated_at":"2022-08-19T17:55:45Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:55:45+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2686bd1b1fe811ed96deac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:55:45+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:55:46Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_72fe7f6201c94f9a9c83b3fd82974ed6","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","updated_at":"2022-08-19T17:55:46Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:55:45+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_2684acc71fe811ed96daac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:55:45+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:55:46Z","est_delivery_date":null,"fees":[],"id":"trk_6e1e05d7971b43a7bb77a6179bab2cb8","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzZlMWUwNWQ3OTcxYjQzYTdiYjc3YTYxNzliYWIyY2I4","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884872","tracking_details":[],"updated_at":"2022-08-19T17:55:46Z","weight":null},"tracking_code":"9400100109361133884872","updated_at":"2022-08-19T17:55:46Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_60f7978539da11edaef7ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:41Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_60fa958c39da11edac39ac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:41+00:00","verifications":{},"zip":"90277"},"id":"shp_4c2efdc7324944bfa8e3966c659e9d91","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:41Z","height":4,"id":"prcl_e4e8e9e58e994214b79b0c8738ad4245","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:41Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:41Z","date_advance":0,"id":"pl_70b87b0c4e5547338307b9ffbe539780","integrated_form":"none","label_date":"2022-09-21T18:22:41Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/9ce06d1cc2ed4397bb07cc4cee11ed41.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:41Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b88882469f3349f6a01ddbe8adb92a45","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_171292b9040a489cb1002a7d6f13eb78","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_729f0712f65c42ad93d978a17abb6340","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_d78f12b2be3b4fc4a308db5a4bf79829","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_60fa958c39da11edac39ac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:41+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_171292b9040a489cb1002a7d6f13eb78","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_60f7978539da11edaef7ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:41Z","est_delivery_date":null,"fees":[],"id":"trk_c4881ae3d389479c8df9d6491e9c1810","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M0ODgxYWUzZDM4OTQ3OWM4ZGY5ZDY0OTFlOWMxODEw","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710213","tracking_details":[],"updated_at":"2022-09-21T18:22:41Z","weight":null},"tracking_code":"9400100109361138710213","updated_at":"2022-09-21T18:22:41Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"3ce72d25a9cd92500ab055ee9d42ab4a" + - W/"ce195dcf41fb1d4b1563b55b545ec004" Expires: - "0" Location: - - /api/v2/shipments/shp_1158ec3416c4499199930e04a69ff866 + - /api/v2/shipments/shp_4c2efdc7324944bfa8e3966c659e9d91 Pragma: - no-cache Referrer-Policy: @@ -54,38 +55,42 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffcea1ff246f1f0078dcf1 + - 8f5eb2cf632b5670ec7d9989000daa56 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.966031" + - "0.920702" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"pickup":{"min_datetime":"2022-08-22T00:00:00Z","max_datetime":"2022-08-22T00:00:00Z","instructions":"Pickup - at front door","shipment":{"id":"shp_1158ec3416c4499199930e04a69ff866","object":"Shipment","mode":"test","created_at":"2022-08-19T17:55:45Z","updated_at":"2022-08-19T17:55:46Z","to_address":{"id":"adr_2684acc71fe811ed96daac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:45Z","updated_at":"2022-08-19T17:55:45Z","street1":"388 - TOWNSEND ST APT 20","city":"SAN FRANCISCO","state":"CA","zip":"94107-1670","country":"US","name":"JACK - SPARROW","phone":"5555555555","email":"TEST@EXAMPLE.COM","residential":true,"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_2686bd1b1fe811ed96deac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:45Z","updated_at":"2022-08-19T17:55:45Z","street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com","verifications":{"zip4":null,"delivery":null}},"return_address":{"id":"adr_2686bd1b1fe811ed96deac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:45Z","updated_at":"2022-08-19T17:55:45Z","street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com","verifications":{"zip4":null,"delivery":null}},"buyer_address":{"id":"adr_2684acc71fe811ed96daac1f6bc7b362","object":"Address","mode":"test","created_at":"2022-08-19T17:55:45Z","updated_at":"2022-08-19T17:55:45Z","street1":"388 - TOWNSEND ST APT 20","city":"SAN FRANCISCO","state":"CA","zip":"94107-1670","country":"US","name":"JACK - SPARROW","phone":"5555555555","email":"TEST@EXAMPLE.COM","residential":true,"verifications":{"zip4":{"success":true,"errors":[],"details":null},"delivery":{"success":true,"errors":[],"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"}}}},"parcel":{"id":"prcl_ba9c03ed5eef412e8f32f9f7e3fc6140","object":"Parcel","mode":"test","created_at":"2022-08-19T17:55:45Z","updated_at":"2022-08-19T17:55:45Z","length":10,"width":8,"height":4,"weight":15.4},"rates":[{"id":"rate_1966af337e4b48a4933adeee1c5006be","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:45Z","updated_at":"2022-08-19T17:55:45Z","service":"ParcelSelect","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","rate":"7.75","currency":"USD","retail_rate":"7.75","retail_currency":"USD","list_rate":"7.75","list_currency":"USD","delivery_days":5,"est_delivery_days":5,"billing_type":"easypost"},{"id":"rate_72fe7f6201c94f9a9c83b3fd82974ed6","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:45Z","updated_at":"2022-08-19T17:55:45Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"},{"id":"rate_153adfc4219d4ea2b79bf99463449ec1","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:45Z","updated_at":"2022-08-19T17:55:45Z","service":"Priority","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","rate":"7.90","currency":"USD","retail_rate":"9.45","retail_currency":"USD","list_rate":"7.90","list_currency":"USD","delivery_days":2,"est_delivery_days":2,"billing_type":"easypost"},{"id":"rate_c8ab7e57ce4343fdbc8d9c26872abee3","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:45Z","updated_at":"2022-08-19T17:55:45Z","service":"Express","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","rate":"29.50","currency":"USD","retail_rate":"33.55","retail_currency":"USD","list_rate":"29.50","list_currency":"USD","billing_type":"easypost"}],"selected_rate":{"id":"rate_72fe7f6201c94f9a9c83b3fd82974ed6","object":"Rate","mode":"test","created_at":"2022-08-19T17:55:46Z","updated_at":"2022-08-19T17:55:46Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"},"postage_label":{"id":"pl_a1124339f99242499499a17a0e145977","object":"PostageLabel","created_at":"2022-08-19T17:55:46Z","updated_at":"2022-08-19T17:55:46Z","integrated_form":"none","label_date":"2022-08-19T17:55:46Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/efb7027b3cec4537acbe3a39f7c90618.png"},"options":{"currency":"USD","payment":{"type":"SENDER"}},"tracking_code":"9400100109361133884872","usps_zone":4,"status":"unknown","tracker":{"id":"trk_6e1e05d7971b43a7bb77a6179bab2cb8","object":"Tracker","mode":"test","created_at":"2022-08-19T17:55:46Z","updated_at":"2022-08-19T17:55:46Z","tracking_code":"9400100109361133884872","status":"unknown","shipment_id":"shp_1158ec3416c4499199930e04a69ff866","carrier":"USPS","public_url":"https://track.easypost.com/djE6dHJrXzZlMWUwNWQ3OTcxYjQzYTdiYjc3YTYxNzliYWIyY2I4"},"fees":[{"object":"Fee","type":"LabelFee","amount":"0.00000","charged":true},{"object":"Fee","type":"PostageFee","amount":"5.57000","charged":true}]},"address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"}}}' + body: '{"pickup":{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"instructions":"Pickup at front door","max_datetime":"2022-09-22T00:00:00Z","min_datetime":"2022-09-22T00:00:00Z","shipment":{"buyer_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2022-09-21T18:22:41Z","email":"REDACTED","id":"adr_60f7978539da11edaef7ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 + TOWNSEND ST APT 20","updated_at":"2022-09-21T18:22:41Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:41Z","fees":[{"amount":"0.00000","charged":true,"object":"Fee","type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","type":"PostageFee"}],"from_address":{"city":"Redondo + Beach","country":"US","created_at":"2022-09-21T18:22:41Z","email":"REDACTED","id":"adr_60fa958c39da11edac39ac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor + Dr","updated_at":"2022-09-21T18:22:41Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"id":"shp_4c2efdc7324944bfa8e3966c659e9d91","mode":"test","object":"Shipment","options":{"currency":"USD","payment":{"type":"SENDER"}},"parcel":{"created_at":"2022-09-21T18:22:41Z","height":4,"id":"prcl_e4e8e9e58e994214b79b0c8738ad4245","length":10,"mode":"test","object":"Parcel","updated_at":"2022-09-21T18:22:41Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:41Z","id":"pl_70b87b0c4e5547338307b9ffbe539780","integrated_form":"none","label_date":"2022-09-21T18:22:41Z","label_file_type":"image/png","label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/9ce06d1cc2ed4397bb07cc4cee11ed41.png","object":"PostageLabel","updated_at":"2022-09-21T18:22:41Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_days":2,"est_delivery_days":2,"id":"rate_b88882469f3349f6a01ddbe8adb92a45","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_171292b9040a489cb1002a7d6f13eb78","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_days":5,"est_delivery_days":5,"id":"rate_729f0712f65c42ad93d978a17abb6340","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","id":"rate_d78f12b2be3b4fc4a308db5a4bf79829","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"}],"return_address":{"city":"Redondo + Beach","country":"US","created_at":"2022-09-21T18:22:41Z","email":"REDACTED","id":"adr_60fa958c39da11edac39ac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","state":"CA","street1":"179 N Harbor + Dr","updated_at":"2022-09-21T18:22:41Z","verifications":{"delivery":null,"zip4":null},"zip":"90277"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_171292b9040a489cb1002a7d6f13eb78","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},"status":"unknown","to_address":{"city":"SAN + FRANCISCO","country":"US","created_at":"2022-09-21T18:22:41Z","email":"REDACTED","id":"adr_60f7978539da11edaef7ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","street1":"388 + TOWNSEND ST APT 20","updated_at":"2022-09-21T18:22:41Z","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","created_at":"2022-09-21T18:22:41Z","id":"trk_c4881ae3d389479c8df9d6491e9c1810","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M0ODgxYWUzZDM4OTQ3OWM4ZGY5ZDY0OTFlOWMxODEw","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","status":"unknown","tracking_code":"9400100109361138710213","updated_at":"2022-09-21T18:22:41Z"},"tracking_code":"9400100109361138710213","updated_at":"2022-09-21T18:22:41Z","usps_zone":4}}}' form: {} headers: Authorization: @@ -97,17 +102,17 @@ interactions: url: https://api.easypost.com/v2/pickups method: POST response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:55:47+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_274652b11fe811ed97f0ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:55:47+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-08-19T17:55:47Z","id":"pickup_cc28328b00b84a95a016989aa31e706b","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2022-08-22T00:00:00Z","messages":[],"min_datetime":"2022-08-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-08-19T17:55:47Z","currency":"USD","id":"pickuprate_aa23c30154f142e5b935726fce8d248a","mode":"test","object":"PickupRate","pickup_id":"pickup_cc28328b00b84a95a016989aa31e706b","rate":"0.00","service":"NextDay","updated_at":"2022-08-19T17:55:47Z"}],"reference":null,"status":"unknown","updated_at":"2022-08-19T17:55:47Z"}' + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_61a4409339da11edaf46ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:42+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-09-21T18:22:42Z","id":"pickup_568d64c702194c0883276fedc830610b","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2022-09-22T00:00:00Z","messages":[],"min_datetime":"2022-09-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-09-21T18:22:42Z","currency":"USD","id":"pickuprate_aef60c3ec45a4cca8d742311f691d0e3","mode":"test","object":"PickupRate","pickup_id":"pickup_568d64c702194c0883276fedc830610b","rate":"0.00","service":"NextDay","updated_at":"2022-09-21T18:22:42Z"}],"reference":null,"status":"unknown","updated_at":"2022-09-21T18:22:42Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e1b32d449a279626425947afd9da7dd1" + - W/"b123ff4c5e51c29462fe8334f08c0f5f" Expires: - "0" Pragma: @@ -123,20 +128,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffcea2ff246f1f0078dd5b + - 8f5eb2cf632b5672ec7d9989000dab35 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.782552" + - "0.713404" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -150,20 +156,20 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/pickups/pickup_cc28328b00b84a95a016989aa31e706b + url: https://api.easypost.com/v2/pickups/pickup_568d64c702194c0883276fedc830610b method: GET response: - body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-19T17:55:47+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_274652b11fe811ed97f0ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:55:47+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-08-19T17:55:47Z","id":"pickup_cc28328b00b84a95a016989aa31e706b","instructions":"Pickup - at front door","is_account_address":false,"max_datetime":"2022-08-22T00:00:00Z","messages":[],"min_datetime":"2022-08-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-08-19T17:55:47Z","currency":"USD","id":"pickuprate_aa23c30154f142e5b935726fce8d248a","mode":"test","object":"PickupRate","pickup_id":"pickup_cc28328b00b84a95a016989aa31e706b","rate":"0.00","service":"NextDay","updated_at":"2022-08-19T17:55:47Z"}],"reference":null,"status":"unknown","updated_at":"2022-08-19T17:55:47Z"}' + body: '{"address":{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_61a4409339da11edaf46ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:42+00:00","verifications":{},"zip":"94107"},"carrier_accounts":[],"confirmation":null,"created_at":"2022-09-21T18:22:42Z","id":"pickup_568d64c702194c0883276fedc830610b","instructions":"Pickup + at front door","is_account_address":false,"max_datetime":"2022-09-22T00:00:00Z","messages":[],"min_datetime":"2022-09-22T00:00:00Z","mode":"test","object":"Pickup","pickup_rates":[{"carrier":"USPS","created_at":"2022-09-21T18:22:42Z","currency":"USD","id":"pickuprate_aef60c3ec45a4cca8d742311f691d0e3","mode":"test","object":"PickupRate","pickup_id":"pickup_568d64c702194c0883276fedc830610b","rate":"0.00","service":"NextDay","updated_at":"2022-09-21T18:22:42Z"}],"reference":null,"status":"unknown","updated_at":"2022-09-21T18:22:42Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e1b32d449a279626425947afd9da7dd1" + - W/"b123ff4c5e51c29462fe8334f08c0f5f" Expires: - "0" Pragma: @@ -179,20 +185,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - cbe71dcb62ffcea3ff246f1f0078dd9b + - 8f5eb2cf632b5672ec7d9989000dabc8 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb2nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.140066" + - "0.064259" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestRateRetrieve.yaml b/tests/cassettes/TestRateRetrieve.yaml index 977d1a6..09921ba 100644 --- a/tests/cassettes/TestRateRetrieve.yaml +++ b/tests/cassettes/TestRateRetrieve.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}}' + body: '{"shipment":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -18,29 +19,30 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:08+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_15c8ee711fe711ed86f6ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:08+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:08Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:08+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_15cb48ba1fe711edb8ccac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:08+00:00","verifications":{},"zip":"94107"},"id":"shp_2c954401bc3c4e21881ef623ba35ef5b","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:08Z","height":4,"id":"prcl_ed4fafec83254a2ebf72d9c309abe1c9","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:08Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:08Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_9169e1f3844a4194a57283ae154e8d65","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_2c954401bc3c4e21881ef623ba35ef5b","updated_at":"2022-08-19T17:48:08Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:08Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_4aafc00eb0994de08fe790d95930b5b5","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_2c954401bc3c4e21881ef623ba35ef5b","updated_at":"2022-08-19T17:48:08Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:08Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b80e75c891bd4d4d83295330d1607a03","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_2c954401bc3c4e21881ef623ba35ef5b","updated_at":"2022-08-19T17:48:08Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:08Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_d428421be1284297bd552347ee8c6fff","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_2c954401bc3c4e21881ef623ba35ef5b","updated_at":"2022-08-19T17:48:08Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:08+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_15cb48ba1fe711edb8ccac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:08+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:08+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_15c8ee711fe711ed86f6ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:08+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:08Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6258bdf739da11edaf90ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:43+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:43Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_625b14d539da11edba76ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:43+00:00","verifications":{},"zip":"94107"},"id":"shp_34485f1b3e27488da6623f1f745014fe","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:43Z","height":4,"id":"prcl_3aaaa7d546404ab2b5905316d2ff0ca2","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:43Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_cf6e34b8ac52452882e437cea634b869","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_34485f1b3e27488da6623f1f745014fe","updated_at":"2022-09-21T18:22:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4d48437406154b7888e35a73275637bf","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_34485f1b3e27488da6623f1f745014fe","updated_at":"2022-09-21T18:22:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_94bbf7e95a434b118abfdf97863e7e38","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_34485f1b3e27488da6623f1f745014fe","updated_at":"2022-09-21T18:22:43Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_01078632099b48c8bb2b9218c51662b4","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_34485f1b3e27488da6623f1f745014fe","updated_at":"2022-09-21T18:22:43Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_625b14d539da11edba76ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:43+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6258bdf739da11edaf90ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:43+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:22:43Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"f41f9f881d9992c88a7da46261a9b2c9" + - W/"1946926d59a106550a700329b089d236" Expires: - "0" Location: - - /api/v2/shipments/shp_2c954401bc3c4e21881ef623ba35ef5b + - /api/v2/shipments/shp_34485f1b3e27488da6623f1f745014fe Pragma: - no-cache Referrer-Policy: @@ -54,21 +56,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccd7ff246ba100701bb9 + - 8f5eb2cf632b5673ec7d9989000dac07 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.430174" + - "0.617053" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -82,17 +84,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/rates/rate_9169e1f3844a4194a57283ae154e8d65 + url: https://api.easypost.com/v2/rates/rate_cf6e34b8ac52452882e437cea634b869 method: GET response: - body: '{"id":"rate_9169e1f3844a4194a57283ae154e8d65","object":"Rate","created_at":"2022-08-19T17:48:08Z","updated_at":"2022-08-19T17:48:08Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.90","currency":"USD","retail_rate":"9.45","retail_currency":"USD","list_rate":"7.90","list_currency":"USD","billing_type":"easypost","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_2c954401bc3c4e21881ef623ba35ef5b","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b"}' + body: '{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:43Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_cf6e34b8ac52452882e437cea634b869","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_34485f1b3e27488da6623f1f745014fe","updated_at":"2022-09-21T18:22:43Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"48bc58cba2231f4992e85ad5dcf894ae" + - W/"84ef5efad60c190e4c1adc0b3775eb44" Expires: - "0" Pragma: @@ -108,21 +110,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccd8ff246ba100701c03 + - 8f5eb2cf632b5674ec7d9989000dac88 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.192642" + - "0.142539" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestReferralCustomerAll.yaml b/tests/cassettes/TestReferralCustomerAll.yaml index 50bc18f..717f823 100644 --- a/tests/cassettes/TestReferralCustomerAll.yaml +++ b/tests/cassettes/TestReferralCustomerAll.yaml @@ -14,12 +14,12 @@ interactions: url: https://api.easypost.com/v2/referral_customers method: GET response: - body: '{"has_more":true,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_insurance_amount":"50.00","email":"me2@email.com","has_billing_method":null,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_insurance_amount":"50.00","email":"email@example.com","has_billing_method":true,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_insurance_amount":"50.00","email":"email@example.com","has_billing_method":null,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_insurance_amount":"50.00","email":"test@test.com","has_billing_method":null,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T18:48:22Z","default_insurance_amount":"50.00","email":"email@example.com","has_billing_method":true,"id":"user_488e391395f4416196a31965fecac409","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}]}' + body: '{"has_more":true,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T18:48:22Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"id":"user_488e391395f4416196a31965fecac409","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}]}' headers: Cache-Control: - private, no-cache, no-store @@ -42,20 +42,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - de45db686329ffdbec7d9a300038a519 + - 8f5eb2cf632b5674ec7d9989000dacbc X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - intlb1nuq 29913d444b - - extlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.231577" + - "0.210823" X-Version-Label: - - easypost-202209201701-65cee99e9d-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -74,17 +75,17 @@ interactions: url: https://api.easypost.com/v2/referral_customers method: GET response: - body: '{"has_more":true,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_insurance_amount":"50.00","email":"me2@email.com","has_billing_method":null,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_insurance_amount":"50.00","email":"email@example.com","has_billing_method":true,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_insurance_amount":"50.00","email":"email@example.com","has_billing_method":null,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_insurance_amount":"50.00","email":"test@test.com","has_billing_method":null,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T18:48:22Z","default_insurance_amount":"50.00","email":"email@example.com","has_billing_method":true,"id":"user_488e391395f4416196a31965fecac409","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T19:04:10Z","default_insurance_amount":"50.00","email":"test@test.com","has_billing_method":null,"id":"user_91b120087ff843349b9a3f0675572bb1","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T23:08:40Z","default_insurance_amount":"50.00","email":"test@test.com","has_billing_method":true,"id":"user_4ae0d572fbe542deb7efa51935a5b826","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-04T22:05:27Z","default_insurance_amount":"50.00","email":"email@example.com","has_billing_method":null,"id":"user_71189529eba747ce83aa69303e22c7df","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname - Lastname","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-05T16:54:58Z","default_insurance_amount":"50.00","email":"email@example.com","has_billing_method":null,"id":"user_c13290f1f6a442d79657b8bfe5daeeba","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-05T16:55:59Z","default_insurance_amount":"50.00","email":"email@example.com","has_billing_method":true,"id":"user_b73fdc6c6a58421ea884a82ad14520a5","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test - test","object":"User","parent_id":null,"phone_number":"8888888888","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}]}' + body: '{"has_more":true,"referral_customers":[{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-26T15:50:28Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_634b6daa05744bfaa205058f06864363","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-27T20:20:52Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"id":"user_35cb81fb8af1454dabf1f6afa7330634","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-28T22:34:38Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_fa93cc16bcc24c078ee057ce82f38eed","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-04-29T19:35:33Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_4a22730cdc844ce1bc2efbed999c869f","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T18:48:22Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"id":"user_488e391395f4416196a31965fecac409","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T19:04:10Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_91b120087ff843349b9a3f0675572bb1","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-02T23:08:40Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"id":"user_4ae0d572fbe542deb7efa51935a5b826","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-04T22:05:27Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_71189529eba747ce83aa69303e22c7df","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Firstname + Lastname","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-05T16:54:58Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_c13290f1f6a442d79657b8bfe5daeeba","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true},{"balance":"0.00000","cc_fee_rate":"0.0325","children":[],"created_at":"2022-05-05T16:55:59Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":true,"id":"user_b73fdc6c6a58421ea884a82ad14520a5","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"test + test","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}]}' headers: Cache-Control: - private, no-cache, no-store @@ -107,20 +108,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - de45db686329ffdcec7d9a300038a544 + - 8f5eb2cf632b5675ec7d9989000dad28 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - intlb2nuq 29913d444b - - extlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.415319" + - "0.575223" X-Version-Label: - - easypost-202209201701-65cee99e9d-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestReferralCustomerCreate.yaml b/tests/cassettes/TestReferralCustomerCreate.yaml index d02c980..caea770 100644 --- a/tests/cassettes/TestReferralCustomerCreate.yaml +++ b/tests/cassettes/TestReferralCustomerCreate.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"user":{"email":"test@example.com","name":"Test Referral","phone":"5555555555"}}' + body: '{"user":{"email":"REDACTED","name":"Test Referral","phone":"REDACTED"}}' form: {} headers: Authorization: @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/referral_customers method: POST response: - body: '{"api_keys":[],"balance":"0.00000","cc_fee_rate":"0.0375","children":[],"created_at":"2022-09-20T18:12:57Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_4939519a6ac541f3b3a089a24093edcd","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Test + body: '{"api_keys":[],"balance":"0.00000","cc_fee_rate":"0.0375","children":[],"created_at":"2022-09-21T18:22:46Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_28b7d01595654776b14ff62d78730126","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Test Referral","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true}' headers: Cache-Control: @@ -22,7 +22,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"e230db0dc91f25072edc9df01b680a5a" + - W/"07a4508e98c584c4fc6c36ca931190c6" Expires: - "0" Pragma: @@ -38,20 +38,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - de45db68632a02a9ecc7a5160039da4e + - 8f5eb2cf632b5675ec7d9989000dad83 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - intlb1nuq 29913d444b - - extlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.014334" + - "0.963089" X-Version-Label: - - easypost-202209201701-65cee99e9d-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestReferralCustomerUpdate.yaml b/tests/cassettes/TestReferralCustomerUpdate.yaml index 252598a..301d514 100644 --- a/tests/cassettes/TestReferralCustomerUpdate.yaml +++ b/tests/cassettes/TestReferralCustomerUpdate.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"user":{"email":"test@example.com","name":"Test Referral","phone":"5555555555"}}' + body: '{"user":{"email":"REDACTED","name":"Test Referral","phone":"REDACTED"}}' form: {} headers: Authorization: @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/referral_customers method: POST response: - body: '{"api_keys":[],"balance":"0.00000","cc_fee_rate":"0.0375","children":[],"created_at":"2022-09-20T18:11:19Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_bbbd69123d1b40d19b24937d3e7b7b27","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Test + body: '{"api_keys":[],"balance":"0.00000","cc_fee_rate":"0.0375","children":[],"created_at":"2022-09-21T18:22:47Z","default_insurance_amount":"50.00","email":"REDACTED","has_billing_method":null,"id":"user_65c4ae5391b24fb5b970d8d29ef4a3d0","insurance_fee_minimum":"0.25","insurance_fee_rate":"0.005","name":"Test Referral","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":null,"recharge_threshold":null,"secondary_recharge_amount":null,"verified":true}' headers: Cache-Control: @@ -22,7 +22,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"4999e7279f8882fdcd0397c917000385" + - W/"9e487791b244b3e5121dc93942ce874c" Expires: - "0" Pragma: @@ -33,34 +33,33 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - de45db6b632a0247eca351a70039af57 + - 8f5eb2cf632b5676ec7d9989000dae2b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 29913d444b - - extlb2nuq 29913d444b + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.083096" + - "1.003051" X-Version-Label: - - easypost-202209201701-65cee99e9d-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"user":{"email":"email@example.com"}}' + body: '{"user":{"email":"REDACTED"}}' form: {} headers: Authorization: @@ -69,7 +68,7 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/referral_customers/user_bbbd69123d1b40d19b24937d3e7b7b27 + url: https://api.easypost.com/v2/referral_customers/user_65c4ae5391b24fb5b970d8d29ef4a3d0 method: PUT response: body: '{"message":"Referral Customer email updated successfully"}' @@ -95,7 +94,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - de45db6b632a0248eca351a70039afb3 + - 8f5eb2cf632b5678ec7d9989000daebd X-Frame-Options: - SAMEORIGIN X-Node: @@ -103,12 +102,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 29913d444b - - extlb2nuq 29913d444b + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.124579" + - "0.189223" X-Version-Label: - - easypost-202209201701-65cee99e9d-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestRefundAll.yaml b/tests/cassettes/TestRefundAll.yaml index 30a2963..d25dfab 100644 --- a/tests/cassettes/TestRefundAll.yaml +++ b/tests/cassettes/TestRefundAll.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/refunds method: GET response: - body: '{"refunds":[],"has_more":false}' + body: '{"has_more":false,"refunds":[{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-21T16:20:05Z","id":"rfnd_4e2110fd30e14308bf05622d8c35b752","object":"Refund","shipment_id":"shp_0e7429c92dfc491f8d5c252bff19edc8","status":"submitted","tracking_code":"9400100109361138693479","updated_at":"2022-09-21T16:20:05Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-21T16:19:40Z","id":"rfnd_86ea21c4fe724da186adc4690fd4dd2e","object":"Refund","shipment_id":"shp_d5296a3d8eff4ce6b9c86496a2ebfc0f","status":"submitted","tracking_code":"9400100109361138693295","updated_at":"2022-09-21T16:19:40Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-20T23:29:24Z","id":"rfnd_cbdf38c206704e82ba257804b9b309e8","object":"Refund","shipment_id":"shp_ada67f5bfc584eb4b402fe9880368493","status":"submitted","tracking_code":"9400100109361138553643","updated_at":"2022-09-20T23:29:24Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-20T23:28:52Z","id":"rfnd_160ef5323ed6480db2d2857a9d33f1aa","object":"Refund","shipment_id":"shp_994110a9fef54ab986f713a4bbbe1a0f","status":"submitted","tracking_code":"9400100109361138553537","updated_at":"2022-09-20T23:28:52Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b7f27d1ea29478c50d2e1a7ab8bcb58a" + - W/"b5b4e9f433bd484d210ec5a84b6d64a9" Expires: - "0" Pragma: @@ -37,21 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccd8ff246ba100701c24 + - 8f5eb2cf632b5678ec7d9989000daee3 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.032141" + - "0.039633" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestRefundCreate.yaml b/tests/cassettes/TestRefundCreate.yaml index 2b1c153..165ea6b 100644 --- a/tests/cassettes/TestRefundCreate.yaml +++ b/tests/cassettes/TestRefundCreate.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_167534d31fe711edb98bac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:09Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1676ec4e1fe711ed8763ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{},"zip":"90277"},"id":"shp_1ab35a6b832e4cda885ec5804ebf1697","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:09Z","height":4,"id":"prcl_ab45ab7a973a46d98ab00a7da545f041","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:09Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:09Z","date_advance":0,"id":"pl_3b264d42972943b284ac0be2e6feafad","integrated_form":"none","label_date":"2022-08-19T17:48:09Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/c69e8de5032b4f628c5272e4c2b55e07.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:10Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_7463fcfad10e4258b6e3ff1b68968b19","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_827268479dae45078d299d3b583171d7","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4fd4ee754c704839ac2f4ed832e82ace","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a2e7bcb0820e4b3ba015a8a8c6850130","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1676ec4e1fe711ed8763ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4fd4ee754c704839ac2f4ed832e82ace","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:10Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_167534d31fe711edb98bac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:10Z","est_delivery_date":null,"fees":[],"id":"trk_66d2e3b1191d456aa6cf078e389fabfa","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzY2ZDJlM2IxMTkxZDQ1NmFhNmNmMDc4ZTM4OWZhYmZh","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133883950","tracking_details":[],"updated_at":"2022-08-19T17:48:10Z","weight":null},"tracking_code":"9400100109361133883950","updated_at":"2022-08-19T17:48:10Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65db346539da11eda964ac1f6bc72124","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:49Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65ddf75039da11edb0d8ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{},"zip":"90277"},"id":"shp_7f65876fb89b4d2daf303b4740afec15","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:49Z","height":4,"id":"prcl_309cbf94b3db44febcf7f1c34a38046f","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:49Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:49Z","date_advance":0,"id":"pl_6f971d83cefb4deb94cf1e889222c1b7","integrated_form":"none","label_date":"2022-09-21T18:22:49Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/83af6a9c815f489c85ab4343172dd749.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:50Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_18d4ec9a31754cd78b8c3fbd4fb88cca","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_bb1f86617be048f3bd887e15956bd775","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_7f01eed4f0d547909e4ff4077f86d693","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_557a626d6c844239a8b27ed0dd3b223d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65ddf75039da11edb0d8ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_557a626d6c844239a8b27ed0dd3b223d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65db346539da11eda964ac1f6bc72124","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:50Z","est_delivery_date":null,"fees":[],"id":"trk_373180b8342d4de0b81fa4d472a58004","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzM3MzE4MGI4MzQyZDRkZTBiODFmYTRkNDcyYTU4MDA0","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710237","tracking_details":[],"updated_at":"2022-09-21T18:22:50Z","weight":null},"tracking_code":"9400100109361138710237","updated_at":"2022-09-21T18:22:50Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"29d0d939c5b580546a6a59c0feb238c4" + - W/"ee49885c914bec183667b0273062d101" Expires: - "0" Location: - - /api/v2/shipments/shp_1ab35a6b832e4cda885ec5804ebf1697 + - /api/v2/shipments/shp_7f65876fb89b4d2daf303b4740afec15 Pragma: - no-cache Referrer-Policy: @@ -49,26 +50,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccd9ff246ba100701c46 + - 8f5eb2cf632b5679ec7d9989000daf0d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.063089" + - "1.041728" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -82,34 +85,34 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_1ab35a6b832e4cda885ec5804ebf1697 + url: https://api.easypost.com/v2/shipments/shp_7f65876fb89b4d2daf303b4740afec15 method: GET response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_167534d31fe711edb98bac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:09Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1676ec4e1fe711ed8763ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{},"zip":"90277"},"id":"shp_1ab35a6b832e4cda885ec5804ebf1697","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:09Z","height":4,"id":"prcl_ab45ab7a973a46d98ab00a7da545f041","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:09Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:09Z","date_advance":0,"id":"pl_3b264d42972943b284ac0be2e6feafad","integrated_form":"none","label_date":"2022-08-19T17:48:09Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/c69e8de5032b4f628c5272e4c2b55e07.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:10Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_7463fcfad10e4258b6e3ff1b68968b19","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_827268479dae45078d299d3b583171d7","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4fd4ee754c704839ac2f4ed832e82ace","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a2e7bcb0820e4b3ba015a8a8c6850130","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1676ec4e1fe711ed8763ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4fd4ee754c704839ac2f4ed832e82ace","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:10Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_167534d31fe711edb98bac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65db346539da11eda964ac1f6bc72124","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:49Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65ddf75039da11edb0d8ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{},"zip":"90277"},"id":"shp_7f65876fb89b4d2daf303b4740afec15","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:49Z","height":4,"id":"prcl_309cbf94b3db44febcf7f1c34a38046f","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:49Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:49Z","date_advance":0,"id":"pl_6f971d83cefb4deb94cf1e889222c1b7","integrated_form":"none","label_date":"2022-09-21T18:22:49Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/83af6a9c815f489c85ab4343172dd749.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:50Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_18d4ec9a31754cd78b8c3fbd4fb88cca","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_bb1f86617be048f3bd887e15956bd775","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_7f01eed4f0d547909e4ff4077f86d693","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_557a626d6c844239a8b27ed0dd3b223d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65ddf75039da11edb0d8ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_557a626d6c844239a8b27ed0dd3b223d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65db346539da11eda964ac1f6bc72124","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:10Z","est_delivery_date":"2022-08-19T17:48:10Z","fees":[],"id":"trk_66d2e3b1191d456aa6cf078e389fabfa","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzY2ZDJlM2IxMTkxZDQ1NmFhNmNmMDc4ZTM4OWZhYmZh","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133883950","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:10Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:10Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:10Z","weight":null},"tracking_code":"9400100109361133883950","updated_at":"2022-08-19T17:48:10Z","usps_zone":4}' + Package Service"},"created_at":"2022-09-21T18:22:50Z","est_delivery_date":"2022-09-21T18:22:50Z","fees":[],"id":"trk_373180b8342d4de0b81fa4d472a58004","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzM3MzE4MGI4MzQyZDRkZTBiODFmYTRkNDcyYTU4MDA0","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710237","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:22:50Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T06:59:50Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:22:50Z","weight":null},"tracking_code":"9400100109361138710237","updated_at":"2022-09-21T18:22:50Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"3fd49ff95454764a787646ccffb89ee7" + - W/"17cb69826134e1efc44462d00d4c4c60" Expires: - "0" Pragma: @@ -120,35 +123,33 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdaff246ba100701cd5 + - 8f5eb2cf632b567aec7d9989000daf97 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.120862" + - "0.109100" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK code: 200 duration: "" - request: - body: '{"refund":{"carrier":"USPS","tracking_codes":"9400100109361133883950"}}' + body: '{"refund":{"carrier":"USPS","tracking_codes":"9400100109361138710237"}}' form: {} headers: Authorization: @@ -160,14 +161,14 @@ interactions: url: https://api.easypost.com/v2/refunds method: POST response: - body: '[{"id":"rfnd_5b5b9dc4eeee4f2ab224919d9259c775","object":"Refund","created_at":"2022-08-19T17:48:10Z","updated_at":"2022-08-19T17:48:10Z","tracking_code":"9400100109361133883950","confirmation_number":null,"status":"submitted","carrier":"USPS","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697"}]' + body: '[{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-21T18:22:50Z","id":"rfnd_a14543e851914b9ca11ca8f1655f3cd1","object":"Refund","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","status":"submitted","tracking_code":"9400100109361138710237","updated_at":"2022-09-21T18:22:50Z"}]' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"ca64f6eeea6cb02320f06522e8bbae3d" + - W/"e0a7bd14c0c2c3819beb10b3f17b5ae2" Expires: - "0" Pragma: @@ -178,26 +179,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdaff246ba100701d02 + - 8f5eb2cf632b567aec7d9989000dafcb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.056878" + - "0.060847" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestRefundRetrieve.yaml b/tests/cassettes/TestRefundRetrieve.yaml index 070f3f2..2f06be4 100644 --- a/tests/cassettes/TestRefundRetrieve.yaml +++ b/tests/cassettes/TestRefundRetrieve.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/refunds method: GET response: - body: '{"refunds":[{"id":"rfnd_5b5b9dc4eeee4f2ab224919d9259c775","object":"Refund","created_at":"2022-08-19T17:48:10Z","updated_at":"2022-08-19T17:48:10Z","tracking_code":"9400100109361133883950","confirmation_number":null,"status":"submitted","carrier":"USPS","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697"}],"has_more":false}' + body: '{"has_more":false,"refunds":[{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-21T18:22:50Z","id":"rfnd_a14543e851914b9ca11ca8f1655f3cd1","object":"Refund","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","status":"submitted","tracking_code":"9400100109361138710237","updated_at":"2022-09-21T18:22:50Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-21T16:20:05Z","id":"rfnd_4e2110fd30e14308bf05622d8c35b752","object":"Refund","shipment_id":"shp_0e7429c92dfc491f8d5c252bff19edc8","status":"submitted","tracking_code":"9400100109361138693479","updated_at":"2022-09-21T16:20:05Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-21T16:19:40Z","id":"rfnd_86ea21c4fe724da186adc4690fd4dd2e","object":"Refund","shipment_id":"shp_d5296a3d8eff4ce6b9c86496a2ebfc0f","status":"submitted","tracking_code":"9400100109361138693295","updated_at":"2022-09-21T16:19:40Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-20T23:29:24Z","id":"rfnd_cbdf38c206704e82ba257804b9b309e8","object":"Refund","shipment_id":"shp_ada67f5bfc584eb4b402fe9880368493","status":"submitted","tracking_code":"9400100109361138553643","updated_at":"2022-09-20T23:29:24Z"},{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-20T23:28:52Z","id":"rfnd_160ef5323ed6480db2d2857a9d33f1aa","object":"Refund","shipment_id":"shp_994110a9fef54ab986f713a4bbbe1a0f","status":"submitted","tracking_code":"9400100109361138553537","updated_at":"2022-09-20T23:28:52Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e9ece2cdb4f95eac7717cfce410087fd" + - W/"6276c493fbb7ff696cbdcf9b5f742902" Expires: - "0" Pragma: @@ -37,7 +37,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdaff246ba100701d19 + - 8f5eb2cf632b567aec7d9989000dafe8 X-Frame-Options: - SAMEORIGIN X-Node: @@ -45,13 +45,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.050481" + - "0.046656" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -65,17 +65,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/refunds/rfnd_5b5b9dc4eeee4f2ab224919d9259c775 + url: https://api.easypost.com/v2/refunds/rfnd_a14543e851914b9ca11ca8f1655f3cd1 method: GET response: - body: '{"id":"rfnd_5b5b9dc4eeee4f2ab224919d9259c775","object":"Refund","created_at":"2022-08-19T17:48:10Z","updated_at":"2022-08-19T17:48:10Z","tracking_code":"9400100109361133883950","confirmation_number":null,"status":"submitted","carrier":"USPS","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697"}' + body: '{"carrier":"USPS","confirmation_number":null,"created_at":"2022-09-21T18:22:50Z","id":"rfnd_a14543e851914b9ca11ca8f1655f3cd1","object":"Refund","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","status":"submitted","tracking_code":"9400100109361138710237","updated_at":"2022-09-21T18:22:50Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"7169277af5015c81694346da62a9db3f" + - W/"7cd810bdfc0d7f4aaed1c7fbc57e952e" Expires: - "0" Pragma: @@ -91,21 +91,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdbff246ba100701d3d + - 8f5eb2cf632b567bec7d9989000db00d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.042565" + - "0.028321" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestReportAll.yaml b/tests/cassettes/TestReportAll.yaml index 0db5e0e..94d4185 100644 --- a/tests/cassettes/TestReportAll.yaml +++ b/tests/cassettes/TestReportAll.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/reports/shipment method: GET response: - body: '{"has_more":true,"reports":[{"created_at":"2022-06-27T21:06:20Z","end_date":"2022-04-11","id":"shprep_fa779aa90d8144558bde22be68f28ab6","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-06-27T21:06:20Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220627/a9032bbb2c4b499ebc5ee5c7fd79e663.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220819%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220819T174811Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=811731a7812b10488cc44b6e0eefa79c9b99ac38751df7c4255e68e3150a1423","url_expires_at":"2022-08-19T17:48:41Z"},{"created_at":"2022-06-27T21:06:20Z","end_date":"2022-04-11","id":"shprep_94a94ff66eb94be18ab368b9c0bf2c40","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-06-27T21:06:20Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220627/7ceaf6fd7b024dea97819c2a792a7bd2.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220819%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220819T174811Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=49ab626e111f77ae4d74b7cf73060ec1fedbcd65d71077e56365c0fcc2754de7","url_expires_at":"2022-08-19T17:48:41Z"},{"created_at":"2022-06-27T21:06:20Z","end_date":"2022-04-11","id":"shprep_86ec157e51904eeebf5a874f163612d5","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-06-27T21:06:20Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220627/2a5b2b87ac4747a99e5b149127dc5a6d.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220819%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220819T174811Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=f1463c2141b93adf1b0cbfe6c54b1afca8ce5c042341d080107d5a2d56c3b3a6","url_expires_at":"2022-08-19T17:48:41Z"},{"created_at":"2022-06-27T21:06:19Z","end_date":"2022-04-11","id":"shprep_3b75938429664ec1a095090c5152d9af","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-06-27T21:06:20Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220627/3edec4290e374eeb82f1e90a30150954.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220819%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220819T174811Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=27c9124e5a7b50211109d2e65305d7a716851e3e6777554f5d1f4ec682150dfe","url_expires_at":"2022-08-19T17:48:41Z"},{"created_at":"2022-05-26T15:05:27Z","end_date":"2022-04-11","id":"shprep_1ea1320a732149fba6cd5fef494a8c77","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-05-26T15:05:27Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220526/66fab3b8882047668b9c98dde930d76b.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220819%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220819T174811Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=2d676751283acdb31ff111ef1af9cd91046aa947be6bda57c72ccb20ded3534c","url_expires_at":"2022-08-19T17:48:41Z"}]}' + body: '{"has_more":true,"reports":[{"created_at":"2022-09-21T16:19:41Z","end_date":"2022-04-11","id":"shprep_0520f2add3d34597b16da516fac746c7","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-09-21T16:19:42Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220921/cb134396391a4ab286fb005f991bc87b.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220921%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220921T182251Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=583f0772cedf75358a4688c8cd73b8f5745fd4d9eaf5bc9854c94dfbda772847","url_expires_at":"2022-09-21T18:23:21Z"},{"created_at":"2022-09-21T16:19:41Z","end_date":"2022-04-11","id":"shprep_e41685f2a1fb41a89798c5bfc3fdab23","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-09-21T16:19:42Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220921/17bc091616934f0596969d88d4b2b4c0.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220921%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220921T182251Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=3444f1a48302d94e0eaf61902a7f6a85096aa57cdd542100383f1d23f8c64194","url_expires_at":"2022-09-21T18:23:21Z"},{"created_at":"2022-09-21T16:19:41Z","end_date":"2022-04-11","id":"shprep_7141d635aceb4d4db2153687b166ca54","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-09-21T16:19:41Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220921/4bc5e7c251fe4643aed3ef8a469555cc.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220921%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220921T182251Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=9e92ceab2bf38016bee1a11f8ce165ab317cdf6e0ab202934cc2de5e4893a5ef","url_expires_at":"2022-09-21T18:23:21Z"},{"created_at":"2022-09-21T16:19:41Z","end_date":"2022-04-11","id":"shprep_a7d584cc759241f282943089023c9a3a","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-09-21T16:19:41Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220921/477f90a7dcc54fb3981beedd7bacc0bd.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220921%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220921T182251Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=5f815bc53fec8512bf6c551717c4b83df899c8c5f127ad020068a8cdab1f19fe","url_expires_at":"2022-09-21T18:23:21Z"},{"created_at":"2022-09-20T23:28:54Z","end_date":"2022-04-11","id":"shprep_39099805ffa242e592c7df83266304c3","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-09-20T23:28:54Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220920/c0cbc2fd3a7e40478b157c53b31564b5.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220921%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220921T182251Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=2e6f1f2400b3f66ea464113820798d9396c3cde54b93642ef9f57c56b4aa4381","url_expires_at":"2022-09-21T18:23:21Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"3669d1619ddbd7c57edc49825abe66f0" + - W/"333e441556f5566daec80ddc39d952df" Expires: - "0" Pragma: @@ -37,7 +37,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdbff246ba100701d4e + - 8f5eb2cf632b567bec7d9989000db024 X-Frame-Options: - SAMEORIGIN X-Node: @@ -45,13 +45,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.045566" + - "0.038140" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestReportCreate.yaml b/tests/cassettes/TestReportCreate.yaml index ab10ab3..190af85 100644 --- a/tests/cassettes/TestReportCreate.yaml +++ b/tests/cassettes/TestReportCreate.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"start_date":"2022-04-11","end_date":"2022-04-11"}' + body: '{"end_date":"2022-04-11","start_date":"2022-04-11"}' form: {} headers: Authorization: @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/reports/shipment method: POST response: - body: '{"created_at":"2022-08-19T17:48:11Z","end_date":"2022-04-11","id":"shprep_a877fe0fe7b64995b9e5383f9d9243a2","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2022-08-19T17:48:11Z","url":null,"url_expires_at":null}' + body: '{"created_at":"2022-09-21T18:22:51Z","end_date":"2022-04-11","id":"shprep_3575b1e1b4b049c5b945a40e3e8a9718","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2022-09-21T18:22:51Z","url":null,"url_expires_at":null}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"d649bf4ee7fc19f838ae45f4b0140fa9" + - W/"194853cf630264c840e5df22c3289383" Expires: - "0" Pragma: @@ -37,21 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdbff246ba100701d6f + - 8f5eb2cf632b567bec7d9989000db03a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.042725" + - "0.037827" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestReportCustomAdditionalColumnsCreate.yaml b/tests/cassettes/TestReportCustomAdditionalColumnsCreate.yaml index d4fd7c1..ef272ae 100644 --- a/tests/cassettes/TestReportCustomAdditionalColumnsCreate.yaml +++ b/tests/cassettes/TestReportCustomAdditionalColumnsCreate.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"start_date":"2022-04-11","end_date":"2022-04-11","additional_columns":["from_name","from_company"]}' + body: '{"additional_columns":["from_name","from_company"],"end_date":"2022-04-11","start_date":"2022-04-11"}' form: {} headers: Authorization: @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/reports/shipment method: POST response: - body: '{"created_at":"2022-08-19T17:48:11Z","end_date":"2022-04-11","id":"shprep_ed79ae8a48ab47d682c629d06e3439a6","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2022-08-19T17:48:11Z","url":null,"url_expires_at":null}' + body: '{"created_at":"2022-09-21T18:22:52Z","end_date":"2022-04-11","id":"shprep_c09cbb46f23a446cb5eb35258ae1da83","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2022-09-21T18:22:52Z","url":null,"url_expires_at":null}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e7a4d7edf0fc2b79a8fd66df0faddfbb" + - W/"4f0f1f36c7872cfc634532bd3981522f" Expires: - "0" Pragma: @@ -37,7 +37,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdbff246ba100701d7f + - 8f5eb2cf632b567bec7d9989000db057 X-Frame-Options: - SAMEORIGIN X-Node: @@ -45,13 +45,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.119888" + - "0.038719" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestReportCustomColumnsCreate.yaml b/tests/cassettes/TestReportCustomColumnsCreate.yaml index 72212f1..fde39f2 100644 --- a/tests/cassettes/TestReportCustomColumnsCreate.yaml +++ b/tests/cassettes/TestReportCustomColumnsCreate.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"start_date":"2022-04-11","end_date":"2022-04-11","columns":["usps_zone"]}' + body: '{"columns":["usps_zone"],"end_date":"2022-04-11","start_date":"2022-04-11"}' form: {} headers: Authorization: @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/reports/shipment method: POST response: - body: '{"created_at":"2022-08-19T17:48:12Z","end_date":"2022-04-11","id":"shprep_4989b0087f9f4e1791a76452462c1f5d","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2022-08-19T17:48:12Z","url":null,"url_expires_at":null}' + body: '{"created_at":"2022-09-21T18:22:52Z","end_date":"2022-04-11","id":"shprep_34dd218b297743c68d5feda88d46018e","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2022-09-21T18:22:52Z","url":null,"url_expires_at":null}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"3c14e8e64e7efe12a7e9db911aee10d5" + - W/"714f5b2ca81f778cfe84c853babcc16b" Expires: - "0" Pragma: @@ -37,21 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdcff246ba100701db0 + - 8f5eb2cf632b567cec7d9989000db06f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.051534" + - "0.036007" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestReportRetrieve.yaml b/tests/cassettes/TestReportRetrieve.yaml index ffb169c..52f6117 100644 --- a/tests/cassettes/TestReportRetrieve.yaml +++ b/tests/cassettes/TestReportRetrieve.yaml @@ -2,7 +2,7 @@ version: 1 interactions: - request: - body: '{"start_date":"2022-04-11","end_date":"2022-04-11"}' + body: '{"end_date":"2022-04-11","start_date":"2022-04-11"}' form: {} headers: Authorization: @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/reports/shipment method: POST response: - body: '{"created_at":"2022-08-19T17:48:12Z","end_date":"2022-04-11","id":"shprep_f3f348e2615e4b8d88a081b1f5479e5c","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2022-08-19T17:48:12Z","url":null,"url_expires_at":null}' + body: '{"created_at":"2022-09-21T18:22:52Z","end_date":"2022-04-11","id":"shprep_787f9f83014f49a4a1da9a5fa5cf33d6","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2022-09-21T18:22:52Z","url":null,"url_expires_at":null}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"4abc4adc3e8683c284ca002322b413f4" + - W/"cadb49925379f6bfbdf0f1cd502e16a9" Expires: - "0" Pragma: @@ -37,21 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdcff246ba100701dc3 + - 8f5eb2cf632b567cec7d9989000db09f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.036482" + - "0.046801" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -65,17 +65,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/reports/shipment/shprep_f3f348e2615e4b8d88a081b1f5479e5c + url: https://api.easypost.com/v2/reports/shipment/shprep_787f9f83014f49a4a1da9a5fa5cf33d6 method: GET response: - body: '{"created_at":"2022-08-19T17:48:12Z","end_date":"2022-04-11","id":"shprep_f3f348e2615e4b8d88a081b1f5479e5c","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"new","updated_at":"2022-08-19T17:48:12Z","url":null,"url_expires_at":null}' + body: '{"created_at":"2022-09-21T18:22:52Z","end_date":"2022-04-11","id":"shprep_787f9f83014f49a4a1da9a5fa5cf33d6","include_children":false,"mode":"test","object":"ShipmentReport","start_date":"2022-04-11","status":"available","updated_at":"2022-09-21T18:22:52Z","url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/shipment_report/20220921/3ba93fbc34734e65bc812167205801b6.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=AKIAY27LO6YQS5SPYTWI%2F20220921%2Fus-west-2%2Fs3%2Faws4_request\u0026X-Amz-Date=20220921T182252Z\u0026X-Amz-Expires=30\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=452d8b682ff93114c40be062f3f53bcda490e1aabe8d3e9d9e59fed680fa31f9","url_expires_at":"2022-09-21T18:23:22Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"4abc4adc3e8683c284ca002322b413f4" + - W/"a29cbd5100c2ce7ed1d521728b3709ac" Expires: - "0" Pragma: @@ -86,26 +86,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdcff246ba100701deb + - 8f5eb2cf632b567cec7d9989000db0b6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.029589" + - "0.034856" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestScanFormAll.yaml b/tests/cassettes/TestScanFormAll.yaml index 77af94b..021ccc1 100644 --- a/tests/cassettes/TestScanFormAll.yaml +++ b/tests/cassettes/TestScanFormAll.yaml @@ -14,19 +14,29 @@ interactions: url: https://api.easypost.com/v2/scan_forms method: GET response: - body: '{"has_more":false,"scan_forms":[{"address":null,"batch_id":"batch_6be2fe1344e54c138bb3b76998651596","confirmation":null,"created_at":"2022-08-16T20:24:32Z","form_file_type":null,"form_url":null,"id":"sf_5258ae2b14804925868b1720eb8efa37","message":"Unable - to create a ScanForm from shipments bought from this carrier.","object":"ScanForm","status":"failed","tracking_codes":[],"updated_at":"2022-08-16T20:24:32Z"},{"address":null,"batch_id":"batch_a989658b70e54a89b3a68f34ba171b95","confirmation":null,"created_at":"2022-08-16T20:24:32Z","form_file_type":null,"form_url":null,"id":"sf_407587897e3e466dbe1358869f63f186","message":"Unable - to create a ScanForm from shipments bought from this carrier.","object":"ScanForm","status":"failed","tracking_codes":[],"updated_at":"2022-08-16T20:24:33Z"},{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:47:30+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_ff87cc2e1fe611ed9d47ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:47:30+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_13cc297d60e7438db6ac3c129e58ca7f","confirmation":null,"created_at":"2022-08-19T17:47:36Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220819/ede0c42bd545438582d9e2df22457c38.pdf","id":"sf_19a9f92a2a0e46da8316132399b4a4b2","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361133883592"],"updated_at":"2022-08-19T17:47:36Z"}]}' + body: '{"has_more":true,"scan_forms":[{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:21:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_44c8a5c239da11eda5d7ac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:21:53+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_fcdbd9872ef741df98b8ee0785a25a80","confirmation":null,"created_at":"2022-09-21T18:21:59Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220921/4e388195005f446db59d658adf370389.pdf","id":"sf_9f422ff68ce64b1c893978f6588cb546","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361138710060"],"updated_at":"2022-09-21T18:21:59Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T16:23:15+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_b2397d4939c911ed898bac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T16:23:15+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_a9179a6d50e941f0b62135bc32400cfc","confirmation":null,"created_at":"2022-09-21T16:23:21Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220921/042fbbbb2e6d42d2952fdde8bfa2e032.pdf","id":"sf_877114da9ba94e4ab26a62458aa03c63","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361138694087"],"updated_at":"2022-09-21T16:23:21Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T16:19:43+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_339096f139c911ed9be9ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T16:19:43+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_ee87a87e29c34c58aceed07980ba00b5","confirmation":null,"created_at":"2022-09-21T16:19:44Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220921/61ce4fc177c04469b94caa0442e14b7b.pdf","id":"sf_fbc8d8ceb26a47efb32ffe66b6db44af","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361138693318"],"updated_at":"2022-09-21T16:19:44Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T16:19:42+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_32ca23ca39c911ed9ba1ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T16:19:42+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_a25e6f51a6c748cdbdd42b13da012b67","confirmation":null,"created_at":"2022-09-21T16:19:43Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220921/dd3c412338ea4320af5f40202f952f07.pdf","id":"sf_ce71bc632bf4469cbc936512e9a4ca10","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361138693301"],"updated_at":"2022-09-21T16:19:43Z"},{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-20T23:28:57+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_ff9ef81e393b11ed8ee0ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-20T23:28:57+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_54d0dd67510f4af6bc11438213ae4310","confirmation":null,"created_at":"2022-09-20T23:28:58Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220920/10cf1b478d7c42a88903f6d55b1ed1bf.pdf","id":"sf_dcd2c869a66644b9940e3a50918ce57a","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361138553551"],"updated_at":"2022-09-20T23:28:58Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"87ef0c404ae9bab811c13eb3c1d04e39" + - W/"e85dbfb48821dce0ca85cc6d743d5bef" Expires: - "0" Pragma: @@ -42,7 +52,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdcff246ba100701df7 + - 8f5eb2cf632b567dec7d9989000db0d2 X-Frame-Options: - SAMEORIGIN X-Node: @@ -50,13 +60,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.035514" + - "0.047048" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestScanFormCreate.yaml b/tests/cassettes/TestScanFormCreate.yaml index 09b4a97..7d19408 100644 --- a/tests/cassettes/TestScanFormCreate.yaml +++ b/tests/cassettes/TestScanFormCreate.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:12+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_18a165ab1fe711edbca2ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:12Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:12+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_18a312c01fe711ed94b5ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:12+00:00","verifications":{},"zip":"90277"},"id":"shp_3170e76410bf4b9c857b0d4d87301a3c","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:12Z","height":4,"id":"prcl_7dd900f7c3ef40bc90f88c5251911e51","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:12Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:13Z","date_advance":0,"id":"pl_72dd4deef33c4d82816c6750a5b09d75","integrated_form":"none","label_date":"2022-08-19T17:48:13Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/ceeb0d66521d4f01899528c0cd797e78.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:13Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_efb8e3a94b15402abfa422464c720ed2","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","updated_at":"2022-08-19T17:48:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_6bc1047399ad480fb9e89d28e2372967","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","updated_at":"2022-08-19T17:48:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a2d014c875e04a6fb9153bb3832c17e6","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","updated_at":"2022-08-19T17:48:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7a020f68ba724a1eb08114fb29780e71","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","updated_at":"2022-08-19T17:48:13Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:12+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_18a312c01fe711ed94b5ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:12+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7a020f68ba724a1eb08114fb29780e71","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","updated_at":"2022-08-19T17:48:13Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:12+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_18a165ab1fe711edbca2ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:13Z","est_delivery_date":null,"fees":[],"id":"trk_881702096e0241cfa39b670a1769aaae","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzg4MTcwMjA5NmUwMjQxY2ZhMzliNjcwYTE3NjlhYWFl","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884018","tracking_details":[],"updated_at":"2022-08-19T17:48:13Z","weight":null},"tracking_code":"9400100109361133884018","updated_at":"2022-08-19T17:48:13Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6857db7139da11edbc87ac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:53+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:53Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_685b5ed839da11edaa44ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:53+00:00","verifications":{},"zip":"90277"},"id":"shp_2c4597fb22e04a8aab3588b9de7326c4","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:53Z","height":4,"id":"prcl_e1a20f94084c4b7081ad87f798911708","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:53Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:54Z","date_advance":0,"id":"pl_2fc942efe32045468b7af9fb8cd398d1","integrated_form":"none","label_date":"2022-09-21T18:22:54Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/5cb343181c45435d859c4da137a67209.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:54Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_dc799f73fc374fbf9647555106a72548","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","updated_at":"2022-09-21T18:22:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_acd228fb09b94220b5204a5d24bf381d","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","updated_at":"2022-09-21T18:22:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_bbd3e4d61e774cd3a409e76f7df9d965","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","updated_at":"2022-09-21T18:22:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_37180aa902f94d0096a8c340d649f49c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","updated_at":"2022-09-21T18:22:53Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_685b5ed839da11edaa44ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:53+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_37180aa902f94d0096a8c340d649f49c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","updated_at":"2022-09-21T18:22:54Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6857db7139da11edbc87ac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:53+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:54Z","est_delivery_date":null,"fees":[],"id":"trk_924f8496a6744a0c8e95a96c98256768","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzkyNGY4NDk2YTY3NDRhMGM4ZTk1YTk2Yzk4MjU2NzY4","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710251","tracking_details":[],"updated_at":"2022-09-21T18:22:54Z","weight":null},"tracking_code":"9400100109361138710251","updated_at":"2022-09-21T18:22:54Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"d9bd3f3396061bcac77f11defe4cdc57" + - W/"5530a828e8173dcd29bfe7081a1e17b0" Expires: - "0" Location: - - /api/v2/shipments/shp_3170e76410bf4b9c857b0d4d87301a3c + - /api/v2/shipments/shp_2c4597fb22e04a8aab3588b9de7326c4 Pragma: - no-cache Referrer-Policy: @@ -54,7 +55,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdcff246ba100701e1f + - 8f5eb2cf632b567dec7d9989000db0ea X-Frame-Options: - SAMEORIGIN X-Node: @@ -62,20 +63,20 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.956637" + - "0.946684" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"shipments":[{"id":"shp_3170e76410bf4b9c857b0d4d87301a3c"}]}' + body: '{"shipments":[{"id":"shp_2c4597fb22e04a8aab3588b9de7326c4"}]}' form: {} headers: Authorization: @@ -87,16 +88,16 @@ interactions: url: https://api.easypost.com/v2/scan_forms method: POST response: - body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:12+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_18a312c01fe711ed94b5ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:12+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_3d9307808eb74b4799f028de804bd4fb","confirmation":null,"created_at":"2022-08-19T17:48:14Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220819/857f0766ad4840e09ca0906f9c4737f3.pdf","id":"sf_31c6dcda6c0c4e9ea61f7d7d1e2f0353","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361133884018"],"updated_at":"2022-08-19T17:48:14Z"}' + body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_685b5ed839da11edaa44ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:53+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_62a40416774a4f62a003e91e739d1e3d","confirmation":null,"created_at":"2022-09-21T18:22:54Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220921/7403052b00324b58a21c7b5aa0072cd8.pdf","id":"sf_52218f563c8f44b6aa72a340dbd350cf","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361138710251"],"updated_at":"2022-09-21T18:22:54Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"bca8ecc1a7c58be503edf90ab01c1dc2" + - W/"16731b06f3b85b58ba7c3be8bab3e063" Expires: - "0" Pragma: @@ -112,21 +113,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccddff246ba100701eb1 + - 8f5eb2cf632b567eec7d9989000db166 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.236544" + - "0.261071" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestScanFormRetrieve.yaml b/tests/cassettes/TestScanFormRetrieve.yaml index 07da6c2..7febf8b 100644 --- a/tests/cassettes/TestScanFormRetrieve.yaml +++ b/tests/cassettes/TestScanFormRetrieve.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_199352e11fe711edbde9ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:14Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1994f3d01fe711ed89bdac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{},"zip":"90277"},"id":"shp_44dd068644544861bd83cef00860c03c","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:14Z","height":4,"id":"prcl_3f33fc374a484f32834379df117a76c8","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:14Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:15Z","date_advance":0,"id":"pl_42d174aa24344ec89ded0e3ad16352ef","integrated_form":"none","label_date":"2022-08-19T17:48:15Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/cd6a596b686341aaad123a7f8c53a570.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:15Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e312e8241a204eb8b9cc0aa437a007b3","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_44dd068644544861bd83cef00860c03c","updated_at":"2022-08-19T17:48:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_f16dc65e4dee44aca1d20e1cb270271d","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_44dd068644544861bd83cef00860c03c","updated_at":"2022-08-19T17:48:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_ef044e3e270e4301865202f811af4b32","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_44dd068644544861bd83cef00860c03c","updated_at":"2022-08-19T17:48:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2c294cf4790347998248c485679775ce","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_44dd068644544861bd83cef00860c03c","updated_at":"2022-08-19T17:48:14Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1994f3d01fe711ed89bdac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e312e8241a204eb8b9cc0aa437a007b3","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_44dd068644544861bd83cef00860c03c","updated_at":"2022-08-19T17:48:15Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_199352e11fe711edbde9ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:15Z","est_delivery_date":null,"fees":[],"id":"trk_83c80b023ffd437881cd24f2f6c38e0b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzgzYzgwYjAyM2ZmZDQzNzg4MWNkMjRmMmY2YzM4ZTBi","shipment_id":"shp_44dd068644544861bd83cef00860c03c","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884025","tracking_details":[],"updated_at":"2022-08-19T17:48:15Z","weight":null},"tracking_code":"9400100109361133884025","updated_at":"2022-08-19T17:48:15Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6978ade539da11edade7ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:55Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_697a882439da11edbcf0ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{},"zip":"90277"},"id":"shp_4dfd5924810b424ea67cba0b8146ed0e","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:55Z","height":4,"id":"prcl_9a5ba865a996499a8f5b044b98054682","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:55Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:55Z","date_advance":0,"id":"pl_483d640c503a4b4daaf30e03a40c1ddb","integrated_form":"none","label_date":"2022-09-21T18:22:55Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/61ddada44adb45df972070eba2256ba2.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:56Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a18fda89938a45558a61e34268426cac","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","updated_at":"2022-09-21T18:22:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f86e77b556c74bac942232f2765b6d7f","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","updated_at":"2022-09-21T18:22:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_27e099fd6569444f89c77841ac8018b6","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","updated_at":"2022-09-21T18:22:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9f50cd1671ee49e5a0a90b9521099d0c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","updated_at":"2022-09-21T18:22:55Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_697a882439da11edbcf0ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9f50cd1671ee49e5a0a90b9521099d0c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","updated_at":"2022-09-21T18:22:55Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6978ade539da11edade7ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:56Z","est_delivery_date":null,"fees":[],"id":"trk_7e059aceeb804b47ac316087b9e12cb1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzdlMDU5YWNlZWI4MDRiNDdhYzMxNjA4N2I5ZTEyY2Ix","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710268","tracking_details":[],"updated_at":"2022-09-21T18:22:56Z","weight":null},"tracking_code":"9400100109361138710268","updated_at":"2022-09-21T18:22:56Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"38e9a6fdb2814b9173774dde9550bb60" + - W/"a54dd68a19ba483c3b6f41ae8b2d4786" Expires: - "0" Location: - - /api/v2/shipments/shp_44dd068644544861bd83cef00860c03c + - /api/v2/shipments/shp_4dfd5924810b424ea67cba0b8146ed0e Pragma: - no-cache Referrer-Policy: @@ -54,28 +55,28 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdeff246ba100701edf + - 8f5eb2cf632b567fec7d9989000db1c4 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.855170" + - "0.991216" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"shipments":[{"id":"shp_44dd068644544861bd83cef00860c03c"}]}' + body: '{"shipments":[{"id":"shp_4dfd5924810b424ea67cba0b8146ed0e"}]}' form: {} headers: Authorization: @@ -87,16 +88,16 @@ interactions: url: https://api.easypost.com/v2/scan_forms method: POST response: - body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1994f3d01fe711ed89bdac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_2a60f64199b3407c99e235473156eea7","confirmation":null,"created_at":"2022-08-19T17:48:15Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220819/807d80fe233343a09d5f43deeaaf679a.pdf","id":"sf_3f198cb53db04224a070d5cc18a236d6","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361133884025"],"updated_at":"2022-08-19T17:48:15Z"}' + body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_697a882439da11edbcf0ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_5424d9b2e06e46acae6507e32f4d559a","confirmation":null,"created_at":"2022-09-21T18:22:56Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220921/833e6603a6e94ed4a449ec84a969e086.pdf","id":"sf_1b68c49c017145e0a37a05a8dc3eefad","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361138710268"],"updated_at":"2022-09-21T18:22:56Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e923fc9bdcbca828533f15f3e2a21860" + - W/"63bc09855f296ceb04ecbe2b4e83e5ab" Expires: - "0" Pragma: @@ -112,21 +113,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdfff246ba100701f60 + - 8f5eb2cf632b5680ec7d9989000db24d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.297751" + - "0.290835" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -140,19 +141,19 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/scan_forms/sf_3f198cb53db04224a070d5cc18a236d6 + url: https://api.easypost.com/v2/scan_forms/sf_1b68c49c017145e0a37a05a8dc3eefad method: GET response: - body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1994f3d01fe711ed89bdac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_2a60f64199b3407c99e235473156eea7","confirmation":null,"created_at":"2022-08-19T17:48:15Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220819/807d80fe233343a09d5f43deeaaf679a.pdf","id":"sf_3f198cb53db04224a070d5cc18a236d6","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361133884025"],"updated_at":"2022-08-19T17:48:15Z"}' + body: '{"address":{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_697a882439da11edbcf0ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_5424d9b2e06e46acae6507e32f4d559a","confirmation":null,"created_at":"2022-09-21T18:22:56Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220921/833e6603a6e94ed4a449ec84a969e086.pdf","id":"sf_1b68c49c017145e0a37a05a8dc3eefad","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361138710268"],"updated_at":"2022-09-21T18:22:56Z"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e923fc9bdcbca828533f15f3e2a21860" + - W/"63bc09855f296ceb04ecbe2b4e83e5ab" Expires: - "0" Pragma: @@ -168,21 +169,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccdfff246ba100701fad + - 8f5eb2cf632b5680ec7d9989000db284 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.025040" + - "0.136273" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentAll.yaml b/tests/cassettes/TestShipmentAll.yaml index 3a4684a..cdf1071 100644 --- a/tests/cassettes/TestShipmentAll.yaml +++ b/tests/cassettes/TestShipmentAll.yaml @@ -14,105 +14,105 @@ interactions: url: https://api.easypost.com/v2/shipments method: GET response: - body: '{"has_more":true,"shipments":[{"batch_id":"batch_2a60f64199b3407c99e235473156eea7","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_199352e11fe711edbde9ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:14Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1994f3d01fe711ed89bdac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{},"zip":"90277"},"id":"shp_44dd068644544861bd83cef00860c03c","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:14Z","height":4,"id":"prcl_3f33fc374a484f32834379df117a76c8","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:14Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:15Z","date_advance":0,"id":"pl_42d174aa24344ec89ded0e3ad16352ef","integrated_form":"none","label_date":"2022-08-19T17:48:15Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/cd6a596b686341aaad123a7f8c53a570.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:15Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e312e8241a204eb8b9cc0aa437a007b3","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_44dd068644544861bd83cef00860c03c","updated_at":"2022-08-19T17:48:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_f16dc65e4dee44aca1d20e1cb270271d","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_44dd068644544861bd83cef00860c03c","updated_at":"2022-08-19T17:48:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_ef044e3e270e4301865202f811af4b32","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_44dd068644544861bd83cef00860c03c","updated_at":"2022-08-19T17:48:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2c294cf4790347998248c485679775ce","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_44dd068644544861bd83cef00860c03c","updated_at":"2022-08-19T17:48:14Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1994f3d01fe711ed89bdac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1994f3d01fe711ed89bdac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_2a60f64199b3407c99e235473156eea7","confirmation":null,"created_at":"2022-08-19T17:48:15Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220819/807d80fe233343a09d5f43deeaaf679a.pdf","id":"sf_3f198cb53db04224a070d5cc18a236d6","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361133884025"],"updated_at":"2022-08-19T17:48:15Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:15Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e312e8241a204eb8b9cc0aa437a007b3","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_44dd068644544861bd83cef00860c03c","updated_at":"2022-08-19T17:48:15Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:14+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_199352e11fe711edbde9ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:14+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + body: '{"has_more":true,"shipments":[{"batch_id":"batch_5424d9b2e06e46acae6507e32f4d559a","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6978ade539da11edade7ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:55Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_697a882439da11edbcf0ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{},"zip":"90277"},"id":"shp_4dfd5924810b424ea67cba0b8146ed0e","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:55Z","height":4,"id":"prcl_9a5ba865a996499a8f5b044b98054682","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:55Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:55Z","date_advance":0,"id":"pl_483d640c503a4b4daaf30e03a40c1ddb","integrated_form":"none","label_date":"2022-09-21T18:22:55Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/61ddada44adb45df972070eba2256ba2.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:56Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a18fda89938a45558a61e34268426cac","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","updated_at":"2022-09-21T18:22:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f86e77b556c74bac942232f2765b6d7f","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","updated_at":"2022-09-21T18:22:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_27e099fd6569444f89c77841ac8018b6","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","updated_at":"2022-09-21T18:22:55Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9f50cd1671ee49e5a0a90b9521099d0c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","updated_at":"2022-09-21T18:22:55Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_697a882439da11edbcf0ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_697a882439da11edbcf0ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_5424d9b2e06e46acae6507e32f4d559a","confirmation":null,"created_at":"2022-09-21T18:22:56Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220921/833e6603a6e94ed4a449ec84a969e086.pdf","id":"sf_1b68c49c017145e0a37a05a8dc3eefad","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361138710268"],"updated_at":"2022-09-21T18:22:56Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:55Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_9f50cd1671ee49e5a0a90b9521099d0c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","updated_at":"2022-09-21T18:22:55Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:55+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6978ade539da11edade7ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:55+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:15Z","est_delivery_date":"2022-08-19T17:48:15Z","fees":[],"id":"trk_83c80b023ffd437881cd24f2f6c38e0b","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzgzYzgwYjAyM2ZmZDQzNzg4MWNkMjRmMmY2YzM4ZTBi","shipment_id":"shp_44dd068644544861bd83cef00860c03c","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133884025","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:15Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:15Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:15Z","weight":null},"tracking_code":"9400100109361133884025","updated_at":"2022-08-19T17:48:15Z","usps_zone":4},{"batch_id":"batch_3d9307808eb74b4799f028de804bd4fb","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:12+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_18a165ab1fe711edbca2ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:12Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:12+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_18a312c01fe711ed94b5ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:12+00:00","verifications":{},"zip":"90277"},"id":"shp_3170e76410bf4b9c857b0d4d87301a3c","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:12Z","height":4,"id":"prcl_7dd900f7c3ef40bc90f88c5251911e51","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:12Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:13Z","date_advance":0,"id":"pl_72dd4deef33c4d82816c6750a5b09d75","integrated_form":"none","label_date":"2022-08-19T17:48:13Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/ceeb0d66521d4f01899528c0cd797e78.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:13Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_efb8e3a94b15402abfa422464c720ed2","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","updated_at":"2022-08-19T17:48:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_6bc1047399ad480fb9e89d28e2372967","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","updated_at":"2022-08-19T17:48:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a2d014c875e04a6fb9153bb3832c17e6","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","updated_at":"2022-08-19T17:48:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7a020f68ba724a1eb08114fb29780e71","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","updated_at":"2022-08-19T17:48:13Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:12+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_18a312c01fe711ed94b5ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:12+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:12+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_18a312c01fe711ed94b5ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:12+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_3d9307808eb74b4799f028de804bd4fb","confirmation":null,"created_at":"2022-08-19T17:48:14Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220819/857f0766ad4840e09ca0906f9c4737f3.pdf","id":"sf_31c6dcda6c0c4e9ea61f7d7d1e2f0353","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361133884018"],"updated_at":"2022-08-19T17:48:14Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7a020f68ba724a1eb08114fb29780e71","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","updated_at":"2022-08-19T17:48:13Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:12+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_18a165ab1fe711edbca2ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:13+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2022-09-21T18:22:56Z","est_delivery_date":"2022-09-21T18:22:56Z","fees":[],"id":"trk_7e059aceeb804b47ac316087b9e12cb1","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzdlMDU5YWNlZWI4MDRiNDdhYzMxNjA4N2I5ZTEyY2Ix","shipment_id":"shp_4dfd5924810b424ea67cba0b8146ed0e","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710268","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:22:56Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T06:59:56Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:22:56Z","weight":null},"tracking_code":"9400100109361138710268","updated_at":"2022-09-21T18:22:56Z","usps_zone":4},{"batch_id":"batch_62a40416774a4f62a003e91e739d1e3d","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6857db7139da11edbc87ac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:53+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:53Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_685b5ed839da11edaa44ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:53+00:00","verifications":{},"zip":"90277"},"id":"shp_2c4597fb22e04a8aab3588b9de7326c4","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:53Z","height":4,"id":"prcl_e1a20f94084c4b7081ad87f798911708","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:53Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:54Z","date_advance":0,"id":"pl_2fc942efe32045468b7af9fb8cd398d1","integrated_form":"none","label_date":"2022-09-21T18:22:54Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/5cb343181c45435d859c4da137a67209.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:54Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_dc799f73fc374fbf9647555106a72548","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","updated_at":"2022-09-21T18:22:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_acd228fb09b94220b5204a5d24bf381d","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","updated_at":"2022-09-21T18:22:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_bbd3e4d61e774cd3a409e76f7df9d965","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","updated_at":"2022-09-21T18:22:53Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:53Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_37180aa902f94d0096a8c340d649f49c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","updated_at":"2022-09-21T18:22:53Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_685b5ed839da11edaa44ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:53+00:00","verifications":{},"zip":"90277"},"scan_form":{"address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_685b5ed839da11edaa44ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:53+00:00","verifications":{},"zip":"90277"},"batch_id":"batch_62a40416774a4f62a003e91e739d1e3d","confirmation":null,"created_at":"2022-09-21T18:22:54Z","form_file_type":null,"form_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/scan_form/20220921/7403052b00324b58a21c7b5aa0072cd8.pdf","id":"sf_52218f563c8f44b6aa72a340dbd350cf","message":null,"object":"ScanForm","status":"created","tracking_codes":["9400100109361138710251"],"updated_at":"2022-09-21T18:22:54Z"},"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:54Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_37180aa902f94d0096a8c340d649f49c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","updated_at":"2022-09-21T18:22:54Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:53+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6857db7139da11edbc87ac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:53+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:13Z","est_delivery_date":"2022-08-19T17:48:13Z","fees":[],"id":"trk_881702096e0241cfa39b670a1769aaae","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzg4MTcwMjA5NmUwMjQxY2ZhMzliNjcwYTE3NjlhYWFl","shipment_id":"shp_3170e76410bf4b9c857b0d4d87301a3c","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133884018","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:13Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:13Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:13Z","weight":null},"tracking_code":"9400100109361133884018","updated_at":"2022-08-19T17:48:14Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_167534d31fe711edb98bac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:09Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1676ec4e1fe711ed8763ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{},"zip":"90277"},"id":"shp_1ab35a6b832e4cda885ec5804ebf1697","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:09Z","height":4,"id":"prcl_ab45ab7a973a46d98ab00a7da545f041","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:09Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:09Z","date_advance":0,"id":"pl_3b264d42972943b284ac0be2e6feafad","integrated_form":"none","label_date":"2022-08-19T17:48:09Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/c69e8de5032b4f628c5272e4c2b55e07.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:10Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_7463fcfad10e4258b6e3ff1b68968b19","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_827268479dae45078d299d3b583171d7","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4fd4ee754c704839ac2f4ed832e82ace","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a2e7bcb0820e4b3ba015a8a8c6850130","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:09Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1676ec4e1fe711ed8763ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4fd4ee754c704839ac2f4ed832e82ace","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","updated_at":"2022-08-19T17:48:10Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:09+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_167534d31fe711edb98bac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:09+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2022-09-21T18:22:54Z","est_delivery_date":"2022-09-21T18:22:54Z","fees":[],"id":"trk_924f8496a6744a0c8e95a96c98256768","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzkyNGY4NDk2YTY3NDRhMGM4ZTk1YTk2Yzk4MjU2NzY4","shipment_id":"shp_2c4597fb22e04a8aab3588b9de7326c4","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710251","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:22:54Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T06:59:54Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:22:54Z","weight":null},"tracking_code":"9400100109361138710251","updated_at":"2022-09-21T18:22:54Z","usps_zone":4},{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65db346539da11eda964ac1f6bc72124","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:49Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65ddf75039da11edb0d8ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{},"zip":"90277"},"id":"shp_7f65876fb89b4d2daf303b4740afec15","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:49Z","height":4,"id":"prcl_309cbf94b3db44febcf7f1c34a38046f","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:49Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:49Z","date_advance":0,"id":"pl_6f971d83cefb4deb94cf1e889222c1b7","integrated_form":"none","label_date":"2022-09-21T18:22:49Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/83af6a9c815f489c85ab4343172dd749.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:50Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_18d4ec9a31754cd78b8c3fbd4fb88cca","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_bb1f86617be048f3bd887e15956bd775","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_7f01eed4f0d547909e4ff4077f86d693","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_557a626d6c844239a8b27ed0dd3b223d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65ddf75039da11edb0d8ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:49Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_557a626d6c844239a8b27ed0dd3b223d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","updated_at":"2022-09-21T18:22:49Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:49+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_65db346539da11eda964ac1f6bc72124","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:49+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:10Z","est_delivery_date":"2022-08-19T17:48:10Z","fees":[],"id":"trk_66d2e3b1191d456aa6cf078e389fabfa","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzY2ZDJlM2IxMTkxZDQ1NmFhNmNmMDc4ZTM4OWZhYmZh","shipment_id":"shp_1ab35a6b832e4cda885ec5804ebf1697","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133883950","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:10Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:10Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:10Z","weight":null},"tracking_code":"9400100109361133883950","updated_at":"2022-08-19T17:48:10Z","usps_zone":4},{"batch_id":"batch_6788df707bc74116bfd562b31caabdb9","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:06+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_14af52d41fe711edb7f7ac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:06+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:06Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:06+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_14b1472f1fe711ed8676ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:06+00:00","verifications":{},"zip":"90277"},"id":"shp_7a6cd4f1e1604480b98ea0810d59283c","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:06Z","height":4,"id":"prcl_ecee43fcf5f14128b9ef8139808abee7","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:06Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:06Z","date_advance":0,"id":"pl_1a2e1b56d80f471889e6781c7b951637","integrated_form":"none","label_date":"2022-08-19T17:48:06Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/f5c0c31b08204dddb9631e0c7fd42d3e.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:07Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:06Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_f2c251e719ac4520be783dbcfa195494","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_7a6cd4f1e1604480b98ea0810d59283c","updated_at":"2022-08-19T17:48:06Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:06Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f259fef3c72e4822ac71ad629379dca8","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_7a6cd4f1e1604480b98ea0810d59283c","updated_at":"2022-08-19T17:48:06Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:06Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_2df0448c516d478e8cee9621394dca39","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_7a6cd4f1e1604480b98ea0810d59283c","updated_at":"2022-08-19T17:48:06Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:06Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8a775b6501f14e7e871f0181a7c93590","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_7a6cd4f1e1604480b98ea0810d59283c","updated_at":"2022-08-19T17:48:06Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:06+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_14b1472f1fe711ed8676ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:06+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:06Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_8a775b6501f14e7e871f0181a7c93590","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_7a6cd4f1e1604480b98ea0810d59283c","updated_at":"2022-08-19T17:48:06Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:06+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_14af52d41fe711edb7f7ac1f6bc72124","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:06+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2022-09-21T18:22:50Z","est_delivery_date":"2022-09-21T18:22:50Z","fees":[],"id":"trk_373180b8342d4de0b81fa4d472a58004","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzM3MzE4MGI4MzQyZDRkZTBiODFmYTRkNDcyYTU4MDA0","shipment_id":"shp_7f65876fb89b4d2daf303b4740afec15","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710237","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:22:50Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T06:59:50Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:22:50Z","weight":null},"tracking_code":"9400100109361138710237","updated_at":"2022-09-21T18:22:50Z","usps_zone":4},{"batch_id":"batch_e277a9ef59344fd0a9b8502aa2262419","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_60f7978539da11edaef7ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:41Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_60fa958c39da11edac39ac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:41+00:00","verifications":{},"zip":"90277"},"id":"shp_4c2efdc7324944bfa8e3966c659e9d91","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:41Z","height":4,"id":"prcl_e4e8e9e58e994214b79b0c8738ad4245","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:41Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:41Z","date_advance":0,"id":"pl_70b87b0c4e5547338307b9ffbe539780","integrated_form":"none","label_date":"2022-09-21T18:22:41Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/9ce06d1cc2ed4397bb07cc4cee11ed41.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:41Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b88882469f3349f6a01ddbe8adb92a45","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_171292b9040a489cb1002a7d6f13eb78","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_729f0712f65c42ad93d978a17abb6340","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_d78f12b2be3b4fc4a308db5a4bf79829","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_60fa958c39da11edac39ac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:41+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:41Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_171292b9040a489cb1002a7d6f13eb78","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","updated_at":"2022-09-21T18:22:41Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:41+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_60f7978539da11edaef7ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:41+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:07Z","est_delivery_date":"2022-08-19T17:48:07Z","fees":[],"id":"trk_37a8aad957a145e3bb6a2aa0adb8b7ce","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzM3YThhYWQ5NTdhMTQ1ZTNiYjZhMmFhMGFkYjhiN2Nl","shipment_id":"shp_7a6cd4f1e1604480b98ea0810d59283c","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133883868","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:07Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:07Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:07Z","weight":null},"tracking_code":"9400100109361133883868","updated_at":"2022-08-19T17:48:07Z","usps_zone":4},{"batch_id":"batch_a3983e5de2b84ed0aca8d8ee2ea6a633","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:04+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_139854e31fe711edb81cac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:04+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:04Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:04+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_139a531f1fe711edb786ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:04+00:00","verifications":{},"zip":"90277"},"id":"shp_2bcc31ae7e744b9d8c84804b215dc2ef","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:04Z","height":4,"id":"prcl_0222cf275e904c60b162090a122a3cd8","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:04Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:05Z","date_advance":0,"id":"pl_2440ae683e2a46e88fa7288d63380258","integrated_form":"none","label_date":"2022-08-19T17:48:05Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/4c71e18d55174d309fd6c2201d7c5b9a.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:05Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_90eb053e636b47b5904019633097be1b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_2bcc31ae7e744b9d8c84804b215dc2ef","updated_at":"2022-08-19T17:48:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_dd9e544fa2b34a08939f0604587ff546","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_2bcc31ae7e744b9d8c84804b215dc2ef","updated_at":"2022-08-19T17:48:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_df09b82567194aeaa18c87208598af16","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_2bcc31ae7e744b9d8c84804b215dc2ef","updated_at":"2022-08-19T17:48:04Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:04Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_303ba30d42a54cf4b9d2b35d99ef48c6","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_2bcc31ae7e744b9d8c84804b215dc2ef","updated_at":"2022-08-19T17:48:04Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:04+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_139a531f1fe711edb786ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:04+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_303ba30d42a54cf4b9d2b35d99ef48c6","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_2bcc31ae7e744b9d8c84804b215dc2ef","updated_at":"2022-08-19T17:48:05Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:04+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_139854e31fe711edb81cac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:04+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + Package Service"},"created_at":"2022-09-21T18:22:42Z","est_delivery_date":"2022-09-21T18:22:42Z","fees":[],"id":"trk_c4881ae3d389479c8df9d6491e9c1810","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M0ODgxYWUzZDM4OTQ3OWM4ZGY5ZDY0OTFlOWMxODEw","shipment_id":"shp_4c2efdc7324944bfa8e3966c659e9d91","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710213","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:22:42Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T06:59:42Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:22:42Z","weight":null},"tracking_code":"9400100109361138710213","updated_at":"2022-09-21T18:22:41Z","usps_zone":4},{"batch_id":"batch_d93e28f9ad8d4c1b88123a9380ad0356","batch_message":null,"batch_status":"postage_purchased","buyer_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5f94798439da11edae77ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:38+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:22:38Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5f962bc339da11eda70fac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:38+00:00","verifications":{},"zip":"90277"},"id":"shp_bc76014e80e04639b674811d7f040f26","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:38Z","height":4,"id":"prcl_f926c33eb4be4e4593e46cce13718ab7","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:38Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:39Z","date_advance":0,"id":"pl_c16bd3e0dbc647049d05437624bf90e0","integrated_form":"none","label_date":"2022-09-21T18:22:39Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/682d24160f154fd6bb4d17be134183cc.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:39Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b890d0f680a847688f9a8f4c83d04d80","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cc45c1defdfb4adf900edf93a95546a3","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a0a6f2d048554b42b59f135a40421135","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:38Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_b01cf711e348426e940d2c3fd126c174","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:38Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5f962bc339da11eda70fac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:38+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_cc45c1defdfb4adf900edf93a95546a3","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","updated_at":"2022-09-21T18:22:39Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:22:38+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_5f94798439da11edae77ac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:22:38+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:05Z","est_delivery_date":"2022-08-19T17:48:05Z","fees":[],"id":"trk_84b1880696bd424080244bb96b01580a","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzg0YjE4ODA2OTZiZDQyNDA4MDI0NGJiOTZiMDE1ODBh","shipment_id":"shp_2bcc31ae7e744b9d8c84804b215dc2ef","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133883851","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:05Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:05Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:05Z","weight":null},"tracking_code":"9400100109361133883851","updated_at":"2022-08-19T17:48:05Z","usps_zone":4}]}' + Package Service"},"created_at":"2022-09-21T18:22:39Z","est_delivery_date":"2022-09-21T18:22:39Z","fees":[],"id":"trk_e4dfca5c480444f48dfb5a535837c574","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2U0ZGZjYTVjNDgwNDQ0ZjQ4ZGZiNWE1MzU4MzdjNTc0","shipment_id":"shp_bc76014e80e04639b674811d7f040f26","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710206","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:22:39Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T06:59:39Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:22:39Z","weight":null},"tracking_code":"9400100109361138710206","updated_at":"2022-09-21T18:22:39Z","usps_zone":4}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b91bf19d1610698cf9a365fa8939a2ac" + - W/"54921458fa360bfa412920e403fe3d67" Expires: - "0" Pragma: @@ -128,21 +128,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce0ff246ba100701fbd + - 8f5eb2cf632b5681ec7d9989000db2a6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.520185" + - "0.408392" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentBuy.yaml b/tests/cassettes/TestShipmentBuy.yaml index 96f0eb2..bff6328 100644 --- a/tests/cassettes/TestShipmentBuy.yaml +++ b/tests/cassettes/TestShipmentBuy.yaml @@ -2,13 +2,13 @@ version: 1 interactions: - request: - body: '{"shipment":{"reference":"123","to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"customs_info":{"eel_pfc":"NOEEI - 30.37(a)","contents_type":"merchandise","customs_certify":true,"customs_signer":"Steve - Brule","non_delivery_option":"return","restriction_type":"none","customs_items":[{"description":"Sweet - shirts","quantity":2,"weight":11,"hs_tariff_number":"654321","origin_country":"US"}]},"options":{"invoice_number":"123","label_format":"PNG"}}}' + body: '{"shipment":{"customs_info":{"contents_type":"merchandise","customs_certify":true,"customs_items":[{"description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"weight":11}],"customs_signer":"Steve + Brule","eel_pfc":"NOEEI 30.37(a)","non_delivery_option":"return","restriction_type":"none"},"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"options":{"invoice_number":"123","label_format":"PNG"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"reference":"123","to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,31 +21,32 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:17+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1b175b451fe711ed97acac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:17+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:17Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-08-19T17:48:17Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-08-19T17:48:17Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_fccd3624ef564096a1e2361dbf5f3f71","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-08-19T17:48:17Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_8210fbdf5f024ddb9cb585114ebc0a2f","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-08-19T17:48:17Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:17+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1b1943c41fe711ed8ab5ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:17+00:00","verifications":{},"zip":"94107"},"id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:17Z","height":4,"id":"prcl_e93e05c403f24d28acc80ebbe20b6758","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:17Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a620df710eac4f4b8cfce4782f049a5c","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","updated_at":"2022-08-19T17:48:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7158cfddb72d42a38fd32e72b2e50d4b","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","updated_at":"2022-08-19T17:48:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_86c7d6a889a04bb697f54dfc09798b57","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","updated_at":"2022-08-19T17:48:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_cbda66de9c6448059816abc74f3da1d2","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","updated_at":"2022-08-19T17:48:17Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:17+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1b1943c41fe711ed8ab5ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:17+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:17+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1b175b451fe711ed97acac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:17+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:17Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6b13fad739da11edbd81ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:58+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:58Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:22:58Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:22:58Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_ce288312af34481596fab33e8b82a04e","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:22:58Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_1db8897224834e26ad1ead5d16a9069f","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:22:58Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6b166ef639da11edae56ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:58+00:00","verifications":{},"zip":"94107"},"id":"shp_21acca62e4c44fcab819dc65111dc6a7","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:58Z","height":4,"id":"prcl_def7dce1a7ad44a997429bc86b1eb56c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:58Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ac6afa5ae70440d0ade1ae73b477b62a","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","updated_at":"2022-09-21T18:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a29b70fc418b48549c8f1291d94f587a","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","updated_at":"2022-09-21T18:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c9c693f2dda44c6b945379b6bee481ee","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","updated_at":"2022-09-21T18:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_12ea5dd1b7494d378996bc25933b8be3","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","updated_at":"2022-09-21T18:22:58Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6b166ef639da11edae56ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:58+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6b13fad739da11edbd81ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:58+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:22:58Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"4520a848cc1f5e357fe1170078ca7d5f" + - W/"3105a069cc1a9a712a7ddc7a55bd27e6" Expires: - "0" Location: - - /api/v2/shipments/shp_954ad2e0ea0f4a55b8f2718d66e355cf + - /api/v2/shipments/shp_21acca62e4c44fcab819dc65111dc6a7 Pragma: - no-cache Referrer-Policy: @@ -54,35 +55,33 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce0ff246ba10070202f + - 8f5eb2cf632b5681ec7d9989000db2f2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.253131" + - "0.279442" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"rate":{"id":"rate_7158cfddb72d42a38fd32e72b2e50d4b","object":"Rate","mode":"test","created_at":"2022-08-19T17:48:17Z","updated_at":"2022-08-19T17:48:17Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"}}' + body: '{"rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:58Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_a29b70fc418b48549c8f1291d94f587a","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","updated_at":"2022-09-21T18:22:58Z"}}' form: {} headers: Authorization: @@ -91,31 +90,32 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_954ad2e0ea0f4a55b8f2718d66e355cf/buy + url: https://api.easypost.com/v2/shipments/shp_21acca62e4c44fcab819dc65111dc6a7/buy method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2022-08-19T17:48:17+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_1b175b451fe711ed97acac1f6bc7b362","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2022-08-19T17:48:17+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2022-08-19T17:48:17Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-08-19T17:48:17Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-08-19T17:48:17Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_fccd3624ef564096a1e2361dbf5f3f71","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-08-19T17:48:17Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_8210fbdf5f024ddb9cb585114ebc0a2f","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-08-19T17:48:17Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:17+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1b1943c41fe711ed8ab5ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:17+00:00","verifications":{},"zip":"94107"},"id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:17Z","height":4,"id":"prcl_e93e05c403f24d28acc80ebbe20b6758","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:17Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:18Z","date_advance":0,"id":"pl_e15f1e23a2aa4c9187c3e0984bbc14f2","integrated_form":"none","label_date":"2022-08-19T17:48:18Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/8e51b8ac4a0f448ca52c1f7298f04bd5.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:18Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a620df710eac4f4b8cfce4782f049a5c","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","updated_at":"2022-08-19T17:48:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7158cfddb72d42a38fd32e72b2e50d4b","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","updated_at":"2022-08-19T17:48:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_86c7d6a889a04bb697f54dfc09798b57","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","updated_at":"2022-08-19T17:48:17Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_cbda66de9c6448059816abc74f3da1d2","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","updated_at":"2022-08-19T17:48:17Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:17+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1b1943c41fe711ed8ab5ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:17+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_7158cfddb72d42a38fd32e72b2e50d4b","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","updated_at":"2022-08-19T17:48:18Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2022-08-19T17:48:17+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_1b175b451fe711ed97acac1f6bc7b362","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2022-08-19T17:48:17+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:18Z","est_delivery_date":null,"fees":[],"id":"trk_d9c16eeb7fce4018b0afcc9692a01667","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Q5YzE2ZWViN2ZjZTQwMThiMGFmY2M5NjkyYTAxNjY3","shipment_id":"shp_954ad2e0ea0f4a55b8f2718d66e355cf","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884032","tracking_details":[],"updated_at":"2022-08-19T17:48:18Z","weight":null},"tracking_code":"9400100109361133884032","updated_at":"2022-08-19T17:48:18Z","usps_zone":4}' + BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6b13fad739da11edbd81ac1f6bc7b362","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T18:22:58+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2022-09-21T18:22:58Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:22:58Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:22:58Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_ce288312af34481596fab33e8b82a04e","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:22:58Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_1db8897224834e26ad1ead5d16a9069f","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:22:58Z"},"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6b166ef639da11edae56ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:58+00:00","verifications":{},"zip":"94107"},"id":"shp_21acca62e4c44fcab819dc65111dc6a7","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:58Z","height":4,"id":"prcl_def7dce1a7ad44a997429bc86b1eb56c","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:58Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:22:59Z","date_advance":0,"id":"pl_f420ddf4fc3e4a428ab28627e905f40d","integrated_form":"none","label_date":"2022-09-21T18:22:59Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/f21eff33197d4b959cc65c85fe3b4ebb.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:22:59Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_ac6afa5ae70440d0ade1ae73b477b62a","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","updated_at":"2022-09-21T18:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a29b70fc418b48549c8f1291d94f587a","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","updated_at":"2022-09-21T18:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c9c693f2dda44c6b945379b6bee481ee","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","updated_at":"2022-09-21T18:22:58Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:58Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_12ea5dd1b7494d378996bc25933b8be3","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","updated_at":"2022-09-21T18:22:58Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6b166ef639da11edae56ac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:58+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:22:59Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a29b70fc418b48549c8f1291d94f587a","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","updated_at":"2022-09-21T18:22:59Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:58+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6b13fad739da11edbd81ac1f6bc7b362","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T18:22:58+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:22:59Z","est_delivery_date":null,"fees":[],"id":"trk_c71ac03dcd6e4dd7affe9c281d5436d2","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M3MWFjMDNkY2Q2ZTRkZDdhZmZlOWMyODFkNTQzNmQy","shipment_id":"shp_21acca62e4c44fcab819dc65111dc6a7","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710275","tracking_details":[],"updated_at":"2022-09-21T18:22:59Z","weight":null},"tracking_code":"9400100109361138710275","updated_at":"2022-09-21T18:22:59Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"7b2d83e72d98703006938ffe2953e122" + - W/"2f67e7752cb63925ce4ecf5b180d85c4" Expires: - "0" Pragma: @@ -131,21 +131,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce1ff246ba100702087 + - 8f5eb2cf632b5682ec7d9989000db332 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.825591" + - "0.889173" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentBuyWithCarbonOffset.yaml b/tests/cassettes/TestShipmentBuyWithCarbonOffset.yaml index af2afc9..517dded 100644 --- a/tests/cassettes/TestShipmentBuyWithCarbonOffset.yaml +++ b/tests/cassettes/TestShipmentBuyWithCarbonOffset.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}}' + body: '{"shipment":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -18,29 +19,30 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:18+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1c1eaa7d1fe711ed8089ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:18+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:18Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:18+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1c2249b71fe711ed8b90ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:18+00:00","verifications":{},"zip":"94107"},"id":"shp_512bbe045c48454b9509b096fdf3d039","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:18Z","height":4,"id":"prcl_c74f59a099334ee68771f28f6138c3b2","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:18Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_1219ecfb469f4f3abc840a1c730e6d99","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","updated_at":"2022-08-19T17:48:18Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_88b72d7b2e364a54bbfd5ccd2a2530a5","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","updated_at":"2022-08-19T17:48:18Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_922755a9bf8e4e379883ee30d68ba8a3","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","updated_at":"2022-08-19T17:48:18Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_399662d8e4a64d64bb7dcc64ff083cd2","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","updated_at":"2022-08-19T17:48:18Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:18+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1c2249b71fe711ed8b90ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:18+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:18+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1c1eaa7d1fe711ed8089ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:18+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:18Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6c1a364e39da11edb33fac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:59+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:22:59Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6c1ccce839da11edae9aac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:59+00:00","verifications":{},"zip":"94107"},"id":"shp_96e6954be29e476aab1340633db8c590","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:59Z","height":4,"id":"prcl_f5666f0880994325bd7a861bb709be01","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:59Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c346e4226f5f4f63b99e7ff99f22f2d5","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_96e6954be29e476aab1340633db8c590","updated_at":"2022-09-21T18:23:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_68ae991349c44c2488e251d066aedb3b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_96e6954be29e476aab1340633db8c590","updated_at":"2022-09-21T18:23:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_360dc00c50f8495da184f421dacabcb9","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_96e6954be29e476aab1340633db8c590","updated_at":"2022-09-21T18:23:00Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a96be31b1cd74d5d9e2a9da6458bb534","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_96e6954be29e476aab1340633db8c590","updated_at":"2022-09-21T18:23:00Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6c1ccce839da11edae9aac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:59+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6c1a364e39da11edb33fac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:22:59+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:00Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"952b43c984ba59162cbe36455db10e8b" + - W/"8a7d03a08be2b48a838702430b7639ea" Expires: - "0" Location: - - /api/v2/shipments/shp_512bbe045c48454b9509b096fdf3d039 + - /api/v2/shipments/shp_96e6954be29e476aab1340633db8c590 Pragma: - no-cache Referrer-Policy: @@ -49,33 +51,35 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce2ff246ba1007020fa + - 8f5eb2cf632b5683ec7d9989000db3b6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.207358" + - "0.653934" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"rate":{"id":"rate_88b72d7b2e364a54bbfd5ccd2a2530a5","object":"Rate","mode":"test","created_at":"2022-08-19T17:48:18Z","updated_at":"2022-08-19T17:48:18Z","service":"First","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","delivery_days":3,"est_delivery_days":3,"billing_type":"easypost"},"carbon_offset":true}' + body: '{"carbon_offset":true,"rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:00Z","currency":"USD","delivery_days":3,"est_delivery_days":3,"id":"rate_c346e4226f5f4f63b99e7ff99f22f2d5","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_96e6954be29e476aab1340633db8c590","updated_at":"2022-09-21T18:23:00Z"}}' form: {} headers: Authorization: @@ -84,29 +88,30 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_512bbe045c48454b9509b096fdf3d039/buy + url: https://api.easypost.com/v2/shipments/shp_96e6954be29e476aab1340633db8c590/buy method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2022-08-19T17:48:18+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_1c1eaa7d1fe711ed8089ac1f6bc72124","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2022-08-19T17:48:19+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2022-08-19T17:48:18Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"0.11000","charged":true,"object":"Fee","refunded":false,"type":"CarbonOffsetFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:18+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1c2249b71fe711ed8b90ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:18+00:00","verifications":{},"zip":"94107"},"id":"shp_512bbe045c48454b9509b096fdf3d039","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:18Z","height":4,"id":"prcl_c74f59a099334ee68771f28f6138c3b2","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:18Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:19Z","date_advance":0,"id":"pl_e645dea00cb7404eb11e767b273b623f","integrated_form":"none","label_date":"2022-08-19T17:48:19Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/086de4f3f9ee4dfcadd7cae985c7b4d4.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:19Z"},"rates":[{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_1219ecfb469f4f3abc840a1c730e6d99","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","updated_at":"2022-08-19T17:48:18Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_88b72d7b2e364a54bbfd5ccd2a2530a5","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","updated_at":"2022-08-19T17:48:18Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_922755a9bf8e4e379883ee30d68ba8a3","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","updated_at":"2022-08-19T17:48:18Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_399662d8e4a64d64bb7dcc64ff083cd2","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","updated_at":"2022-08-19T17:48:18Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:18+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1c2249b71fe711ed8b90ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:18+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_88b72d7b2e364a54bbfd5ccd2a2530a5","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","updated_at":"2022-08-19T17:48:19Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO - BEACH","company":null,"country":"US","created_at":"2022-08-19T17:48:18+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_1c1eaa7d1fe711ed8089ac1f6bc72124","mode":"test","name":"ELIZABETH - SWAN","object":"Address","phone":"5555555555","residential":false,"state":"CA","state_tax_id":null,"street1":"179 - N HARBOR DR","street2":null,"updated_at":"2022-08-19T17:48:19+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:20Z","est_delivery_date":null,"fees":[],"id":"trk_ec94f18200174a96bd1da76fc6870b44","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2VjOTRmMTgyMDAxNzRhOTZiZDFkYTc2ZmM2ODcwYjQ0","shipment_id":"shp_512bbe045c48454b9509b096fdf3d039","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884056","tracking_details":[],"updated_at":"2022-08-19T17:48:20Z","weight":null},"tracking_code":"9400100109361133884056","updated_at":"2022-08-19T17:48:20Z","usps_zone":4}' + BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6c1a364e39da11edb33fac1f6b0a0d1e","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T18:23:00+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"created_at":"2022-09-21T18:22:59Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"0.11000","charged":true,"object":"Fee","refunded":false,"type":"CarbonOffsetFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6c1ccce839da11edae9aac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:59+00:00","verifications":{},"zip":"94107"},"id":"shp_96e6954be29e476aab1340633db8c590","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:22:59Z","height":4,"id":"prcl_f5666f0880994325bd7a861bb709be01","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:22:59Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:01Z","date_advance":0,"id":"pl_46961edfc0694c66989ac5db7b3d8050","integrated_form":"none","label_date":"2022-09-21T18:23:01Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/1ecf6736e3604227805397073263949a.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:01Z"},"rates":[{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c346e4226f5f4f63b99e7ff99f22f2d5","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_96e6954be29e476aab1340633db8c590","updated_at":"2022-09-21T18:23:00Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_68ae991349c44c2488e251d066aedb3b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_96e6954be29e476aab1340633db8c590","updated_at":"2022-09-21T18:23:00Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_360dc00c50f8495da184f421dacabcb9","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_96e6954be29e476aab1340633db8c590","updated_at":"2022-09-21T18:23:00Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:00Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a96be31b1cd74d5d9e2a9da6458bb534","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_96e6954be29e476aab1340633db8c590","updated_at":"2022-09-21T18:23:00Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6c1ccce839da11edae9aac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:22:59+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:01Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_c346e4226f5f4f63b99e7ff99f22f2d5","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_96e6954be29e476aab1340633db8c590","updated_at":"2022-09-21T18:23:01Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"REDONDO + BEACH","company":null,"country":"US","created_at":"2022-09-21T18:22:59+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6c1a364e39da11edb33fac1f6b0a0d1e","mode":"test","name":"ELIZABETH + SWAN","object":"Address","phone":"REDACTED","residential":false,"state":"CA","state_tax_id":null,"street1":"179 + N HARBOR DR","street2":null,"updated_at":"2022-09-21T18:23:00+00:00","verifications":{"delivery":{"details":{"latitude":33.8436,"longitude":-118.39177,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"90277-2506"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:23:01Z","est_delivery_date":null,"fees":[],"id":"trk_e3ca693dafd04200b2ed19ab26c462a5","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2UzY2E2OTNkYWZkMDQyMDBiMmVkMTlhYjI2YzQ2MmE1","shipment_id":"shp_96e6954be29e476aab1340633db8c590","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710282","tracking_details":[],"updated_at":"2022-09-21T18:23:01Z","weight":null},"tracking_code":"9400100109361138710282","updated_at":"2022-09-21T18:23:01Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"95dc00f5a976929367aa7e71e159f41c" + - W/"6b7da4f15bad72ab58f902c34147aedc" Expires: - "0" Pragma: @@ -122,21 +127,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce3ff246ba100702135 + - 8f5eb2cf632b5684ec7d9989000db41d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.027381" + - "1.058816" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentConvertLabel.yaml b/tests/cassettes/TestShipmentConvertLabel.yaml index cf9f82e..ea0486b 100644 --- a/tests/cassettes/TestShipmentConvertLabel.yaml +++ b/tests/cassettes/TestShipmentConvertLabel.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:20+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_1d335c081fe711ed9a52ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:20Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:20+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1d353d831fe711ed8281ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:20+00:00","verifications":{},"zip":"90277"},"id":"shp_99538bf8073b4312b06236ea81a6f2e2","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:20Z","height":4,"id":"prcl_5aa6ccc8575a49b58b41c0a996d899f8","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:21Z","date_advance":0,"id":"pl_1b48c8c0888f44189a9b352bddc9d97b","integrated_form":"none","label_date":"2022-08-19T17:48:21Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/b11efdfcf53a44ce9c81eab8987d9d0e.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:21Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_52a8a06f3cb74a0ea5865374c86a92a9","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","updated_at":"2022-08-19T17:48:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_11810570bef141298b3d3fb3b5e9fa95","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","updated_at":"2022-08-19T17:48:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_f5cb9c9797444de9bf8b54e7c9346271","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","updated_at":"2022-08-19T17:48:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a20d16e9a0834ffb805f4893f042afda","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","updated_at":"2022-08-19T17:48:20Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:20+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1d353d831fe711ed8281ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:20+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a20d16e9a0834ffb805f4893f042afda","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","updated_at":"2022-08-19T17:48:21Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:20+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_1d335c081fe711ed9a52ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:21Z","est_delivery_date":null,"fees":[],"id":"trk_50f40e45958d4941b3ba887415dafd7f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzUwZjQwZTQ1OTU4ZDQ5NDFiM2JhODg3NDE1ZGFmZDdm","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884063","tracking_details":[],"updated_at":"2022-08-19T17:48:21Z","weight":null},"tracking_code":"9400100109361133884063","updated_at":"2022-08-19T17:48:21Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6d72ef6b39da11edbe6aac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:02Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6d75575f39da11edac43ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:02+00:00","verifications":{},"zip":"90277"},"id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:02Z","height":4,"id":"prcl_0d50f00d99e84d4b8865538590ad17a2","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:02Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:02Z","date_advance":0,"id":"pl_dce6dd8410744d2398d230285bd925ea","integrated_form":"none","label_date":"2022-09-21T18:23:02Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/36d780a43d0b4559b9902ec2948ef946.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:02Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_306a64170a0747968eec57118bb27e59","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","updated_at":"2022-09-21T18:23:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d2cee799a3c848e4afe5e309d53dca9f","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","updated_at":"2022-09-21T18:23:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0ff4fd8ae86841959c7ab7245ebd41e6","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","updated_at":"2022-09-21T18:23:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_ffb4236de5b546a2b426637350ff6fb0","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","updated_at":"2022-09-21T18:23:02Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6d75575f39da11edac43ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:02+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0ff4fd8ae86841959c7ab7245ebd41e6","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","updated_at":"2022-09-21T18:23:02Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6d72ef6b39da11edbe6aac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:23:03Z","est_delivery_date":null,"fees":[],"id":"trk_4ae4566d35c8431f9675a7751127efad","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzRhZTQ1NjZkMzVjODQzMWY5Njc1YTc3NTExMjdlZmFk","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710305","tracking_details":[],"updated_at":"2022-09-21T18:23:03Z","weight":null},"tracking_code":"9400100109361138710305","updated_at":"2022-09-21T18:23:03Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"2aef0fbc5654eed144413a0beb074519" + - W/"3053c644e3eb0b31b63d1a75727cf21e" Expires: - "0" Location: - - /api/v2/shipments/shp_99538bf8073b4312b06236ea81a6f2e2 + - /api/v2/shipments/shp_8dd83e89ae5c415080afc4ecc8e0cf22 Pragma: - no-cache Referrer-Policy: @@ -54,21 +55,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce4ff246ba1007021fb + - 8f5eb2cf632b5685ec7d9989000db4a4 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.956220" + - "1.122048" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -84,34 +85,34 @@ interactions: - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_99538bf8073b4312b06236ea81a6f2e2/label + url: https://api.easypost.com/v2/shipments/shp_8dd83e89ae5c415080afc4ecc8e0cf22/label method: GET response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:20+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_1d335c081fe711ed9a52ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:20Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:20+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1d353d831fe711ed8281ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:20+00:00","verifications":{},"zip":"90277"},"id":"shp_99538bf8073b4312b06236ea81a6f2e2","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:20Z","height":4,"id":"prcl_5aa6ccc8575a49b58b41c0a996d899f8","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:21Z","date_advance":0,"id":"pl_1b48c8c0888f44189a9b352bddc9d97b","integrated_form":"none","label_date":"2022-08-19T17:48:21Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/b11efdfcf53a44ce9c81eab8987d9d0e.png","label_zpl_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220819/737f0ab64b11493fa2f907e8eed2f776.zpl","object":"PostageLabel","updated_at":"2022-08-19T17:48:23Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_52a8a06f3cb74a0ea5865374c86a92a9","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","updated_at":"2022-08-19T17:48:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_11810570bef141298b3d3fb3b5e9fa95","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","updated_at":"2022-08-19T17:48:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_f5cb9c9797444de9bf8b54e7c9346271","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","updated_at":"2022-08-19T17:48:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a20d16e9a0834ffb805f4893f042afda","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","updated_at":"2022-08-19T17:48:20Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:20+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1d353d831fe711ed8281ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:20+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:21Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a20d16e9a0834ffb805f4893f042afda","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","updated_at":"2022-08-19T17:48:21Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:20+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_1d335c081fe711ed9a52ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6d72ef6b39da11edbe6aac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:02Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6d75575f39da11edac43ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:02+00:00","verifications":{},"zip":"90277"},"id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:02Z","height":4,"id":"prcl_0d50f00d99e84d4b8865538590ad17a2","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:02Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:02Z","date_advance":0,"id":"pl_dce6dd8410744d2398d230285bd925ea","integrated_form":"none","label_date":"2022-09-21T18:23:02Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/36d780a43d0b4559b9902ec2948ef946.png","label_zpl_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20220921/1f7e94452b3c4664aae70667c33f60b7.zpl","object":"PostageLabel","updated_at":"2022-09-21T18:23:04Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_306a64170a0747968eec57118bb27e59","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","updated_at":"2022-09-21T18:23:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d2cee799a3c848e4afe5e309d53dca9f","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","updated_at":"2022-09-21T18:23:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0ff4fd8ae86841959c7ab7245ebd41e6","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","updated_at":"2022-09-21T18:23:02Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_ffb4236de5b546a2b426637350ff6fb0","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","updated_at":"2022-09-21T18:23:02Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6d75575f39da11edac43ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:02+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:02Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0ff4fd8ae86841959c7ab7245ebd41e6","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","updated_at":"2022-09-21T18:23:02Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:02+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6d72ef6b39da11edbe6aac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:02+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:21Z","est_delivery_date":"2022-08-19T17:48:21Z","fees":[],"id":"trk_50f40e45958d4941b3ba887415dafd7f","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzUwZjQwZTQ1OTU4ZDQ5NDFiM2JhODg3NDE1ZGFmZDdm","shipment_id":"shp_99538bf8073b4312b06236ea81a6f2e2","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133884063","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:21Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:21Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:21Z","weight":null},"tracking_code":"9400100109361133884063","updated_at":"2022-08-19T17:48:21Z","usps_zone":4}' + Package Service"},"created_at":"2022-09-21T18:23:03Z","est_delivery_date":"2022-09-21T18:23:03Z","fees":[],"id":"trk_4ae4566d35c8431f9675a7751127efad","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzRhZTQ1NjZkMzVjODQzMWY5Njc1YTc3NTExMjdlZmFk","shipment_id":"shp_8dd83e89ae5c415080afc4ecc8e0cf22","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710305","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:03Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:03Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:03Z","weight":null},"tracking_code":"9400100109361138710305","updated_at":"2022-09-21T18:23:03Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"c8f71a822e05c6ed073e728d35303b04" + - W/"9e9a04bf5a633d541eaf008eba2201eb" Expires: - "0" Pragma: @@ -127,21 +128,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce5ff246ba1007022b3 + - 8f5eb2cf632b5687ec7d9989000db523 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.610476" + - "1.627279" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentCreate.yaml b/tests/cassettes/TestShipmentCreate.yaml index f469ddf..f3a7003 100644 --- a/tests/cassettes/TestShipmentCreate.yaml +++ b/tests/cassettes/TestShipmentCreate.yaml @@ -2,13 +2,13 @@ version: 1 interactions: - request: - body: '{"shipment":{"reference":"123","to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"customs_info":{"eel_pfc":"NOEEI - 30.37(a)","contents_type":"merchandise","customs_certify":true,"customs_signer":"Steve - Brule","non_delivery_option":"return","restriction_type":"none","customs_items":[{"description":"Sweet - shirts","quantity":2,"weight":11,"hs_tariff_number":"654321","origin_country":"US"}]},"options":{"invoice_number":"123","label_format":"PNG"}}}' + body: '{"shipment":{"customs_info":{"contents_type":"merchandise","customs_certify":true,"customs_items":[{"description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"weight":11}],"customs_signer":"Steve + Brule","eel_pfc":"NOEEI 30.37(a)","non_delivery_option":"return","restriction_type":"none"},"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"options":{"invoice_number":"123","label_format":"PNG"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"reference":"123","to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,31 +21,32 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:23+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1f32db931fe711ed9d8aac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:23+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:24Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-08-19T17:48:23Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-08-19T17:48:24Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_49560a738d1c40298682c6ba3c74363c","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-08-19T17:48:24Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_fc6f9f437a1d4b52813deedc9f9c33e8","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-08-19T17:48:23Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:23+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1f34a2031fe711ed9d8eac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:23+00:00","verifications":{},"zip":"94107"},"id":"shp_b97e1ce42772497dbbeeeb60476167f1","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:23Z","height":4,"id":"prcl_82b3526165284c1fabc82240afaf692a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:23Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_72d4b6ceb6314cf89437496350a9bd91","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_b97e1ce42772497dbbeeeb60476167f1","updated_at":"2022-08-19T17:48:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bd7e20f2d0a74f53b3a1b86ae9cd44f7","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_b97e1ce42772497dbbeeeb60476167f1","updated_at":"2022-08-19T17:48:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_79ea4ba586fc4513a85071ab7ab8479f","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_b97e1ce42772497dbbeeeb60476167f1","updated_at":"2022-08-19T17:48:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4a56b8f6872a4404a3eba2856a790308","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_b97e1ce42772497dbbeeeb60476167f1","updated_at":"2022-08-19T17:48:24Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:23+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1f34a2031fe711ed9d8eac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:23+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:23+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1f32db931fe711ed9d8aac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:23+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:24Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6f5f694d39da11edad19ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:05+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:05Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:23:05Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:23:05Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_185fd9db4bee42f28c308faf02ae4e44","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:23:05Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_60709a5e64a940ae8d4c38ff3c6a7fc3","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:23:05Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6f6191fd39da11edb4a4ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:05+00:00","verifications":{},"zip":"94107"},"id":"shp_0e3b6361b496483fbc137ae00fad5ca9","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:05Z","height":4,"id":"prcl_9351371b4f994b8b8cb167ea72da4e4e","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:05Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_7a0bbbdbe3894927b77f1e055d099c4f","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_0e3b6361b496483fbc137ae00fad5ca9","updated_at":"2022-09-21T18:23:05Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_0b6775ddd50448d096035d8b94151ed8","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_0e3b6361b496483fbc137ae00fad5ca9","updated_at":"2022-09-21T18:23:05Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2e682aa1ef564f579a471c20297a6543","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_0e3b6361b496483fbc137ae00fad5ca9","updated_at":"2022-09-21T18:23:05Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:05Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_ef5f6ddeacc24005bde3bb62160c2696","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_0e3b6361b496483fbc137ae00fad5ca9","updated_at":"2022-09-21T18:23:05Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6f6191fd39da11edb4a4ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:05+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6f5f694d39da11edad19ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:05+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:05Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"34d2b16efd76e45f4f639200738e9131" + - W/"1c2fb63d78ddaf0f1dc0a3f74a360984" Expires: - "0" Location: - - /api/v2/shipments/shp_b97e1ce42772497dbbeeeb60476167f1 + - /api/v2/shipments/shp_0e3b6361b496483fbc137ae00fad5ca9 Pragma: - no-cache Referrer-Policy: @@ -59,21 +60,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce7ff246ba100702373 + - 8f5eb2cf632b5689ec7d9989000db607 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.221543" + - "0.338644" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentCreateEmptyObjects.yaml b/tests/cassettes/TestShipmentCreateEmptyObjects.yaml index 90611de..e111958 100644 --- a/tests/cassettes/TestShipmentCreateEmptyObjects.yaml +++ b/tests/cassettes/TestShipmentCreateEmptyObjects.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"customs_info":{}}}' + body: '{"shipment":{"customs_info":{},"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -18,29 +19,30 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:24+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1f6fcfb41fe711ed85f6ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:24+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:24Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:24+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1f718f871fe711ed9e02ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:24+00:00","verifications":{},"zip":"94107"},"id":"shp_751c75e264624d72afdfdaa25617a609","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:24Z","height":4,"id":"prcl_b868e0c0c8184fbf8fb92f4f7724ab2b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:24Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_d029d426993e4a63b10d0320fcd0377a","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_751c75e264624d72afdfdaa25617a609","updated_at":"2022-08-19T17:48:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_f28b0c1cd4c14cf48d330a27159ae21a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_751c75e264624d72afdfdaa25617a609","updated_at":"2022-08-19T17:48:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2af669db8b55491fbc0827af3d18d4b3","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_751c75e264624d72afdfdaa25617a609","updated_at":"2022-08-19T17:48:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f35e756b0abb4df8b9f9e2129be7e772","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_751c75e264624d72afdfdaa25617a609","updated_at":"2022-08-19T17:48:24Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:24+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1f718f871fe711ed9e02ac1f6bc7b362","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:24+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:24+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1f6fcfb41fe711ed85f6ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:24+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:24Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6fb18b7739da11edbf67ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:05+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:05Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6fb43d6a39da11edbf69ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:05+00:00","verifications":{},"zip":"94107"},"id":"shp_ce5678342a274410b142c7f3ffd7b13f","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:05Z","height":4,"id":"prcl_1c66607b884b4aa3810aaf4231a81700","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:05Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:06Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_5625d8e43e2a473fade1b18827497d05","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_ce5678342a274410b142c7f3ffd7b13f","updated_at":"2022-09-21T18:23:06Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:06Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bd1dbfc76cf74ee99d9d45fd18383207","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_ce5678342a274410b142c7f3ffd7b13f","updated_at":"2022-09-21T18:23:06Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:06Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_6befd4e2ebba4b2ba10b2f7e8b7090c7","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_ce5678342a274410b142c7f3ffd7b13f","updated_at":"2022-09-21T18:23:06Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:06Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_df20d2a048604d69ab61d85a2fc89448","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_ce5678342a274410b142c7f3ffd7b13f","updated_at":"2022-09-21T18:23:06Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6fb43d6a39da11edbf69ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:05+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:05+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_6fb18b7739da11edbf67ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:05+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:06Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e9fcfbd2d75bb3f4cfc061e8d9123b23" + - W/"1f4359bc78daf80090d6156567ea80da" Expires: - "0" Location: - - /api/v2/shipments/shp_751c75e264624d72afdfdaa25617a609 + - /api/v2/shipments/shp_ce5678342a274410b142c7f3ffd7b13f Pragma: - no-cache Referrer-Policy: @@ -54,21 +56,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce8ff246ba1007023a7 + - 8f5eb2cf632b5689ec7d9989000db646 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.196767" + - "0.629042" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentCreateTaxIdentifier.yaml b/tests/cassettes/TestShipmentCreateTaxIdentifier.yaml index 2bd07aa..38a2450 100644 --- a/tests/cassettes/TestShipmentCreateTaxIdentifier.yaml +++ b/tests/cassettes/TestShipmentCreateTaxIdentifier.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"tax_identifiers":[{"entity":"SENDER","tax_id_type":"IOSS","tax_id":"12345","issuing_country":"GB"}]}}' + body: '{"shipment":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"tax_identifiers":[{"entity":"SENDER","issuing_country":"GB","tax_id":"12345","tax_id_type":"IOSS"}],"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -18,29 +19,30 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:24+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1fa5a82a1fe711ed858aac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:24+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:24Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:24+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1fa781cb1fe711ed858fac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:24+00:00","verifications":{},"zip":"94107"},"id":"shp_931ea01ca1a4444d9e44ab7f0bca5524","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:24Z","height":4,"id":"prcl_661d626e32cd4074b53f6de9d358a1a6","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:24Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_57736a8fee444f34b47532c90896db3c","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_931ea01ca1a4444d9e44ab7f0bca5524","updated_at":"2022-08-19T17:48:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5194d8c4631e43c7aeddb1af3fd5281e","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_931ea01ca1a4444d9e44ab7f0bca5524","updated_at":"2022-08-19T17:48:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_047e93c26b2243b3a64de7b2e4773ce6","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_931ea01ca1a4444d9e44ab7f0bca5524","updated_at":"2022-08-19T17:48:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e310a77db4174f57a6396de09da76acd","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_931ea01ca1a4444d9e44ab7f0bca5524","updated_at":"2022-08-19T17:48:24Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:24+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1fa781cb1fe711ed858fac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:24+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","tax_identifiers":[{"entity":"SENDER","issuing_country":"GB","tax_id":"HIDDEN","tax_id_type":"IOSS"}],"to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:24+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1fa5a82a1fe711ed858aac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:24+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:24Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:06+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_703e97ed39da11edb50dac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:06+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:06Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:06+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7040d2dc39da11edaf8fac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:06+00:00","verifications":{},"zip":"94107"},"id":"shp_8625c311c1674b06ba85b95367c1c937","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:06Z","height":4,"id":"prcl_8b452ba27ccd4fdd9358148c10c2f144","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:06Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:07Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4ae7c07b46194c668ef7aa18ded01efd","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_8625c311c1674b06ba85b95367c1c937","updated_at":"2022-09-21T18:23:07Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:07Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_fc601dafd4ae45e58d25e5c70ce9ca5b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_8625c311c1674b06ba85b95367c1c937","updated_at":"2022-09-21T18:23:07Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:07Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4cb36e7ed2844f3eb3253c518b7710de","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_8625c311c1674b06ba85b95367c1c937","updated_at":"2022-09-21T18:23:07Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:07Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_90e8a0f6375a44cab3370d8d007de87e","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_8625c311c1674b06ba85b95367c1c937","updated_at":"2022-09-21T18:23:07Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:06+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7040d2dc39da11edaf8fac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:06+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","tax_identifiers":[{"entity":"SENDER","issuing_country":"GB","tax_id":"HIDDEN","tax_id_type":"IOSS"}],"to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:06+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_703e97ed39da11edb50dac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:06+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:07Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"66025685486339fc9414836ccdb138cd" + - W/"3037721738d6819b0ea3c5883b22fe8c" Expires: - "0" Location: - - /api/v2/shipments/shp_931ea01ca1a4444d9e44ab7f0bca5524 + - /api/v2/shipments/shp_8625c311c1674b06ba85b95367c1c937 Pragma: - no-cache Referrer-Policy: @@ -54,21 +56,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce8ff246ba1007023d2 + - 8f5eb2cf632b568aec7d9989000db69b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.312594" + - "0.664522" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentCreateWithCarbonOffset.yaml b/tests/cassettes/TestShipmentCreateWithCarbonOffset.yaml index c6af895..155b611 100644 --- a/tests/cassettes/TestShipmentCreateWithCarbonOffset.yaml +++ b/tests/cassettes/TestShipmentCreateWithCarbonOffset.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}},"carbon_offset":true}' + body: '{"carbon_offset":true,"shipment":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -18,29 +19,30 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:25+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1ffecb031fe711ed8ea5ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:25+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:25Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:25+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_200175d81fe711ed868eac1f6b0a0d1e","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:25+00:00","verifications":{},"zip":"94107"},"id":"shp_17df689ed5564f94b6aa605d6a2cef60","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:25Z","height":4,"id":"prcl_5638ba41e189467896e77551ab55b042","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:25Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_825771fd5ecf49a59187a03db0d1f88f","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_17df689ed5564f94b6aa605d6a2cef60","updated_at":"2022-08-19T17:48:25Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_29ff796867b542d8b8ad8340f8b5a218","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_17df689ed5564f94b6aa605d6a2cef60","updated_at":"2022-08-19T17:48:25Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_14632a9f7c164f2d9136b7d032077b6c","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_17df689ed5564f94b6aa605d6a2cef60","updated_at":"2022-08-19T17:48:25Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:25Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_f0617f0beb37438293bf22f0a8ab99d0","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_17df689ed5564f94b6aa605d6a2cef60","updated_at":"2022-08-19T17:48:25Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:25+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_200175d81fe711ed868eac1f6b0a0d1e","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:25+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:25+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_1ffecb031fe711ed8ea5ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:25+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:25Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:07+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_70ddeec739da11edad92ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:07+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:07Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:07+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_70e08dfd39da11edbfc5ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:07+00:00","verifications":{},"zip":"94107"},"id":"shp_ed2555d7d26e4a3286b9dbe7495e1a31","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:07Z","height":4,"id":"prcl_25a26a9df2f34117909372596e10bca0","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:07Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:08Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_9476eabaab764fb6bb3f878d1dd0c64d","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_ed2555d7d26e4a3286b9dbe7495e1a31","updated_at":"2022-09-21T18:23:08Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:08Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_dcb50b61151148b9b1a9b284413a2363","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_ed2555d7d26e4a3286b9dbe7495e1a31","updated_at":"2022-09-21T18:23:08Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:08Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2ab1855085dc47fe82749453b9495b95","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_ed2555d7d26e4a3286b9dbe7495e1a31","updated_at":"2022-09-21T18:23:08Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:08Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0592239d31d740079d7f3157449dcc55","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_ed2555d7d26e4a3286b9dbe7495e1a31","updated_at":"2022-09-21T18:23:08Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:07+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_70e08dfd39da11edbfc5ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:07+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:07+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_70ddeec739da11edad92ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:07+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:08Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"224d505e511e0aacb1b424c97407b6ce" + - W/"675cbc2260b0038b1039e0fabfba4abe" Expires: - "0" Location: - - /api/v2/shipments/shp_17df689ed5564f94b6aa605d6a2cef60 + - /api/v2/shipments/shp_ed2555d7d26e4a3286b9dbe7495e1a31 Pragma: - no-cache Referrer-Policy: @@ -49,26 +51,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcce9ff246ba100702408 + - 8f5eb2cf632b568bec7d9989000db6f3 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.396667" + - "0.771458" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentCreateWithIds.yaml b/tests/cassettes/TestShipmentCreateWithIds.yaml index 17d02ba..041e41e 100644 --- a/tests/cassettes/TestShipmentCreateWithIds.yaml +++ b/tests/cassettes/TestShipmentCreateWithIds.yaml @@ -2,8 +2,9 @@ version: 1 interactions: - request: - body: '{"address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"}}' form: {} headers: Authorization: @@ -15,20 +16,20 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-08-22T18:59:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_86902396224c11edab5fac1f6bc7bdc6","mode":"test","name":"Jack + body: '{"carrier_facility":null,"city":"San Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7171d25339da11edadc1ac1f6bc72124","mode":"test","name":"Jack Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-22T18:59:18+00:00","verifications":{},"zip":"94107"}' + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:08+00:00","verifications":{},"zip":"94107"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"ca5726bdaba1d5916bb86190a6b08d2d" + - W/"7679cae5c6860c11035630b91f87cd8f" Expires: - "0" Location: - - /api/v2/addresses/adr_86902396224c11edab5fac1f6bc7bdc6 + - /api/v2/addresses/adr_7171d25339da11edadc1ac1f6bc72124 Pragma: - no-cache Referrer-Policy: @@ -42,28 +43,29 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 15e0297d6303d206e2b972750010a177 + - 8f5eb2cf632b568cec7d9989000db74a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb1nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.031040" + - "0.035681" X-Version-Label: - - easypost-202208221725-fc32be9ffa-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"address":{"street1":"179 N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"}}' + body: '{"address":{"city":"Redondo Beach","country":"US","email":"REDACTED","name":"Elizabeth + Swan","phone":"REDACTED","state":"CA","street1":"179 N Harbor Dr","zip":"90277"}}' form: {} headers: Authorization: @@ -75,20 +77,20 @@ interactions: url: https://api.easypost.com/v2/addresses method: POST response: - body: '{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-08-22T18:59:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_869af82f224c11eda05cac1f6b0a0d1e","mode":"test","name":"Elizabeth + body: '{"carrier_facility":null,"city":"Redondo Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_71966f2639da11edb56fac1f6b0a0d1e","mode":"test","name":"Elizabeth Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-22T18:59:18+00:00","verifications":{},"zip":"90277"}' + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:08+00:00","verifications":{},"zip":"90277"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"33fac2726b21553cdfe3771f85e03eab" + - W/"9bd2535c79fadb5c1d010a19e047832b" Expires: - "0" Location: - - /api/v2/addresses/adr_869af82f224c11eda05cac1f6b0a0d1e + - /api/v2/addresses/adr_71966f2639da11edb56fac1f6b0a0d1e Pragma: - no-cache Referrer-Policy: @@ -102,27 +104,28 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 15e0297d6303d206e2b972750010a17b + - 8f5eb2cf632b568cec7d9989000db75d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb1nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.037122" + - "0.033986" X-Version-Label: - - easypost-202208221725-fc32be9ffa-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}' + body: '{"parcel":{"height":4,"length":10,"weight":15.4,"width":8}}' form: {} headers: Authorization: @@ -134,18 +137,18 @@ interactions: url: https://api.easypost.com/v2/parcels method: POST response: - body: '{"id":"prcl_1bc0b2d5725449ebb516a9585793e340","object":"Parcel","created_at":"2022-08-22T18:59:19Z","updated_at":"2022-08-22T18:59:19Z","length":10.0,"width":8.0,"height":4.0,"predefined_package":null,"weight":15.4,"mode":"test"}' + body: '{"created_at":"2022-09-21T18:23:09Z","height":4,"id":"prcl_d9f3aa2725034acaa71fb4001d508c66","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:09Z","weight":15.4,"width":8}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"229129ee7ff3c5f4cce59e8b9a8e1af9" + - W/"896d1fd56635f76a66261f53bbce7b98" Expires: - "0" Location: - - /api/v2/parcels.prcl_1bc0b2d5725449ebb516a9585793e340 + - /api/v2/parcels.prcl_d9f3aa2725034acaa71fb4001d508c66 Pragma: - no-cache Referrer-Policy: @@ -159,27 +162,28 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 15e0297d6303d206e2b972750010a181 + - 8f5eb2cf632b568dec7d9989000db781 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb1nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.023738" + - "0.030702" X-Version-Label: - - easypost-202208221725-fc32be9ffa-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created code: 201 duration: "" - request: - body: '{"shipment":{"to_address":{"id":"adr_869af82f224c11eda05cac1f6b0a0d1e"},"from_address":{"id":"adr_86902396224c11edab5fac1f6bc7bdc6"},"parcel":{"id":"prcl_1bc0b2d5725449ebb516a9585793e340"}}}' + body: '{"shipment":{"from_address":{"id":"adr_7171d25339da11edadc1ac1f6bc72124"},"parcel":{"id":"prcl_d9f3aa2725034acaa71fb4001d508c66"},"to_address":{"id":"adr_71966f2639da11edb56fac1f6b0a0d1e"}}}' form: {} headers: Authorization: @@ -192,29 +196,30 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-22T18:59:18+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_869af82f224c11eda05cac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-22T18:59:18+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-22T18:59:19Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-22T18:59:18+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_86902396224c11edab5fac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-22T18:59:18+00:00","verifications":{},"zip":"94107"},"id":"shp_cd15c9bb5c7a4621bca5c37e5eab76d2","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-22T18:59:19Z","height":4,"id":"prcl_1bc0b2d5725449ebb516a9585793e340","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-22T18:59:19Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-22T18:59:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_ef363e8546064c058e241e57320c40a3","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_cd15c9bb5c7a4621bca5c37e5eab76d2","updated_at":"2022-08-22T18:59:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-22T18:59:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d97b6b98af974737b0e999367c6274de","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_cd15c9bb5c7a4621bca5c37e5eab76d2","updated_at":"2022-08-22T18:59:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-22T18:59:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3510f68110904fdfb27e1ff66d2d1930","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_cd15c9bb5c7a4621bca5c37e5eab76d2","updated_at":"2022-08-22T18:59:19Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-22T18:59:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_58a0dd130d5340b1a8227e6375981743","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_cd15c9bb5c7a4621bca5c37e5eab76d2","updated_at":"2022-08-22T18:59:19Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-22T18:59:18+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_86902396224c11edab5fac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-22T18:59:18+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-22T18:59:18+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_869af82f224c11eda05cac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-22T18:59:18+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-22T18:59:19Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_71966f2639da11edb56fac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:08+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:09Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7171d25339da11edadc1ac1f6bc72124","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:08+00:00","verifications":{},"zip":"94107"},"id":"shp_63b061cc571c4c41b39ea4f73ea6d6a7","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:09Z","height":4,"id":"prcl_d9f3aa2725034acaa71fb4001d508c66","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:09Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:09Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_f9238de26ba849829494bce2eeb824f8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_63b061cc571c4c41b39ea4f73ea6d6a7","updated_at":"2022-09-21T18:23:09Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_698496edcb554f26a248884b81166198","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_63b061cc571c4c41b39ea4f73ea6d6a7","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_16a525dfccc745c3a08cb84ca15c7813","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_63b061cc571c4c41b39ea4f73ea6d6a7","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_9adc8ad5ab264b5c92dc56508989351e","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_63b061cc571c4c41b39ea4f73ea6d6a7","updated_at":"2022-09-21T18:23:10Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7171d25339da11edadc1ac1f6bc72124","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:08+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:08+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_71966f2639da11edb56fac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:08+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:10Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"272e600ee0d53fa74ab00f54de84f2bf" + - W/"9095482506cb0036d69aece3781705cd" Expires: - "0" Location: - - /api/v2/shipments/shp_cd15c9bb5c7a4621bca5c37e5eab76d2 + - /api/v2/shipments/shp_63b061cc571c4c41b39ea4f73ea6d6a7 Pragma: - no-cache Referrer-Policy: @@ -223,25 +228,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 15e0297d6303d207e2b972750010a183 + - 8f5eb2cf632b568dec7d9989000db794 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - extlb1nuq 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.222121" + - "0.638193" X-Version-Label: - - easypost-202208221725-fc32be9ffa-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentGenerateForm.yaml b/tests/cassettes/TestShipmentGenerateForm.yaml index 8c80fa2..5c8ad01 100644 --- a/tests/cassettes/TestShipmentGenerateForm.yaml +++ b/tests/cassettes/TestShipmentGenerateForm.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_21174f611fe711eda01fac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:27Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_211946f71fe711ed87eeac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{},"zip":"90277"},"id":"shp_c44078006ce24f0caa9b32ebcca832bf","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:27Z","height":4,"id":"prcl_2d8d38fafe124e0d9d0e5d49247600b8","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:27Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:27Z","date_advance":0,"id":"pl_a726bb1e275d46048364effca0027552","integrated_form":"none","label_date":"2022-08-19T17:48:27Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/ca42e25c245f43a787b8d9f74bab6c7c.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:27Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d1a0dee4efd64a0698fe62f1ea8e02dc","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_e9fec9cac25f4c7fa0d8a3ac82af1a0c","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_bd292454357642d2af24ba73187e4dab","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_979fe65842cc493480d9a8d5cf19fdfd","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_211946f71fe711ed87eeac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_979fe65842cc493480d9a8d5cf19fdfd","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_21174f611fe711eda01fac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:28Z","est_delivery_date":null,"fees":[],"id":"trk_ad5a521470ce45f1b35c90fc91f89d53","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2FkNWE1MjE0NzBjZTQ1ZjFiMzVjOTBmYzkxZjg5ZDUz","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884087","tracking_details":[],"updated_at":"2022-08-19T17:48:28Z","weight":null},"tracking_code":"9400100109361133884087","updated_at":"2022-08-19T17:48:27Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_725ffe7b39da11edb5cfac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:10Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7261cca039da11edb5d0ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{},"zip":"90277"},"id":"shp_1dcd383d0fda43db995935d3f467c511","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:10Z","height":4,"id":"prcl_61e95b9448574baead35463ef0c4a5b5","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:10Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:10Z","date_advance":0,"id":"pl_e9ba6d690a4548a082a747333fc0803e","integrated_form":"none","label_date":"2022-09-21T18:23:10Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/64558291eccb46afb83a5b1eac9a12dc.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:11Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_f09db1884fb94b19a34680e673d91441","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_60b790bee5544f259109887939d3f051","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_03b26f9da5c54495b489d57f089754f8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_d1ae332e71b240fc9fe8da006fc1266b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7261cca039da11edb5d0ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_03b26f9da5c54495b489d57f089754f8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_725ffe7b39da11edb5cfac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:23:11Z","est_delivery_date":null,"fees":[],"id":"trk_d56e19ef0e144751973d6368af4ffa90","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Q1NmUxOWVmMGUxNDQ3NTE5NzNkNjM2OGFmNGZmYTkw","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710336","tracking_details":[],"updated_at":"2022-09-21T18:23:11Z","weight":null},"tracking_code":"9400100109361138710336","updated_at":"2022-09-21T18:23:11Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"a4610cae3877993ce2dde28fc00db3c4" + - W/"178a34a009dcbef1aa01783720ae732f" Expires: - "0" Location: - - /api/v2/shipments/shp_c44078006ce24f0caa9b32ebcca832bf + - /api/v2/shipments/shp_1dcd383d0fda43db995935d3f467c511 Pragma: - no-cache Referrer-Policy: @@ -49,26 +50,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccebff246ba1007024d2 + - 8f5eb2cf632b568eec7d9989000db7ec X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.948776" + - "0.922855" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -84,38 +87,38 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_c44078006ce24f0caa9b32ebcca832bf/forms + url: https://api.easypost.com/v2/shipments/shp_1dcd383d0fda43db995935d3f467c511/forms method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_21174f611fe711eda01fac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:27Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[{"created_at":"2022-08-19T17:48:28Z","form_type":"return_packing_slip","form_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20220819/31e177a417354d118012477d7f018075.pdf","id":"form_ff354c27c9934b88933a317c3ad9c8b2","mode":"test","object":"Form","submitted_electronically":null,"updated_at":"2022-08-19T17:48:28Z"}],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_211946f71fe711ed87eeac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{},"zip":"90277"},"id":"shp_c44078006ce24f0caa9b32ebcca832bf","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:27Z","height":4,"id":"prcl_2d8d38fafe124e0d9d0e5d49247600b8","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:27Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:27Z","date_advance":0,"id":"pl_a726bb1e275d46048364effca0027552","integrated_form":"none","label_date":"2022-08-19T17:48:27Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/ca42e25c245f43a787b8d9f74bab6c7c.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:27Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d1a0dee4efd64a0698fe62f1ea8e02dc","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_e9fec9cac25f4c7fa0d8a3ac82af1a0c","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_bd292454357642d2af24ba73187e4dab","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_979fe65842cc493480d9a8d5cf19fdfd","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_211946f71fe711ed87eeac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_979fe65842cc493480d9a8d5cf19fdfd","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_21174f611fe711eda01fac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_725ffe7b39da11edb5cfac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:10Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[{"created_at":"2022-09-21T18:23:11Z","form_type":"return_packing_slip","form_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20220921/5aae31b52a1749b19a828798acb792ca.pdf","id":"form_e05f4876d5a043fd94e90733976647de","mode":"test","object":"Form","submitted_electronically":null,"updated_at":"2022-09-21T18:23:11Z"}],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7261cca039da11edb5d0ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{},"zip":"90277"},"id":"shp_1dcd383d0fda43db995935d3f467c511","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:10Z","height":4,"id":"prcl_61e95b9448574baead35463ef0c4a5b5","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:10Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:10Z","date_advance":0,"id":"pl_e9ba6d690a4548a082a747333fc0803e","integrated_form":"none","label_date":"2022-09-21T18:23:10Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/64558291eccb46afb83a5b1eac9a12dc.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:11Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_f09db1884fb94b19a34680e673d91441","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_60b790bee5544f259109887939d3f051","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_03b26f9da5c54495b489d57f089754f8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_d1ae332e71b240fc9fe8da006fc1266b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7261cca039da11edb5d0ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_03b26f9da5c54495b489d57f089754f8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_725ffe7b39da11edb5cfac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:28Z","est_delivery_date":"2022-08-19T17:48:28Z","fees":[],"id":"trk_ad5a521470ce45f1b35c90fc91f89d53","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2FkNWE1MjE0NzBjZTQ1ZjFiMzVjOTBmYzkxZjg5ZDUz","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133884087","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:28Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:28Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:28Z","weight":null},"tracking_code":"9400100109361133884087","updated_at":"2022-08-19T17:48:27Z","usps_zone":4}' + Package Service"},"created_at":"2022-09-21T18:23:11Z","est_delivery_date":"2022-09-21T18:23:11Z","fees":[],"id":"trk_d56e19ef0e144751973d6368af4ffa90","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Q1NmUxOWVmMGUxNDQ3NTE5NzNkNjM2OGFmNGZmYTkw","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710336","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:11Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:11Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:11Z","weight":null},"tracking_code":"9400100109361138710336","updated_at":"2022-09-21T18:23:11Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e21356944fc97a5536b28d508e0f6c39" + - W/"d497e68dd69ee5667cb832a2b5faf864" Expires: - "0" Location: - - /api/v2/shipments/shp_c44078006ce24f0caa9b32ebcca832bf/forms/return_packing_slip + - /api/v2/shipments/shp_1dcd383d0fda43db995935d3f467c511/forms/return_packing_slip Pragma: - no-cache Referrer-Policy: @@ -129,21 +132,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccecff246ba10070255d + - 8f5eb2cf632b568fec7d9989000db855 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.605163" + - "0.567133" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -160,38 +163,38 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_c44078006ce24f0caa9b32ebcca832bf/forms + url: https://api.easypost.com/v2/shipments/shp_1dcd383d0fda43db995935d3f467c511/forms method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_21174f611fe711eda01fac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:27Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[{"created_at":"2022-08-19T17:48:28Z","form_type":"return_packing_slip","form_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20220819/31e177a417354d118012477d7f018075.pdf","id":"form_ff354c27c9934b88933a317c3ad9c8b2","mode":"test","object":"Form","submitted_electronically":null,"updated_at":"2022-08-19T17:48:28Z"}],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_211946f71fe711ed87eeac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{},"zip":"90277"},"id":"shp_c44078006ce24f0caa9b32ebcca832bf","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:27Z","height":4,"id":"prcl_2d8d38fafe124e0d9d0e5d49247600b8","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:27Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:27Z","date_advance":0,"id":"pl_a726bb1e275d46048364effca0027552","integrated_form":"none","label_date":"2022-08-19T17:48:27Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/ca42e25c245f43a787b8d9f74bab6c7c.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:27Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d1a0dee4efd64a0698fe62f1ea8e02dc","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_e9fec9cac25f4c7fa0d8a3ac82af1a0c","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_bd292454357642d2af24ba73187e4dab","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_979fe65842cc493480d9a8d5cf19fdfd","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_211946f71fe711ed87eeac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:27Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_979fe65842cc493480d9a8d5cf19fdfd","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","updated_at":"2022-08-19T17:48:27Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:27+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_21174f611fe711eda01fac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:27+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_725ffe7b39da11edb5cfac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:10Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[{"created_at":"2022-09-21T18:23:11Z","form_type":"return_packing_slip","form_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20220921/5aae31b52a1749b19a828798acb792ca.pdf","id":"form_e05f4876d5a043fd94e90733976647de","mode":"test","object":"Form","submitted_electronically":null,"updated_at":"2022-09-21T18:23:11Z"}],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7261cca039da11edb5d0ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{},"zip":"90277"},"id":"shp_1dcd383d0fda43db995935d3f467c511","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:10Z","height":4,"id":"prcl_61e95b9448574baead35463ef0c4a5b5","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:10Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:10Z","date_advance":0,"id":"pl_e9ba6d690a4548a082a747333fc0803e","integrated_form":"none","label_date":"2022-09-21T18:23:10Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/64558291eccb46afb83a5b1eac9a12dc.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:11Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_f09db1884fb94b19a34680e673d91441","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_60b790bee5544f259109887939d3f051","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_03b26f9da5c54495b489d57f089754f8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_d1ae332e71b240fc9fe8da006fc1266b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7261cca039da11edb5d0ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:10Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_03b26f9da5c54495b489d57f089754f8","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","updated_at":"2022-09-21T18:23:10Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:10+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_725ffe7b39da11edb5cfac1f6b0a0d1e","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:10+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:28Z","est_delivery_date":"2022-08-19T17:48:28Z","fees":[],"id":"trk_ad5a521470ce45f1b35c90fc91f89d53","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2FkNWE1MjE0NzBjZTQ1ZjFiMzVjOTBmYzkxZjg5ZDUz","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133884087","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:28Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:28Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:28Z","weight":null},"tracking_code":"9400100109361133884087","updated_at":"2022-08-19T17:48:27Z","usps_zone":4}' + Package Service"},"created_at":"2022-09-21T18:23:11Z","est_delivery_date":"2022-09-21T18:23:11Z","fees":[],"id":"trk_d56e19ef0e144751973d6368af4ffa90","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Q1NmUxOWVmMGUxNDQ3NTE5NzNkNjM2OGFmNGZmYTkw","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710336","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:11Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:11Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:11Z","weight":null},"tracking_code":"9400100109361138710336","updated_at":"2022-09-21T18:23:11Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"e21356944fc97a5536b28d508e0f6c39" + - W/"d497e68dd69ee5667cb832a2b5faf864" Expires: - "0" Location: - - /api/v2/shipments/shp_c44078006ce24f0caa9b32ebcca832bf/forms/return_packing_slip + - /api/v2/shipments/shp_1dcd383d0fda43db995935d3f467c511/forms/return_packing_slip Pragma: - no-cache Referrer-Policy: @@ -205,7 +208,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccecff246ba1007025cd + - 8f5eb2cf632b5690ec7d9989000db89f X-Frame-Options: - SAMEORIGIN X-Node: @@ -213,13 +216,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.238905" + - "0.111950" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentInstanceLowestSmartRate.yaml b/tests/cassettes/TestShipmentInstanceLowestSmartRate.yaml index 1d8c84a..1836db8 100644 --- a/tests/cassettes/TestShipmentInstanceLowestSmartRate.yaml +++ b/tests/cassettes/TestShipmentInstanceLowestSmartRate.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}}' + body: '{"shipment":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -18,29 +19,30 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:29+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_227d1f531fe711ed90c3ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:29+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:29Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:29+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_227f4cd01fe711ed90c4ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:29+00:00","verifications":{},"zip":"94107"},"id":"shp_1500e776a09b4a0c8674918d6c63e186","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:29Z","height":4,"id":"prcl_6e5940c785154e5ebf54b4add712204f","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:29Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3334af027db74d59956590422d6d97ea","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","updated_at":"2022-08-19T17:48:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_2afe85a2a4a349c3b3f151ea03dc74bd","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","updated_at":"2022-08-19T17:48:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2506cb618a6d4b18a99244f2ca466700","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","updated_at":"2022-08-19T17:48:29Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_27e8d283982d406ea31c537d90aefee6","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","updated_at":"2022-08-19T17:48:29Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:29+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_227f4cd01fe711ed90c4ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:29+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:29+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_227d1f531fe711ed90c3ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:29+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:29Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_73b35f6d39da11ed80fbac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:12+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:12Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_73b5d54e39da11ed80fcac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:12+00:00","verifications":{},"zip":"94107"},"id":"shp_b23c641bfd524bdb91b848a29767b2e6","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:12Z","height":4,"id":"prcl_df303f99ab1840d68d86fcdff065a3fb","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:12Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4067f69757dd46ddbe9d23af632b15e5","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","updated_at":"2022-09-21T18:23:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0500d6974ee54418bf41fadddd75ff43","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","updated_at":"2022-09-21T18:23:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_8c3f803feed944179838352ab1237402","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","updated_at":"2022-09-21T18:23:13Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_d91b812585ce43f087992905c052bebb","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","updated_at":"2022-09-21T18:23:13Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_73b5d54e39da11ed80fcac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:12+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:12+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_73b35f6d39da11ed80fbac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:12+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:13Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"540f8805974a1d7bf3b7ff6cc9b61680" + - W/"3eb103eee091bdb28cc3cc479e576d6d" Expires: - "0" Location: - - /api/v2/shipments/shp_1500e776a09b4a0c8674918d6c63e186 + - /api/v2/shipments/shp_b23c641bfd524bdb91b848a29767b2e6 Pragma: - no-cache Referrer-Policy: @@ -54,21 +56,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccedff246ba1007025f0 + - 8f5eb2cf632b5690ec7d9989000db8c2 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.205372" + - "0.635468" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -82,17 +84,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_1500e776a09b4a0c8674918d6c63e186/smartrate + url: https://api.easypost.com/v2/shipments/shp_b23c641bfd524bdb91b848a29767b2e6/smartrate method: GET response: - body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3334af027db74d59956590422d6d97ea","list_currency":"USD","list_rate":5.57,"mode":"test","object":"Rate","rate":5.57,"retail_currency":"USD","retail_rate":5.57,"service":"First","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":5,"percentile_99":9},"updated_at":"2022-08-19T17:48:29Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_2afe85a2a4a349c3b3f151ea03dc74bd","list_currency":"USD","list_rate":7.75,"mode":"test","object":"Rate","rate":7.75,"retail_currency":"USD","retail_rate":7.75,"service":"ParcelSelect","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":4,"percentile_97":5,"percentile_99":9},"updated_at":"2022-08-19T17:48:29Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2506cb618a6d4b18a99244f2ca466700","list_currency":"USD","list_rate":7.9,"mode":"test","object":"Rate","rate":7.9,"retail_currency":"USD","retail_rate":9.45,"service":"Priority","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-08-19T17:48:29Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_27e8d283982d406ea31c537d90aefee6","list_currency":"USD","list_rate":29.5,"mode":"test","object":"Rate","rate":29.5,"retail_currency":"USD","retail_rate":33.55,"service":"Express","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-08-19T17:48:29Z"}]}' + body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4067f69757dd46ddbe9d23af632b15e5","list_currency":"USD","list_rate":7.9,"mode":"test","object":"Rate","rate":7.9,"retail_currency":"USD","retail_rate":9.45,"service":"Priority","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":6},"updated_at":"2022-09-21T18:23:13Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0500d6974ee54418bf41fadddd75ff43","list_currency":"USD","list_rate":5.57,"mode":"test","object":"Rate","rate":5.57,"retail_currency":"USD","retail_rate":5.57,"service":"First","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":4,"percentile_99":6},"updated_at":"2022-09-21T18:23:13Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_8c3f803feed944179838352ab1237402","list_currency":"USD","list_rate":29.5,"mode":"test","object":"Rate","rate":29.5,"retail_currency":"USD","retail_rate":33.55,"service":"Express","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-09-21T18:23:13Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_d91b812585ce43f087992905c052bebb","list_currency":"USD","list_rate":7.75,"mode":"test","object":"Rate","rate":7.75,"retail_currency":"USD","retail_rate":7.75,"service":"ParcelSelect","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":5,"percentile_97":6,"percentile_99":10},"updated_at":"2022-09-21T18:23:13Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"d74d094e2e369ab3e76fc9676a8783c7" + - W/"2fd4a6862169978d945e5c308615d0dc" Expires: - "0" Pragma: @@ -108,21 +110,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccedff246ba10070261e + - 8f5eb2cf632b5691ec7d9989000db918 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.091101" + - "0.165213" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -136,17 +138,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_1500e776a09b4a0c8674918d6c63e186/smartrate + url: https://api.easypost.com/v2/shipments/shp_b23c641bfd524bdb91b848a29767b2e6/smartrate method: GET response: - body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3334af027db74d59956590422d6d97ea","list_currency":"USD","list_rate":5.57,"mode":"test","object":"Rate","rate":5.57,"retail_currency":"USD","retail_rate":5.57,"service":"First","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":5,"percentile_99":9},"updated_at":"2022-08-19T17:48:29Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_2afe85a2a4a349c3b3f151ea03dc74bd","list_currency":"USD","list_rate":7.75,"mode":"test","object":"Rate","rate":7.75,"retail_currency":"USD","retail_rate":7.75,"service":"ParcelSelect","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":4,"percentile_97":5,"percentile_99":9},"updated_at":"2022-08-19T17:48:29Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2506cb618a6d4b18a99244f2ca466700","list_currency":"USD","list_rate":7.9,"mode":"test","object":"Rate","rate":7.9,"retail_currency":"USD","retail_rate":9.45,"service":"Priority","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-08-19T17:48:29Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_27e8d283982d406ea31c537d90aefee6","list_currency":"USD","list_rate":29.5,"mode":"test","object":"Rate","rate":29.5,"retail_currency":"USD","retail_rate":33.55,"service":"Express","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-08-19T17:48:29Z"}]}' + body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4067f69757dd46ddbe9d23af632b15e5","list_currency":"USD","list_rate":7.9,"mode":"test","object":"Rate","rate":7.9,"retail_currency":"USD","retail_rate":9.45,"service":"Priority","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":6},"updated_at":"2022-09-21T18:23:13Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0500d6974ee54418bf41fadddd75ff43","list_currency":"USD","list_rate":5.57,"mode":"test","object":"Rate","rate":5.57,"retail_currency":"USD","retail_rate":5.57,"service":"First","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":4,"percentile_99":6},"updated_at":"2022-09-21T18:23:13Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_8c3f803feed944179838352ab1237402","list_currency":"USD","list_rate":29.5,"mode":"test","object":"Rate","rate":29.5,"retail_currency":"USD","retail_rate":33.55,"service":"Express","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-09-21T18:23:13Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_d91b812585ce43f087992905c052bebb","list_currency":"USD","list_rate":7.75,"mode":"test","object":"Rate","rate":7.75,"retail_currency":"USD","retail_rate":7.75,"service":"ParcelSelect","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":5,"percentile_97":6,"percentile_99":10},"updated_at":"2022-09-21T18:23:13Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"d74d094e2e369ab3e76fc9676a8783c7" + - W/"2fd4a6862169978d945e5c308615d0dc" Expires: - "0" Pragma: @@ -162,21 +164,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcceeff246ba100702630 + - 8f5eb2cf632b5691ec7d9989000db934 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.090013" + - "0.104283" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -190,17 +192,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_1500e776a09b4a0c8674918d6c63e186/smartrate + url: https://api.easypost.com/v2/shipments/shp_b23c641bfd524bdb91b848a29767b2e6/smartrate method: GET response: - body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3334af027db74d59956590422d6d97ea","list_currency":"USD","list_rate":5.57,"mode":"test","object":"Rate","rate":5.57,"retail_currency":"USD","retail_rate":5.57,"service":"First","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":5,"percentile_99":9},"updated_at":"2022-08-19T17:48:29Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_2afe85a2a4a349c3b3f151ea03dc74bd","list_currency":"USD","list_rate":7.75,"mode":"test","object":"Rate","rate":7.75,"retail_currency":"USD","retail_rate":7.75,"service":"ParcelSelect","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":4,"percentile_97":5,"percentile_99":9},"updated_at":"2022-08-19T17:48:29Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2506cb618a6d4b18a99244f2ca466700","list_currency":"USD","list_rate":7.9,"mode":"test","object":"Rate","rate":7.9,"retail_currency":"USD","retail_rate":9.45,"service":"Priority","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-08-19T17:48:29Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:29Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_27e8d283982d406ea31c537d90aefee6","list_currency":"USD","list_rate":29.5,"mode":"test","object":"Rate","rate":29.5,"retail_currency":"USD","retail_rate":33.55,"service":"Express","shipment_id":"shp_1500e776a09b4a0c8674918d6c63e186","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-08-19T17:48:29Z"}]}' + body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_4067f69757dd46ddbe9d23af632b15e5","list_currency":"USD","list_rate":7.9,"mode":"test","object":"Rate","rate":7.9,"retail_currency":"USD","retail_rate":9.45,"service":"Priority","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":6},"updated_at":"2022-09-21T18:23:13Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0500d6974ee54418bf41fadddd75ff43","list_currency":"USD","list_rate":5.57,"mode":"test","object":"Rate","rate":5.57,"retail_currency":"USD","retail_rate":5.57,"service":"First","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":4,"percentile_99":6},"updated_at":"2022-09-21T18:23:13Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_8c3f803feed944179838352ab1237402","list_currency":"USD","list_rate":29.5,"mode":"test","object":"Rate","rate":29.5,"retail_currency":"USD","retail_rate":33.55,"service":"Express","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-09-21T18:23:13Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:13Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_d91b812585ce43f087992905c052bebb","list_currency":"USD","list_rate":7.75,"mode":"test","object":"Rate","rate":7.75,"retail_currency":"USD","retail_rate":7.75,"service":"ParcelSelect","shipment_id":"shp_b23c641bfd524bdb91b848a29767b2e6","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":5,"percentile_97":6,"percentile_99":10},"updated_at":"2022-09-21T18:23:13Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"d74d094e2e369ab3e76fc9676a8783c7" + - W/"2fd4a6862169978d945e5c308615d0dc" Expires: - "0" Pragma: @@ -216,21 +218,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcceeff246ba100702654 + - 8f5eb2cf632b5691ec7d9989000db94a X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.071213" + - "0.086833" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentInsure.yaml b/tests/cassettes/TestShipmentInsure.yaml index 206c604..a23da80 100644 --- a/tests/cassettes/TestShipmentInsure.yaml +++ b/tests/cassettes/TestShipmentInsure.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"insurance":"0"}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"insurance":"0","parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:30+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_23384f761fe711ed8a7aac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:30+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:30Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:30+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_233a36281fe711ed8a1bac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:30+00:00","verifications":{},"zip":"90277"},"id":"shp_8725e2511bcd46e8b429f6e1673a010b","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:30Z","height":4,"id":"prcl_f1cff6917ccd4faba0d44178797fd2cf","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:30Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:31Z","date_advance":0,"id":"pl_f70174490eb741c9935cc2be95f85d59","integrated_form":"none","label_date":"2022-08-19T17:48:31Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/c3fbb1c267c64f6cb12a2a5277464d86.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:31Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_21614bdacdab4220a19b25165deee746","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","updated_at":"2022-08-19T17:48:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e60f70ef70f1409a9a58a62f723d0700","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","updated_at":"2022-08-19T17:48:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_1d7b260f56fc4a9ea2be966a11933fef","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","updated_at":"2022-08-19T17:48:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4ddb55c78a0a4cf48dbfae6d7c59a88e","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","updated_at":"2022-08-19T17:48:30Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:30+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_233a36281fe711ed8a1bac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:30+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4ddb55c78a0a4cf48dbfae6d7c59a88e","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","updated_at":"2022-08-19T17:48:31Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:30+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_23384f761fe711ed8a7aac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:30+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:31Z","est_delivery_date":null,"fees":[],"id":"trk_dfb38ea1f19646588ed3dd3e8dda66ba","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2RmYjM4ZWExZjE5NjQ2NTg4ZWQzZGQzZThkZGE2NmJh","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884100","tracking_details":[],"updated_at":"2022-08-19T17:48:31Z","weight":null},"tracking_code":"9400100109361133884100","updated_at":"2022-08-19T17:48:31Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_74d2b8d339da11ed8172ac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:14+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:14Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_74d4e94139da11ed8175ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:14+00:00","verifications":{},"zip":"90277"},"id":"shp_164e641bcf834750a6bf62409f447c96","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:14Z","height":4,"id":"prcl_e0ef77730f30413d8ff2495383bdec6b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:14Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:14Z","date_advance":0,"id":"pl_8a628b48b6b14f7180c24afdd8c1e137","integrated_form":"none","label_date":"2022-09-21T18:23:14Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/9706d2c254dd4e5cb618bbaee90fb52c.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:15Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c16212c0033243baa44571835aed49c6","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","updated_at":"2022-09-21T18:23:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_fe72e28f33ae4694980f2b0e6217405e","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","updated_at":"2022-09-21T18:23:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b300b3723f4e4f96b5e426860ba7f68a","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","updated_at":"2022-09-21T18:23:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c2c92ead805450594172d64d7d5cc20","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","updated_at":"2022-09-21T18:23:14Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_74d4e94139da11ed8175ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:14+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c2c92ead805450594172d64d7d5cc20","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","updated_at":"2022-09-21T18:23:14Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_74d2b8d339da11ed8172ac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:14+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:23:15Z","est_delivery_date":null,"fees":[],"id":"trk_bcadf76c103d4431bb4609eab8c5c833","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2JjYWRmNzZjMTAzZDQ0MzFiYjQ2MDllYWI4YzVjODMz","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710367","tracking_details":[],"updated_at":"2022-09-21T18:23:15Z","weight":null},"tracking_code":"9400100109361138710367","updated_at":"2022-09-21T18:23:15Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"db549ab2a8e941a819de2af1e11e84e4" + - W/"352378063f91bd64bdb73c521f9e26fa" Expires: - "0" Location: - - /api/v2/shipments/shp_8725e2511bcd46e8b429f6e1673a010b + - /api/v2/shipments/shp_164e641bcf834750a6bf62409f447c96 Pragma: - no-cache Referrer-Policy: @@ -54,21 +55,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcceeff246ba10070267e + - 8f5eb2cf632b5692ec7d9989000db96d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.982743" + - "1.023139" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -86,34 +87,34 @@ interactions: - application/x-www-form-urlencoded User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_8725e2511bcd46e8b429f6e1673a010b/insure + url: https://api.easypost.com/v2/shipments/shp_164e641bcf834750a6bf62409f447c96/insure method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:30+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_23384f761fe711ed8a7aac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:30+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:30Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:30+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_233a36281fe711ed8a1bac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:30+00:00","verifications":{},"zip":"90277"},"id":"shp_8725e2511bcd46e8b429f6e1673a010b","insurance":"100.00","is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:30Z","height":4,"id":"prcl_f1cff6917ccd4faba0d44178797fd2cf","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:30Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:31Z","date_advance":0,"id":"pl_f70174490eb741c9935cc2be95f85d59","integrated_form":"none","label_date":"2022-08-19T17:48:31Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/c3fbb1c267c64f6cb12a2a5277464d86.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:31Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_21614bdacdab4220a19b25165deee746","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","updated_at":"2022-08-19T17:48:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e60f70ef70f1409a9a58a62f723d0700","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","updated_at":"2022-08-19T17:48:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_1d7b260f56fc4a9ea2be966a11933fef","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","updated_at":"2022-08-19T17:48:30Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:30Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4ddb55c78a0a4cf48dbfae6d7c59a88e","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","updated_at":"2022-08-19T17:48:30Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:30+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_233a36281fe711ed8a1bac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:30+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:31Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_4ddb55c78a0a4cf48dbfae6d7c59a88e","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","updated_at":"2022-08-19T17:48:31Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:30+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_23384f761fe711ed8a7aac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:30+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_74d2b8d339da11ed8172ac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:14+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:14Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"1.00000","charged":true,"object":"Fee","refunded":false,"type":"InsuranceFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_74d4e94139da11ed8175ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:14+00:00","verifications":{},"zip":"90277"},"id":"shp_164e641bcf834750a6bf62409f447c96","insurance":"100.00","is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:14Z","height":4,"id":"prcl_e0ef77730f30413d8ff2495383bdec6b","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:14Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:14Z","date_advance":0,"id":"pl_8a628b48b6b14f7180c24afdd8c1e137","integrated_form":"none","label_date":"2022-09-21T18:23:14Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/9706d2c254dd4e5cb618bbaee90fb52c.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:15Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c16212c0033243baa44571835aed49c6","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","updated_at":"2022-09-21T18:23:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_fe72e28f33ae4694980f2b0e6217405e","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","updated_at":"2022-09-21T18:23:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b300b3723f4e4f96b5e426860ba7f68a","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","updated_at":"2022-09-21T18:23:14Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c2c92ead805450594172d64d7d5cc20","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","updated_at":"2022-09-21T18:23:14Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_74d4e94139da11ed8175ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:14+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:14Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0c2c92ead805450594172d64d7d5cc20","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","updated_at":"2022-09-21T18:23:14Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:14+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_74d2b8d339da11ed8172ac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:14+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:31Z","est_delivery_date":"2022-08-19T17:48:31Z","fees":[],"id":"trk_dfb38ea1f19646588ed3dd3e8dda66ba","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2RmYjM4ZWExZjE5NjQ2NTg4ZWQzZGQzZThkZGE2NmJh","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133884100","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:31Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:31Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:31Z","weight":null},"tracking_code":"9400100109361133884100","updated_at":"2022-08-19T17:48:31Z","usps_zone":4}' + Package Service"},"created_at":"2022-09-21T18:23:15Z","est_delivery_date":"2022-09-21T18:23:15Z","fees":[],"id":"trk_bcadf76c103d4431bb4609eab8c5c833","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2JjYWRmNzZjMTAzZDQ0MzFiYjQ2MDllYWI4YzVjODMz","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710367","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:15Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:15Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:15Z","weight":null},"tracking_code":"9400100109361138710367","updated_at":"2022-09-21T18:23:15Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"86503c59cca6f8a50e967ab7e11b97dd" + - W/"1f3274cdd309f567305855cf45828970" Expires: - "0" Pragma: @@ -129,21 +130,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccefff246ba1007026f0 + - 8f5eb2cf632b5693ec7d9989000db9eb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.145107" + - "0.173930" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentLowestRate.yaml b/tests/cassettes/TestShipmentLowestRate.yaml index cb4e497..54f1b68 100644 --- a/tests/cassettes/TestShipmentLowestRate.yaml +++ b/tests/cassettes/TestShipmentLowestRate.yaml @@ -2,13 +2,13 @@ version: 1 interactions: - request: - body: '{"shipment":{"reference":"123","to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"customs_info":{"eel_pfc":"NOEEI - 30.37(a)","contents_type":"merchandise","customs_certify":true,"customs_signer":"Steve - Brule","non_delivery_option":"return","restriction_type":"none","customs_items":[{"description":"Sweet - shirts","quantity":2,"weight":11,"hs_tariff_number":"654321","origin_country":"US"}]},"options":{"invoice_number":"123","label_format":"PNG"}}}' + body: '{"shipment":{"customs_info":{"contents_type":"merchandise","customs_certify":true,"customs_items":[{"description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"weight":11}],"customs_signer":"Steve + Brule","eel_pfc":"NOEEI 30.37(a)","non_delivery_option":"return","restriction_type":"none"},"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"options":{"invoice_number":"123","label_format":"PNG"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"reference":"123","to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,31 +21,32 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:32+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_243260a91fe711eda323ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:32+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:32Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-08-19T17:48:32Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-08-19T17:48:32Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_4578db031a7d4e50adfc9e4e508ba71d","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-08-19T17:48:32Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_2136be62e2a14034988cd81262ab4797","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-08-19T17:48:32Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:32+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_24340f4b1fe711ed9164ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:32+00:00","verifications":{},"zip":"94107"},"id":"shp_473c28c1836f4ea2baa44972c1405b78","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:32Z","height":4,"id":"prcl_3b311a7efdcd431faef7f9c450dbe5ef","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:32Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d4806d1fce344c58be21113d3cff18f8","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_473c28c1836f4ea2baa44972c1405b78","updated_at":"2022-08-19T17:48:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_ac5e4265050e489fa2d60862a750a33f","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_473c28c1836f4ea2baa44972c1405b78","updated_at":"2022-08-19T17:48:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_7f78cd58d3274731b203aaa606ca73c2","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_473c28c1836f4ea2baa44972c1405b78","updated_at":"2022-08-19T17:48:32Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_5d13e935dae443dd9c6bdcf35972c912","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_473c28c1836f4ea2baa44972c1405b78","updated_at":"2022-08-19T17:48:32Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:32+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_24340f4b1fe711ed9164ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:32+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:32+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_243260a91fe711eda323ac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:32+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:32Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_75c8757d39da11ed81d1ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:16+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:16Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:23:16Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:23:16Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_3f3eb37e6db743b7967310d3d1da38ed","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:23:16Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_cca15b5832694f1c84573d3a90c361b8","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:23:16Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_75cb032939da11edaf7bac1f6bc72124","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:16+00:00","verifications":{},"zip":"94107"},"id":"shp_6345375b58ff4e06916255b5cbed8e0b","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:16Z","height":4,"id":"prcl_b1b758a746d04832b3a217a8d245fc6e","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:16Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_edb75911728d465388079d61c2fda0c4","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_6345375b58ff4e06916255b5cbed8e0b","updated_at":"2022-09-21T18:23:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2abc01d4758247aea4493b1433ce1d61","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_6345375b58ff4e06916255b5cbed8e0b","updated_at":"2022-09-21T18:23:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_8e5cd3389f2343c18fc231b0534e9ec0","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_6345375b58ff4e06916255b5cbed8e0b","updated_at":"2022-09-21T18:23:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_b4898a37a5424d889ee086b75e3c6e36","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_6345375b58ff4e06916255b5cbed8e0b","updated_at":"2022-09-21T18:23:16Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_75cb032939da11edaf7bac1f6bc72124","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:16+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_75c8757d39da11ed81d1ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:16+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:16Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"03e60e6f490c567a0232d0dd6715de75" + - W/"0c148e75523b0158f57a69ccdf29ad27" Expires: - "0" Location: - - /api/v2/shipments/shp_473c28c1836f4ea2baa44972c1405b78 + - /api/v2/shipments/shp_6345375b58ff4e06916255b5cbed8e0b Pragma: - no-cache Referrer-Policy: @@ -59,21 +60,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf0ff246ba10070271e + - 8f5eb2cf632b5693ec7d9989000dba15 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.210584" + - "0.272524" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentLowestRateDeprecated.yaml b/tests/cassettes/TestShipmentLowestRateDeprecated.yaml index 09f4c27..be4a02f 100644 --- a/tests/cassettes/TestShipmentLowestRateDeprecated.yaml +++ b/tests/cassettes/TestShipmentLowestRateDeprecated.yaml @@ -2,13 +2,13 @@ version: 1 interactions: - request: - body: '{"shipment":{"reference":"123","to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"customs_info":{"eel_pfc":"NOEEI - 30.37(a)","contents_type":"merchandise","customs_certify":true,"customs_signer":"Steve - Brule","non_delivery_option":"return","restriction_type":"none","customs_items":[{"description":"Sweet - shirts","quantity":2,"weight":11,"hs_tariff_number":"654321","origin_country":"US"}]},"options":{"invoice_number":"123","label_format":"PNG"}}}' + body: '{"shipment":{"customs_info":{"contents_type":"merchandise","customs_certify":true,"customs_items":[{"description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"weight":11}],"customs_signer":"Steve + Brule","eel_pfc":"NOEEI 30.37(a)","non_delivery_option":"return","restriction_type":"none"},"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"options":{"invoice_number":"123","label_format":"PNG"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"reference":"123","to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,32 +21,32 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-09-19T21:28:15+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_f907a365386111ed8783ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-09-19T21:28:15+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-19T21:28:15Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-19T21:28:15Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-19T21:28:15Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_464fea53c8364264a8d201d5836bd718","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-19T21:28:15Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_4a2733f3414d491da8ed0cd19c099764","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-19T21:28:15Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-09-19T21:28:15+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_f909afc6386111ed8784ac1f6b0a0d1e","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-09-19T21:28:15+00:00","verifications":{},"zip":"94107"},"id":"shp_ba09e4b766694bc7a631167e9728ff9c","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: - field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-19T21:28:15Z","height":4,"id":"prcl_4ab7a1c6a7044757bb9b55c1a460c946","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-19T21:28:15Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-19T21:28:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_f0c5cfe6157b4a99af1aadb97e97a805","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_ba09e4b766694bc7a631167e9728ff9c","updated_at":"2022-09-19T21:28:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-19T21:28:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_5fa88b55fec747ba9465ee13066cc554","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_ba09e4b766694bc7a631167e9728ff9c","updated_at":"2022-09-19T21:28:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-19T21:28:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_ed50ddb62c66458eb921579974f3bf94","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_ba09e4b766694bc7a631167e9728ff9c","updated_at":"2022-09-19T21:28:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-19T21:28:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_2340c44ab22a462ebe137b52a9bfc586","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_ba09e4b766694bc7a631167e9728ff9c","updated_at":"2022-09-19T21:28:16Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-09-19T21:28:15+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_f909afc6386111ed8784ac1f6b0a0d1e","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-09-19T21:28:15+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-09-19T21:28:15+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_f907a365386111ed8783ac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-09-19T21:28:15+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-19T21:28:16Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7610c36b39da11edaf94ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:16+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:16Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:23:16Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:23:16Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_4c8fc777a4234800a2296f5b2c95f5cf","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:23:16Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_9fe58e9db7514d93a78f9bfd14a808bd","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:23:16Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7614b74b39da11edb73eac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:16+00:00","verifications":{},"zip":"94107"},"id":"shp_87c84821b3984f79840125d197df31ae","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:16Z","height":4,"id":"prcl_9b4c664e3b69427d8b8ed20b0b61c74a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:16Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_fe736ce97a494af9b283e999dd073494","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_87c84821b3984f79840125d197df31ae","updated_at":"2022-09-21T18:23:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_4dc4971d29f0460eb6c1fdec85f781ae","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_87c84821b3984f79840125d197df31ae","updated_at":"2022-09-21T18:23:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_01bf764e442e4e78b2a3690a6b503213","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_87c84821b3984f79840125d197df31ae","updated_at":"2022-09-21T18:23:16Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:16Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_3bb42433a7bd4290bc826f1f759d6729","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_87c84821b3984f79840125d197df31ae","updated_at":"2022-09-21T18:23:16Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7614b74b39da11edb73eac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:16+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7610c36b39da11edaf94ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:16+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:16Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"32aa343488cac7a2f5e534d08272e443" + - W/"eb17731f789b9ec4c8442eae13925791" Expires: - "0" Location: - - /api/v2/shipments/shp_ba09e4b766694bc7a631167e9728ff9c + - /api/v2/shipments/shp_87c84821b3984f79840125d197df31ae Pragma: - no-cache Referrer-Policy: @@ -60,20 +60,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - e6062e8b6328deefe788d85b000c42bf + - 8f5eb2cf632b5694ec7d9989000dba44 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - intlb1nuq 29913d444b - - extlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.256103" + - "0.257121" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentOneCallBuyWithCarbonOffset.yaml b/tests/cassettes/TestShipmentOneCallBuyWithCarbonOffset.yaml index b5d96fe..d8bb68b 100644 --- a/tests/cassettes/TestShipmentOneCallBuyWithCarbonOffset.yaml +++ b/tests/cassettes/TestShipmentOneCallBuyWithCarbonOffset.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]},"carbon_offset":true}' + body: '{"carbon_offset":true,"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:32+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_24710a251fe711ed8aebac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:33+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:32Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"0.11000","charged":true,"object":"Fee","refunded":false,"type":"CarbonOffsetFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:32+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2472cad61fe711ed9173ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:32+00:00","verifications":{},"zip":"90277"},"id":"shp_610841bca5074e6cbc97125ef00708b4","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:32Z","height":4,"id":"prcl_c3eb000e73b74104aea7a8afaffea146","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:32Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:33Z","date_advance":0,"id":"pl_389f19f974ae43238a74d9ee417b55e1","integrated_form":"none","label_date":"2022-08-19T17:48:33Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/02b0a27bdb534877898eed740fc08d39.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:33Z"},"rates":[{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a0d19df80a3e430ea1e7c4c1251a1819","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_610841bca5074e6cbc97125ef00708b4","updated_at":"2022-08-19T17:48:32Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_5789abed91674749888842b86f999be4","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_610841bca5074e6cbc97125ef00708b4","updated_at":"2022-08-19T17:48:32Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_b23927feab5a45f39fc3a0f12694cc81","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_610841bca5074e6cbc97125ef00708b4","updated_at":"2022-08-19T17:48:32Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:32Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_64032ba677ec4b5793965d092b8636a3","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_610841bca5074e6cbc97125ef00708b4","updated_at":"2022-08-19T17:48:32Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:32+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2472cad61fe711ed9173ac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:32+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:33Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_a0d19df80a3e430ea1e7c4c1251a1819","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_610841bca5074e6cbc97125ef00708b4","updated_at":"2022-08-19T17:48:33Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:32+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_24710a251fe711ed8aebac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:33+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:33Z","est_delivery_date":null,"fees":[],"id":"trk_298559d1cdbb4e538ccc3df30ed4087c","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzI5ODU1OWQxY2RiYjRlNTM4Y2NjM2RmMzBlZDQwODdj","shipment_id":"shp_610841bca5074e6cbc97125ef00708b4","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884117","tracking_details":[],"updated_at":"2022-08-19T17:48:33Z","weight":null},"tracking_code":"9400100109361133884117","updated_at":"2022-08-19T17:48:33Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_76572dfb39da11edafb2ac1f6bc72124","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:17+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:16Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"},{"amount":"0.11000","charged":true,"object":"Fee","refunded":false,"type":"CarbonOffsetFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7658f94539da11edafb4ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:16+00:00","verifications":{},"zip":"90277"},"id":"shp_3995263ad5f14d47a3cc272591bf17d6","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:16Z","height":4,"id":"prcl_0ea0ff61912e42c3a7860e099f3774b4","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:16Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:17Z","date_advance":0,"id":"pl_7b8a4fdbe0304982a8c2075f1a5ba0a3","integrated_form":"none","label_date":"2022-09-21T18:23:17Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/b8fa3b88a6f340fa82efef0af362772d.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:17Z"},"rates":[{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_5f3898fa580840e280a0c80766a62649","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_3995263ad5f14d47a3cc272591bf17d6","updated_at":"2022-09-21T18:23:17Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_e461b1339dbc4bb78a2492846fda7f76","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_3995263ad5f14d47a3cc272591bf17d6","updated_at":"2022-09-21T18:23:17Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_11bf84a0bdde40d49349a2b849b8e6b7","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_3995263ad5f14d47a3cc272591bf17d6","updated_at":"2022-09-21T18:23:17Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_a61b447e4c53411e8d87fe3cc7413cef","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_3995263ad5f14d47a3cc272591bf17d6","updated_at":"2022-09-21T18:23:17Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7658f94539da11edafb4ac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:16+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:17Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_11bf84a0bdde40d49349a2b849b8e6b7","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_3995263ad5f14d47a3cc272591bf17d6","updated_at":"2022-09-21T18:23:17Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:16+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_76572dfb39da11edafb2ac1f6bc72124","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:17+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:23:18Z","est_delivery_date":null,"fees":[],"id":"trk_29a7627584b343a6a1c1ce94ba0d050e","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzI5YTc2Mjc1ODRiMzQzYTZhMWMxY2U5NGJhMGQwNTBl","shipment_id":"shp_3995263ad5f14d47a3cc272591bf17d6","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710381","tracking_details":[],"updated_at":"2022-09-21T18:23:18Z","weight":null},"tracking_code":"9400100109361138710381","updated_at":"2022-09-21T18:23:17Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"f4426b14cf3b447df084a6218dbe3616" + - W/"5dc1e6b41ce7dd6d3879fdc8fe46cc3c" Expires: - "0" Location: - - /api/v2/shipments/shp_610841bca5074e6cbc97125ef00708b4 + - /api/v2/shipments/shp_3995263ad5f14d47a3cc272591bf17d6 Pragma: - no-cache Referrer-Policy: @@ -54,21 +55,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf0ff246ba10070274b + - 8f5eb2cf632b5694ec7d9989000dba74 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "1.195905" + - "1.246789" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestShipmentReRateWithCarbonOffset.yaml b/tests/cassettes/TestShipmentReRateWithCarbonOffset.yaml index 51c96a7..1e30046 100644 --- a/tests/cassettes/TestShipmentReRateWithCarbonOffset.yaml +++ b/tests/cassettes/TestShipmentReRateWithCarbonOffset.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:34+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_254b7b3e1fe711eda3e9ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:34Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:34+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_254d07071fe711eda3eaac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:34+00:00","verifications":{},"zip":"90277"},"id":"shp_ee868601aa7043e2a1e5247147a1bc3d","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:34Z","height":4,"id":"prcl_7d4a4acb8abb42bf80a1f04597c320a7","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:34Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:34Z","date_advance":0,"id":"pl_5e146cdfca414d99bfb0cb5b0640790d","integrated_form":"none","label_date":"2022-08-19T17:48:34Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/5a3cffdfb5384398bcfb663554be3471.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:34Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_c97e8ac573414c6d8119fb38eb46705b","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","updated_at":"2022-08-19T17:48:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b0e9415e7fce43e3a6c82b3ca930eeb9","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","updated_at":"2022-08-19T17:48:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_d18eda2e8d13414e9171eedecc0dbce0","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","updated_at":"2022-08-19T17:48:34Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e060a8ce8b414647a16459c1ae22b68e","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","updated_at":"2022-08-19T17:48:34Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:34+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_254d07071fe711eda3eaac1f6bc7b362","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:34+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:34Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_e060a8ce8b414647a16459c1ae22b68e","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","updated_at":"2022-08-19T17:48:34Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:34+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_254b7b3e1fe711eda3e9ac1f6bc7b362","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:34+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:35Z","est_delivery_date":null,"fees":[],"id":"trk_ebd0a92738de4fac91d55fb0e24163ec","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2ViZDBhOTI3MzhkZTRmYWM5MWQ1NWZiMGUyNDE2M2Vj","shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884124","tracking_details":[],"updated_at":"2022-08-19T17:48:35Z","weight":null},"tracking_code":"9400100109361133884124","updated_at":"2022-08-19T17:48:35Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7735199839da11ed824fac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:18+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:18Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_77372c3939da11edaffaac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:18+00:00","verifications":{},"zip":"90277"},"id":"shp_466de8e548664ab4be3e1e0daf901606","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:18Z","height":4,"id":"prcl_50ec551cb1b44d9892523866f0009869","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:18Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:19Z","date_advance":0,"id":"pl_1153fdbceb1e48c08112a1aed6983eef","integrated_form":"none","label_date":"2022-09-21T18:23:19Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/9294697cc6a249dd87629dbeb607e1cb.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:19Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_08d40298298a4579b338b70f1c9c0444","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","updated_at":"2022-09-21T18:23:18Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_3fb116863f8142d2b57e15eb4051e4e5","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","updated_at":"2022-09-21T18:23:18Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_39c0e517227f44dd80df80db5fd476a1","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","updated_at":"2022-09-21T18:23:18Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:18Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_9e8f84fb8e344470b74cf83e6abe0fd9","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","updated_at":"2022-09-21T18:23:18Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_77372c3939da11edaffaac1f6bc72124","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:18+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_39c0e517227f44dd80df80db5fd476a1","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","updated_at":"2022-09-21T18:23:19Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:18+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7735199839da11ed824fac1f6bc7b362","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:18+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:23:19Z","est_delivery_date":null,"fees":[],"id":"trk_c1ee1269cf504c6f82a5813c651b06ff","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MxZWUxMjY5Y2Y1MDRjNmY4MmE1ODEzYzY1MWIwNmZm","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710398","tracking_details":[],"updated_at":"2022-09-21T18:23:19Z","weight":null},"tracking_code":"9400100109361138710398","updated_at":"2022-09-21T18:23:19Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"d1e5b97a8f24bc6a894cfae0a2904df3" + - W/"8cdb57cd53351c0e763dc872ba53d907" Expires: - "0" Location: - - /api/v2/shipments/shp_ee868601aa7043e2a1e5247147a1bc3d + - /api/v2/shipments/shp_466de8e548664ab4be3e1e0daf901606 Pragma: - no-cache Referrer-Policy: @@ -54,21 +55,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf2ff246ba1007027de + - 8f5eb2cf632b5696ec7d9989000dbb12 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.947578" + - "1.214630" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -84,17 +85,17 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_ee868601aa7043e2a1e5247147a1bc3d/rerate + url: https://api.easypost.com/v2/shipments/shp_466de8e548664ab4be3e1e0daf901606/rerate method: POST response: - body: '{"rates":[{"id":"rate_10e90925ae6f4ebba68a301265c787f7","object":"Rate","created_at":"2022-08-19T17:48:35Z","updated_at":"2022-08-19T17:48:35Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.90","currency":"USD","retail_rate":"9.45","retail_currency":"USD","list_rate":"7.90","list_currency":"USD","billing_type":"easypost","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","carbon_offset":{"object":"CarbonOffset","grams":36,"price":"0.11","currency":"USD"}},{"id":"rate_90a0507094324f108e11952d71f74f69","object":"Rate","created_at":"2022-08-19T17:48:35Z","updated_at":"2022-08-19T17:48:35Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.75","currency":"USD","retail_rate":"7.75","retail_currency":"USD","list_rate":"7.75","list_currency":"USD","billing_type":"easypost","delivery_days":5,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":5,"shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","carbon_offset":{"object":"CarbonOffset","grams":36,"price":"0.11","currency":"USD"}},{"id":"rate_e22cc6b4e5c54434b724a0b75fed4ce3","object":"Rate","created_at":"2022-08-19T17:48:35Z","updated_at":"2022-08-19T17:48:35Z","mode":"test","service":"First","carrier":"USPS","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","billing_type":"easypost","delivery_days":3,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":3,"shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","carbon_offset":{"object":"CarbonOffset","grams":36,"price":"0.11","currency":"USD"}},{"id":"rate_93c86c1a765043b28966d28640c5a672","object":"Rate","created_at":"2022-08-19T17:48:35Z","updated_at":"2022-08-19T17:48:35Z","mode":"test","service":"Express","carrier":"USPS","rate":"29.50","currency":"USD","retail_rate":"33.55","retail_currency":"USD","list_rate":"29.50","list_currency":"USD","billing_type":"easypost","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","carbon_offset":{"object":"CarbonOffset","grams":36,"price":"0.11","currency":"USD"}}]}' + body: '{"rates":[{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_0fd4272174bf4653a67caf2efa9c51b9","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","updated_at":"2022-09-21T18:23:19Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_f5f3f2877e544f739db21b1a86468823","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","updated_at":"2022-09-21T18:23:19Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_2a27deb06dae4aba86331ed281a6a198","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","updated_at":"2022-09-21T18:23:19Z"},{"billing_type":"easypost","carbon_offset":{"currency":"USD","grams":36,"object":"CarbonOffset","price":"0.11"},"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:19Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_b3746813747b49d7ac63d244df170be1","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","updated_at":"2022-09-21T18:23:19Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"052f38c6e6612be0a53c07022176d5aa" + - W/"3c3835f18d271cb148ddbda7a708d31c" Expires: - "0" Pragma: @@ -105,26 +106,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf3ff246ba10070285d + - 8f5eb2cf632b5697ec7d9989000dbba5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb8nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.341107" + - "0.349701" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentRefund.yaml b/tests/cassettes/TestShipmentRefund.yaml index 5b91550..2596538 100644 --- a/tests/cassettes/TestShipmentRefund.yaml +++ b/tests/cassettes/TestShipmentRefund.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"388 Townsend St","street2":"Apt 20","city":"San - Francisco","state":"CA","zip":"94107","country":"US","name":"Jack Sparrow","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"179 - N Harbor Dr","city":"Redondo Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth - Swan","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"carrier":"USPS","service":"First","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"]}}' + body: '{"shipment":{"carrier":"USPS","carrier_accounts":["ca_e606176ddb314afe896733636dba2f3b"],"from_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"service":"First","to_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"}}}' form: {} headers: Authorization: @@ -18,29 +19,29 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:35+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_2645ba741fe711ed8cc4ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:36+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:35Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:35+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_264771601fe711ed8c6fac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:35+00:00","verifications":{},"zip":"90277"},"id":"shp_43ac04a00edb4ff1bd477fab9b380df1","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:35Z","height":4,"id":"prcl_3f7fa72cec0e4dcc9c05b681857ec96a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:35Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:36Z","date_advance":0,"id":"pl_6dd2b62b1eeb4f93a9873f9802fd3e5d","integrated_form":"none","label_date":"2022-08-19T17:48:36Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/d64bf79f7eec4fd38d48403d2eac06de.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:36Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_aaa9d5510d0344c8b4be1528822713b0","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","updated_at":"2022-08-19T17:48:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_2e18f82d322e491e81994fac558c397c","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","updated_at":"2022-08-19T17:48:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a4be8a811c9e4f7db83be42fee631707","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","updated_at":"2022-08-19T17:48:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0e1d22eb2d51489dac0a6f09e70ab542","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","updated_at":"2022-08-19T17:48:35Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:35+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_264771601fe711ed8c6fac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:35+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0e1d22eb2d51489dac0a6f09e70ab542","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","updated_at":"2022-08-19T17:48:36Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:35+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_2645ba741fe711ed8cc4ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:36+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-08-19T17:48:36Z","est_delivery_date":null,"fees":[],"id":"trk_b9e47f4a62fd41ea817cf08441de8e3e","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2I5ZTQ3ZjRhNjJmZDQxZWE4MTdjZjA4NDQxZGU4ZTNl","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361133884131","tracking_details":[],"updated_at":"2022-08-19T17:48:36Z","weight":null},"tracking_code":"9400100109361133884131","updated_at":"2022-08-19T17:48:36Z","usps_zone":4}' + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7864961239da11edb151ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:20Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_786724d139da11ed82abac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:20+00:00","verifications":{},"zip":"90277"},"id":"shp_57a3d40336a3410796aac029e0b35675","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:20Z","height":4,"id":"prcl_97815b59771e428c974ddb8003a1627a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:20Z","date_advance":0,"id":"pl_d103f2c50bf84fcfac22d04a16cab77f","integrated_form":"none","label_date":"2022-09-21T18:23:20Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/dbd9964edb214b1fb5a641ce54ec9761.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:21Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_929dae5f893f4acfb057ee2718e60d97","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","updated_at":"2022-09-21T18:23:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_aa39066c44944eecb0cf259459f5433f","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","updated_at":"2022-09-21T18:23:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_0bea98f55e574f0e9e8632ab2c6baa8a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","updated_at":"2022-09-21T18:23:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_aacc2c91d3244556aec06b7e92bd5d69","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","updated_at":"2022-09-21T18:23:20Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_786724d139da11ed82abac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:20+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_929dae5f893f4acfb057ee2718e60d97","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","updated_at":"2022-09-21T18:23:20Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7864961239da11edb151ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:23:21Z","est_delivery_date":null,"fees":[],"id":"trk_22ad0691b0f44dfe9a060a56e496c9af","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzIyYWQwNjkxYjBmNDRkZmU5YTA2MGE1NmU0OTZjOWFm","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","signed_by":null,"status":"unknown","status_detail":"unknown","tracking_code":"9400100109361138710404","tracking_details":[],"updated_at":"2022-09-21T18:23:21Z","weight":null},"tracking_code":"9400100109361138710404","updated_at":"2022-09-21T18:23:21Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"28bc3f0373305b1209ee9df0334574a1" + - W/"c6aadc16b24d7d3af9fdfb2360176b77" Expires: - "0" Location: - - /api/v2/shipments/shp_43ac04a00edb4ff1bd477fab9b380df1 + - /api/v2/shipments/shp_57a3d40336a3410796aac029e0b35675 Pragma: - no-cache Referrer-Policy: @@ -54,21 +55,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf3ff246ba10070288b + - 8f5eb2cf632b5698ec7d9989000dbbdb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.903264" + - "0.989224" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -82,34 +83,34 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_43ac04a00edb4ff1bd477fab9b380df1/refund + url: https://api.easypost.com/v2/shipments/shp_57a3d40336a3410796aac029e0b35675/refund method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:35+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_2645ba741fe711ed8cc4ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:36+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-08-19T17:48:35Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:35+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_264771601fe711ed8c6fac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:35+00:00","verifications":{},"zip":"90277"},"id":"shp_43ac04a00edb4ff1bd477fab9b380df1","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:35Z","height":4,"id":"prcl_3f7fa72cec0e4dcc9c05b681857ec96a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:35Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-08-19T17:48:36Z","date_advance":0,"id":"pl_6dd2b62b1eeb4f93a9873f9802fd3e5d","integrated_form":"none","label_date":"2022-08-19T17:48:36Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220819/d64bf79f7eec4fd38d48403d2eac06de.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-08-19T17:48:36Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_aaa9d5510d0344c8b4be1528822713b0","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","updated_at":"2022-08-19T17:48:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_2e18f82d322e491e81994fac558c397c","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","updated_at":"2022-08-19T17:48:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_a4be8a811c9e4f7db83be42fee631707","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","updated_at":"2022-08-19T17:48:35Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:35Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0e1d22eb2d51489dac0a6f09e70ab542","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","updated_at":"2022-08-19T17:48:35Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:35+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_264771601fe711ed8c6fac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:35+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:36Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_0e1d22eb2d51489dac0a6f09e70ab542","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","updated_at":"2022-08-19T17:48:36Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN - FRANCISCO","company":null,"country":"US","created_at":"2022-08-19T17:48:35+00:00","email":"TEST@EXAMPLE.COM","federal_tax_id":null,"id":"adr_2645ba741fe711ed8cc4ac1f6b0a0d1e","mode":"test","name":"JACK - SPARROW","object":"Address","phone":"5555555555","residential":true,"state":"CA","state_tax_id":null,"street1":"388 - TOWNSEND ST APT 20","street2":null,"updated_at":"2022-08-19T17:48:36+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7864961239da11edb151ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"created_at":"2022-09-21T18:23:20Z","customs_info":null,"fees":[{"amount":"0.00000","charged":true,"object":"Fee","refunded":false,"type":"LabelFee"},{"amount":"5.57000","charged":true,"object":"Fee","refunded":false,"type":"PostageFee"}],"forms":[],"from_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_786724d139da11ed82abac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:20+00:00","verifications":{},"zip":"90277"},"id":"shp_57a3d40336a3410796aac029e0b35675","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:20Z","height":4,"id":"prcl_97815b59771e428c974ddb8003a1627a","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:20Z","weight":15.4,"width":8},"postage_label":{"created_at":"2022-09-21T18:23:20Z","date_advance":0,"id":"pl_d103f2c50bf84fcfac22d04a16cab77f","integrated_form":"none","label_date":"2022-09-21T18:23:20Z","label_epl2_url":null,"label_file":null,"label_file_type":"image/png","label_pdf_url":null,"label_resolution":300,"label_size":"4x6","label_type":"default","label_url":"https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20220921/dbd9964edb214b1fb5a641ce54ec9761.png","label_zpl_url":null,"object":"PostageLabel","updated_at":"2022-09-21T18:23:21Z"},"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_929dae5f893f4acfb057ee2718e60d97","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","updated_at":"2022-09-21T18:23:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_aa39066c44944eecb0cf259459f5433f","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","updated_at":"2022-09-21T18:23:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_0bea98f55e574f0e9e8632ab2c6baa8a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","updated_at":"2022-09-21T18:23:20Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_aacc2c91d3244556aec06b7e92bd5d69","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","updated_at":"2022-09-21T18:23:20Z"}],"reference":null,"refund_status":"submitted","return_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_786724d139da11ed82abac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:20+00:00","verifications":{},"zip":"90277"},"scan_form":null,"selected_rate":{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:20Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_929dae5f893f4acfb057ee2718e60d97","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","updated_at":"2022-09-21T18:23:20Z"},"status":"unknown","to_address":{"carrier_facility":null,"city":"SAN + FRANCISCO","company":null,"country":"US","created_at":"2022-09-21T18:23:20+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7864961239da11edb151ac1f6bc7bdc6","mode":"test","name":"JACK + SPARROW","object":"Address","phone":"REDACTED","residential":true,"state":"CA","state_tax_id":null,"street1":"388 + TOWNSEND ST APT 20","street2":null,"updated_at":"2022-09-21T18:23:20+00:00","verifications":{"delivery":{"details":{"latitude":37.77551,"longitude":-122.39697,"time_zone":"America/Los_Angeles"},"errors":[],"success":true},"zip4":{"details":null,"errors":[],"success":true}},"zip":"94107-1670"},"tracker":{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class - Package Service"},"created_at":"2022-08-19T17:48:36Z","est_delivery_date":"2022-08-19T17:48:36Z","fees":[],"id":"trk_b9e47f4a62fd41ea817cf08441de8e3e","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2I5ZTQ3ZjRhNjJmZDQxZWE4MTdjZjA4NDQxZGU4ZTNl","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361133884131","tracking_details":[{"carrier_code":null,"datetime":"2022-07-19T17:48:36Z","description":null,"message":"Pre-Shipment - Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-07-20T06:25:36Z","description":null,"message":"Shipping - Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-08-19T17:48:36Z","weight":null},"tracking_code":"9400100109361133884131","updated_at":"2022-08-19T17:48:37Z","usps_zone":4}' + Package Service"},"created_at":"2022-09-21T18:23:21Z","est_delivery_date":"2022-09-21T18:23:21Z","fees":[],"id":"trk_22ad0691b0f44dfe9a060a56e496c9af","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzIyYWQwNjkxYjBmNDRkZmU5YTA2MGE1NmU0OTZjOWFm","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710404","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:21Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:21Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:21Z","weight":null},"tracking_code":"9400100109361138710404","updated_at":"2022-09-21T18:23:21Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"44a379ba8d6dadfa86a0a12aae6598f2" + - W/"c2648f0510d8d044708c940d7e737e3f" Expires: - "0" Pragma: @@ -125,21 +126,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf4ff246ba1007028f3 + - 8f5eb2cf632b5699ec7d9989000dbc52 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.155209" + - "0.170789" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentRegenerateRates.yaml b/tests/cassettes/TestShipmentRegenerateRates.yaml index e67622c..ad6f3bb 100644 --- a/tests/cassettes/TestShipmentRegenerateRates.yaml +++ b/tests/cassettes/TestShipmentRegenerateRates.yaml @@ -2,13 +2,13 @@ version: 1 interactions: - request: - body: '{"shipment":{"reference":"123","to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"customs_info":{"eel_pfc":"NOEEI - 30.37(a)","contents_type":"merchandise","customs_certify":true,"customs_signer":"Steve - Brule","non_delivery_option":"return","restriction_type":"none","customs_items":[{"description":"Sweet - shirts","quantity":2,"weight":11,"hs_tariff_number":"654321","origin_country":"US"}]},"options":{"invoice_number":"123","label_format":"PNG"}}}' + body: '{"shipment":{"customs_info":{"contents_type":"merchandise","customs_certify":true,"customs_items":[{"description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"weight":11}],"customs_signer":"Steve + Brule","eel_pfc":"NOEEI 30.37(a)","non_delivery_option":"return","restriction_type":"none"},"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"options":{"invoice_number":"123","label_format":"PNG"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"reference":"123","to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,31 +21,32 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:37+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_273fde6f1fe711ed934dac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:37+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:37Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-08-19T17:48:37Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-08-19T17:48:37Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_3877f593133140d1b83e7ecbde843fa7","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-08-19T17:48:37Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_2cf4188ef04d4c4a93b0f6b8115ceb63","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-08-19T17:48:37Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:37+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2741c90a1fe711ed934eac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:37+00:00","verifications":{},"zip":"94107"},"id":"shp_f216fccd936141c8b252c6f8d6b225c9","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:37Z","height":4,"id":"prcl_70f89435ebd74ab39db12f02119b8032","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:37Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d87518f8f7f9410f9313c1e3aa4cab26","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_f216fccd936141c8b252c6f8d6b225c9","updated_at":"2022-08-19T17:48:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_27fa684516344a858b3676a10c942f3e","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_f216fccd936141c8b252c6f8d6b225c9","updated_at":"2022-08-19T17:48:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_bc238e91bc164f44a0cd5799777f3b60","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_f216fccd936141c8b252c6f8d6b225c9","updated_at":"2022-08-19T17:48:37Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:37Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_56a66e3f116d400ab591f6f82d8f7d8e","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_f216fccd936141c8b252c6f8d6b225c9","updated_at":"2022-08-19T17:48:37Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:37+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2741c90a1fe711ed934eac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:37+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:37+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_273fde6f1fe711ed934dac1f6bc7bdc6","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:37+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:37Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7956b21839da11edb187ac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:21+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:22Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:23:22Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:23:22Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_31ad1d26ba8447edaac2f41f6d0d3192","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:23:22Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_f6148719513a40c7bcb99053ea9ed233","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:23:22Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7958a3da39da11ed82f0ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:21+00:00","verifications":{},"zip":"94107"},"id":"shp_a35124d8397b496497da5578f1b1802a","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:21Z","height":4,"id":"prcl_20664114701845ae9a0d242cb2a320cd","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:21Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_e32405aabc26426ba0c2358b6681144c","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_a35124d8397b496497da5578f1b1802a","updated_at":"2022-09-21T18:23:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_ce6fd7267699432282eca0726821305d","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_a35124d8397b496497da5578f1b1802a","updated_at":"2022-09-21T18:23:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_544fd5a3eb7d4b2ba8414fe7e4065779","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_a35124d8397b496497da5578f1b1802a","updated_at":"2022-09-21T18:23:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_edc38c940c8141e3893741bc1579d612","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_a35124d8397b496497da5578f1b1802a","updated_at":"2022-09-21T18:23:22Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7958a3da39da11ed82f0ac1f6bc7b362","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:21+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:21+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7956b21839da11edb187ac1f6bc7bdc6","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:21+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:22Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b90b4b63e2d5588fc3014fabe9fc811a" + - W/"c71da5db3bf2ac99f1bbd5abae5c4ca6" Expires: - "0" Location: - - /api/v2/shipments/shp_f216fccd936141c8b252c6f8d6b225c9 + - /api/v2/shipments/shp_a35124d8397b496497da5578f1b1802a Pragma: - no-cache Referrer-Policy: @@ -59,21 +60,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf5ff246ba10070291c + - 8f5eb2cf632b5699ec7d9989000dbc79 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.228623" + - "0.311664" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -89,17 +90,17 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_f216fccd936141c8b252c6f8d6b225c9/rerate + url: https://api.easypost.com/v2/shipments/shp_a35124d8397b496497da5578f1b1802a/rerate method: POST response: - body: '{"rates":[{"id":"rate_bdf0e663f2304562bb6818fabc06c56a","object":"Rate","created_at":"2022-08-19T17:48:38Z","updated_at":"2022-08-19T17:48:38Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.90","currency":"USD","retail_rate":"9.45","retail_currency":"USD","list_rate":"7.90","list_currency":"USD","billing_type":"easypost","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_f216fccd936141c8b252c6f8d6b225c9","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b"},{"id":"rate_63c1edf16f714d2a806cca6cad5a2b4f","object":"Rate","created_at":"2022-08-19T17:48:38Z","updated_at":"2022-08-19T17:48:38Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"7.75","currency":"USD","retail_rate":"7.75","retail_currency":"USD","list_rate":"7.75","list_currency":"USD","billing_type":"easypost","delivery_days":5,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":5,"shipment_id":"shp_f216fccd936141c8b252c6f8d6b225c9","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b"},{"id":"rate_5039d3834b844e9aad7a2225e76d5cc9","object":"Rate","created_at":"2022-08-19T17:48:38Z","updated_at":"2022-08-19T17:48:38Z","mode":"test","service":"First","carrier":"USPS","rate":"5.57","currency":"USD","retail_rate":"5.57","retail_currency":"USD","list_rate":"5.57","list_currency":"USD","billing_type":"easypost","delivery_days":3,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":3,"shipment_id":"shp_f216fccd936141c8b252c6f8d6b225c9","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b"},{"id":"rate_aee4d0587769417183d1a3e8506a1f7b","object":"Rate","created_at":"2022-08-19T17:48:38Z","updated_at":"2022-08-19T17:48:38Z","mode":"test","service":"Express","carrier":"USPS","rate":"29.50","currency":"USD","retail_rate":"33.55","retail_currency":"USD","list_rate":"29.50","list_currency":"USD","billing_type":"easypost","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_f216fccd936141c8b252c6f8d6b225c9","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b"}]}' + body: '{"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_746d045b087e45b185c39a0b622596ae","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_a35124d8397b496497da5578f1b1802a","updated_at":"2022-09-21T18:23:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_43f7301676a043f7bc3fa2f4473a278a","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_a35124d8397b496497da5578f1b1802a","updated_at":"2022-09-21T18:23:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_573a881656ad46eab3e9bb6ffc5de722","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_a35124d8397b496497da5578f1b1802a","updated_at":"2022-09-21T18:23:22Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:22Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_821f0173bb454d84b6200f5c46acf5fe","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_a35124d8397b496497da5578f1b1802a","updated_at":"2022-09-21T18:23:22Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"b3a7ed918140c56912c46b909f72481e" + - W/"7253fb3aa157b6654836b0aed568a67f" Expires: - "0" Pragma: @@ -115,7 +116,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf6ff246ba10070299c + - 8f5eb2cf632b569aec7d9989000dbcae X-Frame-Options: - SAMEORIGIN X-Node: @@ -123,13 +124,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.172900" + - "0.329848" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentRetrieve.yaml b/tests/cassettes/TestShipmentRetrieve.yaml index 388be87..0544f57 100644 --- a/tests/cassettes/TestShipmentRetrieve.yaml +++ b/tests/cassettes/TestShipmentRetrieve.yaml @@ -2,13 +2,13 @@ version: 1 interactions: - request: - body: '{"shipment":{"reference":"123","to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4},"customs_info":{"eel_pfc":"NOEEI - 30.37(a)","contents_type":"merchandise","customs_certify":true,"customs_signer":"Steve - Brule","non_delivery_option":"return","restriction_type":"none","customs_items":[{"description":"Sweet - shirts","quantity":2,"weight":11,"hs_tariff_number":"654321","origin_country":"US"}]},"options":{"invoice_number":"123","label_format":"PNG"}}}' + body: '{"shipment":{"customs_info":{"contents_type":"merchandise","customs_certify":true,"customs_items":[{"description":"Sweet + shirts","hs_tariff_number":"654321","origin_country":"US","quantity":2,"weight":11}],"customs_signer":"Steve + Brule","eel_pfc":"NOEEI 30.37(a)","non_delivery_option":"return","restriction_type":"none"},"from_address":{"city":"San + Francisco","country":"US","email":"REDACTED","name":"Jack Sparrow","phone":"REDACTED","state":"CA","street1":"388 + Townsend St","street2":"Apt 20","zip":"94107"},"options":{"invoice_number":"123","label_format":"PNG"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"reference":"123","to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -21,31 +21,32 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:39+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2877ed7b1fe711ed8f15ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:39+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:39Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-08-19T17:48:39Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-08-19T17:48:39Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_667063aabe5441f58ac0ac0cbaefe2ab","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-08-19T17:48:39Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_93a42f1b51d84f4780c47261b201efb1","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-08-19T17:48:39Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:39+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2879ae911fe711ed8f19ac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:39+00:00","verifications":{},"zip":"94107"},"id":"shp_83e97544550b4602b304c709e6c81590","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:39Z","height":4,"id":"prcl_6e067f16d8d84217af622ab3e4e3fca1","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:39Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_67dca275140a4942b2c8a3e74963bc71","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_83e97544550b4602b304c709e6c81590","updated_at":"2022-08-19T17:48:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_87fb9ce5adb94d2484e2a159605b355a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_83e97544550b4602b304c709e6c81590","updated_at":"2022-08-19T17:48:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d46b9645a2d042f590a89dcd8429588b","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_83e97544550b4602b304c709e6c81590","updated_at":"2022-08-19T17:48:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6ce70beeb3724de688764088bf73c549","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_83e97544550b4602b304c709e6c81590","updated_at":"2022-08-19T17:48:39Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:39+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2879ae911fe711ed8f19ac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:39+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:39+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2877ed7b1fe711ed8f15ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:39+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:39Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_79f6b86839da11edb8a0ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:23Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:23:23Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:23:23Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_25f3fdba2d7843d1b6787f0e759fde62","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:23:23Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_3d7a83e62939414ab48d385da657e52c","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:23:23Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_79f8faa239da11edb8a2ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"94107"},"id":"shp_b6534edc097548cd9131e5703b6379d5","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:23Z","height":4,"id":"prcl_a0b9b82457f04cb9a34e81bf5038d7c4","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:23Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bb70a361823048cd95006443cd53e1a5","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_b6534edc097548cd9131e5703b6379d5","updated_at":"2022-09-21T18:23:23Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8c16892bc6254d0fad7285e1d745ad34","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_b6534edc097548cd9131e5703b6379d5","updated_at":"2022-09-21T18:23:23Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_5452c8124ede4c2f8faecc5507505e7c","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_b6534edc097548cd9131e5703b6379d5","updated_at":"2022-09-21T18:23:23Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_0f0d86195de4465d9e01bbf9d2d70e07","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_b6534edc097548cd9131e5703b6379d5","updated_at":"2022-09-21T18:23:23Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_79f8faa239da11edb8a2ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_79f6b86839da11edb8a0ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:23Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"eeb8d2d4132fcb7f9248fa91b4abd1a4" + - W/"874037f1799795ed96bc390639646efc" Expires: - "0" Location: - - /api/v2/shipments/shp_83e97544550b4602b304c709e6c81590 + - /api/v2/shipments/shp_b6534edc097548cd9131e5703b6379d5 Pragma: - no-cache Referrer-Policy: @@ -59,7 +60,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf7ff246ba100702a0b + - 8f5eb2cf632b569aec7d9989000dbcef X-Frame-Options: - SAMEORIGIN X-Node: @@ -67,13 +68,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.215573" + - "0.256083" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -87,31 +88,32 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_83e97544550b4602b304c709e6c81590 + url: https://api.easypost.com/v2/shipments/shp_b6534edc097548cd9131e5703b6379d5 method: GET response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:39+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2877ed7b1fe711ed8f15ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:39+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:39Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-08-19T17:48:39Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-08-19T17:48:39Z","currency":null,"description":"Sweet - shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_667063aabe5441f58ac0ac0cbaefe2ab","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-08-19T17:48:39Z","value":null,"weight":11}],"customs_signer":"Steve - Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_93a42f1b51d84f4780c47261b201efb1","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-08-19T17:48:39Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:39+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2879ae911fe711ed8f19ac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:39+00:00","verifications":{},"zip":"94107"},"id":"shp_83e97544550b4602b304c709e6c81590","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:39Z","height":4,"id":"prcl_6e067f16d8d84217af622ab3e4e3fca1","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:39Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_67dca275140a4942b2c8a3e74963bc71","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_83e97544550b4602b304c709e6c81590","updated_at":"2022-08-19T17:48:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_87fb9ce5adb94d2484e2a159605b355a","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_83e97544550b4602b304c709e6c81590","updated_at":"2022-08-19T17:48:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_d46b9645a2d042f590a89dcd8429588b","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_83e97544550b4602b304c709e6c81590","updated_at":"2022-08-19T17:48:39Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:39Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_6ce70beeb3724de688764088bf73c549","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_83e97544550b4602b304c709e6c81590","updated_at":"2022-08-19T17:48:39Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:39+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2879ae911fe711ed8f19ac1f6bc72124","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:39+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:39+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_2877ed7b1fe711ed8f15ac1f6bc72124","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:39+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:39Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_79f6b86839da11edb8a0ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:23Z","customs_info":{"contents_explanation":null,"contents_type":"merchandise","created_at":"2022-09-21T18:23:23Z","customs_certify":true,"customs_items":[{"code":null,"created_at":"2022-09-21T18:23:23Z","currency":null,"description":"Sweet + shirts","eccn":null,"hs_tariff_number":"654321","id":"cstitem_25f3fdba2d7843d1b6787f0e759fde62","manufacturer":null,"mode":"test","object":"CustomsItem","origin_country":"US","printed_commodity_identifier":null,"quantity":2,"updated_at":"2022-09-21T18:23:23Z","value":null,"weight":11}],"customs_signer":"Steve + Brule","declaration":null,"eel_pfc":"NOEEI 30.37(a)","id":"cstinfo_3d7a83e62939414ab48d385da657e52c","mode":"test","non_delivery_option":"return","object":"CustomsInfo","restriction_comments":null,"restriction_type":"none","updated_at":"2022-09-21T18:23:23Z"},"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_79f8faa239da11edb8a2ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"94107"},"id":"shp_b6534edc097548cd9131e5703b6379d5","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"shipment.customs_info.customs_items.0.value: + field required and shipment.customs_info.customs_items.0.code: field required","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"invoice_number":"123","label_format":"PNG","payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:23Z","height":4,"id":"prcl_a0b9b82457f04cb9a34e81bf5038d7c4","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:23Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_bb70a361823048cd95006443cd53e1a5","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_b6534edc097548cd9131e5703b6379d5","updated_at":"2022-09-21T18:23:23Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_8c16892bc6254d0fad7285e1d745ad34","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_b6534edc097548cd9131e5703b6379d5","updated_at":"2022-09-21T18:23:23Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_5452c8124ede4c2f8faecc5507505e7c","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_b6534edc097548cd9131e5703b6379d5","updated_at":"2022-09-21T18:23:23Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:23Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_0f0d86195de4465d9e01bbf9d2d70e07","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_b6534edc097548cd9131e5703b6379d5","updated_at":"2022-09-21T18:23:23Z"}],"reference":"123","refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_79f8faa239da11edb8a2ac1f6b0a0d1e","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_79f6b86839da11edb8a0ac1f6b0a0d1e","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:23Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"eeb8d2d4132fcb7f9248fa91b4abd1a4" + - W/"874037f1799795ed96bc390639646efc" Expires: - "0" Pragma: @@ -127,21 +129,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf7ff246ba100702a2a + - 8f5eb2cf632b569bec7d9989000dbd30 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.074829" + - "0.081295" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestShipmentSmartrate.yaml b/tests/cassettes/TestShipmentSmartrate.yaml index 2ea255c..22d3764 100644 --- a/tests/cassettes/TestShipmentSmartrate.yaml +++ b/tests/cassettes/TestShipmentSmartrate.yaml @@ -2,10 +2,11 @@ version: 1 interactions: - request: - body: '{"shipment":{"to_address":{"street1":"179 N Harbor Dr","city":"Redondo - Beach","state":"CA","zip":"90277","country":"US","name":"Elizabeth Swan","phone":"5555555555","email":"test@example.com"},"from_address":{"street1":"388 - Townsend St","street2":"Apt 20","city":"San Francisco","state":"CA","zip":"94107","country":"US","name":"Jack - Sparrow","phone":"5555555555","email":"test@example.com"},"parcel":{"length":10,"width":8,"height":4,"weight":15.4}}}' + body: '{"shipment":{"from_address":{"city":"San Francisco","country":"US","email":"REDACTED","name":"Jack + Sparrow","phone":"REDACTED","state":"CA","street1":"388 Townsend St","street2":"Apt + 20","zip":"94107"},"parcel":{"height":4,"length":10,"weight":15.4,"width":8},"to_address":{"city":"Redondo + Beach","country":"US","email":"REDACTED","name":"Elizabeth Swan","phone":"REDACTED","state":"CA","street1":"179 + N Harbor Dr","zip":"90277"}}}' form: {} headers: Authorization: @@ -18,29 +19,30 @@ interactions: method: POST response: body: '{"batch_id":null,"batch_message":null,"batch_status":null,"buyer_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:40+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_28dbe8201fe711ed8ffeac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:40+00:00","verifications":{},"zip":"90277"},"created_at":"2022-08-19T17:48:40Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:40+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_28de2fb61fe711ed9469ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:40+00:00","verifications":{},"zip":"94107"},"id":"shp_aa06dec7f3504b0496bd5a6cbe176f63","insurance":null,"is_return":false,"messages":[],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-08-19T17:48:40Z","height":4,"id":"prcl_391020f489f743e6bb3f83e5fa9c4551","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-08-19T17:48:40Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b4ca52418bdc4fb29075bc0dd6026151","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_aa06dec7f3504b0496bd5a6cbe176f63","updated_at":"2022-08-19T17:48:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_87ab83e4ba3a4632a94f5f8e36490de1","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_aa06dec7f3504b0496bd5a6cbe176f63","updated_at":"2022-08-19T17:48:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_1de43290aac04be681599148e183ae82","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_aa06dec7f3504b0496bd5a6cbe176f63","updated_at":"2022-08-19T17:48:40Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_411b8205f97c471088ab46126d6c0186","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_aa06dec7f3504b0496bd5a6cbe176f63","updated_at":"2022-08-19T17:48:40Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San - Francisco","company":null,"country":"US","created_at":"2022-08-19T17:48:40+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_28de2fb61fe711ed9469ac1f6bc7bdc6","mode":"test","name":"Jack - Sparrow","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"388 - Townsend St","street2":"Apt 20","updated_at":"2022-08-19T17:48:40+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo - Beach","company":null,"country":"US","created_at":"2022-08-19T17:48:40+00:00","email":"test@example.com","federal_tax_id":null,"id":"adr_28dbe8201fe711ed8ffeac1f6b0a0d1e","mode":"test","name":"Elizabeth - Swan","object":"Address","phone":"5555555555","residential":null,"state":"CA","state_tax_id":null,"street1":"179 - N Harbor Dr","street2":null,"updated_at":"2022-08-19T17:48:40+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-08-19T17:48:40Z","usps_zone":4}' + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7a69810039da11ed8352ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"90277"},"created_at":"2022-09-21T18:23:23Z","customs_info":null,"fees":[],"forms":[],"from_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7a6bad1539da11edb1bbac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"94107"},"id":"shp_9e3b58ae007e4cba95771942e5e0c049","insurance":null,"is_return":false,"messages":[{"carrier":"DhlEcs","carrier_account_id":"ca_1fefcb0d0a9f4e5db5e5a1c360958484","message":"Unauthorized. + Please check credentials and try again","type":"rate_error"}],"mode":"test","object":"Shipment","options":{"currency":"USD","date_advance":0,"payment":{"type":"SENDER"}},"order_id":null,"parcel":{"created_at":"2022-09-21T18:23:23Z","height":4,"id":"prcl_ced5e9ac4e544f379111b19b0b52b375","length":10,"mode":"test","object":"Parcel","predefined_package":null,"updated_at":"2022-09-21T18:23:23Z","weight":15.4,"width":8},"postage_label":null,"rates":[{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_0aaae55d3b9c49de8df1c858bdd6bc5c","list_currency":"USD","list_rate":"29.50","mode":"test","object":"Rate","rate":"29.50","retail_currency":"USD","retail_rate":"33.55","service":"Express","shipment_id":"shp_9e3b58ae007e4cba95771942e5e0c049","updated_at":"2022-09-21T18:23:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_3eb2dbb702764f249e4d2631a7844cf7","list_currency":"USD","list_rate":"7.90","mode":"test","object":"Rate","rate":"7.90","retail_currency":"USD","retail_rate":"9.45","service":"Priority","shipment_id":"shp_9e3b58ae007e4cba95771942e5e0c049","updated_at":"2022-09-21T18:23:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2ad4520735a94bfca47a17bbb201fc0d","list_currency":"USD","list_rate":"5.57","mode":"test","object":"Rate","rate":"5.57","retail_currency":"USD","retail_rate":"5.57","service":"First","shipment_id":"shp_9e3b58ae007e4cba95771942e5e0c049","updated_at":"2022-09-21T18:23:24Z"},{"billing_type":"easypost","carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_a5b2ac4bba8942a893c03e06b57e250c","list_currency":"USD","list_rate":"7.75","mode":"test","object":"Rate","rate":"7.75","retail_currency":"USD","retail_rate":"7.75","service":"ParcelSelect","shipment_id":"shp_9e3b58ae007e4cba95771942e5e0c049","updated_at":"2022-09-21T18:23:24Z"}],"reference":null,"refund_status":null,"return_address":{"carrier_facility":null,"city":"San + Francisco","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7a6bad1539da11edb1bbac1f6bc7bdc6","mode":"test","name":"Jack + Sparrow","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"388 + Townsend St","street2":"Apt 20","updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"94107"},"scan_form":null,"selected_rate":null,"status":"unknown","to_address":{"carrier_facility":null,"city":"Redondo + Beach","company":null,"country":"US","created_at":"2022-09-21T18:23:23+00:00","email":"REDACTED","federal_tax_id":null,"id":"adr_7a69810039da11ed8352ac1f6bc7b362","mode":"test","name":"Elizabeth + Swan","object":"Address","phone":"REDACTED","residential":null,"state":"CA","state_tax_id":null,"street1":"179 + N Harbor Dr","street2":null,"updated_at":"2022-09-21T18:23:23+00:00","verifications":{},"zip":"90277"},"tracker":null,"tracking_code":null,"updated_at":"2022-09-21T18:23:24Z","usps_zone":4}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"1c8a19b476851844ec1ed26287144361" + - W/"15277108d450552fe7fff7c3ac9c038b" Expires: - "0" Location: - - /api/v2/shipments/shp_aa06dec7f3504b0496bd5a6cbe176f63 + - /api/v2/shipments/shp_9e3b58ae007e4cba95771942e5e0c049 Pragma: - no-cache Referrer-Policy: @@ -54,7 +56,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf8ff246ba100702a33 + - 8f5eb2cf632b569bec7d9989000dbd49 X-Frame-Options: - SAMEORIGIN X-Node: @@ -62,13 +64,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.327179" + - "0.759839" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -82,17 +84,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/shipments/shp_aa06dec7f3504b0496bd5a6cbe176f63/smartrate + url: https://api.easypost.com/v2/shipments/shp_9e3b58ae007e4cba95771942e5e0c049/smartrate method: GET response: - body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_b4ca52418bdc4fb29075bc0dd6026151","list_currency":"USD","list_rate":7.9,"mode":"test","object":"Rate","rate":7.9,"retail_currency":"USD","retail_rate":9.45,"service":"Priority","shipment_id":"shp_aa06dec7f3504b0496bd5a6cbe176f63","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-08-19T17:48:40Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_87ab83e4ba3a4632a94f5f8e36490de1","list_currency":"USD","list_rate":5.57,"mode":"test","object":"Rate","rate":5.57,"retail_currency":"USD","retail_rate":5.57,"service":"First","shipment_id":"shp_aa06dec7f3504b0496bd5a6cbe176f63","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":5,"percentile_99":9},"updated_at":"2022-08-19T17:48:40Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_1de43290aac04be681599148e183ae82","list_currency":"USD","list_rate":7.75,"mode":"test","object":"Rate","rate":7.75,"retail_currency":"USD","retail_rate":7.75,"service":"ParcelSelect","shipment_id":"shp_aa06dec7f3504b0496bd5a6cbe176f63","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":4,"percentile_97":5,"percentile_99":9},"updated_at":"2022-08-19T17:48:40Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-08-19T17:48:40Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_411b8205f97c471088ab46126d6c0186","list_currency":"USD","list_rate":29.5,"mode":"test","object":"Rate","rate":29.5,"retail_currency":"USD","retail_rate":33.55,"service":"Express","shipment_id":"shp_aa06dec7f3504b0496bd5a6cbe176f63","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-08-19T17:48:40Z"}]}' + body: '{"result":[{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":null,"est_delivery_days":null,"id":"rate_0aaae55d3b9c49de8df1c858bdd6bc5c","list_currency":"USD","list_rate":29.5,"mode":"test","object":"Rate","rate":29.5,"retail_currency":"USD","retail_rate":33.55,"service":"Express","shipment_id":"shp_9e3b58ae007e4cba95771942e5e0c049","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":4},"updated_at":"2022-09-21T18:23:24Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":2,"est_delivery_days":2,"id":"rate_3eb2dbb702764f249e4d2631a7844cf7","list_currency":"USD","list_rate":7.9,"mode":"test","object":"Rate","rate":7.9,"retail_currency":"USD","retail_rate":9.45,"service":"Priority","shipment_id":"shp_9e3b58ae007e4cba95771942e5e0c049","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":3,"percentile_99":6},"updated_at":"2022-09-21T18:23:24Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":3,"est_delivery_days":3,"id":"rate_2ad4520735a94bfca47a17bbb201fc0d","list_currency":"USD","list_rate":5.57,"mode":"test","object":"Rate","rate":5.57,"retail_currency":"USD","retail_rate":5.57,"service":"First","shipment_id":"shp_9e3b58ae007e4cba95771942e5e0c049","time_in_transit":{"percentile_50":2,"percentile_75":2,"percentile_85":2,"percentile_90":2,"percentile_95":3,"percentile_97":4,"percentile_99":6},"updated_at":"2022-09-21T18:23:24Z"},{"carrier":"USPS","carrier_account_id":"ca_e606176ddb314afe896733636dba2f3b","created_at":"2022-09-21T18:23:24Z","currency":"USD","delivery_date":null,"delivery_date_guaranteed":false,"delivery_days":5,"est_delivery_days":5,"id":"rate_a5b2ac4bba8942a893c03e06b57e250c","list_currency":"USD","list_rate":7.75,"mode":"test","object":"Rate","rate":7.75,"retail_currency":"USD","retail_rate":7.75,"service":"ParcelSelect","shipment_id":"shp_9e3b58ae007e4cba95771942e5e0c049","time_in_transit":{"percentile_50":1,"percentile_75":2,"percentile_85":2,"percentile_90":3,"percentile_95":5,"percentile_97":6,"percentile_99":10},"updated_at":"2022-09-21T18:23:24Z"}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"010028f11b8fd6c5be667ab4b529a581" + - W/"74690dce6225bc3089cd897891bf16b2" Expires: - "0" Pragma: @@ -108,21 +110,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf8ff246ba100702a62 + - 8f5eb2cf632b569cec7d9989000dbdb6 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.106910" + - "0.092063" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestTrackerAll.yaml b/tests/cassettes/TestTrackerAll.yaml index c6a77bd..642b0d8 100644 --- a/tests/cassettes/TestTrackerAll.yaml +++ b/tests/cassettes/TestTrackerAll.yaml @@ -14,39 +14,39 @@ interactions: url: https://api.easypost.com/v2/trackers method: GET response: - body: '{"trackers":[{"id":"trk_b9e47f4a62fd41ea817cf08441de8e3e","object":"Tracker","mode":"test","tracking_code":"9400100109361133884131","status":"pre_transit","status_detail":"status_update","created_at":"2022-08-19T17:48:36Z","updated_at":"2022-08-19T17:48:36Z","signed_by":null,"weight":null,"est_delivery_date":"2022-08-19T17:48:36Z","shipment_id":"shp_43ac04a00edb4ff1bd477fab9b380df1","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment - Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-07-19T17:48:36Z","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-07-20T06:25:36Z","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/djE6dHJrX2I5ZTQ3ZjRhNjJmZDQxZWE4MTdjZjA4NDQxZGU4ZTNl"},{"id":"trk_ebd0a92738de4fac91d55fb0e24163ec","object":"Tracker","mode":"test","tracking_code":"9400100109361133884124","status":"pre_transit","status_detail":"status_update","created_at":"2022-08-19T17:48:35Z","updated_at":"2022-08-19T17:48:35Z","signed_by":null,"weight":null,"est_delivery_date":"2022-08-19T17:48:35Z","shipment_id":"shp_ee868601aa7043e2a1e5247147a1bc3d","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment - Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-07-19T17: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-07-20T06:25:35Z","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/djE6dHJrX2ViZDBhOTI3MzhkZTRmYWM5MWQ1NWZiMGUyNDE2M2Vj"},{"id":"trk_298559d1cdbb4e538ccc3df30ed4087c","object":"Tracker","mode":"test","tracking_code":"9400100109361133884117","status":"pre_transit","status_detail":"status_update","created_at":"2022-08-19T17:48:33Z","updated_at":"2022-08-19T17:48:34Z","signed_by":null,"weight":null,"est_delivery_date":"2022-08-19T17:48:34Z","shipment_id":"shp_610841bca5074e6cbc97125ef00708b4","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment - Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-07-19T17:48:34Z","source":"USPS","carrier_code":null,"tracking_location":{"object":"TrackingLocation","city":null,"state":null,"country":null,"zip":null}},{"object":"TrackingDetail","message":"Shipping - Label Created","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-07-20T06:25:34Z","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/djE6dHJrXzI5ODU1OWQxY2RiYjRlNTM4Y2NjM2RmMzBlZDQwODdj"},{"id":"trk_dfb38ea1f19646588ed3dd3e8dda66ba","object":"Tracker","mode":"test","tracking_code":"9400100109361133884100","status":"pre_transit","status_detail":"status_update","created_at":"2022-08-19T17:48:31Z","updated_at":"2022-08-19T17:48:31Z","signed_by":null,"weight":null,"est_delivery_date":"2022-08-19T17:48:31Z","shipment_id":"shp_8725e2511bcd46e8b429f6e1673a010b","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment - Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-07-19T17:48:31Z","source":"USPS","carrier_code":null,"tracking_location":{"object":"TrackingLocation","city":null,"state":null,"country":null,"zip":null}},{"object":"TrackingDetail","message":"Shipping - Label Created","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-07-20T06:25:31Z","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/djE6dHJrX2RmYjM4ZWExZjE5NjQ2NTg4ZWQzZGQzZThkZGE2NmJh"},{"id":"trk_ad5a521470ce45f1b35c90fc91f89d53","object":"Tracker","mode":"test","tracking_code":"9400100109361133884087","status":"pre_transit","status_detail":"status_update","created_at":"2022-08-19T17:48:28Z","updated_at":"2022-08-19T17:48:28Z","signed_by":null,"weight":null,"est_delivery_date":"2022-08-19T17:48:28Z","shipment_id":"shp_c44078006ce24f0caa9b32ebcca832bf","carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment - Info Sent to USPS","description":null,"status":"pre_transit","status_detail":"status_update","datetime":"2022-07-19T17:48:28Z","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-07-20T06:25:28Z","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/djE6dHJrX2FkNWE1MjE0NzBjZTQ1ZjFiMzVjOTBmYzkxZjg5ZDUz"}],"has_more":true}' + body: '{"has_more":true,"trackers":[{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2022-09-21T18:23:21Z","est_delivery_date":"2022-09-21T18:23:21Z","fees":[],"id":"trk_22ad0691b0f44dfe9a060a56e496c9af","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzIyYWQwNjkxYjBmNDRkZmU5YTA2MGE1NmU0OTZjOWFm","shipment_id":"shp_57a3d40336a3410796aac029e0b35675","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710404","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:21Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:21Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:21Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2022-09-21T18:23:19Z","est_delivery_date":"2022-09-21T18:23:19Z","fees":[],"id":"trk_c1ee1269cf504c6f82a5813c651b06ff","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2MxZWUxMjY5Y2Y1MDRjNmY4MmE1ODEzYzY1MWIwNmZm","shipment_id":"shp_466de8e548664ab4be3e1e0daf901606","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710398","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:19Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:19Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:19Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2022-09-21T18:23:18Z","est_delivery_date":"2022-09-21T18:23:18Z","fees":[],"id":"trk_29a7627584b343a6a1c1ce94ba0d050e","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrXzI5YTc2Mjc1ODRiMzQzYTZhMWMxY2U5NGJhMGQwNTBl","shipment_id":"shp_3995263ad5f14d47a3cc272591bf17d6","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710381","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:18Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:18Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:18Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2022-09-21T18:23:15Z","est_delivery_date":"2022-09-21T18:23:15Z","fees":[],"id":"trk_bcadf76c103d4431bb4609eab8c5c833","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2JjYWRmNzZjMTAzZDQ0MzFiYjQ2MDllYWI4YzVjODMz","shipment_id":"shp_164e641bcf834750a6bf62409f447c96","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710367","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:15Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:15Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:15Z","weight":null},{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2022-09-21T18:23:11Z","est_delivery_date":"2022-09-21T18:23:11Z","fees":[],"id":"trk_d56e19ef0e144751973d6368af4ffa90","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2Q1NmUxOWVmMGUxNDQ3NTE5NzNkNjM2OGFmNGZmYTkw","shipment_id":"shp_1dcd383d0fda43db995935d3f467c511","signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"9400100109361138710336","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:11Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:11Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:11Z","weight":null}]}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"dc52c5eb4e278afb1df2b1bc8dab91ec" + - W/"079e6361c85a346996765c4751e4d6b1" Expires: - "0" Pragma: @@ -62,21 +62,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf9ff246ba100702a91 + - 8f5eb2cf632b569cec7d9989000dbddc X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.113809" + - "0.186212" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestTrackerCreate.yaml b/tests/cassettes/TestTrackerCreate.yaml index a0c5548..c215a9e 100644 --- a/tests/cassettes/TestTrackerCreate.yaml +++ b/tests/cassettes/TestTrackerCreate.yaml @@ -14,20 +14,20 @@ interactions: url: https://api.easypost.com/v2/trackers method: POST response: - body: '{"id":"trk_67b1f4e7d5c84796ada2945a8fcea9be","object":"Tracker","mode":"test","tracking_code":"EZ1000000001","status":"pre_transit","status_detail":"unknown","created_at":"2022-08-19T17:48:41Z","updated_at":"2022-08-19T17:48:41Z","signed_by":null,"weight":17.6,"est_delivery_date":"2022-08-19T17:48:41Z","shipment_id":null,"carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment - information received","description":null,"status":"pre_transit","status_detail":null,"datetime":"2022-07-19T17:48:41Z","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-07-20T12:37:41Z","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/djE6dHJrXzY3YjFmNGU3ZDVjODQ3OTZhZGEyOTQ1YThmY2VhOWJl","fees":[{"object":"Fee","type":"TrackerFee","amount":"0.02000","charged":false,"refunded":false}]}' + body: '{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:23:25Z","est_delivery_date":"2022-09-21T18:23:25Z","fees":[{"amount":"0.02000","charged":false,"object":"Fee","refunded":false,"type":"TrackerFee"}],"finalized":true,"id":"trk_c6c2b14e38214df3aab4d05390b9f188","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2M2YzJiMTRlMzgyMTRkZjNhYWI0ZDA1MzkwYjlmMTg4","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"unknown","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:25Z","description":null,"message":"Pre-Shipment + information received","object":"TrackingDetail","source":"EasyPost","status":"pre_transit","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T13:12:25Z","description":null,"message":"Shipping + label created","object":"TrackingDetail","source":"EasyPost","status":"pre_transit","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2022-09-21T18:23:25Z","weight":17.6}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"6ce02cb14940991c7567c74dc9e819ae" + - W/"913df1a79fa27d17ea70b7d30e753a00" Expires: - "0" Location: - - /api/v2/trackers/trk_67b1f4e7d5c84796ada2945a8fcea9be + - /api/v2/trackers/trk_c6c2b14e38214df3aab4d05390b9f188 Pragma: - no-cache Referrer-Policy: @@ -41,7 +41,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf9ff246ba100702a9d + - 8f5eb2cf632b569dec7d9989000dbe19 X-Frame-Options: - SAMEORIGIN X-Node: @@ -49,13 +49,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.105602" + - "0.116578" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestTrackerCreateList.yaml b/tests/cassettes/TestTrackerCreateList.yaml index cf1aa2e..5512c4e 100644 --- a/tests/cassettes/TestTrackerCreateList.yaml +++ b/tests/cassettes/TestTrackerCreateList.yaml @@ -37,7 +37,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccf9ff246ba100702ad7 + - 8f5eb2cf632b569dec7d9989000dbe39 X-Frame-Options: - SAMEORIGIN X-Node: @@ -45,13 +45,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.033736" + - "0.035069" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestTrackerRetrieve.yaml b/tests/cassettes/TestTrackerRetrieve.yaml index d3bb419..148f370 100644 --- a/tests/cassettes/TestTrackerRetrieve.yaml +++ b/tests/cassettes/TestTrackerRetrieve.yaml @@ -14,20 +14,20 @@ interactions: url: https://api.easypost.com/v2/trackers method: POST response: - body: '{"id":"trk_c2e851e5a60c4eae83822fef17bdbcb1","object":"Tracker","mode":"test","tracking_code":"EZ1000000001","status":"pre_transit","status_detail":"unknown","created_at":"2022-08-19T17:48:42Z","updated_at":"2022-08-19T17:48:42Z","signed_by":null,"weight":17.6,"est_delivery_date":"2022-08-19T17:48:42Z","shipment_id":null,"carrier":"USPS","tracking_details":[{"object":"TrackingDetail","message":"Pre-Shipment - information received","description":null,"status":"pre_transit","status_detail":null,"datetime":"2022-07-19T17:48:42Z","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-07-20T12:37:42Z","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/djE6dHJrX2MyZTg1MWU1YTYwYzRlYWU4MzgyMmZlZjE3YmRiY2Ix","fees":[{"object":"Fee","type":"TrackerFee","amount":"0.02000","charged":false,"refunded":false}]}' + body: '{"carrier":"USPS","carrier_detail":null,"created_at":"2022-09-21T18:23:26Z","est_delivery_date":"2022-09-21T18:23:26Z","fees":[{"amount":"0.02000","charged":false,"object":"Fee","refunded":false,"type":"TrackerFee"}],"finalized":true,"id":"trk_cc0474d214f04158b06147ce9fda6cdd","is_return":false,"mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2NjMDQ3NGQyMTRmMDQxNThiMDYxNDdjZTlmZGE2Y2Rk","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"unknown","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:26Z","description":null,"message":"Pre-Shipment + information received","object":"TrackingDetail","source":"EasyPost","status":"pre_transit","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T13:12:26Z","description":null,"message":"Shipping + label created","object":"TrackingDetail","source":"EasyPost","status":"pre_transit","status_detail":null,"tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}}],"updated_at":"2022-09-21T18:23:26Z","weight":17.6}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"d77278350e62f174b9dfcc77c15a12f4" + - W/"32690268db06538f9d183ba376305641" Expires: - "0" Location: - - /api/v2/trackers/trk_c2e851e5a60c4eae83822fef17bdbcb1 + - /api/v2/trackers/trk_cc0474d214f04158b06147ce9fda6cdd Pragma: - no-cache Referrer-Policy: @@ -41,21 +41,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccfaff246ba100702adf + - 8f5eb2cf632b569eec7d9989000dbe58 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.102111" + - "0.178816" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -69,22 +69,22 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/trackers/trk_c2e851e5a60c4eae83822fef17bdbcb1 + url: https://api.easypost.com/v2/trackers/trk_cc0474d214f04158b06147ce9fda6cdd method: GET response: - body: '{"id":"trk_c2e851e5a60c4eae83822fef17bdbcb1","object":"Tracker","mode":"test","tracking_code":"EZ1000000001","status":"pre_transit","status_detail":"status_update","created_at":"2022-08-19T17:48:42Z","updated_at":"2022-08-19T17:48:42Z","signed_by":null,"weight":null,"est_delivery_date":"2022-08-19T17:48:42Z","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-07-19T17:48: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-07-20T06:25:42Z","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/djE6dHJrX2MyZTg1MWU1YTYwYzRlYWU4MzgyMmZlZjE3YmRiY2Ix"}' + body: '{"carrier":"USPS","carrier_detail":{"alternate_identifier":null,"container_type":null,"destination_location":"CHARLESTON + SC, 29401","destination_tracking_location":null,"est_delivery_date_local":null,"est_delivery_time_local":null,"guaranteed_delivery_date":null,"initial_delivery_attempt":null,"object":"CarrierDetail","origin_location":"HOUSTON + TX, 77001","origin_tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"},"service":"First-Class + Package Service"},"created_at":"2022-09-21T18:23:26Z","est_delivery_date":"2022-09-21T18:23:26Z","fees":[{"amount":"0.02000","charged":false,"object":"Fee","refunded":false,"type":"TrackerFee"}],"id":"trk_cc0474d214f04158b06147ce9fda6cdd","mode":"test","object":"Tracker","public_url":"https://track.easypost.com/djE6dHJrX2NjMDQ3NGQyMTRmMDQxNThiMDYxNDdjZTlmZGE2Y2Rk","shipment_id":null,"signed_by":null,"status":"pre_transit","status_detail":"status_update","tracking_code":"EZ1000000001","tracking_details":[{"carrier_code":null,"datetime":"2022-08-21T18:23:26Z","description":null,"message":"Pre-Shipment + Info Sent to USPS","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":null,"country":null,"object":"TrackingLocation","state":null,"zip":null}},{"carrier_code":null,"datetime":"2022-08-22T07:00:26Z","description":null,"message":"Shipping + Label Created","object":"TrackingDetail","source":"USPS","status":"pre_transit","status_detail":"status_update","tracking_location":{"city":"HOUSTON","country":null,"object":"TrackingLocation","state":"TX","zip":"77063"}}],"updated_at":"2022-09-21T18:23:26Z","weight":null}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"7832f4e32244c9045b4b2e763fe278fe" + - W/"e9271e5f130b2b4de49b7a437ce2d9d7" Expires: - "0" Pragma: @@ -95,26 +95,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccfaff246ba100702aea + - 8f5eb2cf632b569eec7d9989000dbe7f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.045643" + - "0.116508" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserCreate.yaml b/tests/cassettes/TestUserCreate.yaml index 936595f..8241268 100644 --- a/tests/cassettes/TestUserCreate.yaml +++ b/tests/cassettes/TestUserCreate.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/users method: POST response: - body: '{"api_keys":[],"children":[],"created_at":"2022-08-19T17:48:42Z","id":"user_be3064cfc1da4a118c1b10df28a56b7e","name":"Test + body: '{"api_keys":[],"children":[],"created_at":"2022-09-21T18:23:27Z","id":"user_947c09183ad54a0fb2b8e1c9158adb05","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}' headers: Cache-Control: @@ -22,7 +22,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"44ab8b51683ff4589135ab8178651f5a" + - W/"d0c12c3d37efd4a4c8bdd6dd8eb34de3" Expires: - "0" Pragma: @@ -40,7 +40,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccfaff246ba100702afa + - 8f5eb2cf632b569eec7d9989000dbea5 X-Frame-Options: - SAMEORIGIN X-Node: @@ -48,13 +48,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.746941" + - "0.806389" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created diff --git a/tests/cassettes/TestUserDelete.yaml b/tests/cassettes/TestUserDelete.yaml index e6cc2ac..f359737 100644 --- a/tests/cassettes/TestUserDelete.yaml +++ b/tests/cassettes/TestUserDelete.yaml @@ -14,7 +14,7 @@ interactions: url: https://api.easypost.com/v2/users method: POST response: - body: '{"api_keys":[],"children":[],"created_at":"2022-08-19T17:48:43Z","id":"user_8cebd343665d49a2aed4295120158ce3","name":"Test + body: '{"api_keys":[],"children":[],"created_at":"2022-09-21T18:23:28Z","id":"user_0d9f31d2ccba4af1826df92beed38103","name":"Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}' headers: Cache-Control: @@ -22,7 +22,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"d0aa5d68d193929276e73d87d9bd3ab6" + - W/"d1802b9c56bdb07ef0f3ca79daff0012" Expires: - "0" Pragma: @@ -33,26 +33,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccfbff246ba100702b3c + - 8f5eb2cf632b569fec7d9989000dbf10 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.723241" + - "0.732085" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -66,7 +68,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/users/user_8cebd343665d49a2aed4295120158ce3 + url: https://api.easypost.com/v2/users/user_0d9f31d2ccba4af1826df92beed38103 method: DELETE response: body: "" @@ -88,21 +90,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccfcff246ba100702b69 + - 8f5eb2cf632b56a0ec7d9989000dbf6b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb2nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.129883" + - "0.137156" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 204 No Content diff --git a/tests/cassettes/TestUserRetrieve.yaml b/tests/cassettes/TestUserRetrieve.yaml index c6d6016..a329e1c 100644 --- a/tests/cassettes/TestUserRetrieve.yaml +++ b/tests/cassettes/TestUserRetrieve.yaml @@ -12,7 +12,36 @@ interactions: url: https://api.easypost.com/v2/users method: GET response: - body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test + body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2022-02-07T20:08:11Z","id":"user_1d75fce0f97c4c3aa42ea008528a1ef0","name":"Go + Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:15:31Z","id":"user_6bf3fb5f29984af69d11d4b73cfeaf45","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:17:20Z","id":"user_e1c08a41e8cc42a3844cf69c621ceaa4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:00Z","id":"user_3f50745c5e954c8cb5291be5bb865564","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:01Z","id":"user_8187177ecada4f4eabbb63efb949fd4b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:35Z","id":"user_e19439099a66487d88e67a7d15fe2674","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:36Z","id":"user_7835460ae64943399d7c1e3d044b6297","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:50Z","id":"user_62d6974267664be5bf8145e63f276b5b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:51Z","id":"user_cee546d8c66741beb37d868ab55c33d7","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:54Z","id":"user_c9c49c9dc4914ec1944d75a7c4c8b0f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:55Z","id":"user_9dbf6f15404144c4aa82bb8307f72044","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:36Z","id":"user_95932f5a5b8c4ab0945194e6c598e4f4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:37Z","id":"user_47c4bb6afd6a431ba4eac7e9156cd5f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-23T21:14:37Z","id":"user_7659605a245a417184471cd1d0158afa","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T03:16:02Z","id":"user_250ebf668e894efa80954c9b83b1ab09","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T22:28:55Z","id":"user_27fcc563b8284e5f8397e5ef9dff575d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T18:03:36Z","id":"user_05a6a09963c24498ab9dd1a4fea1ece0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T19:38:06Z","id":"user_d8f15f6501704f208d09c06515914ac6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-26T15:05:45Z","id":"user_f78d0b7b091d4b7cbdc930c417f1fcdb","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-06-27T21:06:41Z","id":"user_1dd9b4bb7b39431587f21ad0a597646d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-16T20:24:40Z","id":"user_f717cf4d121f45eebefd75067d6f863d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-19T17:48:42Z","id":"user_be3064cfc1da4a118c1b10df28a56b7e","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:08:28Z","id":"user_7fdb66f7e8b04471983619b81adf7bc1","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:11:53Z","id":"user_010f0b8deb0444a68115fb0279ad9be6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:14:00Z","id":"user_20b3b0634f4f42e6b8ffa2dae194dc8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:26:33Z","id":"user_85f45115de214f7f8d6f399f11765e8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:29:29Z","id":"user_cb22d053980d4f9e882f54fe7237a00c","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T16:20:08Z","id":"user_b15ac22820c64e0d8214b05e4cc9d432","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T18:23:27Z","id":"user_947c09183ad54a0fb2b8e1c9158adb05","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: Cache-Control: @@ -20,7 +49,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"2df8181df5821fe33fe629675ab709b0" + - W/"8d0e937d99a090ac3c29c2dc5f57047f" Expires: - "0" Pragma: @@ -36,21 +65,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccfcff246ba100702b7b + - 8f5eb2cf632b56a1ec7d9989000dbf99 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.370450" + - "0.476025" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -67,7 +96,36 @@ interactions: url: https://api.easypost.com/v2/users/user_a76997d126dd488f8ad22d52301300b0 method: GET response: - body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test + body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2022-02-07T20:08:11Z","id":"user_1d75fce0f97c4c3aa42ea008528a1ef0","name":"Go + Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:15:31Z","id":"user_6bf3fb5f29984af69d11d4b73cfeaf45","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:17:20Z","id":"user_e1c08a41e8cc42a3844cf69c621ceaa4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:00Z","id":"user_3f50745c5e954c8cb5291be5bb865564","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:01Z","id":"user_8187177ecada4f4eabbb63efb949fd4b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:35Z","id":"user_e19439099a66487d88e67a7d15fe2674","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:36Z","id":"user_7835460ae64943399d7c1e3d044b6297","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:50Z","id":"user_62d6974267664be5bf8145e63f276b5b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:51Z","id":"user_cee546d8c66741beb37d868ab55c33d7","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:54Z","id":"user_c9c49c9dc4914ec1944d75a7c4c8b0f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:55Z","id":"user_9dbf6f15404144c4aa82bb8307f72044","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:36Z","id":"user_95932f5a5b8c4ab0945194e6c598e4f4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:37Z","id":"user_47c4bb6afd6a431ba4eac7e9156cd5f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-23T21:14:37Z","id":"user_7659605a245a417184471cd1d0158afa","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T03:16:02Z","id":"user_250ebf668e894efa80954c9b83b1ab09","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T22:28:55Z","id":"user_27fcc563b8284e5f8397e5ef9dff575d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T18:03:36Z","id":"user_05a6a09963c24498ab9dd1a4fea1ece0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T19:38:06Z","id":"user_d8f15f6501704f208d09c06515914ac6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-26T15:05:45Z","id":"user_f78d0b7b091d4b7cbdc930c417f1fcdb","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-06-27T21:06:41Z","id":"user_1dd9b4bb7b39431587f21ad0a597646d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-16T20:24:40Z","id":"user_f717cf4d121f45eebefd75067d6f863d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-19T17:48:42Z","id":"user_be3064cfc1da4a118c1b10df28a56b7e","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:08:28Z","id":"user_7fdb66f7e8b04471983619b81adf7bc1","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:11:53Z","id":"user_010f0b8deb0444a68115fb0279ad9be6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:14:00Z","id":"user_20b3b0634f4f42e6b8ffa2dae194dc8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:26:33Z","id":"user_85f45115de214f7f8d6f399f11765e8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:29:29Z","id":"user_cb22d053980d4f9e882f54fe7237a00c","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T16:20:08Z","id":"user_b15ac22820c64e0d8214b05e4cc9d432","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T18:23:27Z","id":"user_947c09183ad54a0fb2b8e1c9158adb05","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: Cache-Control: @@ -75,7 +133,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"2df8181df5821fe33fe629675ab709b0" + - W/"8d0e937d99a090ac3c29c2dc5f57047f" Expires: - "0" Pragma: @@ -91,21 +149,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccfdff246ba100702b9d + - 8f5eb2cf632b56a1ec7d9989000dbfdb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.367627" + - "0.379401" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserRetrieveMe.yaml b/tests/cassettes/TestUserRetrieveMe.yaml index c7aa30d..5bdbc8a 100644 --- a/tests/cassettes/TestUserRetrieveMe.yaml +++ b/tests/cassettes/TestUserRetrieveMe.yaml @@ -12,7 +12,36 @@ interactions: url: https://api.easypost.com/v2/users method: GET response: - body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test + body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2022-02-07T20:08:11Z","id":"user_1d75fce0f97c4c3aa42ea008528a1ef0","name":"Go + Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:15:31Z","id":"user_6bf3fb5f29984af69d11d4b73cfeaf45","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:17:20Z","id":"user_e1c08a41e8cc42a3844cf69c621ceaa4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:00Z","id":"user_3f50745c5e954c8cb5291be5bb865564","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:01Z","id":"user_8187177ecada4f4eabbb63efb949fd4b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:35Z","id":"user_e19439099a66487d88e67a7d15fe2674","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:36Z","id":"user_7835460ae64943399d7c1e3d044b6297","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:50Z","id":"user_62d6974267664be5bf8145e63f276b5b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:51Z","id":"user_cee546d8c66741beb37d868ab55c33d7","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:54Z","id":"user_c9c49c9dc4914ec1944d75a7c4c8b0f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:55Z","id":"user_9dbf6f15404144c4aa82bb8307f72044","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:36Z","id":"user_95932f5a5b8c4ab0945194e6c598e4f4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:37Z","id":"user_47c4bb6afd6a431ba4eac7e9156cd5f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-23T21:14:37Z","id":"user_7659605a245a417184471cd1d0158afa","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T03:16:02Z","id":"user_250ebf668e894efa80954c9b83b1ab09","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T22:28:55Z","id":"user_27fcc563b8284e5f8397e5ef9dff575d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T18:03:36Z","id":"user_05a6a09963c24498ab9dd1a4fea1ece0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T19:38:06Z","id":"user_d8f15f6501704f208d09c06515914ac6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-26T15:05:45Z","id":"user_f78d0b7b091d4b7cbdc930c417f1fcdb","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-06-27T21:06:41Z","id":"user_1dd9b4bb7b39431587f21ad0a597646d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-16T20:24:40Z","id":"user_f717cf4d121f45eebefd75067d6f863d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-19T17:48:42Z","id":"user_be3064cfc1da4a118c1b10df28a56b7e","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:08:28Z","id":"user_7fdb66f7e8b04471983619b81adf7bc1","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:11:53Z","id":"user_010f0b8deb0444a68115fb0279ad9be6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:14:00Z","id":"user_20b3b0634f4f42e6b8ffa2dae194dc8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:26:33Z","id":"user_85f45115de214f7f8d6f399f11765e8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:29:29Z","id":"user_cb22d053980d4f9e882f54fe7237a00c","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T16:20:08Z","id":"user_b15ac22820c64e0d8214b05e4cc9d432","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T18:23:27Z","id":"user_947c09183ad54a0fb2b8e1c9158adb05","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: Cache-Control: @@ -20,7 +49,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"2df8181df5821fe33fe629675ab709b0" + - W/"8d0e937d99a090ac3c29c2dc5f57047f" Expires: - "0" Pragma: @@ -36,21 +65,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccfeff246ba100702bd3 + - 8f5eb2cf632b56a2ec7d9989000dc016 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.375337" + - "0.349914" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserUpdate.yaml b/tests/cassettes/TestUserUpdate.yaml index f719b29..24acd43 100644 --- a/tests/cassettes/TestUserUpdate.yaml +++ b/tests/cassettes/TestUserUpdate.yaml @@ -12,7 +12,36 @@ interactions: url: https://api.easypost.com/v2/users method: GET response: - body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test + body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2022-02-07T20:08:11Z","id":"user_1d75fce0f97c4c3aa42ea008528a1ef0","name":"Go + Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:15:31Z","id":"user_6bf3fb5f29984af69d11d4b73cfeaf45","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:17:20Z","id":"user_e1c08a41e8cc42a3844cf69c621ceaa4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:00Z","id":"user_3f50745c5e954c8cb5291be5bb865564","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:01Z","id":"user_8187177ecada4f4eabbb63efb949fd4b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:35Z","id":"user_e19439099a66487d88e67a7d15fe2674","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:36Z","id":"user_7835460ae64943399d7c1e3d044b6297","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:50Z","id":"user_62d6974267664be5bf8145e63f276b5b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:51Z","id":"user_cee546d8c66741beb37d868ab55c33d7","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:54Z","id":"user_c9c49c9dc4914ec1944d75a7c4c8b0f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:55Z","id":"user_9dbf6f15404144c4aa82bb8307f72044","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:36Z","id":"user_95932f5a5b8c4ab0945194e6c598e4f4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:37Z","id":"user_47c4bb6afd6a431ba4eac7e9156cd5f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-23T21:14:37Z","id":"user_7659605a245a417184471cd1d0158afa","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T03:16:02Z","id":"user_250ebf668e894efa80954c9b83b1ab09","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T22:28:55Z","id":"user_27fcc563b8284e5f8397e5ef9dff575d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T18:03:36Z","id":"user_05a6a09963c24498ab9dd1a4fea1ece0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T19:38:06Z","id":"user_d8f15f6501704f208d09c06515914ac6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-26T15:05:45Z","id":"user_f78d0b7b091d4b7cbdc930c417f1fcdb","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-06-27T21:06:41Z","id":"user_1dd9b4bb7b39431587f21ad0a597646d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-16T20:24:40Z","id":"user_f717cf4d121f45eebefd75067d6f863d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-19T17:48:42Z","id":"user_be3064cfc1da4a118c1b10df28a56b7e","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:08:28Z","id":"user_7fdb66f7e8b04471983619b81adf7bc1","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:11:53Z","id":"user_010f0b8deb0444a68115fb0279ad9be6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:14:00Z","id":"user_20b3b0634f4f42e6b8ffa2dae194dc8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:26:33Z","id":"user_85f45115de214f7f8d6f399f11765e8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:29:29Z","id":"user_cb22d053980d4f9e882f54fe7237a00c","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T16:20:08Z","id":"user_b15ac22820c64e0d8214b05e4cc9d432","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T18:23:27Z","id":"user_947c09183ad54a0fb2b8e1c9158adb05","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: Cache-Control: @@ -20,7 +49,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"2df8181df5821fe33fe629675ab709b0" + - W/"8d0e937d99a090ac3c29c2dc5f57047f" Expires: - "0" Pragma: @@ -36,21 +65,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccfeff246ba100702bfb + - 8f5eb2cf632b56a2ec7d9989000dc055 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.310361" + - "0.431148" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -69,7 +98,36 @@ interactions: url: https://api.easypost.com/v2/users/user_a76997d126dd488f8ad22d52301300b0 method: PATCH response: - body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test + body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2022-02-07T20:08:11Z","id":"user_1d75fce0f97c4c3aa42ea008528a1ef0","name":"Go + Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:15:31Z","id":"user_6bf3fb5f29984af69d11d4b73cfeaf45","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:17:20Z","id":"user_e1c08a41e8cc42a3844cf69c621ceaa4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:00Z","id":"user_3f50745c5e954c8cb5291be5bb865564","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:01Z","id":"user_8187177ecada4f4eabbb63efb949fd4b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:35Z","id":"user_e19439099a66487d88e67a7d15fe2674","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:36Z","id":"user_7835460ae64943399d7c1e3d044b6297","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:50Z","id":"user_62d6974267664be5bf8145e63f276b5b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:51Z","id":"user_cee546d8c66741beb37d868ab55c33d7","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:54Z","id":"user_c9c49c9dc4914ec1944d75a7c4c8b0f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:55Z","id":"user_9dbf6f15404144c4aa82bb8307f72044","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:36Z","id":"user_95932f5a5b8c4ab0945194e6c598e4f4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:37Z","id":"user_47c4bb6afd6a431ba4eac7e9156cd5f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-23T21:14:37Z","id":"user_7659605a245a417184471cd1d0158afa","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T03:16:02Z","id":"user_250ebf668e894efa80954c9b83b1ab09","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T22:28:55Z","id":"user_27fcc563b8284e5f8397e5ef9dff575d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T18:03:36Z","id":"user_05a6a09963c24498ab9dd1a4fea1ece0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T19:38:06Z","id":"user_d8f15f6501704f208d09c06515914ac6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-26T15:05:45Z","id":"user_f78d0b7b091d4b7cbdc930c417f1fcdb","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-06-27T21:06:41Z","id":"user_1dd9b4bb7b39431587f21ad0a597646d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-16T20:24:40Z","id":"user_f717cf4d121f45eebefd75067d6f863d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-19T17:48:42Z","id":"user_be3064cfc1da4a118c1b10df28a56b7e","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:08:28Z","id":"user_7fdb66f7e8b04471983619b81adf7bc1","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:11:53Z","id":"user_010f0b8deb0444a68115fb0279ad9be6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:14:00Z","id":"user_20b3b0634f4f42e6b8ffa2dae194dc8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:26:33Z","id":"user_85f45115de214f7f8d6f399f11765e8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:29:29Z","id":"user_cb22d053980d4f9e882f54fe7237a00c","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T16:20:08Z","id":"user_b15ac22820c64e0d8214b05e4cc9d432","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T18:23:27Z","id":"user_947c09183ad54a0fb2b8e1c9158adb05","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: Cache-Control: @@ -77,7 +135,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"2df8181df5821fe33fe629675ab709b0" + - W/"8d0e937d99a090ac3c29c2dc5f57047f" Expires: - "0" Pragma: @@ -93,21 +151,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccffff246ba100702c1f + - 8f5eb2cf632b56a3ec7d9989000dc0a8 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.417242" + - "0.392112" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestUserUpdateBrand.yaml b/tests/cassettes/TestUserUpdateBrand.yaml index b91a038..c57b33f 100644 --- a/tests/cassettes/TestUserUpdateBrand.yaml +++ b/tests/cassettes/TestUserUpdateBrand.yaml @@ -12,7 +12,36 @@ interactions: url: https://api.easypost.com/v2/users method: GET response: - body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test + body: '{"balance":"0.00000","cc_fee_rate":"0.03","children":[{"children":[],"created_at":"2022-02-07T20:08:11Z","id":"user_1d75fce0f97c4c3aa42ea008528a1ef0","name":"Go + Test User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:15:31Z","id":"user_6bf3fb5f29984af69d11d4b73cfeaf45","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T00:17:20Z","id":"user_e1c08a41e8cc42a3844cf69c621ceaa4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:00Z","id":"user_3f50745c5e954c8cb5291be5bb865564","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T16:42:01Z","id":"user_8187177ecada4f4eabbb63efb949fd4b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:35Z","id":"user_e19439099a66487d88e67a7d15fe2674","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T22:44:36Z","id":"user_7835460ae64943399d7c1e3d044b6297","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:50Z","id":"user_62d6974267664be5bf8145e63f276b5b","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-02T23:57:51Z","id":"user_cee546d8c66741beb37d868ab55c33d7","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:54Z","id":"user_c9c49c9dc4914ec1944d75a7c4c8b0f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:38:55Z","id":"user_9dbf6f15404144c4aa82bb8307f72044","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:36Z","id":"user_95932f5a5b8c4ab0945194e6c598e4f4","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-03-03T02:45:37Z","id":"user_47c4bb6afd6a431ba4eac7e9156cd5f0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-23T21:14:37Z","id":"user_7659605a245a417184471cd1d0158afa","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T03:16:02Z","id":"user_250ebf668e894efa80954c9b83b1ab09","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-24T22:28:55Z","id":"user_27fcc563b8284e5f8397e5ef9dff575d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T18:03:36Z","id":"user_05a6a09963c24498ab9dd1a4fea1ece0","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-25T19:38:06Z","id":"user_d8f15f6501704f208d09c06515914ac6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-05-26T15:05:45Z","id":"user_f78d0b7b091d4b7cbdc930c417f1fcdb","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-06-27T21:06:41Z","id":"user_1dd9b4bb7b39431587f21ad0a597646d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-16T20:24:40Z","id":"user_f717cf4d121f45eebefd75067d6f863d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-08-19T17:48:42Z","id":"user_be3064cfc1da4a118c1b10df28a56b7e","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:08:28Z","id":"user_7fdb66f7e8b04471983619b81adf7bc1","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:11:53Z","id":"user_010f0b8deb0444a68115fb0279ad9be6","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:14:00Z","id":"user_20b3b0634f4f42e6b8ffa2dae194dc8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:26:33Z","id":"user_85f45115de214f7f8d6f399f11765e8d","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-20T23:29:29Z","id":"user_cb22d053980d4f9e882f54fe7237a00c","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T16:20:08Z","id":"user_b15ac22820c64e0d8214b05e4cc9d432","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true},{"children":[],"created_at":"2022-09-21T18:23:27Z","id":"user_947c09183ad54a0fb2b8e1c9158adb05","name":"Test + User","object":"User","parent_id":"user_a76997d126dd488f8ad22d52301300b0","phone_number":"REDACTED","verified":true}],"created_at":"2020-05-07T23:43:48Z","default_insurance_amount":null,"email":"REDACTED","has_billing_method":false,"id":"user_a76997d126dd488f8ad22d52301300b0","insurance_fee_minimum":"1.00","insurance_fee_rate":"0.01","name":"Test User","object":"User","parent_id":null,"phone_number":"REDACTED","price_per_shipment":"0.00000","recharge_amount":"100.00","recharge_threshold":"0.00","secondary_recharge_amount":"100.00","verified":true}' headers: Cache-Control: @@ -20,7 +49,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Etag: - - W/"2df8181df5821fe33fe629675ab709b0" + - W/"8d0e937d99a090ac3c29c2dc5f57047f" Expires: - "0" Pragma: @@ -31,26 +60,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffccffff246ba100702c4c + - 8f5eb2cf632b56a4ec7d9989000dc0f8 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.233305" + - "0.355334" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -69,7 +100,7 @@ interactions: url: https://api.easypost.com/v2/users/user_a76997d126dd488f8ad22d52301300b0/brand method: PATCH response: - body: '{"id":"brd_3930aba34a0743228c75c1e71c8b0883","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_a76997d126dd488f8ad22d52301300b0","background_color":null,"theme":"theme1"}' + body: '{"ad":null,"ad_href":null,"background_color":null,"color":"#123456","id":"brd_3930aba34a0743228c75c1e71c8b0883","logo":"https://assets.easypost.com/assets/images/branding/easypost-primary-logo-7a2cf535f2.svg","logo_href":"https://www.easypost.com","name":"EasyPost","object":"Brand","theme":"theme1","user_id":"user_a76997d126dd488f8ad22d52301300b0"}' headers: Cache-Control: - private, no-cache, no-store @@ -92,21 +123,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd00ff246ba100702c64 + - 8f5eb2cf632b56a4ec7d9989000dc13b X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.021292" + - "0.019103" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookAll.yaml b/tests/cassettes/TestWebhookAll.yaml index 6db21ff..ec27956 100644 --- a/tests/cassettes/TestWebhookAll.yaml +++ b/tests/cassettes/TestWebhookAll.yaml @@ -35,21 +35,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd00ff246ba100702c75 + - 8f5eb2cf632b56a5ec7d9989000dc153 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.021875" + - "0.022058" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookCreate.yaml b/tests/cassettes/TestWebhookCreate.yaml index a8fa5d7..8e41bf6 100644 --- a/tests/cassettes/TestWebhookCreate.yaml +++ b/tests/cassettes/TestWebhookCreate.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"id":"hook_2de9fbb01fe711ed92a2397eb46ad48a","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-08-19T17:48:49Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:34Z","disabled_at":null,"id":"hook_803902b439da11ed9d574bc6b4a9a030","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"fa018d10eef72640248e81d6c60eb627" + - W/"fd30942f0e757c83b791f40a1f0f351f" Expires: - "0" Pragma: @@ -37,21 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd00ff246ba100702c7e + - 8f5eb2cf632b56a5ec7d9989000dc16f X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.177221" + - "0.211623" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -65,7 +65,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_2de9fbb01fe711ed92a2397eb46ad48a + url: https://api.easypost.com/v2/webhooks/hook_803902b439da11ed9d574bc6b4a9a030 method: DELETE response: body: '{}' @@ -93,7 +93,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd00ff246ba100702c9a + - 8f5eb2cf632b56a5ec7d9989000dc198 X-Frame-Options: - SAMEORIGIN X-Node: @@ -101,13 +101,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.477725" + - "0.363373" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookCreateDeprecated.yaml b/tests/cassettes/TestWebhookCreateDeprecated.yaml index b1a3918..7facac9 100644 --- a/tests/cassettes/TestWebhookCreateDeprecated.yaml +++ b/tests/cassettes/TestWebhookCreateDeprecated.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"id":"hook_a08c854e385f11edb72d7b19517483f2","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-09-19T21:11:28Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:35Z","disabled_at":null,"id":"hook_80cea06239da11edb16a2d8b8cf8f7c2","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"fe46b182c9cd5fa391545c90cd0ab335" + - W/"662e2e701dbaca555070b626c33e620b" Expires: - "0" Pragma: @@ -37,7 +37,7 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - dcb58cf36328db00e7886e43000a30bb + - 8f5eb2cf632b56a6ec7d9989000dc1dc X-Frame-Options: - SAMEORIGIN X-Node: @@ -45,12 +45,13 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 29913d444b - - extlb1nuq 29913d444b + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.212289" + - "0.188064" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -64,7 +65,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_a08c854e385f11edb72d7b19517483f2 + url: https://api.easypost.com/v2/webhooks/hook_80cea06239da11edb16a2d8b8cf8f7c2 method: DELETE response: body: '{}' @@ -85,25 +86,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - dcb58cf36328db00e7886e43000a30c9 + - 8f5eb2cf632b56a6ec7d9989000dc209 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb4nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 29913d444b - - extlb1nuq 29913d444b + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.462450" + - "0.419972" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookCreateWithSecret.yaml b/tests/cassettes/TestWebhookCreateWithSecret.yaml index 04c6973..b3413e6 100644 --- a/tests/cassettes/TestWebhookCreateWithSecret.yaml +++ b/tests/cassettes/TestWebhookCreateWithSecret.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"id":"hook_2e88c9f21fe711ed92f4537d4caab20e","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-08-19T17:48:50Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:36Z","disabled_at":null,"id":"hook_816a5be239da11ed8f42214edf06e3bc","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"a38168caacf1fa66bf601d6731acebb3" + - W/"114978c4e7f394f08ddd9942ff794ee0" Expires: - "0" Pragma: @@ -37,21 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd01ff246ba100702cc3 + - 8f5eb2cf632b56a7ec7d9989000dc257 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.669239" + - "0.666540" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -65,7 +65,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_2e88c9f21fe711ed92f4537d4caab20e + url: https://api.easypost.com/v2/webhooks/hook_816a5be239da11ed8f42214edf06e3bc method: DELETE response: body: '{}' @@ -91,21 +91,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd02ff246ba100702cfa + - 8f5eb2cf632b56a8ec7d9989000dc2b0 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb4nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.400613" + - "0.401732" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookDelete.yaml b/tests/cassettes/TestWebhookDelete.yaml index 40c374e..fbd8b9b 100644 --- a/tests/cassettes/TestWebhookDelete.yaml +++ b/tests/cassettes/TestWebhookDelete.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"id":"hook_2f5d6de21fe711ed9c5b191ee0f64f8b","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-08-19T17:48:51Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:37Z","disabled_at":null,"id":"hook_8250e38239da11eda19e2d2cbbe3114e","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"6e269ab3615fd09ad68aa75909d0a3f7" + - W/"6e7f4337c99b0ea9c5014ca40fb93fca" Expires: - "0" Pragma: @@ -37,21 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd02ff246ba100702d1f + - 8f5eb2cf632b56a8ec7d9989000dc2f5 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.147586" + - "0.149727" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -65,7 +65,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_2f5d6de21fe711ed9c5b191ee0f64f8b + url: https://api.easypost.com/v2/webhooks/hook_8250e38239da11eda19e2d2cbbe3114e method: DELETE response: body: '{}' @@ -91,21 +91,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd03ff246ba100702d3c + - 8f5eb2cf632b56a9ec7d9989000dc326 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb1nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.417218" + - "0.347478" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookEnableDeprecated.yaml b/tests/cassettes/TestWebhookEnableDeprecated.yaml index 30bde2a..81ac313 100644 --- a/tests/cassettes/TestWebhookEnableDeprecated.yaml +++ b/tests/cassettes/TestWebhookEnableDeprecated.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"id":"hook_d1ae83ac385f11eda7d20f0ca6821585","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-09-19T21:12:51Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:38Z","disabled_at":null,"id":"hook_82ffd02239da11ed89f803b166b4ad77","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"90dafefba733a6d21d64b3292e041cda" + - W/"ca978ac24447f01db66a0e3aaf08601d" Expires: - "0" Pragma: @@ -37,20 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - e6062e886328db52e7886ea6000af879 + - 8f5eb2cf632b56aaec7d9989000dc380 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - intlb2nuq 29913d444b - - extlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.766221" + - "0.608733" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -66,17 +67,17 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_d1ae83ac385f11eda7d20f0ca6821585 + url: https://api.easypost.com/v2/webhooks/hook_82ffd02239da11ed89f803b166b4ad77 method: PATCH response: - body: '{"id":"hook_d1ae83ac385f11eda7d20f0ca6821585","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-09-19T21:12:51Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:38Z","disabled_at":null,"id":"hook_82ffd02239da11ed89f803b166b4ad77","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"90dafefba733a6d21d64b3292e041cda" + - W/"ca978ac24447f01db66a0e3aaf08601d" Expires: - "0" Pragma: @@ -92,20 +93,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - e6062e886328db53e7886ea6000af8bd + - 8f5eb2cf632b56aaec7d9989000dc3ea X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 29913d444b - - extlb2nuq 29913d444b + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.491337" + - "0.634241" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -119,7 +121,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_d1ae83ac385f11eda7d20f0ca6821585 + url: https://api.easypost.com/v2/webhooks/hook_82ffd02239da11ed89f803b166b4ad77 method: DELETE response: body: '{}' @@ -145,20 +147,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - e6062e886328db54e7886ea6000af8e0 + - 8f5eb2cf632b56abec7d9989000dc45c X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - intlb2nuq 29913d444b - - extlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.393070" + - "0.398237" X-Version-Label: - - easypost-202209191945-2356362378-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookRetrieve.yaml b/tests/cassettes/TestWebhookRetrieve.yaml index 8fd7c77..4dcd73f 100644 --- a/tests/cassettes/TestWebhookRetrieve.yaml +++ b/tests/cassettes/TestWebhookRetrieve.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"id":"hook_2ffa43921fe711edbdb60b758524d541","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-08-19T17:48:52Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:41Z","disabled_at":null,"id":"hook_848281b039da11eda2f37357e35d4ff9","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"52e96ad9d12736b437edb044baee53da" + - W/"dc4c12151ac2b1f46e94f5faefafdbd4" Expires: - "0" Pragma: @@ -32,26 +32,28 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost + X-Canary: + - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd03ff246ba100702d61 + - 8f5eb2cf632b56acec7d9989000dc4b8 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb3nuq + - bigweb7nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.209205" + - "0.158927" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -65,17 +67,17 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_2ffa43921fe711edbdb60b758524d541 + url: https://api.easypost.com/v2/webhooks/hook_848281b039da11eda2f37357e35d4ff9 method: GET response: - body: '{"id":"hook_2ffa43921fe711edbdb60b758524d541","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-08-19T17:48:52Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:41Z","disabled_at":null,"id":"hook_848281b039da11eda2f37357e35d4ff9","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"52e96ad9d12736b437edb044baee53da" + - W/"dc4c12151ac2b1f46e94f5faefafdbd4" Expires: - "0" Pragma: @@ -91,21 +93,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd04ff246ba100702d74 + - 8f5eb2cf632b56acec7d9989000dc4eb X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.025092" + - "0.024608" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK @@ -119,7 +121,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_2ffa43921fe711edbdb60b758524d541 + url: https://api.easypost.com/v2/webhooks/hook_848281b039da11eda2f37357e35d4ff9 method: DELETE response: body: '{}' @@ -145,21 +147,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd04ff246ba100702d7f + - 8f5eb2cf632b56adec7d9989000dc508 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb1nuq + - bigweb8nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.377354" + - "0.450830" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookUpdate.yaml b/tests/cassettes/TestWebhookUpdate.yaml index fe92cc1..dd87f04 100644 --- a/tests/cassettes/TestWebhookUpdate.yaml +++ b/tests/cassettes/TestWebhookUpdate.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"id":"hook_30b5ae2a1fe711edaec9358c3ac5d4cb","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-08-19T17:48:53Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:42Z","disabled_at":null,"id":"hook_8561340a39da11edbdcd657092bc5a96","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"2eed0284b31e9deb65f30e451d07bfaa" + - W/"cd56349c8fc5e318ab99e9e28e1f52e3" Expires: - "0" Pragma: @@ -32,28 +32,26 @@ interactions: - max-age=31536000; includeSubDomains; preload X-Backend: - easypost - X-Canary: - - direct X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd05ff246ba100702da1 + - 8f5eb2cf632b56aeec7d9989000dc568 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb7nuq + - bigweb6nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.164990" + - "0.185186" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -69,17 +67,17 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_30b5ae2a1fe711edaec9358c3ac5d4cb + url: https://api.easypost.com/v2/webhooks/hook_8561340a39da11edbdcd657092bc5a96 method: PATCH response: - body: '{"id":"hook_30b5ae2a1fe711edaec9358c3ac5d4cb","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-08-19T17:48:53Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:42Z","disabled_at":null,"id":"hook_8561340a39da11edbdcd657092bc5a96","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"2eed0284b31e9deb65f30e451d07bfaa" + - W/"cd56349c8fc5e318ab99e9e28e1f52e3" Expires: - "0" Pragma: @@ -95,21 +93,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd05ff246ba100702dbd + - 8f5eb2cf632b56aeec7d9989000dc5ab X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb9nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.524521" + - "0.548741" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -123,7 +121,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_30b5ae2a1fe711edaec9358c3ac5d4cb + url: https://api.easypost.com/v2/webhooks/hook_8561340a39da11edbdcd657092bc5a96 method: DELETE response: body: '{}' @@ -149,21 +147,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd06ff246ba100702de8 + - 8f5eb2cf632b56afec7d9989000dc605 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.342731" + - "0.430999" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/cassettes/TestWebhookUpdateDeprecated.yaml b/tests/cassettes/TestWebhookUpdateDeprecated.yaml deleted file mode 100644 index 6d44432..0000000 --- a/tests/cassettes/TestWebhookUpdateDeprecated.yaml +++ /dev/null @@ -1,166 +0,0 @@ ---- -version: 1 -interactions: -- request: - body: '{"webhook":{"url":"http://example.com"}}' - form: {} - headers: - Authorization: - - REDACTED - Content-Type: - - application/json - User-Agent: - - REDACTED - url: https://api.easypost.com/v2/webhooks - method: POST - response: - body: '{"id":"hook_b1f99aba385f11ed944e1b054a34e6a1","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-09-19T21:11:58Z","disabled_at":null}' - headers: - Cache-Control: - - private, no-cache, no-store - Content-Type: - - application/json; charset=utf-8 - Etag: - - W/"9e2efed4cbe3f15152953d6e6e1d0d34" - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - strict-origin-when-cross-origin - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload - X-Backend: - - easypost - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Ep-Request-Uuid: - - e6062e8a6328db1de7886e69000ae833 - X-Frame-Options: - - SAMEORIGIN - X-Node: - - bigweb9nuq - X-Permitted-Cross-Domain-Policies: - - none - X-Proxied: - - intlb2nuq 29913d444b - - extlb2nuq 29913d444b - X-Runtime: - - "0.174113" - X-Version-Label: - - easypost-202209191945-2356362378-master - X-Xss-Protection: - - 1; mode=block - status: 201 Created - code: 201 - duration: "" -- request: - body: '{"webhook":{}}' - form: {} - headers: - Authorization: - - REDACTED - Content-Type: - - application/json - User-Agent: - - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_b1f99aba385f11ed944e1b054a34e6a1 - method: PATCH - response: - body: '{"id":"hook_b1f99aba385f11ed944e1b054a34e6a1","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-09-19T21:11:58Z","disabled_at":null}' - headers: - Cache-Control: - - private, no-cache, no-store - Content-Type: - - application/json; charset=utf-8 - Etag: - - W/"9e2efed4cbe3f15152953d6e6e1d0d34" - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - strict-origin-when-cross-origin - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload - X-Backend: - - easypost - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Ep-Request-Uuid: - - e6062e8a6328db1de7886e69000ae856 - X-Frame-Options: - - SAMEORIGIN - X-Node: - - bigweb5nuq - X-Permitted-Cross-Domain-Policies: - - none - X-Proxied: - - intlb1nuq 29913d444b - - extlb2nuq 29913d444b - X-Runtime: - - "0.615774" - X-Version-Label: - - easypost-202209191945-2356362378-master - X-Xss-Protection: - - 1; mode=block - status: 201 Created - code: 201 - duration: "" -- request: - body: "" - form: {} - headers: - Authorization: - - REDACTED - User-Agent: - - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_b1f99aba385f11ed944e1b054a34e6a1 - method: DELETE - response: - body: '{}' - headers: - Cache-Control: - - private, no-cache, no-store - Content-Type: - - application/json; charset=utf-8 - Etag: - - W/"44136fa355b3678a1146ad16f7e8649e" - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - strict-origin-when-cross-origin - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload - X-Backend: - - easypost - X-Content-Type-Options: - - nosniff - X-Download-Options: - - noopen - X-Ep-Request-Uuid: - - e6062e8a6328db1ee7886e69000ae89c - X-Frame-Options: - - SAMEORIGIN - X-Node: - - bigweb9nuq - X-Permitted-Cross-Domain-Policies: - - none - X-Proxied: - - intlb2nuq 29913d444b - - extlb2nuq 29913d444b - X-Runtime: - - "0.393928" - X-Version-Label: - - easypost-202209191945-2356362378-master - X-Xss-Protection: - - 1; mode=block - status: 200 OK - code: 200 - duration: "" diff --git a/tests/cassettes/TestWebhookUpdateWithSecret.yaml b/tests/cassettes/TestWebhookUpdateWithSecret.yaml index f234eba..479f7f7 100644 --- a/tests/cassettes/TestWebhookUpdateWithSecret.yaml +++ b/tests/cassettes/TestWebhookUpdateWithSecret.yaml @@ -14,14 +14,14 @@ interactions: url: https://api.easypost.com/v2/webhooks method: POST response: - body: '{"id":"hook_31ce9eac1fe711ed90c43fe511ca1d51","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-08-19T17:48:55Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:44Z","disabled_at":null,"id":"hook_8689d59e39da11ed826e2b81a4a0e305","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"d1ba3efe96ae51ec5114c4d774157414" + - W/"7d8b8caa47d24340cc987a915df464b3" Expires: - "0" Pragma: @@ -37,21 +37,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd07ff246ba100702e14 + - 8f5eb2cf632b56afec7d9989000dc63d X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb5nuq + - bigweb3nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb1nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb1wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.218866" + - "0.216232" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -67,17 +67,17 @@ interactions: - application/json User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_31ce9eac1fe711ed90c43fe511ca1d51 + url: https://api.easypost.com/v2/webhooks/hook_8689d59e39da11ed826e2b81a4a0e305 method: PATCH response: - body: '{"id":"hook_31ce9eac1fe711ed90c43fe511ca1d51","object":"Webhook","mode":"test","url":"http://example.com","created_at":"2022-08-19T17:48:55Z","disabled_at":null}' + body: '{"created_at":"2022-09-21T18:23:44Z","disabled_at":null,"id":"hook_8689d59e39da11ed826e2b81a4a0e305","mode":"test","object":"Webhook","url":"http://example.com"}' headers: Cache-Control: - private, no-cache, no-store Content-Type: - application/json; charset=utf-8 Etag: - - W/"d1ba3efe96ae51ec5114c4d774157414" + - W/"7d8b8caa47d24340cc987a915df464b3" Expires: - "0" Pragma: @@ -93,21 +93,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd07ff246ba100702e29 + - 8f5eb2cf632b56b0ec7d9989000dc667 X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb2nuq + - bigweb5nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb2wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb2nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.565022" + - "0.661716" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 201 Created @@ -121,7 +121,7 @@ interactions: - REDACTED User-Agent: - REDACTED - url: https://api.easypost.com/v2/webhooks/hook_31ce9eac1fe711ed90c43fe511ca1d51 + url: https://api.easypost.com/v2/webhooks/hook_8689d59e39da11ed826e2b81a4a0e305 method: DELETE response: body: '{}' @@ -147,21 +147,21 @@ interactions: X-Download-Options: - noopen X-Ep-Request-Uuid: - - 2196158562ffcd08ff246ba100702e69 + - 8f5eb2cf632b56b1ec7d9989000dc6be X-Frame-Options: - SAMEORIGIN X-Node: - - bigweb6nuq + - bigweb9nuq X-Permitted-Cross-Domain-Policies: - none X-Proxied: - - intlb2nuq 6aa9972c1e - - intlb1wdc 6aa9972c1e - - extlb4wdc 9ce216bfac + - intlb1nuq 29913d444b + - intlb2wdc 29913d444b + - extlb4wdc 29913d444b X-Runtime: - - "0.272024" + - "0.463383" X-Version-Label: - - easypost-202208182050-2b41e8e3e0-master + - easypost-202209211654-799b9c9ff9-master X-Xss-Protection: - 1; mode=block status: 200 OK diff --git a/tests/endshipper_test.go b/tests/endshipper_test.go index 1d94bd6..638b992 100644 --- a/tests/endshipper_test.go +++ b/tests/endshipper_test.go @@ -8,7 +8,7 @@ import ( ) func (c *ClientTests) TestEndShipperCreate() { - client := c.ProdClient() + client := c.TestClient() assert, require := c.Assert(), c.Require() endshipper, err := client.CreateEndShipper(c.fixture.CaAddress1()) @@ -20,7 +20,7 @@ func (c *ClientTests) TestEndShipperCreate() { } func (c *ClientTests) TestEndShipperRetrieve() { - client := c.ProdClient() + client := c.TestClient() assert, require := c.Assert(), c.Require() endshipper, err := client.CreateEndShipper(c.fixture.CaAddress1()) @@ -35,7 +35,7 @@ func (c *ClientTests) TestEndShipperRetrieve() { } func (c *ClientTests) TestEndShipperAll() { - client := c.ProdClient() + client := c.TestClient() assert, require := c.Assert(), c.Require() endshippers, err := client.ListEndShippers( @@ -53,7 +53,7 @@ func (c *ClientTests) TestEndShipperAll() { } func (c *ClientTests) TestEndShipperUpdate() { - client := c.ProdClient() + client := c.TestClient() assert, require := c.Assert(), c.Require() endshipper, err := client.CreateEndShipper(c.fixture.CaAddress1()) diff --git a/tests/fixture_test.go b/tests/fixture_test.go index 09f18f5..5d3e46a 100644 --- a/tests/fixture_test.go +++ b/tests/fixture_test.go @@ -113,11 +113,22 @@ func (fixture *Fixture) BasicParcel() *easypost.Parcel { } func (fixture *Fixture) BasicCustomsItem() *easypost.CustomsItem { - return readFixtureData().CustomsItems["basic"] + customsItem := readFixtureData().CustomsItems["basic"] + + // Json unmarshalling doesn't handle float64 well, need to manually set the value + customsItem.Value = 23.25 + + return customsItem } func (fixture *Fixture) BasicCustomsInfo() *easypost.CustomsInfo { - return readFixtureData().CustomsInfos["basic"] + customsInfo := readFixtureData().CustomsInfos["basic"] + + // Json unmarshalling doesn't handle float64 well, need to manually set the value + for _, customsItem := range customsInfo.CustomsItems { + customsItem.Value = 23.25 + } + return customsInfo } func (fixture *Fixture) TaxIdentifier() *easypost.TaxIdentifier { @@ -147,7 +158,7 @@ func (fixture *Fixture) OneCallBuyShipment() *easypost.Shipment { // If you need to re-record cassettes, increment the date below and ensure it is one day in the future, // USPS only does "next-day" pickups including Saturday but not Sunday or Holidays. func (fixture *Fixture) BasicPickup() *easypost.Pickup { - pickupDate := time.Date(2022, time.August, 22, 0, 0, 0, 0, time.UTC) + pickupDate := time.Date(2022, time.September, 22, 0, 0, 0, 0, time.UTC) pickupData := readFixtureData().Pickups["basic"] pickupData.MinDatetime = &pickupDate