solidus_easypost 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +6 -0
  3. data/.github/stale.yml +4 -4
  4. data/.github_changelog_generator +2 -0
  5. data/.gitignore +1 -0
  6. data/.rubocop.yml +3 -0
  7. data/.rubocop_todo.yml +12 -47
  8. data/CHANGELOG.md +113 -0
  9. data/LICENSE +1 -1
  10. data/README.md +111 -21
  11. data/app/controllers/spree/admin/postage_labels_controller.rb +20 -0
  12. data/app/decorators/models/solidus_easypost/spree/carton_decorator.rb +38 -0
  13. data/app/decorators/models/solidus_easypost/spree/shipment_decorator.rb +18 -23
  14. data/app/models/solidus_easypost/parcel_dimension.rb +34 -0
  15. data/app/models/solidus_easypost/return_authorization.rb +2 -13
  16. data/app/overrides/spree/admin/orders/_shipment/add_postage_label.html.erb.deface +10 -0
  17. data/bin/rails +0 -1
  18. data/bin/rails-engine +0 -2
  19. data/bin/rails-sandbox +1 -2
  20. data/bin/sandbox +2 -0
  21. data/config/initializers/webhooks.rb +7 -0
  22. data/config/locales/en.yml +7 -4
  23. data/config/routes.rb +5 -1
  24. data/db/migrate/20201025110912_add_tracker_id_to_cartons.rb +6 -0
  25. data/lib/generators/solidus_easypost/install/install_generator.rb +7 -1
  26. data/lib/generators/solidus_easypost/install/templates/initializer.rb +26 -0
  27. data/lib/solidus_easypost/address_builder.rb +45 -0
  28. data/lib/solidus_easypost/calculator/base_dimension_calculator.rb +28 -0
  29. data/lib/solidus_easypost/calculator/weight_dimension_calculator.rb +22 -0
  30. data/lib/solidus_easypost/configuration.rb +25 -2
  31. data/lib/solidus_easypost/errors/unknown_partial_resource_error.rb +11 -0
  32. data/lib/solidus_easypost/estimator.rb +37 -0
  33. data/lib/solidus_easypost/parcel_builder.rb +27 -0
  34. data/lib/solidus_easypost/shipment_builder.rb +32 -0
  35. data/lib/solidus_easypost/shipping_method_selector.rb +17 -0
  36. data/lib/solidus_easypost/shipping_rate_calculator.rb +9 -0
  37. data/lib/solidus_easypost/testing_support/factories/address_factory.rb +10 -0
  38. data/lib/solidus_easypost/testing_support/factories/product_factory.rb +7 -0
  39. data/lib/solidus_easypost/testing_support/factories/shipment_factory.rb +30 -0
  40. data/lib/solidus_easypost/testing_support/factories/shipping_method_factory.rb +8 -0
  41. data/lib/solidus_easypost/testing_support/factories/stock_location_factory.rb +10 -0
  42. data/lib/solidus_easypost/testing_support/factories/variant_factory.rb +7 -0
  43. data/lib/solidus_easypost/testing_support/factories.rb +3 -0
  44. data/lib/solidus_easypost/tracker_webhook_handler.rb +14 -0
  45. data/lib/solidus_easypost/version.rb +1 -1
  46. data/lib/solidus_easypost.rb +11 -0
  47. data/solidus_easypost.gemspec +8 -5
  48. data/spec/cassettes/{Spree_Address/_easypost_address/is_an_EasyPost_Address_object.yml → address_builder/from_address.yml} +19 -23
  49. data/spec/cassettes/{Spree_StockLocation/_easypost_address/is_an_EasyPost_Address_object.yml → address_builder/from_stock_location.yml} +19 -23
  50. data/spec/cassettes/{Spree_Stock_Estimator/_shipping_rates/when_rates_are_found/when_shipping_methods_exist/when_shipping_methods_are_front_end_visible/has_the_correct_costs.yml → estimator.yml} +0 -0
  51. data/spec/cassettes/integration/checkout.yml +377 -0
  52. data/spec/cassettes/integration/order_shipping/with_purchase_labels.yml +373 -0
  53. data/spec/cassettes/integration/order_shipping/without_purchase_labels.yml +251 -0
  54. data/spec/cassettes/{Spree_Stock_Package/_easypost_parcel/is_an_EasyPost_Parcel_object.yml → parcel_builder/from_package.yml} +17 -22
  55. data/spec/cassettes/{Spree_Stock_Package/_easypost_parcel/has_the_correct_attributes.yml → parcel_builder/from_return_authorization.yml} +17 -22
  56. data/spec/cassettes/postage_labels/show.yml +72 -0
  57. data/spec/cassettes/return_authorization.yml +310 -0
  58. data/spec/cassettes/{Spree_Stock_Package/_easypost_shipment/is_an_EasyPost_Shipment_object.yml → shipment_builder/from_package.yml} +74 -92
  59. data/spec/cassettes/{Spree_Stock_Estimator/_shipping_rates/when_rates_are_found/when_shipping_methods_exist/create_no_new_shipping_methods.yml → shipment_builder/from_return_authorization.yml} +77 -95
  60. data/spec/cassettes/shipment_builder/from_shipment.yml +250 -0
  61. data/spec/controllers/spree/admin/postage_labels_controller_spec.rb +18 -0
  62. data/spec/features/admin/postage_labels_spec.rb +18 -0
  63. data/spec/integration/checkout_spec.rb +45 -0
  64. data/spec/integration/order_shipping_spec.rb +33 -0
  65. data/spec/models/solidus_easypost/parcel_dimension_spec.rb +80 -0
  66. data/spec/models/solidus_easypost/return_authorization_spec.rb +7 -40
  67. data/spec/models/spree/carton_spec.rb +57 -0
  68. data/spec/models/spree/shipment_spec.rb +48 -59
  69. data/spec/models/spree/shipping_rate_spec.rb +14 -7
  70. data/spec/solidus_easypost/address_builder_spec.rb +17 -0
  71. data/spec/solidus_easypost/calculator/weight_dimension_calculator_spec.rb +39 -0
  72. data/spec/solidus_easypost/estimator_spec.rb +52 -0
  73. data/spec/solidus_easypost/parcel_builder_spec.rb +113 -0
  74. data/spec/solidus_easypost/shipment_builder_spec.rb +28 -0
  75. data/spec/solidus_easypost/shipping_method_selector_spec.rb +33 -0
  76. data/spec/solidus_easypost/shipping_rate_calculator_spec.rb +12 -0
  77. data/spec/solidus_easypost/tracker_webhook_handler_spec.rb +58 -0
  78. data/spec/spec_helper.rb +11 -7
  79. data/spec/support/easypost.rb +3 -1
  80. data/spec/support/helpers/api_stubs.rb +40 -0
  81. data/spec/support/helpers/configuration.rb +28 -0
  82. data/spec/support/helpers/shipping_methods.rb +26 -0
  83. data/spec/support/solidus.rb +1 -0
  84. data/spec/support/vcr.rb +1 -0
  85. metadata +118 -85
  86. data/app/decorators/models/solidus_easypost/spree/address_decorator.rb +0 -30
  87. data/app/decorators/models/solidus_easypost/spree/stock/estimator_decorator.rb +0 -15
  88. data/app/decorators/models/solidus_easypost/spree/stock/package_decorator.rb +0 -27
  89. data/app/decorators/models/solidus_easypost/spree/stock_location_decorator.rb +0 -26
  90. data/app/models/solidus_easypost/estimator.rb +0 -51
  91. data/lib/solidus_easypost/factories.rb +0 -24
  92. data/spec/cassettes/SolidusEasypost_ReturnAuthorization/_easypost_shipment/is_an_EasyPost_Shipment_object.yml +0 -271
  93. data/spec/cassettes/SolidusEasypost_ReturnAuthorization/_return_label/has_the_correct_fields.yml +0 -336
  94. data/spec/cassettes/SolidusEasypost_ReturnAuthorization/_return_label/is_an_EasyPost_PackageLabel_object.yml +0 -336
  95. data/spec/cassettes/Spree_Address/_easypost_address/has_the_correct_attributes.yml +0 -69
  96. data/spec/cassettes/Spree_Order/_refresh_shipment_rates/can_get_rates_from_easy_post.yml +0 -271
  97. data/spec/cassettes/Spree_Order/_refresh_shipment_rates/create_shipping_methods_for_the_rates.yml +0 -269
  98. data/spec/cassettes/Spree_Shipment/_buys_a_shipping_rate_after_transitioning_to_ship.yml +0 -403
  99. data/spec/cassettes/Spree_Shipment/_easypost_shipment/when_it_is_a_new_shipment/behaves_like_an_easypost_shipment/is_an_EasyPost_Shipment_object.yml +0 -271
  100. data/spec/cassettes/Spree_Shipment/_easypost_shipment/when_it_is_a_new_shipment/calls_the_api.yml +0 -200
  101. data/spec/cassettes/Spree_Shipment/_easypost_shipment/when_it_is_an_existing_shipment/behaves_like_an_easypost_shipment/is_an_EasyPost_Shipment_object.yml +0 -334
  102. data/spec/cassettes/Spree_Shipment/_easypost_shipment/when_it_is_an_existing_shipment/loads_the_existing_shipment.yml +0 -271
  103. data/spec/cassettes/Spree_StockLocation/_easypost_address/has_the_correct_attributes.yml +0 -69
  104. data/spec/cassettes/Spree_Stock_Estimator/_shipping_rates/when_rates_are_found/when_shipping_methods_dont_exist/creates_new_shipping_methods.yml +0 -269
  105. data/spec/cassettes/Spree_Stock_Estimator/_shipping_rates/when_rates_are_found/when_shipping_methods_dont_exist/is_empty.yml +0 -269
  106. data/spec/cassettes/Spree_Stock_Estimator/_shipping_rates/when_rates_are_found/when_shipping_methods_exist/when_shipping_methods_are_front_end_visible/has_the_correct_names.yml +0 -269
  107. data/spec/cassettes/Spree_Stock_Estimator/_shipping_rates/when_rates_are_found/when_shipping_methods_exist/when_shipping_methods_are_not_front_end_visible/is_empty.yml +0 -269
  108. data/spec/cassettes/Spree_Stock_Package/_easypost_shipment/calls_the_api.yml +0 -200
  109. data/spec/factories/spree_modification.rb +0 -25
  110. data/spec/models/spree/address_spec.rb +0 -31
  111. data/spec/models/spree/order_spec.rb +0 -31
  112. data/spec/models/spree/stock/estimator_spec.rb +0 -80
  113. data/spec/models/spree/stock/package_spec.rb +0 -35
  114. data/spec/models/spree/stock_location_spec.rb +0 -31
  115. data/spec/support/shipping_method_helpers.rb +0 -43
@@ -5,22 +5,19 @@ http_interactions:
5
5
  uri: https://api.easypost.com/v2/addresses
6
6
  body:
7
7
  encoding: UTF-8
8
- string: address[street1]=A%20Different%20Road&address[street2]=Northwest&address[city]=Manville&address[zip]=08835&address[phone]=555-555-0199&address[company]=Company&address[name]=John%20Doe&address[state]=NJ&address[country]=US
8
+ string: '{"address":{"street1":"A Different Road","street2":"Northwest","city":"Manville","zip":"08835","phone":"555-555-0199","company":"Company","name":"John
9
+ Doe","state":"NJ","country":"US"}}'
9
10
  headers:
11
+ Accept-Encoding:
12
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
13
  Accept:
11
14
  - "*/*"
12
15
  User-Agent:
13
- - EasyPost/v2 RubyClient/3.0.1
14
- Authorization:
15
- - Bearer CvzYtuda6KRI9JjG7SAHbA
16
+ - EasyPost/v2 RubyClient/3.1.3 Ruby/2.7.1-p83
16
17
  Content-Type:
17
- - application/x-www-form-urlencoded
18
- Content-Length:
19
- - '222'
20
- Accept-Encoding:
21
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
22
- Host:
23
- - api.easypost.com
18
+ - application/json
19
+ Authorization:
20
+ - Basic Q3Z6WXR1ZGE2S1JJOUpqRzdTQUhiQTo=
24
21
  response:
25
22
  status:
26
23
  code: 201
@@ -33,7 +30,7 @@ http_interactions:
33
30
  X-Content-Type-Options:
34
31
  - nosniff
35
32
  X-Ep-Request-Uuid:
36
- - 43c6543d5dca6f18ee739b5600010e25
33
+ - 937dbd605f6b5574ee6172540003ea37
37
34
  Cache-Control:
38
35
  - no-cache, no-store, must-revalidate, private
39
36
  Pragma:
@@ -41,52 +38,48 @@ http_interactions:
41
38
  Expires:
42
39
  - '0'
43
40
  Location:
44
- - "/api/v2/addresses/adr_b74c72d0443545768f77f8d05debe7f3"
41
+ - "/api/v2/addresses/adr_0cc81090534e41728038b5e22a6f3ee5"
45
42
  Content-Type:
46
43
  - application/json; charset=utf-8
47
44
  X-Runtime:
48
- - '0.031339'
45
+ - '0.047060'
49
46
  Transfer-Encoding:
50
47
  - chunked
51
48
  X-Node:
52
- - bigweb4sj
49
+ - bigweb9sj
53
50
  X-Version-Label:
54
- - easypost-201911120131-f5c72b1880-master
51
+ - easypost-202009222104-7ce76ac125-master
55
52
  X-Backend:
56
53
  - easypost
57
54
  X-Proxied:
58
- - extlb2wdc 2744487620
59
- - intlb1sj ff5a2958df
60
- - intlb1wdc ff5a2958df
55
+ - extlb1wdc a561deb64e
56
+ - intlb1sj 8df81f0396
57
+ - intlb1wdc 8df81f0396
61
58
  Strict-Transport-Security:
62
59
  - max-age=15768000; includeSubDomains; preload
63
60
  body:
64
61
  encoding: ASCII-8BIT
65
- string: '{"id":"adr_b74c72d0443545768f77f8d05debe7f3","object":"Address","created_at":"2019-11-12T08:36:40Z","updated_at":"2019-11-12T08:36:40Z","name":"John
62
+ string: '{"id":"adr_0cc81090534e41728038b5e22a6f3ee5","object":"Address","created_at":"2020-09-23T14:02:28Z","updated_at":"2020-09-23T14:02:28Z","name":"John
66
63
  Doe","company":"Company","street1":"A Different Road","street2":"Northwest","city":"Manville","state":"NJ","zip":"08835","country":"US","phone":"5555550199","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}}'
67
- http_version:
68
- recorded_at: Tue, 12 Nov 2019 08:36:40 GMT
64
+ recorded_at: Wed, 23 Sep 2020 14:02:28 GMT
69
65
  - request:
70
66
  method: post
71
67
  uri: https://api.easypost.com/v2/addresses
72
68
  body:
73
69
  encoding: UTF-8
74
- string: address[street1]=131%20S%208th%20Ave&address[city]=Manville&address[zip]=08835&address[phone]=(202)%20456-1111&address[name]=NY%20Warehouse&address[company]=NY%20Warehouse&address[state]=NJ&address[country]=US
70
+ string: '{"address":{"street1":"131 S 8th Ave","city":"Manville","zip":"08835","phone":"(202)
71
+ 456-1111","name":"NY Warehouse","company":"NY Warehouse","state":"NJ","country":"US"}}'
75
72
  headers:
73
+ Accept-Encoding:
74
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
76
75
  Accept:
77
76
  - "*/*"
78
77
  User-Agent:
79
- - EasyPost/v2 RubyClient/3.0.1
80
- Authorization:
81
- - Bearer CvzYtuda6KRI9JjG7SAHbA
78
+ - EasyPost/v2 RubyClient/3.1.3 Ruby/2.7.1-p83
82
79
  Content-Type:
83
- - application/x-www-form-urlencoded
84
- Content-Length:
85
- - '209'
86
- Accept-Encoding:
87
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
88
- Host:
89
- - api.easypost.com
80
+ - application/json
81
+ Authorization:
82
+ - Basic Q3Z6WXR1ZGE2S1JJOUpqRzdTQUhiQTo=
90
83
  response:
91
84
  status:
92
85
  code: 201
@@ -99,7 +92,7 @@ http_interactions:
99
92
  X-Content-Type-Options:
100
93
  - nosniff
101
94
  X-Ep-Request-Uuid:
102
- - 43c6543d5dca6f19ee82e94d00010e30
95
+ - 937dbd5c5f6b5575ee82e9af0003ea58
103
96
  Cache-Control:
104
97
  - no-cache, no-store, must-revalidate, private
105
98
  Pragma:
@@ -107,52 +100,47 @@ http_interactions:
107
100
  Expires:
108
101
  - '0'
109
102
  Location:
110
- - "/api/v2/addresses/adr_4957992d89794c328654aa530256ef8c"
103
+ - "/api/v2/addresses/adr_842818b6ca3346649927e0f3efa01e13"
111
104
  Content-Type:
112
105
  - application/json; charset=utf-8
113
106
  X-Runtime:
114
- - '0.036127'
107
+ - '0.047146'
115
108
  Transfer-Encoding:
116
109
  - chunked
117
110
  X-Node:
118
111
  - bigweb9sj
119
112
  X-Version-Label:
120
- - easypost-201911120131-f5c72b1880-master
113
+ - easypost-202009222104-7ce76ac125-master
121
114
  X-Backend:
122
115
  - easypost
123
116
  X-Proxied:
124
- - extlb2wdc 2744487620
125
- - intlb2sj ff5a2958df
126
- - intlb2wdc ff5a2958df
117
+ - extlb1wdc a561deb64e
118
+ - intlb1sj 8df81f0396
119
+ - intlb2wdc 8df81f0396
127
120
  Strict-Transport-Security:
128
121
  - max-age=15768000; includeSubDomains; preload
129
122
  body:
130
123
  encoding: ASCII-8BIT
131
- string: '{"id":"adr_4957992d89794c328654aa530256ef8c","object":"Address","created_at":"2019-11-12T08:36:41Z","updated_at":"2019-11-12T08:36:41Z","name":"NY
124
+ string: '{"id":"adr_842818b6ca3346649927e0f3efa01e13","object":"Address","created_at":"2020-09-23T14:02:29Z","updated_at":"2020-09-23T14:02:29Z","name":"NY
132
125
  Warehouse","company":"NY Warehouse","street1":"131 S 8th Ave","street2":null,"city":"Manville","state":"NJ","zip":"08835","country":"US","phone":"2024561111","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}}'
133
- http_version:
134
- recorded_at: Tue, 12 Nov 2019 08:36:41 GMT
126
+ recorded_at: Wed, 23 Sep 2020 14:02:29 GMT
135
127
  - request:
136
128
  method: post
137
129
  uri: https://api.easypost.com/v2/parcels
138
130
  body:
139
131
  encoding: UTF-8
140
- string: parcel[weight]=10.0
132
+ string: '{"parcel":{"weight":"10.0"}}'
141
133
  headers:
134
+ Accept-Encoding:
135
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
142
136
  Accept:
143
137
  - "*/*"
144
138
  User-Agent:
145
- - EasyPost/v2 RubyClient/3.0.1
146
- Authorization:
147
- - Bearer CvzYtuda6KRI9JjG7SAHbA
139
+ - EasyPost/v2 RubyClient/3.1.3 Ruby/2.7.1-p83
148
140
  Content-Type:
149
- - application/x-www-form-urlencoded
150
- Content-Length:
151
- - '19'
152
- Accept-Encoding:
153
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
154
- Host:
155
- - api.easypost.com
141
+ - application/json
142
+ Authorization:
143
+ - Basic Q3Z6WXR1ZGE2S1JJOUpqRzdTQUhiQTo=
156
144
  response:
157
145
  status:
158
146
  code: 201
@@ -165,7 +153,7 @@ http_interactions:
165
153
  X-Content-Type-Options:
166
154
  - nosniff
167
155
  X-Ep-Request-Uuid:
168
- - 43c6543d5dca6f19ee80bcca00010e3c
156
+ - 937dbd5c5f6b5575ee6fb4b20003ea70
169
157
  Cache-Control:
170
158
  - no-cache, no-store, must-revalidate, private
171
159
  Pragma:
@@ -173,51 +161,46 @@ http_interactions:
173
161
  Expires:
174
162
  - '0'
175
163
  Location:
176
- - "/api/v2/parcels/prcl_fcde49af147c484cbdf2a257511fea02"
164
+ - "/api/v2/parcels/prcl_9e3fdcef25004ae58598e94403f0b39e"
177
165
  Content-Type:
178
166
  - application/json; charset=utf-8
179
167
  X-Runtime:
180
- - '0.029220'
168
+ - '0.028095'
181
169
  Transfer-Encoding:
182
170
  - chunked
183
171
  X-Node:
184
- - bigweb3sj
172
+ - bigweb9sj
185
173
  X-Version-Label:
186
- - easypost-201911120131-f5c72b1880-master
174
+ - easypost-202009222104-7ce76ac125-master
187
175
  X-Backend:
188
176
  - easypost
189
177
  X-Proxied:
190
- - extlb2wdc 2744487620
191
- - intlb2sj ff5a2958df
192
- - intlb2wdc ff5a2958df
178
+ - extlb1wdc a561deb64e
179
+ - intlb2sj 8df81f0396
180
+ - intlb2wdc 8df81f0396
193
181
  Strict-Transport-Security:
194
182
  - max-age=15768000; includeSubDomains; preload
195
183
  body:
196
184
  encoding: ASCII-8BIT
197
- string: '{"id":"prcl_fcde49af147c484cbdf2a257511fea02","object":"Parcel","created_at":"2019-11-12T08:36:41Z","updated_at":"2019-11-12T08:36:41Z","length":null,"width":null,"height":null,"predefined_package":null,"weight":10.0,"mode":"test"}'
198
- http_version:
199
- recorded_at: Tue, 12 Nov 2019 08:36:42 GMT
185
+ string: '{"id":"prcl_9e3fdcef25004ae58598e94403f0b39e","object":"Parcel","created_at":"2020-09-23T14:02:30Z","updated_at":"2020-09-23T14:02:30Z","length":null,"width":null,"height":null,"predefined_package":null,"weight":10.0,"mode":"test"}'
186
+ recorded_at: Wed, 23 Sep 2020 14:02:30 GMT
200
187
  - request:
201
188
  method: post
202
189
  uri: https://api.easypost.com/v2/shipments
203
190
  body:
204
191
  encoding: UTF-8
205
- string: shipment[to_address][id]=adr_b74c72d0443545768f77f8d05debe7f3&shipment[from_address][id]=adr_4957992d89794c328654aa530256ef8c&shipment[parcel][id]=prcl_fcde49af147c484cbdf2a257511fea02
192
+ string: '{"shipment":{"to_address":{"id":"adr_0cc81090534e41728038b5e22a6f3ee5"},"from_address":{"id":"adr_842818b6ca3346649927e0f3efa01e13"},"parcel":{"id":"prcl_9e3fdcef25004ae58598e94403f0b39e"}}}'
206
193
  headers:
194
+ Accept-Encoding:
195
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
207
196
  Accept:
208
197
  - "*/*"
209
198
  User-Agent:
210
- - EasyPost/v2 RubyClient/3.0.1
211
- Authorization:
212
- - Bearer CvzYtuda6KRI9JjG7SAHbA
199
+ - EasyPost/v2 RubyClient/3.1.3 Ruby/2.7.1-p83
213
200
  Content-Type:
214
- - application/x-www-form-urlencoded
215
- Content-Length:
216
- - '184'
217
- Accept-Encoding:
218
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
219
- Host:
220
- - api.easypost.com
201
+ - application/json
202
+ Authorization:
203
+ - Basic Q3Z6WXR1ZGE2S1JJOUpqRzdTQUhiQTo=
221
204
  response:
222
205
  status:
223
206
  code: 201
@@ -230,7 +213,7 @@ http_interactions:
230
213
  X-Content-Type-Options:
231
214
  - nosniff
232
215
  X-Ep-Request-Uuid:
233
- - 43c6543d5dca6f1aee72f56e00010e46
216
+ - 937dbd5c5f6b5576ee7382d20003ea8d
234
217
  Cache-Control:
235
218
  - no-cache, no-store, must-revalidate, private
236
219
  Pragma:
@@ -238,32 +221,31 @@ http_interactions:
238
221
  Expires:
239
222
  - '0'
240
223
  Location:
241
- - "/api/v2/shipments/shp_3958b968047a4c1d9642ccb56ef0ead8"
224
+ - "/api/v2/shipments/shp_9e7444ccdcb34df69bfaa240c2022358"
242
225
  Content-Type:
243
226
  - application/json; charset=utf-8
244
227
  X-Runtime:
245
- - '0.232564'
228
+ - '0.222849'
246
229
  Transfer-Encoding:
247
230
  - chunked
248
231
  X-Node:
249
- - bigweb3sj
232
+ - bigweb2sj
250
233
  X-Version-Label:
251
- - easypost-201911120131-f5c72b1880-master
234
+ - easypost-202009222104-7ce76ac125-master
252
235
  X-Backend:
253
236
  - easypost
254
237
  X-Proxied:
255
- - extlb2wdc 2744487620
256
- - intlb2sj ff5a2958df
257
- - intlb2wdc ff5a2958df
238
+ - extlb1wdc a561deb64e
239
+ - intlb1sj 8df81f0396
240
+ - intlb1wdc 8df81f0396
258
241
  Strict-Transport-Security:
259
242
  - max-age=15768000; includeSubDomains; preload
260
243
  body:
261
244
  encoding: ASCII-8BIT
262
- string: '{"created_at":"2019-11-12T08:36:42Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"label_date":null,"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2019-11-12T08:36:42Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_4957992d89794c328654aa530256ef8c","object":"Address","created_at":"2019-11-12T08:36:41Z","updated_at":"2019-11-12T08:36:41Z","name":"NY
263
- Warehouse","company":"NY Warehouse","street1":"131 S 8th Ave","street2":null,"city":"Manville","state":"NJ","zip":"08835","country":"US","phone":"2024561111","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_fcde49af147c484cbdf2a257511fea02","object":"Parcel","created_at":"2019-11-12T08:36:41Z","updated_at":"2019-11-12T08:36:41Z","length":null,"width":null,"height":null,"predefined_package":null,"weight":10.0,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_f6e1ed2c9d0b43b385801279bea1797a","object":"Rate","created_at":"2019-11-12T08:36:42Z","updated_at":"2019-11-12T08:36:42Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"6.85","currency":"USD","retail_rate":"6.85","retail_currency":"USD","list_rate":"6.85","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_3958b968047a4c1d9642ccb56ef0ead8","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_4af07b1888144c44a7b4376e91050029","object":"Rate","created_at":"2019-11-12T08:36:42Z","updated_at":"2019-11-12T08:36:42Z","mode":"test","service":"Express","carrier":"USPS","rate":"22.74","currency":"USD","retail_rate":"25.60","retail_currency":"USD","list_rate":"22.74","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_3958b968047a4c1d9642ccb56ef0ead8","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_a7b3af1d16be4596b37db8b6b0b75260","object":"Rate","created_at":"2019-11-12T08:36:42Z","updated_at":"2019-11-12T08:36:42Z","mode":"test","service":"Priority","carrier":"USPS","rate":"6.95","currency":"USD","retail_rate":"7.35","retail_currency":"USD","list_rate":"6.95","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_3958b968047a4c1d9642ccb56ef0ead8","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_e7999eefbad4426ab2b452ddeaee5ccf","object":"Rate","created_at":"2019-11-12T08:36:42Z","updated_at":"2019-11-12T08:36:42Z","mode":"test","service":"First","carrier":"USPS","rate":"3.82","currency":"USD","retail_rate":"5.19","retail_currency":"USD","list_rate":"3.82","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_3958b968047a4c1d9642ccb56ef0ead8","carrier_account_id":"ca_mtb51Ve0"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_b74c72d0443545768f77f8d05debe7f3","object":"Address","created_at":"2019-11-12T08:36:40Z","updated_at":"2019-11-12T08:36:40Z","name":"John
264
- Doe","company":"Company","street1":"A Different Road","street2":"Northwest","city":"Manville","state":"NJ","zip":"08835","country":"US","phone":"5555550199","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_4957992d89794c328654aa530256ef8c","object":"Address","created_at":"2019-11-12T08:36:41Z","updated_at":"2019-11-12T08:36:41Z","name":"NY
265
- Warehouse","company":"NY Warehouse","street1":"131 S 8th Ave","street2":null,"city":"Manville","state":"NJ","zip":"08835","country":"US","phone":"2024561111","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_b74c72d0443545768f77f8d05debe7f3","object":"Address","created_at":"2019-11-12T08:36:40Z","updated_at":"2019-11-12T08:36:40Z","name":"John
266
- Doe","company":"Company","street1":"A Different Road","street2":"Northwest","city":"Manville","state":"NJ","zip":"08835","country":"US","phone":"5555550199","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_3958b968047a4c1d9642ccb56ef0ead8","object":"Shipment"}'
267
- http_version:
268
- recorded_at: Tue, 12 Nov 2019 08:36:42 GMT
269
- recorded_with: VCR 5.0.0
245
+ string: '{"created_at":"2020-09-23T14:02:30Z","is_return":false,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"date_advance":0},"reference":null,"status":"unknown","tracking_code":null,"updated_at":"2020-09-23T14:02:30Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_842818b6ca3346649927e0f3efa01e13","object":"Address","created_at":"2020-09-23T14:02:29Z","updated_at":"2020-09-23T14:02:29Z","name":"NY
246
+ Warehouse","company":"NY Warehouse","street1":"131 S 8th Ave","street2":null,"city":"Manville","state":"NJ","zip":"08835","country":"US","phone":"2024561111","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_9e3fdcef25004ae58598e94403f0b39e","object":"Parcel","created_at":"2020-09-23T14:02:30Z","updated_at":"2020-09-23T14:02:30Z","length":null,"width":null,"height":null,"predefined_package":null,"weight":10.0,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_15f71363d7b4455296c003fca2a6622a","object":"Rate","created_at":"2020-09-23T14:02:30Z","updated_at":"2020-09-23T14:02:30Z","mode":"test","service":"ParcelSelect","carrier":"USPS","rate":"6.92","currency":"USD","retail_rate":"6.92","retail_currency":"USD","list_rate":"6.92","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e7444ccdcb34df69bfaa240c2022358","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_31d64d5c77e14bd0bddb34cc1342b977","object":"Rate","created_at":"2020-09-23T14:02:30Z","updated_at":"2020-09-23T14:02:30Z","mode":"test","service":"Express","carrier":"USPS","rate":"23.00","currency":"USD","retail_rate":"26.75","retail_currency":"USD","list_rate":"23.00","list_currency":"USD","delivery_days":null,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":null,"shipment_id":"shp_9e7444ccdcb34df69bfaa240c2022358","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_ebbcd0f57b43486881f3df7ed67b2e7a","object":"Rate","created_at":"2020-09-23T14:02:30Z","updated_at":"2020-09-23T14:02:30Z","mode":"test","service":"Priority","carrier":"USPS","rate":"7.02","currency":"USD","retail_rate":"7.50","retail_currency":"USD","list_rate":"7.02","list_currency":"USD","delivery_days":1,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":1,"shipment_id":"shp_9e7444ccdcb34df69bfaa240c2022358","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_9db3bcaacc3b4b028814744062c01388","object":"Rate","created_at":"2020-09-23T14:02:30Z","updated_at":"2020-09-23T14:02:30Z","mode":"test","service":"First","carrier":"USPS","rate":"3.93","currency":"USD","retail_rate":"5.30","retail_currency":"USD","list_rate":"3.93","list_currency":"USD","delivery_days":2,"delivery_date":null,"delivery_date_guaranteed":false,"est_delivery_days":2,"shipment_id":"shp_9e7444ccdcb34df69bfaa240c2022358","carrier_account_id":"ca_mtb51Ve0"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_0cc81090534e41728038b5e22a6f3ee5","object":"Address","created_at":"2020-09-23T14:02:28Z","updated_at":"2020-09-23T14:02:28Z","name":"John
247
+ Doe","company":"Company","street1":"A Different Road","street2":"Northwest","city":"Manville","state":"NJ","zip":"08835","country":"US","phone":"5555550199","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"usps_zone":1,"return_address":{"id":"adr_842818b6ca3346649927e0f3efa01e13","object":"Address","created_at":"2020-09-23T14:02:29Z","updated_at":"2020-09-23T14:02:29Z","name":"NY
248
+ Warehouse","company":"NY Warehouse","street1":"131 S 8th Ave","street2":null,"city":"Manville","state":"NJ","zip":"08835","country":"US","phone":"2024561111","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"buyer_address":{"id":"adr_0cc81090534e41728038b5e22a6f3ee5","object":"Address","created_at":"2020-09-23T14:02:28Z","updated_at":"2020-09-23T14:02:28Z","name":"John
249
+ Doe","company":"Company","street1":"A Different Road","street2":"Northwest","city":"Manville","state":"NJ","zip":"08835","country":"US","phone":"5555550199","email":null,"mode":"test","carrier_facility":null,"residential":null,"federal_tax_id":null,"state_tax_id":null,"verifications":{}},"forms":[],"fees":[],"id":"shp_9e7444ccdcb34df69bfaa240c2022358","object":"Shipment"}'
250
+ recorded_at: Wed, 23 Sep 2020 14:02:31 GMT
251
+ recorded_with: VCR 6.0.0