From b8f8dfceb1331c188a6eba6396d32e1cbdf1e55e Mon Sep 17 00:00:00 2001 From: panxl6 Date: Tue, 2 Jan 2024 16:48:13 +0800 Subject: [PATCH] feat: remove /trackings/exports --- lib/aftership/v4/tracking.rb | 5 ----- test/tracking.rb | 1 - 2 files changed, 6 deletions(-) diff --git a/lib/aftership/v4/tracking.rb b/lib/aftership/v4/tracking.rb index d598611..b5cbdef 100644 --- a/lib/aftership/v4/tracking.rb +++ b/lib/aftership/v4/tracking.rb @@ -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? diff --git a/test/tracking.rb b/test/tracking.rb index 788bb7f..a44bdd3 100644 --- a/test/tracking.rb +++ b/test/tracking.rb @@ -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'})