Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #50 from panxl6/master
Browse files Browse the repository at this point in the history
remove deprecated api
  • Loading branch information
Bossa573 authored Jan 2, 2024
2 parents 2227b37 + e7ac9b3 commit 25f3950
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions lib/aftership/v4/tracking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ def self.get_all(params = {})
new(:get, 'trackings', params).call
end

# GET /trackings/exports
def self.export(params = {})
new(:get, 'trackings/exports', params).call
end

# PUT /trackings/:slug/:tracking_number
def self.update(slug, tracking_number, params = {})
if slug.nil? || slug.empty? || tracking_number.nil? || tracking_number.empty?
Expand Down
1 change: 0 additions & 1 deletion test/tracking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

puts AfterShip::V4::Tracking.get('hong-kong-post', 'RA123456780HK')
puts AfterShip::V4::Tracking.get_all
puts AfterShip::V4::Tracking.export

puts AfterShip::V4::Tracking.update('hong-kong-post', 'RA123456780HK', {:title => 'Testing'})

Expand Down

0 comments on commit 25f3950

Please sign in to comment.