easypost 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db8276b780ceb6bde1e8b72185385da6458cb152babd4bccf3b1f75e5da4af93
4
- data.tar.gz: 103f3173ab91f5521204aee15694a31a7bb61875a955967049342ca250f04813
3
+ metadata.gz: 31efd6b963670a4dc229385c0ca537e37c55adaeb8174b7a55d048fcb66ee09d
4
+ data.tar.gz: 724dfd0bc8dc98ff5c5a7a9c91e1be3adc2f5160f9a7d32827c55e2b0b029993
5
5
  SHA512:
6
- metadata.gz: 3b4bff8f08265b7821605dec9ea8ee2b8de3261975dbe860ee33aa0746bfb2238c615d527a8db9b51716886845229437f535e8d41e541285e04cf97102120f20
7
- data.tar.gz: e0828a81e8c006ba589fe899cff31d3fe67bbf6e77577c44224224bf818d4650ebe8c76fe6f014fd3d00330c4f9974d8f9dda5fe79ee90dadc45ceefb3cd6a10
6
+ metadata.gz: 1bcb89b64cade19b65e91b29223329d3d0353b856b056e65690cd3d0e1ea155a548a73fc8c7e5b4a17ffae034b7bd23f5c36abf76ff974a5e615c7fa6fb05dc0
7
+ data.tar.gz: cfe4bb3cc5cc89e4e9f165cc17d1bfe91f4f583d535883510d3ed8088ce690709acca8de0d66573dfd5e8f6cc10fc97a21586b2f4dbb61c34854cc3ca089cb23
@@ -1,221 +1,243 @@
1
- === 3.3.0 2021-06-10
1
+ # CHANGELOG
2
+
3
+
4
+ ## 3.4.0 2021-07-13
5
+
6
+ * Removed deprecated `Item` object
7
+ * Sorted EasyPost Resources list
8
+ * Remove 2015-vintage experimental `all_updated` method on Tracker
9
+ * Fixes API key retrieval (#120, thanks @andychongyz)
10
+ * Adds `regenerate_rates` method for new rerate API
11
+ * Adds `deconstruct_keys` method to allow for pattern matching on EasyPost objects
12
+
13
+
14
+ ## 3.3.0 2021-06-10
2
15
 
3
16
  * Adds `SmartRate` functionality to the `Shipments` object (available by calling `get_smartrates` on a shipment)
4
17
  * Fix bug where `EasyPost::CarrierAccount.types` was hitting the wrong endpoint
5
18
 
6
- === 3.2.0 2021-01-14
19
+
20
+ ## 3.2.0 2021-01-14
7
21
 
8
22
  * Replace Travis CI with Github Actions
9
23
  * Add Ruby 3.0 to supported platforms (#110; thanks @maxwell)
10
24
 
11
- === 3.1.5 2020-12-16
25
+
26
+ ## 3.1.5 2020-12-16
12
27
 
13
28
  * Fix attribute lookup when manually constructing objects (#105; thanks @drewtempelmeyer)
14
29
  * Flatten class names and clean up some other style issues
15
30
  * Fix `EasyPost::Address.create_and_verify`, broken since 3.1.0 (#108; thanks @rajbirverma)
16
31
 
17
- === 3.1.4 2020-09-29
32
+
33
+ ## 3.1.4 2020-09-29
18
34
 
19
35
  * Don't modify params passed into Address#create (#78; thanks @TheRusskiy)
20
36
  * Don't modify `carriers` and `services` parameters to `Shipment.lowest_rate` (#71 / #103, thanks @vladvinnikov and @jurisgalang)
21
37
  * When constructing an easypost object, convert the key to a string (#102; thanks @Geesu)
22
38
  * Expose the raw HTTP response as `#http_body` on `EasyPost::Error` objects (#101; thanks @Geesu)
23
39
 
24
- === 3.1.3 2020-06-26
40
+
41
+ ## 3.1.3 2020-06-26
25
42
 
26
43
  * Fix bug causing Authorization header to be included in User-Agent header. All users must upgrade.
27
44
 
28
- === 3.1.2 2020-06-24
45
+
46
+ ## 3.1.2 2020-06-24
29
47
 
30
48
  * Bad gem push. New version required.
31
49
 
32
- === 3.1.1 2020-06-23
50
+
51
+ ## 3.1.1 2020-06-23
33
52
 
34
53
  * Fix bug where EasyPost.http_config was invalid when not explicitly initialized.
35
54
 
36
- === 3.1.0 2020-06-23
55
+
56
+ ## 3.1.0 2020-06-23
37
57
 
38
58
  * Add Shipment Invoice and Refund Report
39
59
  * Remove dependencies on `RestClient` and `MultiJson`
40
60
  * Remove some deprecated endpoints
41
61
 
42
- === 3.0.1 2018-05-17
62
+
63
+ ## 3.0.1 2018-05-17
43
64
 
44
65
  * Enforce TLS certificate validity by default
45
66
 
46
- === 3.0.0 2018-02-15
67
+
68
+ ## 3.0.0 2018-02-15
47
69
 
48
70
  * Require use of ruby ~> 2.0 and TLSv1.2
49
71
 
50
72
 
51
- === 2.7.3 2018-02-05
73
+ ## 2.7.3 2018-02-05
52
74
 
53
75
  * Fix bug with introduced around certain JSON objects with IDs (thanks vladvinnikov!)
54
76
 
55
77
 
56
- === 2.7.2 2018-02-01
78
+ ## 2.7.2 2018-02-01
57
79
 
58
80
  * Removed unused and unsupported code paths for Container model
59
81
  * Removed unused and unsupported code path for Stamp and Barcode methods on the Shipment model
60
82
  * Fixed a bug with non-model JSON object with an "id" key being treated as models and raising errors
61
83
 
62
84
 
63
- === 2.7.1 2017-05-25
85
+ ## 2.7.1 2017-05-25
64
86
 
65
87
  * Allow reports to be retrieved without passing a type
66
88
 
67
89
 
68
- === 2.7.0 2017-04-04
90
+ ## 2.7.0 2017-04-04
69
91
 
70
92
  * Changed Report CRUD signatures. requires report type to be passed
71
93
 
72
94
 
73
- === 2.6.2 2017-02-14
95
+ ## 2.6.2 2017-02-14
74
96
 
75
97
  * Added get_rates method for Orders
76
98
 
77
99
 
78
- === 2.6.1 2017-01-19
100
+ ## 2.6.1 2017-01-19
79
101
 
80
102
  * Updated create method for ScanForms
81
103
 
82
104
 
83
- === 2.6.0 2017-01-17
105
+ ## 2.6.0 2017-01-17
84
106
 
85
107
  * Add basic CRUD methods for Webhooks
86
108
 
87
109
 
88
- === 2.5.0 2016-12-19
110
+ ## 2.5.0 2016-12-19
89
111
 
90
112
  * Add prefixes to report in utils
91
113
 
92
114
 
93
- === 2.4.0 2016-12-08
115
+ ## 2.4.0 2016-12-08
94
116
 
95
117
  * Add report resource to ruby client
96
118
 
97
119
 
98
- === 2.3.0 2016-11-25
120
+ ## 2.3.0 2016-11-25
99
121
 
100
122
  * Updated dependencies to allow rest-client 2.0.0 and above
101
123
 
102
124
 
103
- === 2.2.0 2016-07-26
125
+ ## 2.2.0 2016-07-26
104
126
 
105
127
  * Added standalone Insurance model
106
128
 
107
129
 
108
- === 2.1.11 2016-02-04
130
+ ## 2.1.11 2016-02-04
109
131
 
110
132
  * Allowed user creation for top-level users
111
133
 
112
134
 
113
- === 2.1.10 2015-12-23
135
+ ## 2.1.10 2015-12-23
114
136
 
115
137
  * Added verify and verify_strict params to Address.create
116
138
  * Added Tracker.create_list and Tracker.all_updated for working with large
117
139
  numbers of Trackers.
118
140
 
119
141
 
120
- === 2.1.9 2015-11-04
142
+ ## 2.1.9 2015-11-04
121
143
 
122
144
  * Added new tests for Tracker.all
123
145
  * Updated some old examples
124
146
 
125
147
 
126
- === 2.1.8 2015-10-21
148
+ ## 2.1.8 2015-10-21
127
149
 
128
150
  * Added Cancel method for Pickups (thanks Ramie Blatt!)
129
151
 
130
152
 
131
- === 2.1.7 2015-10-05
153
+ ## 2.1.7 2015-10-05
132
154
 
133
155
  * Fixed Address.create_and_verify and changed how errors are raised (thanks Dimitri Roche!)
134
156
  * Require newer version of the multi_json package
135
157
 
136
158
 
137
- === 2.1.6 2015-06-10
159
+ ## 2.1.6 2015-06-10
138
160
 
139
161
  * Added Address message accessor for backwards compatability
140
162
 
141
163
 
142
- === 2.1.5 2015-06-10
164
+ ## 2.1.5 2015-06-10
143
165
 
144
166
  * Removed Address.message
145
167
 
146
168
 
147
- === 2.1.4 2015-06-03
169
+ ## 2.1.4 2015-06-03
148
170
 
149
171
  * Add Printer and PrintJob resources.
150
172
 
151
173
 
152
- === 2.1.3 2015-04-30
174
+ ## 2.1.3 2015-04-30
153
175
 
154
176
  * Bux fix, EasyPost::Errors no longer break with a nil json body.
155
177
 
156
178
 
157
- === 2.1.2 2015-04-29
179
+ ## 2.1.2 2015-04-29
158
180
 
159
181
  * EasyPost::Errors now correctly parse field errors and error codes.
160
182
 
161
183
 
162
- === 2.1.1 2015-04-15
184
+ ## 2.1.1 2015-04-15
163
185
 
164
186
  * CarrierAccount will now correctly save in-place modifications to credentials
165
187
  * Nested variables should now be saved correctly across all models
166
188
  * Fixed version numbering confusion (the previous version was 2.0.15, not 2.1.0)
167
189
 
168
190
 
169
- === 2.0.15 2015-04-15
191
+ ## 2.0.15 2015-04-15
170
192
 
171
193
  * Added tracker to shipment buy response
172
194
  * Updated tracker tests
173
195
 
174
196
 
175
- === 2.0.14 2015-04-15
197
+ ## 2.0.14 2015-04-15
176
198
 
177
199
  * Added User and CarrierAccount models with CRUD functionality
178
200
 
179
201
 
180
- === 2.0.13 2014-10-30
202
+ ## 2.0.13 2014-10-30
181
203
 
182
204
  * Added Pickup, PickupRate resources.
183
205
  * Added ability to pass api_key to a few resources that were missing it.
184
206
 
185
207
 
186
- === 2.0.12 2014-07-07
208
+ ## 2.0.12 2014-07-07
187
209
 
188
210
  * Added Item, Container, and Order resources.
189
211
  * Fixed and added a lot of tests.
190
212
 
191
213
 
192
- === 2.0.11 2013-12-16
214
+ ## 2.0.11 2013-12-16
193
215
 
194
216
  * Added Event.receive method for parsing events sent by webhook.
195
217
  * Fixed tests to account for the tracking code returning and array of details instead of a Hash
196
218
 
197
219
 
198
- === 2.0.10 2013-10-03
220
+ ## 2.0.10 2013-10-03
199
221
 
200
222
  * API Addition: Event resource added for webhook consumption.
201
223
 
202
224
 
203
- === 2.0.9 2013-09-19
225
+ ## 2.0.9 2013-09-19
204
226
 
205
227
  * Interface Change: Changed batch.scan_form to batch.create_scan_form to support the ability to refer to scan forms associated to batches.
206
228
 
207
229
 
208
- === 2.0.3 2013-07-31
230
+ ## 2.0.3 2013-07-31
209
231
 
210
232
  * API Addition: Tracker resource added. Trackers can be used to register any tracking code with EasyPost webhooks.
211
233
 
212
234
 
213
- === 2.0.2 2013-07-23
235
+ ## 2.0.2 2013-07-23
214
236
 
215
237
  * API Addition: Shipment.track_with_code returns tracking details for any tracking code.
216
238
 
217
239
 
218
- === 2.0.1 2013-07-07
240
+ ## 2.0.1 2013-07-07
219
241
 
220
242
  * API Addition: Address.create_and_verify returns a verified address in one step.
221
243
  * API Addition: Shipment.label forces the creation of additional label formats (pdf, epl2, zpl).
data/README.md CHANGED
@@ -4,29 +4,27 @@
4
4
  [![Gem Version](https://badge.fury.io/rb/easypost.svg)](https://badge.fury.io/rb/easypost)
5
5
 
6
6
 
7
- EasyPost is a simple shipping API. You can sign up for an account at https://easypost.com
7
+ EasyPost is a simple shipping API. You can sign up for an account at https://easypost.com.
8
8
 
9
- Installation
10
- ---------------
9
+ ## Installation
11
10
 
12
11
  Install the gem:
13
12
 
14
- ```
13
+ ```bash
15
14
  gem install easypost
16
15
  ```
17
16
 
18
17
  Import the EasyPost client in your application:
19
18
 
20
- ```
19
+ ```ruby
21
20
  require 'easypost'
22
21
  ```
23
22
 
24
- Example
25
- ------------------
23
+ ## Example
26
24
 
27
25
  ```ruby
28
26
  require 'easypost'
29
- EasyPost.api_key = 'cueqNZUb3ldeWTNX7MU3Mel8UXtaAMUi'
27
+ EasyPost.api_key = 'API_KEY'
30
28
 
31
29
  to_address = EasyPost::Address.create(
32
30
  :name => 'Dr. Steve Brule',
@@ -37,6 +35,7 @@ to_address = EasyPost::Address.create(
37
35
  :country => 'US',
38
36
  :phone => '310-808-5243'
39
37
  )
38
+
40
39
  from_address = EasyPost::Address.create(
41
40
  :company => 'EasyPost',
42
41
  :street1 => '118 2nd Street',
@@ -62,6 +61,7 @@ customs_item = EasyPost::CustomsItem.create(
62
61
  :origin_country => 'us',
63
62
  :hs_tariff_number => 123456
64
63
  )
64
+
65
65
  customs_info = EasyPost::CustomsInfo.create(
66
66
  :integrated_form_type => 'form_2976',
67
67
  :customs_certify => true,
@@ -91,17 +91,23 @@ shipment.insure(amount: 100)
91
91
  puts shipment.insurance
92
92
 
93
93
  puts shipment.postage_label.label_url
94
-
95
94
  ```
96
95
 
97
- Documentation
98
- --------------------
96
+ ## Documentation
99
97
 
100
98
  Up-to-date documentation at: https://easypost.com/docs
101
99
 
102
- Tests
103
- --------------------
100
+ ## Development
104
101
 
102
+ ```bash
103
+ # Run tests
104
+ bundle exec rspec
105
105
  ```
106
- rspec spec
107
- ```
106
+
107
+ ## Releasing
108
+
109
+ 1. Update the version in `VERSION`
110
+ 1. Update the `CHANGELOG`
111
+ 1. Tag a release on GitHub
112
+ 1. Build the Gem `gem build easypost.gemspec`
113
+ 1. Publish the Gem `gem push easypost-X.X.X.gem` (replace `X.X.X` with the version being released)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0
1
+ 3.4.0
data/lib/easypost.rb CHANGED
@@ -2,38 +2,38 @@ require "base64"
2
2
  require "cgi"
3
3
  require "net/http"
4
4
 
5
- # Resources
6
5
  require "easypost/version"
7
6
  require "easypost/util"
8
7
  require "easypost/object"
9
8
  require "easypost/resource"
9
+ require "easypost/error"
10
+
11
+ # Resources
10
12
  require "easypost/address"
11
- require "easypost/parcel"
12
- require "easypost/customs_item"
13
+ require "easypost/api_key"
14
+ require "easypost/batch"
15
+ require "easypost/carrier_account"
16
+ require "easypost/carrier_type"
13
17
  require "easypost/customs_info"
14
- require "easypost/shipment"
15
- require "easypost/rate"
16
- require "easypost/postage_label"
17
- require "easypost/scan_form"
18
- require "easypost/refund"
19
- require "easypost/insurance"
18
+ require "easypost/customs_item"
20
19
  require "easypost/event"
21
- require "easypost/batch"
22
- require "easypost/tracker"
23
- require "easypost/item"
20
+ require "easypost/insurance"
24
21
  require "easypost/order"
25
- require "easypost/pickup"
22
+ require "easypost/parcel"
26
23
  require "easypost/pickup_rate"
27
- require "easypost/printer"
24
+ require "easypost/pickup"
25
+ require "easypost/postage_label"
28
26
  require "easypost/print_job"
29
- require "easypost/carrier_type"
30
- require "easypost/carrier_account"
31
- require "easypost/user"
27
+ require "easypost/printer"
28
+ require "easypost/rate"
29
+ require "easypost/refund"
32
30
  require "easypost/report"
31
+ require "easypost/scan_form"
32
+ require "easypost/shipment"
33
+ require "easypost/tracker"
34
+ require "easypost/user"
33
35
  require "easypost/webhook"
34
36
 
35
- require "easypost/error"
36
-
37
37
  module EasyPost
38
38
  @api_key = nil
39
39
  @api_base = "https://api.easypost.com"
@@ -0,0 +1,2 @@
1
+ class EasyPost::ApiKey < EasyPost::Resource
2
+ end
@@ -75,6 +75,10 @@ class EasyPost::EasyPostObject
75
75
  @values
76
76
  end
77
77
 
78
+ def deconstruct_keys(_keys)
79
+ @values.transform_keys(&:to_sym)
80
+ end
81
+
78
82
  def each(&blk)
79
83
  @values.each(&blk)
80
84
  end
@@ -6,6 +6,13 @@ class EasyPost::Shipment < EasyPost::Resource
6
6
  return self
7
7
  end
8
8
 
9
+ def regenerate_rates(params={})
10
+ response = EasyPost.make_request(:post, url + '/rerate', @api_key, params)
11
+ self.refresh_from(response, @api_key, true)
12
+
13
+ return self
14
+ end
15
+
9
16
  def get_smartrates
10
17
  response = EasyPost.make_request(:get, url + '/smartrate', @api_key)
11
18
 
@@ -4,10 +4,4 @@ class EasyPost::Tracker < EasyPost::Resource
4
4
  response = EasyPost.make_request(:post, url, api_key, params)
5
5
  return true
6
6
  end
7
-
8
- def self.all_updated(params={}, api_key=nil)
9
- url = self.url + '/all_updated'
10
- response = EasyPost.make_request(:get, url, api_key, params)
11
- return EasyPost::Util.convert_to_easypost_object(response, api_key)
12
- end
13
7
  end
data/lib/easypost/user.rb CHANGED
@@ -22,8 +22,7 @@ class EasyPost::User < EasyPost::Resource
22
22
  end
23
23
 
24
24
  def self.all_api_keys
25
- response = EasyPost.make_request(:get, "/api_keys", @api_key)
26
- return EasyPost::Util.convert_to_easypost_object(response, api_key)
25
+ EasyPost::ApiKey.all
27
26
  end
28
27
 
29
28
  def api_keys
data/lib/easypost/util.rb CHANGED
@@ -22,63 +22,61 @@ module EasyPost::Util
22
22
  def self.convert_to_easypost_object(response, api_key, parent=nil, name=nil)
23
23
  types = {
24
24
  'Address' => EasyPost::Address,
25
- 'ScanForm' => EasyPost::ScanForm,
26
- 'CustomsItem' => EasyPost::CustomsItem,
25
+ 'Batch' => EasyPost::Batch,
26
+ 'CarrierAccount' => EasyPost::CarrierAccount,
27
27
  'CustomsInfo' => EasyPost::CustomsInfo,
28
- 'Parcel' => EasyPost::Parcel,
29
- 'Shipment' => EasyPost::Shipment,
30
- 'Rate' => EasyPost::Rate,
31
- 'Refund' => EasyPost::Refund,
28
+ 'CustomsItem' => EasyPost::CustomsItem,
32
29
  'Event' => EasyPost::Event,
33
- 'Batch' => EasyPost::Batch,
34
- 'Tracker' => EasyPost::Tracker,
35
- 'Item' => EasyPost::Item,
36
30
  'Insurance' => EasyPost::Insurance,
37
31
  'Order' => EasyPost::Order,
32
+ 'Parcel' => EasyPost::Parcel,
33
+ 'PaymentLogReport' => EasyPost::Report,
38
34
  'Pickup' => EasyPost::Pickup,
39
35
  'PickupRate' => EasyPost::PickupRate,
40
36
  'PostageLabel' => EasyPost::PostageLabel,
41
37
  'Printer' => EasyPost::Printer,
42
38
  'PrintJob' => EasyPost::PrintJob,
43
- 'CarrierAccount' => EasyPost::CarrierAccount,
44
- 'User' => EasyPost::User,
39
+ 'Rate' => EasyPost::Rate,
40
+ 'Refund' => EasyPost::Refund,
41
+ 'RefundReport' => EasyPost::Report,
45
42
  'Report' => EasyPost::Report,
43
+ 'ScanForm' => EasyPost::ScanForm,
44
+ 'Shipment' => EasyPost::Shipment,
45
+ 'ShipmentInvoiceReport' => EasyPost::Report,
46
46
  'ShipmentReport' => EasyPost::Report,
47
- 'PaymentLogReport' => EasyPost::Report,
47
+ 'Tracker' => EasyPost::Tracker,
48
48
  'TrackerReport' => EasyPost::Report,
49
- 'RefundReport' => EasyPost::Report,
50
- 'ShipmentInvoiceReport' => EasyPost::Report,
49
+ 'User' => EasyPost::User,
51
50
  'Webhook' => EasyPost::Webhook
52
51
  }
53
52
 
54
53
  prefixes = {
55
54
  'adr' => EasyPost::Address,
56
- 'sf' => EasyPost::ScanForm,
57
- 'cstitem' => EasyPost::CustomsItem,
55
+ 'batch' => EasyPost::Batch,
56
+ 'ca' => EasyPost::CarrierAccount,
58
57
  'cstinfo' => EasyPost::CustomsInfo,
59
- 'prcl' => EasyPost::Parcel,
60
- 'shp' => EasyPost::Shipment,
61
- 'rate' => EasyPost::Rate,
62
- 'rfnd' => EasyPost::Refund,
58
+ 'cstitem' => EasyPost::CustomsItem,
63
59
  'evt' => EasyPost::Event,
64
- 'batch' => EasyPost::Batch,
65
- 'trk' => EasyPost::Tracker,
66
- 'item' => EasyPost::Item,
60
+ 'hook' => EasyPost::Webhook,
67
61
  'ins' => EasyPost::Insurance,
68
62
  'order' => EasyPost::Order,
69
63
  'pickup' => EasyPost::Pickup,
70
64
  'pickuprate' => EasyPost::PickupRate,
71
65
  'pl' => EasyPost::PostageLabel,
66
+ 'plrep' => EasyPost::Report,
67
+ 'prcl' => EasyPost::Parcel,
72
68
  'printer' => EasyPost::Printer,
73
69
  'printjob' => EasyPost::PrintJob,
74
- 'ca' => EasyPost::CarrierAccount,
75
- 'user' => EasyPost::User,
76
- 'shprep' => EasyPost::Report,
77
- 'plrep' => EasyPost::Report,
78
- 'trkrep' => EasyPost::Report,
70
+ 'rate' => EasyPost::Rate,
79
71
  'refrep' => EasyPost::Report,
72
+ 'rfnd' => EasyPost::Refund,
73
+ 'sf' => EasyPost::ScanForm,
74
+ 'shp' => EasyPost::Shipment,
80
75
  'shpinvrep' => EasyPost::Report,
81
- 'hook' => EasyPost::Webhook
76
+ 'shprep' => EasyPost::Report,
77
+ 'trk' => EasyPost::Tracker,
78
+ 'trkrep' => EasyPost::Report,
79
+ 'user' => EasyPost::User
82
80
  }
83
81
 
84
82
  case response
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easypost
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Epstein
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-06-10 00:00:00.000000000 Z
13
+ date: 2021-07-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry
@@ -91,7 +91,7 @@ extra_rdoc_files: []
91
91
  files:
92
92
  - ".github/workflows/ci.yml"
93
93
  - ".gitignore"
94
- - CHANGELOG
94
+ - CHANGELOG.md
95
95
  - Gemfile
96
96
  - LICENSE
97
97
  - README.md
@@ -101,6 +101,7 @@ files:
101
101
  - easypost.gemspec
102
102
  - lib/easypost.rb
103
103
  - lib/easypost/address.rb
104
+ - lib/easypost/api_key.rb
104
105
  - lib/easypost/batch.rb
105
106
  - lib/easypost/carrier_account.rb
106
107
  - lib/easypost/carrier_type.rb
@@ -109,7 +110,6 @@ files:
109
110
  - lib/easypost/error.rb
110
111
  - lib/easypost/event.rb
111
112
  - lib/easypost/insurance.rb
112
- - lib/easypost/item.rb
113
113
  - lib/easypost/object.rb
114
114
  - lib/easypost/order.rb
115
115
  - lib/easypost/parcel.rb
data/lib/easypost/item.rb DELETED
@@ -1,6 +0,0 @@
1
- class EasyPost::Item < EasyPost::Resource
2
- def self.retrieve_reference(params={}, api_key=nil)
3
- response = EasyPost.make_request(:get, url + '/retrieve_reference', api_key, params)
4
- return EasyPost::Util::convert_to_easypost_object(response, api_key) if response
5
- end
6
- end