Skip to content

Commit

Permalink
re-record cassettes
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen293 committed Aug 1, 2024
1 parent 3dde03d commit 73db5b7
Show file tree
Hide file tree
Showing 163 changed files with 5,275 additions and 4,409 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## Next release

- Send GET requests as query parameters instead of JSON body parameters
- Fix get_next_page_of_children function with correct filter key

## v6.4.0 (2024-07-24)

- Adds new `Claim` service for filing claims on EasyPost shipments and insurances
Expand Down
2 changes: 1 addition & 1 deletion examples
Submodule examples updated 40 files
+21 −0 official/docs/csharp/current/claims/cancel.cs
+43 −0 official/docs/csharp/current/claims/create.cs
+27 −0 official/docs/csharp/current/claims/list.cs
+21 −0 official/docs/csharp/current/claims/retrieve.cs
+2 −0 official/docs/curl/current/claims/cancel.sh
+13 −0 official/docs/curl/current/claims/create.sh
+2 −0 official/docs/curl/current/claims/list.sh
+2 −0 official/docs/curl/current/claims/retrieve.sh
+15 −0 official/docs/golang/current/claims/cancel.go
+25 −0 official/docs/golang/current/claims/create.go
+19 −0 official/docs/golang/current/claims/list.go
+15 −0 official/docs/golang/current/claims/retrieve.go
+15 −0 official/docs/java/current/claims/cancel.java
+30 −0 official/docs/java/current/claims/create.java
+20 −0 official/docs/java/current/claims/list.java
+15 −0 official/docs/java/current/claims/retrieve.java
+9 −0 official/docs/node/current/claims/cancel.js
+18 −0 official/docs/node/current/claims/create.js
+11 −0 official/docs/node/current/claims/list.js
+9 −0 official/docs/node/current/claims/retrieve.js
+7 −0 official/docs/php/current/claims/cancel.php
+19 −0 official/docs/php/current/claims/create.php
+9 −0 official/docs/php/current/claims/list.php
+7 −0 official/docs/php/current/claims/retrieve.php
+7 −0 official/docs/python/current/claims/cancel.py
+16 −0 official/docs/python/current/claims/create.py
+7 −0 official/docs/python/current/claims/list.py
+7 −0 official/docs/python/current/claims/retrieve.py
+40 −0 official/docs/responses/claim/claim-cancel.json
+35 −0 official/docs/responses/claim/claim-create.json
+185 −0 official/docs/responses/claim/claim-list.json
+35 −0 official/docs/responses/claim/claim-retrieve.json
+7 −0 official/docs/ruby/current/claim/cancel.rb
+19 −0 official/docs/ruby/current/claim/create.rb
+9 −0 official/docs/ruby/current/claim/list.rb
+7 −0 official/docs/ruby/current/claim/retrieve.rb
+1 −1 official/fixtures/client-library-fixtures.json
+13 −0 official/guides/create-carrier-curls/quick.sh
+26 −31 style_guides/node/.eslintrc
+0 −4 style_guides/node/.prettierignore
10 changes: 5 additions & 5 deletions lib/easypost/http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def request(
if params
if [:get, :delete].include?(method)
uri.query = URI.encode_www_form(params)
else
elsif params
serialized_body = JSON.dump(EasyPost::InternalUtilities.objects_to_ids(params))
end
end
Expand Down Expand Up @@ -75,10 +75,10 @@ def request(
# client_response_object attribute
if response.is_a?(Net::HTTPResponse)
response_body = begin
JSON.parse(response.body)
rescue JSON::ParseError
response.body
end
JSON.parse(response.body)
rescue JSON::ParseError
response.body
end
response_context.merge!(
{
http_status: response.code.to_i,
Expand Down
2 changes: 1 addition & 1 deletion lib/easypost/services/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def all_children(params = {})
def get_next_page_of_children(collection, page_size = nil)
raise EasyPost::Errors::EndOfPaginationError.new unless more_pages?(collection)

params = { before_id: collection.children.last.id }
params = { after_id: collection.children.last.id }
params[:page_size] = page_size unless page_size.nil?

all_children(params)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 73db5b7

Please sign in to comment.