easypost 7.5.0 → 7.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1c914f092b06f13332e656663b1650c734f8de6509ac8c45fd509900c7db938
4
- data.tar.gz: b553d86880fe21e4619f8cb7982f720d9ca3ae646f23b66be5d569fae59fa8dc
3
+ metadata.gz: 0fea5a7b6c529207dce7950344ebfa7dacab20a5a03b89c20b9204f905226504
4
+ data.tar.gz: ccd5ee4596fbf4a4f3d52452a93984ed5774ab4b74d76e82c4b4fa8a77a8b836
5
5
  SHA512:
6
- metadata.gz: 5678236ab51f3f63418917820b3ba92e67e7bbefe6cb8d4d312660925d3da8d9d8667ee204fdbffaecb2a283a4ce31433dcd4e92c715be3a69fc96ca77df67cf
7
- data.tar.gz: 3e42754c66996261979f938cbed8b8472ce9f9ec8b50407621bbedbf43d3fc565bb6052998570a85509efb0eda981ce7fab80c8f1799c561149d6a7f5eeaf0f7
6
+ metadata.gz: 6a28525b29aed5376549c00422989c6d200d0db98085d0b414f311395c02c8b49ad8bd053d7f10ce02bc2ef2c0d39ecb9b627b2e24062d9c53e33db8033b0251
7
+ data.tar.gz: 3192c31ca964081536029824c38b5c7d942893a7fb798118495bfec3e616da789950befd5b201f372892af6ef53376408a6c8b965bbf30098b9e5e217c0772de
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v7.6.0 (2026-02-25)
4
+
5
+ - Adds generic `make_api_call` function
6
+
3
7
  ## v7.5.0 (2026-02-20)
4
8
 
5
9
  - Adds the following functions:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.5.0
1
+ 7.6.0
@@ -144,6 +144,22 @@ class EasyPost::Client
144
144
  EasyPost::Hooks.unsubscribe_all(:response)
145
145
  end
146
146
 
147
+ # Make an API call to the EasyPost API
148
+ #
149
+ # This public, generic interface is useful for making arbitrary API calls to the EasyPost API that
150
+ # are not yet supported by the client library's services. When possible, the service for your use case
151
+ # should be used instead as it provides a more convenient and higher-level interface depending on the endpoint.
152
+ #
153
+ # @param method [Symbol] the HTTP Verb (get, post, put, patch, delete, etc.)
154
+ # @param endpoint [String] URI path of the resource
155
+ # @param params [Object] (nil) object to be used as the request parameters
156
+ # @return [EasyPost::Models::EasyPostObject] EasyPost object parsed from the response body
157
+ def make_api_call(method, endpoint, params = nil)
158
+ response = make_request(method, endpoint, params)
159
+
160
+ EasyPost::InternalUtilities::Json.convert_json_to_object(response)
161
+ end
162
+
147
163
  private
148
164
 
149
165
  def http_config
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: 7.5.0
4
+ version: 7.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - EasyPost Developers