solidus_easypost 1.0.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +35 -0
- data/.gem_release.yml +5 -0
- data/.github/stale.yml +17 -0
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +4 -0
- data/.rubocop_todo.yml +71 -0
- data/Gemfile +33 -0
- data/LICENSE +26 -0
- data/README.md +104 -0
- data/Rakefile +6 -0
- data/app/decorators/models/solidus_easypost/spree/address_decorator.rb +30 -0
- data/app/decorators/models/solidus_easypost/spree/shipment_decorator.rb +52 -0
- data/app/decorators/models/solidus_easypost/spree/shipping_rate_decorator.rb +13 -0
- data/app/decorators/models/solidus_easypost/spree/stock/estimator_decorator.rb +15 -0
- data/app/decorators/models/solidus_easypost/spree/stock/package_decorator.rb +27 -0
- data/app/decorators/models/solidus_easypost/spree/stock_location_decorator.rb +26 -0
- data/app/models/solidus_easypost/estimator.rb +51 -0
- data/app/models/solidus_easypost/return_authorization.rb +38 -0
- data/bin/console +17 -0
- data/bin/rails +8 -0
- data/bin/rails-engine +15 -0
- data/bin/rails-sandbox +17 -0
- data/bin/rake +7 -0
- data/bin/sandbox +84 -0
- data/bin/setup +8 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20140515024440_add_easy_post_fields_to_shipping_rate.rb +9 -0
- data/lib/generators/solidus_easypost/install/install_generator.rb +22 -0
- data/lib/solidus_easypost.rb +21 -0
- data/lib/solidus_easypost/configuration.rb +11 -0
- data/lib/solidus_easypost/engine.rb +19 -0
- data/lib/solidus_easypost/factories.rb +24 -0
- data/lib/solidus_easypost/version.rb +5 -0
- data/solidus_easypost.gemspec +38 -0
- data/spec/cassettes/SolidusEasypost_ReturnAuthorization/_easypost_shipment/is_an_EasyPost_Shipment_object.yml +271 -0
- data/spec/cassettes/SolidusEasypost_ReturnAuthorization/_return_label/has_the_correct_fields.yml +336 -0
- data/spec/cassettes/SolidusEasypost_ReturnAuthorization/_return_label/is_an_EasyPost_PackageLabel_object.yml +336 -0
- data/spec/cassettes/Spree_Address/_easypost_address/has_the_correct_attributes.yml +69 -0
- data/spec/cassettes/Spree_Address/_easypost_address/is_an_EasyPost_Address_object.yml +69 -0
- data/spec/cassettes/Spree_Order/_refresh_shipment_rates/can_get_rates_from_easy_post.yml +271 -0
- data/spec/cassettes/Spree_Order/_refresh_shipment_rates/create_shipping_methods_for_the_rates.yml +269 -0
- data/spec/cassettes/Spree_Shipment/_buys_a_shipping_rate_after_transitioning_to_ship.yml +403 -0
- data/spec/cassettes/Spree_Shipment/_easypost_shipment/when_it_is_a_new_shipment/behaves_like_an_easypost_shipment/is_an_EasyPost_Shipment_object.yml +271 -0
- data/spec/cassettes/Spree_Shipment/_easypost_shipment/when_it_is_a_new_shipment/calls_the_api.yml +200 -0
- data/spec/cassettes/Spree_Shipment/_easypost_shipment/when_it_is_an_existing_shipment/behaves_like_an_easypost_shipment/is_an_EasyPost_Shipment_object.yml +334 -0
- data/spec/cassettes/Spree_Shipment/_easypost_shipment/when_it_is_an_existing_shipment/loads_the_existing_shipment.yml +271 -0
- data/spec/cassettes/Spree_StockLocation/_easypost_address/has_the_correct_attributes.yml +69 -0
- data/spec/cassettes/Spree_StockLocation/_easypost_address/is_an_EasyPost_Address_object.yml +69 -0
- data/spec/cassettes/Spree_Stock_Estimator/_shipping_rates/when_rates_are_found/when_shipping_methods_dont_exist/creates_new_shipping_methods.yml +269 -0
- data/spec/cassettes/Spree_Stock_Estimator/_shipping_rates/when_rates_are_found/when_shipping_methods_dont_exist/is_empty.yml +269 -0
- data/spec/cassettes/Spree_Stock_Estimator/_shipping_rates/when_rates_are_found/when_shipping_methods_exist/create_no_new_shipping_methods.yml +269 -0
- 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 +269 -0
- 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 +269 -0
- 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 +269 -0
- data/spec/cassettes/Spree_Stock_Package/_easypost_parcel/has_the_correct_attributes.yml +68 -0
- data/spec/cassettes/Spree_Stock_Package/_easypost_parcel/is_an_EasyPost_Parcel_object.yml +68 -0
- data/spec/cassettes/Spree_Stock_Package/_easypost_shipment/calls_the_api.yml +200 -0
- data/spec/cassettes/Spree_Stock_Package/_easypost_shipment/is_an_EasyPost_Shipment_object.yml +269 -0
- data/spec/factories/spree_modification.rb +25 -0
- data/spec/models/solidus_easypost/return_authorization_spec.rb +50 -0
- data/spec/models/spree/address_spec.rb +31 -0
- data/spec/models/spree/order_spec.rb +31 -0
- data/spec/models/spree/shipment_spec.rb +80 -0
- data/spec/models/spree/shipping_rate_spec.rb +16 -0
- data/spec/models/spree/stock/estimator_spec.rb +80 -0
- data/spec/models/spree/stock/package_spec.rb +35 -0
- data/spec/models/spree/stock_location_spec.rb +31 -0
- data/spec/solidus_easypost_spec.rb +19 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/support/easypost.rb +3 -0
- data/spec/support/factory_bot.rb +3 -0
- data/spec/support/shipping_method_helpers.rb +43 -0
- data/spec/support/vcr.rb +11 -0
- metadata +145 -170
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/solidus_easypost/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'solidus_easypost'
|
7
|
+
spec.version = SolidusEasypost::VERSION
|
8
|
+
spec.authors = ['Brendan Deere']
|
9
|
+
spec.email = 'brendan@stembolt.com'
|
10
|
+
|
11
|
+
spec.summary = 'Easy post integration for Solidus'
|
12
|
+
spec.description = 'Easy post integration for Solidus'
|
13
|
+
spec.homepage = 'https://github.com/solidusio-contrib/solidus_easypost'
|
14
|
+
spec.license = 'BSD-3-Clause'
|
15
|
+
|
16
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
17
|
+
spec.metadata['source_code_uri'] = 'https://github.com/solidusio-contrib/solidus_easypost'
|
18
|
+
|
19
|
+
spec.required_ruby_version = Gem::Requirement.new('~> 2.5')
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
files = Dir.chdir(__dir__) { `git ls-files -z`.split("\x0") }
|
24
|
+
|
25
|
+
spec.files = files.grep_v(%r{^(test|spec|features)/})
|
26
|
+
spec.test_files = files.grep(%r{^(test|spec|features)/})
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ["lib"]
|
30
|
+
|
31
|
+
spec.add_dependency 'easypost'
|
32
|
+
spec.add_dependency 'solidus_core', ['>= 2.0.0', '< 3']
|
33
|
+
spec.add_dependency 'solidus_support', '~> 0.5'
|
34
|
+
|
35
|
+
spec.add_development_dependency 'solidus_dev_support'
|
36
|
+
spec.add_development_dependency 'vcr'
|
37
|
+
spec.add_development_dependency 'webmock'
|
38
|
+
end
|
@@ -0,0 +1,271 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.easypost.com/v2/addresses
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
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
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- EasyPost/v2 RubyClient/3.0.1
|
14
|
+
Authorization:
|
15
|
+
- Bearer CvzYtuda6KRI9JjG7SAHbA
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
Content-Length:
|
19
|
+
- '209'
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Host:
|
23
|
+
- api.easypost.com
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 201
|
27
|
+
message: Created
|
28
|
+
headers:
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Ep-Request-Uuid:
|
36
|
+
- 43c6543d5dca6f29ee725c2600010f57
|
37
|
+
Cache-Control:
|
38
|
+
- no-cache, no-store, must-revalidate, private
|
39
|
+
Pragma:
|
40
|
+
- no-cache
|
41
|
+
Expires:
|
42
|
+
- '0'
|
43
|
+
Location:
|
44
|
+
- "/api/v2/addresses/adr_4347da93674b453dbfd47c8e10f78a86"
|
45
|
+
Content-Type:
|
46
|
+
- application/json; charset=utf-8
|
47
|
+
X-Runtime:
|
48
|
+
- '0.031533'
|
49
|
+
Transfer-Encoding:
|
50
|
+
- chunked
|
51
|
+
X-Node:
|
52
|
+
- bigweb9sj
|
53
|
+
X-Version-Label:
|
54
|
+
- easypost-201911120131-f5c72b1880-master
|
55
|
+
X-Backend:
|
56
|
+
- easypost
|
57
|
+
X-Proxied:
|
58
|
+
- extlb2wdc 2744487620
|
59
|
+
- intlb2sj ff5a2958df
|
60
|
+
- intlb2wdc ff5a2958df
|
61
|
+
Strict-Transport-Security:
|
62
|
+
- max-age=15768000; includeSubDomains; preload
|
63
|
+
body:
|
64
|
+
encoding: ASCII-8BIT
|
65
|
+
string: '{"id":"adr_4347da93674b453dbfd47c8e10f78a86","object":"Address","created_at":"2019-11-12T08:36:57Z","updated_at":"2019-11-12T08:36:57Z","name":"NY
|
66
|
+
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":{}}'
|
67
|
+
http_version:
|
68
|
+
recorded_at: Tue, 12 Nov 2019 08:36:57 GMT
|
69
|
+
- request:
|
70
|
+
method: post
|
71
|
+
uri: https://api.easypost.com/v2/addresses
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
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
|
75
|
+
headers:
|
76
|
+
Accept:
|
77
|
+
- "*/*"
|
78
|
+
User-Agent:
|
79
|
+
- EasyPost/v2 RubyClient/3.0.1
|
80
|
+
Authorization:
|
81
|
+
- Bearer CvzYtuda6KRI9JjG7SAHbA
|
82
|
+
Content-Type:
|
83
|
+
- application/x-www-form-urlencoded
|
84
|
+
Content-Length:
|
85
|
+
- '222'
|
86
|
+
Accept-Encoding:
|
87
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
88
|
+
Host:
|
89
|
+
- api.easypost.com
|
90
|
+
response:
|
91
|
+
status:
|
92
|
+
code: 201
|
93
|
+
message: Created
|
94
|
+
headers:
|
95
|
+
X-Frame-Options:
|
96
|
+
- SAMEORIGIN
|
97
|
+
X-Xss-Protection:
|
98
|
+
- 1; mode=block
|
99
|
+
X-Content-Type-Options:
|
100
|
+
- nosniff
|
101
|
+
X-Ep-Request-Uuid:
|
102
|
+
- 43c6543d5dca6f2aee71ee3500010f65
|
103
|
+
Cache-Control:
|
104
|
+
- no-cache, no-store, must-revalidate, private
|
105
|
+
Pragma:
|
106
|
+
- no-cache
|
107
|
+
Expires:
|
108
|
+
- '0'
|
109
|
+
Location:
|
110
|
+
- "/api/v2/addresses/adr_ded65acf0a9844c5943001953bd7212b"
|
111
|
+
Content-Type:
|
112
|
+
- application/json; charset=utf-8
|
113
|
+
X-Runtime:
|
114
|
+
- '0.027587'
|
115
|
+
Transfer-Encoding:
|
116
|
+
- chunked
|
117
|
+
X-Node:
|
118
|
+
- bigweb10sj
|
119
|
+
X-Version-Label:
|
120
|
+
- easypost-201911120131-f5c72b1880-master
|
121
|
+
X-Backend:
|
122
|
+
- easypost
|
123
|
+
X-Proxied:
|
124
|
+
- extlb2wdc 2744487620
|
125
|
+
- intlb2sj ff5a2958df
|
126
|
+
- intlb2wdc ff5a2958df
|
127
|
+
Strict-Transport-Security:
|
128
|
+
- max-age=15768000; includeSubDomains; preload
|
129
|
+
body:
|
130
|
+
encoding: ASCII-8BIT
|
131
|
+
string: '{"id":"adr_ded65acf0a9844c5943001953bd7212b","object":"Address","created_at":"2019-11-12T08:36:58Z","updated_at":"2019-11-12T08:36:58Z","name":"John
|
132
|
+
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":{}}'
|
133
|
+
http_version:
|
134
|
+
recorded_at: Tue, 12 Nov 2019 08:36:58 GMT
|
135
|
+
- request:
|
136
|
+
method: post
|
137
|
+
uri: https://api.easypost.com/v2/parcels
|
138
|
+
body:
|
139
|
+
encoding: UTF-8
|
140
|
+
string: parcel[weight]=10
|
141
|
+
headers:
|
142
|
+
Accept:
|
143
|
+
- "*/*"
|
144
|
+
User-Agent:
|
145
|
+
- EasyPost/v2 RubyClient/3.0.1
|
146
|
+
Authorization:
|
147
|
+
- Bearer CvzYtuda6KRI9JjG7SAHbA
|
148
|
+
Content-Type:
|
149
|
+
- application/x-www-form-urlencoded
|
150
|
+
Content-Length:
|
151
|
+
- '17'
|
152
|
+
Accept-Encoding:
|
153
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
154
|
+
Host:
|
155
|
+
- api.easypost.com
|
156
|
+
response:
|
157
|
+
status:
|
158
|
+
code: 201
|
159
|
+
message: Created
|
160
|
+
headers:
|
161
|
+
X-Frame-Options:
|
162
|
+
- SAMEORIGIN
|
163
|
+
X-Xss-Protection:
|
164
|
+
- 1; mode=block
|
165
|
+
X-Content-Type-Options:
|
166
|
+
- nosniff
|
167
|
+
X-Ep-Request-Uuid:
|
168
|
+
- 43c6543d5dca6f2bee72f56700010f6e
|
169
|
+
Cache-Control:
|
170
|
+
- no-cache, no-store, must-revalidate, private
|
171
|
+
Pragma:
|
172
|
+
- no-cache
|
173
|
+
Expires:
|
174
|
+
- '0'
|
175
|
+
Location:
|
176
|
+
- "/api/v2/parcels/prcl_403d962cbc904247897aa52f3290d5cd"
|
177
|
+
Content-Type:
|
178
|
+
- application/json; charset=utf-8
|
179
|
+
X-Runtime:
|
180
|
+
- '0.026987'
|
181
|
+
Transfer-Encoding:
|
182
|
+
- chunked
|
183
|
+
X-Node:
|
184
|
+
- bigweb2sj
|
185
|
+
X-Version-Label:
|
186
|
+
- easypost-201911120131-f5c72b1880-master
|
187
|
+
X-Backend:
|
188
|
+
- easypost
|
189
|
+
X-Proxied:
|
190
|
+
- extlb2wdc 2744487620
|
191
|
+
- intlb2sj ff5a2958df
|
192
|
+
- intlb2wdc ff5a2958df
|
193
|
+
Strict-Transport-Security:
|
194
|
+
- max-age=15768000; includeSubDomains; preload
|
195
|
+
body:
|
196
|
+
encoding: ASCII-8BIT
|
197
|
+
string: '{"id":"prcl_403d962cbc904247897aa52f3290d5cd","object":"Parcel","created_at":"2019-11-12T08:36:59Z","updated_at":"2019-11-12T08:36:59Z","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:59 GMT
|
200
|
+
- request:
|
201
|
+
method: post
|
202
|
+
uri: https://api.easypost.com/v2/shipments
|
203
|
+
body:
|
204
|
+
encoding: UTF-8
|
205
|
+
string: shipment[from_address][id]=adr_4347da93674b453dbfd47c8e10f78a86&shipment[to_address][id]=adr_ded65acf0a9844c5943001953bd7212b&shipment[parcel][id]=prcl_403d962cbc904247897aa52f3290d5cd&shipment[is_return]=true
|
206
|
+
headers:
|
207
|
+
Accept:
|
208
|
+
- "*/*"
|
209
|
+
User-Agent:
|
210
|
+
- EasyPost/v2 RubyClient/3.0.1
|
211
|
+
Authorization:
|
212
|
+
- Bearer CvzYtuda6KRI9JjG7SAHbA
|
213
|
+
Content-Type:
|
214
|
+
- application/x-www-form-urlencoded
|
215
|
+
Content-Length:
|
216
|
+
- '209'
|
217
|
+
Accept-Encoding:
|
218
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
219
|
+
Host:
|
220
|
+
- api.easypost.com
|
221
|
+
response:
|
222
|
+
status:
|
223
|
+
code: 201
|
224
|
+
message: Created
|
225
|
+
headers:
|
226
|
+
X-Frame-Options:
|
227
|
+
- SAMEORIGIN
|
228
|
+
X-Xss-Protection:
|
229
|
+
- 1; mode=block
|
230
|
+
X-Content-Type-Options:
|
231
|
+
- nosniff
|
232
|
+
X-Ep-Request-Uuid:
|
233
|
+
- 43c6543d5dca6f2bee73930e00010f7d
|
234
|
+
Cache-Control:
|
235
|
+
- no-cache, no-store, must-revalidate, private
|
236
|
+
Pragma:
|
237
|
+
- no-cache
|
238
|
+
Expires:
|
239
|
+
- '0'
|
240
|
+
Location:
|
241
|
+
- "/api/v2/shipments/shp_5fbb3a666bbd44b1a4972ee7a37a0264"
|
242
|
+
Content-Type:
|
243
|
+
- application/json; charset=utf-8
|
244
|
+
X-Runtime:
|
245
|
+
- '0.215479'
|
246
|
+
Transfer-Encoding:
|
247
|
+
- chunked
|
248
|
+
X-Node:
|
249
|
+
- bigweb7sj
|
250
|
+
X-Version-Label:
|
251
|
+
- easypost-201911120131-f5c72b1880-master
|
252
|
+
X-Backend:
|
253
|
+
- easypost
|
254
|
+
X-Canary:
|
255
|
+
- direct
|
256
|
+
X-Proxied:
|
257
|
+
- extlb2wdc 2744487620
|
258
|
+
- intlb1wdc ff5a2958df
|
259
|
+
- intlb2sj ff5a2958df
|
260
|
+
Strict-Transport-Security:
|
261
|
+
- max-age=15768000; includeSubDomains; preload
|
262
|
+
body:
|
263
|
+
encoding: ASCII-8BIT
|
264
|
+
string: '{"created_at":"2019-11-12T08:37:00Z","is_return":true,"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:37:00Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_4347da93674b453dbfd47c8e10f78a86","object":"Address","created_at":"2019-11-12T08:36:57Z","updated_at":"2019-11-12T08:36:57Z","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":{}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_403d962cbc904247897aa52f3290d5cd","object":"Parcel","created_at":"2019-11-12T08:36:59Z","updated_at":"2019-11-12T08:36:59Z","length":null,"width":null,"height":null,"predefined_package":null,"weight":10.0,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_a1b453f6679543eb8c19bb32ece72755","object":"Rate","created_at":"2019-11-12T08:37:00Z","updated_at":"2019-11-12T08:37:00Z","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_5fbb3a666bbd44b1a4972ee7a37a0264","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_0d23fd665d9c4cbaa74c4fc015429afd","object":"Rate","created_at":"2019-11-12T08:37:00Z","updated_at":"2019-11-12T08:37:00Z","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_5fbb3a666bbd44b1a4972ee7a37a0264","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_29230bc9a5734adb8eb8423120ad9212","object":"Rate","created_at":"2019-11-12T08:37:00Z","updated_at":"2019-11-12T08:37:00Z","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_5fbb3a666bbd44b1a4972ee7a37a0264","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_806baafbd52e45edaebc319a32ade00e","object":"Rate","created_at":"2019-11-12T08:37:00Z","updated_at":"2019-11-12T08:37:00Z","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_5fbb3a666bbd44b1a4972ee7a37a0264","carrier_account_id":"ca_mtb51Ve0"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_ded65acf0a9844c5943001953bd7212b","object":"Address","created_at":"2019-11-12T08:36:58Z","updated_at":"2019-11-12T08:36:58Z","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":{}},"usps_zone":1,"return_address":{"id":"adr_4347da93674b453dbfd47c8e10f78a86","object":"Address","created_at":"2019-11-12T08:36:57Z","updated_at":"2019-11-12T08:36:57Z","name":"NY
|
267
|
+
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_ded65acf0a9844c5943001953bd7212b","object":"Address","created_at":"2019-11-12T08:36:58Z","updated_at":"2019-11-12T08:36:58Z","name":"John
|
268
|
+
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_5fbb3a666bbd44b1a4972ee7a37a0264","object":"Shipment"}'
|
269
|
+
http_version:
|
270
|
+
recorded_at: Tue, 12 Nov 2019 08:37:00 GMT
|
271
|
+
recorded_with: VCR 5.0.0
|
data/spec/cassettes/SolidusEasypost_ReturnAuthorization/_return_label/has_the_correct_fields.yml
ADDED
@@ -0,0 +1,336 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.easypost.com/v2/addresses
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
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
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- EasyPost/v2 RubyClient/3.0.1
|
14
|
+
Authorization:
|
15
|
+
- Bearer CvzYtuda6KRI9JjG7SAHbA
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
Content-Length:
|
19
|
+
- '209'
|
20
|
+
Accept-Encoding:
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
22
|
+
Host:
|
23
|
+
- api.easypost.com
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 201
|
27
|
+
message: Created
|
28
|
+
headers:
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Ep-Request-Uuid:
|
36
|
+
- 43c6543d5dca6f1fee7148d200010ea7
|
37
|
+
Cache-Control:
|
38
|
+
- no-cache, no-store, must-revalidate, private
|
39
|
+
Pragma:
|
40
|
+
- no-cache
|
41
|
+
Expires:
|
42
|
+
- '0'
|
43
|
+
Location:
|
44
|
+
- "/api/v2/addresses/adr_4f0a86e8ad67474db08e2e467552e7e8"
|
45
|
+
Content-Type:
|
46
|
+
- application/json; charset=utf-8
|
47
|
+
X-Runtime:
|
48
|
+
- '0.026170'
|
49
|
+
Transfer-Encoding:
|
50
|
+
- chunked
|
51
|
+
X-Node:
|
52
|
+
- bigweb10sj
|
53
|
+
X-Version-Label:
|
54
|
+
- easypost-201911120131-f5c72b1880-master
|
55
|
+
X-Backend:
|
56
|
+
- easypost
|
57
|
+
X-Proxied:
|
58
|
+
- extlb2wdc 2744487620
|
59
|
+
- intlb1wdc ff5a2958df
|
60
|
+
- intlb2sj ff5a2958df
|
61
|
+
Strict-Transport-Security:
|
62
|
+
- max-age=15768000; includeSubDomains; preload
|
63
|
+
body:
|
64
|
+
encoding: ASCII-8BIT
|
65
|
+
string: '{"id":"adr_4f0a86e8ad67474db08e2e467552e7e8","object":"Address","created_at":"2019-11-12T08:36:47Z","updated_at":"2019-11-12T08:36:47Z","name":"NY
|
66
|
+
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":{}}'
|
67
|
+
http_version:
|
68
|
+
recorded_at: Tue, 12 Nov 2019 08:36:47 GMT
|
69
|
+
- request:
|
70
|
+
method: post
|
71
|
+
uri: https://api.easypost.com/v2/addresses
|
72
|
+
body:
|
73
|
+
encoding: UTF-8
|
74
|
+
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
|
75
|
+
headers:
|
76
|
+
Accept:
|
77
|
+
- "*/*"
|
78
|
+
User-Agent:
|
79
|
+
- EasyPost/v2 RubyClient/3.0.1
|
80
|
+
Authorization:
|
81
|
+
- Bearer CvzYtuda6KRI9JjG7SAHbA
|
82
|
+
Content-Type:
|
83
|
+
- application/x-www-form-urlencoded
|
84
|
+
Content-Length:
|
85
|
+
- '222'
|
86
|
+
Accept-Encoding:
|
87
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
88
|
+
Host:
|
89
|
+
- api.easypost.com
|
90
|
+
response:
|
91
|
+
status:
|
92
|
+
code: 201
|
93
|
+
message: Created
|
94
|
+
headers:
|
95
|
+
X-Frame-Options:
|
96
|
+
- SAMEORIGIN
|
97
|
+
X-Xss-Protection:
|
98
|
+
- 1; mode=block
|
99
|
+
X-Content-Type-Options:
|
100
|
+
- nosniff
|
101
|
+
X-Ep-Request-Uuid:
|
102
|
+
- 43c6543d5dca6f20ee80a2a800010eb1
|
103
|
+
Cache-Control:
|
104
|
+
- no-cache, no-store, must-revalidate, private
|
105
|
+
Pragma:
|
106
|
+
- no-cache
|
107
|
+
Expires:
|
108
|
+
- '0'
|
109
|
+
Location:
|
110
|
+
- "/api/v2/addresses/adr_cfaea74467864c2f8e40cc85f3e2f8e2"
|
111
|
+
Content-Type:
|
112
|
+
- application/json; charset=utf-8
|
113
|
+
X-Runtime:
|
114
|
+
- '0.029482'
|
115
|
+
Transfer-Encoding:
|
116
|
+
- chunked
|
117
|
+
X-Node:
|
118
|
+
- bigweb4sj
|
119
|
+
X-Version-Label:
|
120
|
+
- easypost-201911120131-f5c72b1880-master
|
121
|
+
X-Backend:
|
122
|
+
- easypost
|
123
|
+
X-Proxied:
|
124
|
+
- extlb2wdc 2744487620
|
125
|
+
- intlb1sj ff5a2958df
|
126
|
+
- intlb1wdc ff5a2958df
|
127
|
+
Strict-Transport-Security:
|
128
|
+
- max-age=15768000; includeSubDomains; preload
|
129
|
+
body:
|
130
|
+
encoding: ASCII-8BIT
|
131
|
+
string: '{"id":"adr_cfaea74467864c2f8e40cc85f3e2f8e2","object":"Address","created_at":"2019-11-12T08:36:48Z","updated_at":"2019-11-12T08:36:48Z","name":"John
|
132
|
+
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":{}}'
|
133
|
+
http_version:
|
134
|
+
recorded_at: Tue, 12 Nov 2019 08:36:48 GMT
|
135
|
+
- request:
|
136
|
+
method: post
|
137
|
+
uri: https://api.easypost.com/v2/parcels
|
138
|
+
body:
|
139
|
+
encoding: UTF-8
|
140
|
+
string: parcel[weight]=10
|
141
|
+
headers:
|
142
|
+
Accept:
|
143
|
+
- "*/*"
|
144
|
+
User-Agent:
|
145
|
+
- EasyPost/v2 RubyClient/3.0.1
|
146
|
+
Authorization:
|
147
|
+
- Bearer CvzYtuda6KRI9JjG7SAHbA
|
148
|
+
Content-Type:
|
149
|
+
- application/x-www-form-urlencoded
|
150
|
+
Content-Length:
|
151
|
+
- '17'
|
152
|
+
Accept-Encoding:
|
153
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
154
|
+
Host:
|
155
|
+
- api.easypost.com
|
156
|
+
response:
|
157
|
+
status:
|
158
|
+
code: 201
|
159
|
+
message: Created
|
160
|
+
headers:
|
161
|
+
X-Frame-Options:
|
162
|
+
- SAMEORIGIN
|
163
|
+
X-Xss-Protection:
|
164
|
+
- 1; mode=block
|
165
|
+
X-Content-Type-Options:
|
166
|
+
- nosniff
|
167
|
+
X-Ep-Request-Uuid:
|
168
|
+
- 43c6543d5dca6f20ee80b8ac00010ebf
|
169
|
+
Cache-Control:
|
170
|
+
- no-cache, no-store, must-revalidate, private
|
171
|
+
Pragma:
|
172
|
+
- no-cache
|
173
|
+
Expires:
|
174
|
+
- '0'
|
175
|
+
Location:
|
176
|
+
- "/api/v2/parcels/prcl_b5ef4bb0dccb452c89cce15ee958b73a"
|
177
|
+
Content-Type:
|
178
|
+
- application/json; charset=utf-8
|
179
|
+
X-Runtime:
|
180
|
+
- '0.038522'
|
181
|
+
Transfer-Encoding:
|
182
|
+
- chunked
|
183
|
+
X-Node:
|
184
|
+
- bigweb3sj
|
185
|
+
X-Version-Label:
|
186
|
+
- easypost-201911120131-f5c72b1880-master
|
187
|
+
X-Backend:
|
188
|
+
- easypost
|
189
|
+
X-Proxied:
|
190
|
+
- extlb2wdc 2744487620
|
191
|
+
- intlb1wdc ff5a2958df
|
192
|
+
- intlb2sj ff5a2958df
|
193
|
+
Strict-Transport-Security:
|
194
|
+
- max-age=15768000; includeSubDomains; preload
|
195
|
+
body:
|
196
|
+
encoding: ASCII-8BIT
|
197
|
+
string: '{"id":"prcl_b5ef4bb0dccb452c89cce15ee958b73a","object":"Parcel","created_at":"2019-11-12T08:36:48Z","updated_at":"2019-11-12T08:36:48Z","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:48 GMT
|
200
|
+
- request:
|
201
|
+
method: post
|
202
|
+
uri: https://api.easypost.com/v2/shipments
|
203
|
+
body:
|
204
|
+
encoding: UTF-8
|
205
|
+
string: shipment[from_address][id]=adr_4f0a86e8ad67474db08e2e467552e7e8&shipment[to_address][id]=adr_cfaea74467864c2f8e40cc85f3e2f8e2&shipment[parcel][id]=prcl_b5ef4bb0dccb452c89cce15ee958b73a&shipment[is_return]=true
|
206
|
+
headers:
|
207
|
+
Accept:
|
208
|
+
- "*/*"
|
209
|
+
User-Agent:
|
210
|
+
- EasyPost/v2 RubyClient/3.0.1
|
211
|
+
Authorization:
|
212
|
+
- Bearer CvzYtuda6KRI9JjG7SAHbA
|
213
|
+
Content-Type:
|
214
|
+
- application/x-www-form-urlencoded
|
215
|
+
Content-Length:
|
216
|
+
- '209'
|
217
|
+
Accept-Encoding:
|
218
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
219
|
+
Host:
|
220
|
+
- api.easypost.com
|
221
|
+
response:
|
222
|
+
status:
|
223
|
+
code: 201
|
224
|
+
message: Created
|
225
|
+
headers:
|
226
|
+
X-Frame-Options:
|
227
|
+
- SAMEORIGIN
|
228
|
+
X-Xss-Protection:
|
229
|
+
- 1; mode=block
|
230
|
+
X-Content-Type-Options:
|
231
|
+
- nosniff
|
232
|
+
X-Ep-Request-Uuid:
|
233
|
+
- 43c6543d5dca6f21ee7276b000010ed0
|
234
|
+
Cache-Control:
|
235
|
+
- no-cache, no-store, must-revalidate, private
|
236
|
+
Pragma:
|
237
|
+
- no-cache
|
238
|
+
Expires:
|
239
|
+
- '0'
|
240
|
+
Location:
|
241
|
+
- "/api/v2/shipments/shp_d0b93bfd15fa443c852ee49ff049939d"
|
242
|
+
Content-Type:
|
243
|
+
- application/json; charset=utf-8
|
244
|
+
X-Runtime:
|
245
|
+
- '0.199031'
|
246
|
+
Transfer-Encoding:
|
247
|
+
- chunked
|
248
|
+
X-Node:
|
249
|
+
- bigweb3sj
|
250
|
+
X-Version-Label:
|
251
|
+
- easypost-201911120131-f5c72b1880-master
|
252
|
+
X-Backend:
|
253
|
+
- easypost
|
254
|
+
X-Proxied:
|
255
|
+
- extlb2wdc 2744487620
|
256
|
+
- intlb1sj ff5a2958df
|
257
|
+
- intlb2wdc ff5a2958df
|
258
|
+
Strict-Transport-Security:
|
259
|
+
- max-age=15768000; includeSubDomains; preload
|
260
|
+
body:
|
261
|
+
encoding: ASCII-8BIT
|
262
|
+
string: '{"created_at":"2019-11-12T08:36:49Z","is_return":true,"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:49Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_4f0a86e8ad67474db08e2e467552e7e8","object":"Address","created_at":"2019-11-12T08:36:47Z","updated_at":"2019-11-12T08:36:47Z","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_b5ef4bb0dccb452c89cce15ee958b73a","object":"Parcel","created_at":"2019-11-12T08:36:48Z","updated_at":"2019-11-12T08:36:48Z","length":null,"width":null,"height":null,"predefined_package":null,"weight":10.0,"mode":"test"},"postage_label":null,"rates":[{"id":"rate_077f2bdf8cf34fbc9edd937d0c05c57e","object":"Rate","created_at":"2019-11-12T08:36:49Z","updated_at":"2019-11-12T08:36:49Z","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_d0b93bfd15fa443c852ee49ff049939d","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_55d7d1a29dd046ea821ee2f309eee8fd","object":"Rate","created_at":"2019-11-12T08:36:49Z","updated_at":"2019-11-12T08:36:49Z","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_d0b93bfd15fa443c852ee49ff049939d","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_a5978da0359945bb8e78aac1d221cead","object":"Rate","created_at":"2019-11-12T08:36:49Z","updated_at":"2019-11-12T08:36:49Z","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_d0b93bfd15fa443c852ee49ff049939d","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_c79b16c97ece4f6b9ff3d2e0bac62363","object":"Rate","created_at":"2019-11-12T08:36:49Z","updated_at":"2019-11-12T08:36:49Z","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_d0b93bfd15fa443c852ee49ff049939d","carrier_account_id":"ca_mtb51Ve0"}],"refund_status":null,"scan_form":null,"selected_rate":null,"tracker":null,"to_address":{"id":"adr_cfaea74467864c2f8e40cc85f3e2f8e2","object":"Address","created_at":"2019-11-12T08:36:48Z","updated_at":"2019-11-12T08:36:48Z","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_4f0a86e8ad67474db08e2e467552e7e8","object":"Address","created_at":"2019-11-12T08:36:47Z","updated_at":"2019-11-12T08:36:47Z","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_cfaea74467864c2f8e40cc85f3e2f8e2","object":"Address","created_at":"2019-11-12T08:36:48Z","updated_at":"2019-11-12T08:36:48Z","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_d0b93bfd15fa443c852ee49ff049939d","object":"Shipment"}'
|
267
|
+
http_version:
|
268
|
+
recorded_at: Tue, 12 Nov 2019 08:36:49 GMT
|
269
|
+
- request:
|
270
|
+
method: post
|
271
|
+
uri: https://api.easypost.com/v2/shipments/shp_d0b93bfd15fa443c852ee49ff049939d/buy
|
272
|
+
body:
|
273
|
+
encoding: UTF-8
|
274
|
+
string: rate[id]=rate_077f2bdf8cf34fbc9edd937d0c05c57e
|
275
|
+
headers:
|
276
|
+
Accept:
|
277
|
+
- "*/*"
|
278
|
+
User-Agent:
|
279
|
+
- EasyPost/v2 RubyClient/3.0.1
|
280
|
+
Authorization:
|
281
|
+
- Bearer CvzYtuda6KRI9JjG7SAHbA
|
282
|
+
Content-Type:
|
283
|
+
- application/x-www-form-urlencoded
|
284
|
+
Content-Length:
|
285
|
+
- '46'
|
286
|
+
Accept-Encoding:
|
287
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
288
|
+
Host:
|
289
|
+
- api.easypost.com
|
290
|
+
response:
|
291
|
+
status:
|
292
|
+
code: 200
|
293
|
+
message: OK
|
294
|
+
headers:
|
295
|
+
X-Frame-Options:
|
296
|
+
- SAMEORIGIN
|
297
|
+
X-Xss-Protection:
|
298
|
+
- 1; mode=block
|
299
|
+
X-Content-Type-Options:
|
300
|
+
- nosniff
|
301
|
+
X-Ep-Request-Uuid:
|
302
|
+
- 43c6543d5dca6f22ee71d50d00010edf
|
303
|
+
Cache-Control:
|
304
|
+
- no-cache, no-store, must-revalidate, private
|
305
|
+
Pragma:
|
306
|
+
- no-cache
|
307
|
+
Expires:
|
308
|
+
- '0'
|
309
|
+
Content-Type:
|
310
|
+
- application/json; charset=utf-8
|
311
|
+
X-Runtime:
|
312
|
+
- '1.081515'
|
313
|
+
Transfer-Encoding:
|
314
|
+
- chunked
|
315
|
+
X-Node:
|
316
|
+
- bigweb3sj
|
317
|
+
X-Version-Label:
|
318
|
+
- easypost-201911120131-f5c72b1880-master
|
319
|
+
X-Backend:
|
320
|
+
- easypost
|
321
|
+
X-Proxied:
|
322
|
+
- extlb2wdc 2744487620
|
323
|
+
- intlb1wdc ff5a2958df
|
324
|
+
- intlb2sj ff5a2958df
|
325
|
+
Strict-Transport-Security:
|
326
|
+
- max-age=15768000; includeSubDomains; preload
|
327
|
+
body:
|
328
|
+
encoding: ASCII-8BIT
|
329
|
+
string: '{"created_at":"2019-11-12T08:36:49Z","is_return":true,"messages":[],"mode":"test","options":{"currency":"USD","payment":{"type":"SENDER"},"label_date":null,"date_advance":0},"reference":null,"status":"unknown","tracking_code":"9400100897846029289040","updated_at":"2019-11-12T08:36:51Z","batch_id":null,"batch_status":null,"batch_message":null,"customs_info":null,"from_address":{"id":"adr_4f0a86e8ad67474db08e2e467552e7e8","object":"Address","created_at":"2019-11-12T08:36:47Z","updated_at":"2019-11-12T08:36:50Z","name":"NY
|
330
|
+
Warehouse","company":"NY Warehouse","street1":"131 S 8th Ave","street2":null,"city":"Manville","state":"NJ","zip":"08835-1715","country":"US","phone":"2024561111","email":null,"mode":"test","carrier_facility":null,"residential":true,"federal_tax_id":null,"state_tax_id":null,"verifications":{"zip4":{"success":true,"errors":[],"details":null}}},"insurance":null,"order_id":null,"parcel":{"id":"prcl_b5ef4bb0dccb452c89cce15ee958b73a","object":"Parcel","created_at":"2019-11-12T08:36:48Z","updated_at":"2019-11-12T08:36:48Z","length":null,"width":null,"height":null,"predefined_package":null,"weight":10.0,"mode":"test"},"postage_label":{"object":"PostageLabel","id":"pl_37f765f275dd46c2866d0515694a306c","created_at":"2019-11-12T08:36:50Z","updated_at":"2019-11-12T08:36:51Z","date_advance":0,"integrated_form":"none","label_date":"2019-11-12T08:36:50Z","label_resolution":300,"label_size":"4x6","label_type":"default","label_file_type":"image/png","label_url":"https://easypost-files.s3-us-west-2.amazonaws.com/files/postage_label/20191112/ebe045d367a742dd8bf718e63a58c390.png","label_pdf_url":null,"label_zpl_url":null,"label_epl2_url":null,"label_file":null},"rates":[{"id":"rate_077f2bdf8cf34fbc9edd937d0c05c57e","object":"Rate","created_at":"2019-11-12T08:36:49Z","updated_at":"2019-11-12T08:36:49Z","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_d0b93bfd15fa443c852ee49ff049939d","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_55d7d1a29dd046ea821ee2f309eee8fd","object":"Rate","created_at":"2019-11-12T08:36:49Z","updated_at":"2019-11-12T08:36:49Z","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_d0b93bfd15fa443c852ee49ff049939d","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_a5978da0359945bb8e78aac1d221cead","object":"Rate","created_at":"2019-11-12T08:36:49Z","updated_at":"2019-11-12T08:36:49Z","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_d0b93bfd15fa443c852ee49ff049939d","carrier_account_id":"ca_mtb51Ve0"},{"id":"rate_c79b16c97ece4f6b9ff3d2e0bac62363","object":"Rate","created_at":"2019-11-12T08:36:49Z","updated_at":"2019-11-12T08:36:49Z","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_d0b93bfd15fa443c852ee49ff049939d","carrier_account_id":"ca_mtb51Ve0"}],"refund_status":null,"scan_form":null,"selected_rate":{"id":"rate_077f2bdf8cf34fbc9edd937d0c05c57e","object":"Rate","created_at":"2019-11-12T08:36:50Z","updated_at":"2019-11-12T08:36:50Z","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_d0b93bfd15fa443c852ee49ff049939d","carrier_account_id":"ca_mtb51Ve0"},"tracker":{"id":"trk_9d4383ac8813459f817c85282dd9e97f","object":"Tracker","mode":"test","tracking_code":"9400100897846029289040","status":"unknown","status_detail":"unknown","created_at":"2019-11-12T08:36:51Z","updated_at":"2019-11-12T08:36:51Z","signed_by":null,"weight":null,"est_delivery_date":null,"shipment_id":"shp_d0b93bfd15fa443c852ee49ff049939d","carrier":"USPS","tracking_details":[],"fees":[],"carrier_detail":null,"public_url":"https://track.easypost.com/djE6dHJrXzlkNDM4M2FjODgxMzQ1OWY4MTdjODUyODJkZDllOTdm"},"to_address":{"id":"adr_cfaea74467864c2f8e40cc85f3e2f8e2","object":"Address","created_at":"2019-11-12T08:36:48Z","updated_at":"2019-11-12T08:36:48Z","name":"John
|
331
|
+
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_4f0a86e8ad67474db08e2e467552e7e8","object":"Address","created_at":"2019-11-12T08:36:47Z","updated_at":"2019-11-12T08:36:50Z","name":"NY
|
332
|
+
Warehouse","company":"NY Warehouse","street1":"131 S 8th Ave","street2":null,"city":"Manville","state":"NJ","zip":"08835-1715","country":"US","phone":"2024561111","email":null,"mode":"test","carrier_facility":null,"residential":true,"federal_tax_id":null,"state_tax_id":null,"verifications":{"zip4":{"success":true,"errors":[],"details":null}}},"buyer_address":{"id":"adr_cfaea74467864c2f8e40cc85f3e2f8e2","object":"Address","created_at":"2019-11-12T08:36:48Z","updated_at":"2019-11-12T08:36:48Z","name":"John
|
333
|
+
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":[{"object":"Fee","type":"LabelFee","amount":"0.01000","charged":true,"refunded":false},{"object":"Fee","type":"PostageFee","amount":"3.82000","charged":true,"refunded":false}],"id":"shp_d0b93bfd15fa443c852ee49ff049939d","object":"Shipment"}'
|
334
|
+
http_version:
|
335
|
+
recorded_at: Tue, 12 Nov 2019 08:36:51 GMT
|
336
|
+
recorded_with: VCR 5.0.0
|