aftership-tracking-sdk 7.0.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/README.md +68 -83
- data/lib/aftership-tracking-sdk/api/courier.rb +8 -8
- data/lib/aftership-tracking-sdk/api/estimated_delivery_date.rb +4 -4
- data/lib/aftership-tracking-sdk/api/tracking.rb +50 -416
- data/lib/aftership-tracking-sdk/api_client.rb +2 -2
- data/lib/aftership-tracking-sdk/configuration.rb +108 -108
- data/lib/aftership-tracking-sdk/models/additional_fields_v1.rb +1 -1
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_create_tracking_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_delete_tracking_by_id_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_get_tracking_by_id_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_mark_tracking_completed_by_id_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_retrack_tracking_by_id_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_tracking.rb +2 -0
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_update_tracking_by_id_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_create_tracking_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_delete_tracking_by_id_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_get_tracking_by_id_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_mark_tracking_completed_by_id_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_retrack_tracking_by_id_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_tracking.rb +2 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_update_tracking_by_id_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/checkpoint.rb +2 -0
- data/lib/aftership-tracking-sdk/models/coordinate_checkpoint.rb +2 -0
- data/lib/aftership-tracking-sdk/models/courier.rb +2 -0
- data/lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_create_tracking_response.rb +173 -0
- data/lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_delete_tracking_by_id_response.rb +173 -0
- data/lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_get_tracking_by_id_response.rb +173 -0
- data/lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_mark_tracking_completed_by_id_response.rb +173 -0
- data/lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_retrack_tracking_by_id_response.rb +173 -0
- data/lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_tracking.rb +173 -0
- data/lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_update_tracking_by_id_response.rb +173 -0
- data/lib/aftership-tracking-sdk/models/courier_response_v1.rb +2 -0
- data/lib/aftership-tracking-sdk/models/{tracking_create_tracking_request.rb → create_tracking_request.rb} +9 -7
- data/lib/aftership-tracking-sdk/models/create_tracking_response.rb +953 -0
- data/lib/aftership-tracking-sdk/models/{mark_tracking_completed_by_slug_tracking_number_request.rb → custom_estimated_delivery_date_create_tracking_response.rb} +41 -9
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_delete_tracking_by_id_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_get_tracking_by_id_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_mark_tracking_completed_by_id_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_retrack_tracking_by_id_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_tracking.rb +2 -0
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_update_tracking_by_id_response.rb +183 -0
- data/lib/aftership-tracking-sdk/models/data_courier_response_v1.rb +2 -0
- data/lib/aftership-tracking-sdk/models/data_tracking_response_get_multiple_v1.rb +8 -126
- data/lib/aftership-tracking-sdk/models/delete_tracking_by_id_response.rb +953 -0
- data/lib/aftership-tracking-sdk/models/destination_address_estimated_delivery_date_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/destination_address_estimated_delivery_date_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/{tracking_detect_courier_request.rb → detect_courier_request.rb} +5 -3
- data/lib/aftership-tracking-sdk/models/detect_courier_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/estimated_delivery_date_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/estimated_delivery_date_response.rb +12 -0
- data/lib/aftership-tracking-sdk/models/estimated_pickup_estimated_delivery_date_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/estimated_pickup_estimated_delivery_date_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/events_checkpoint.rb +2 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_create_tracking_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_delete_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_get_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_mark_tracking_completed_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_retrack_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_tracking.rb +2 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_update_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/get_all_couriers_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/get_tracking_by_id_response.rb +953 -0
- data/lib/aftership-tracking-sdk/models/get_trackings_response.rb +5 -3
- data/lib/aftership-tracking-sdk/models/get_user_couriers_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_create_tracking_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_delete_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_get_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_mark_tracking_completed_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_retrack_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_tracking.rb +2 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_update_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/mark_tracking_completed_by_id_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/mark_tracking_completed_by_id_response.rb +953 -0
- data/lib/aftership-tracking-sdk/models/meta_v1.rb +2 -0
- data/lib/aftership-tracking-sdk/models/{next_couriers_tracking_create_tracking_request.rb → next_couriers_create_tracking_request.rb} +4 -2
- data/lib/aftership-tracking-sdk/models/{get_checkpoint_by_tracking_id_response.rb → next_couriers_create_tracking_response.rb} +33 -51
- data/lib/aftership-tracking-sdk/models/next_couriers_delete_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/{get_checkpoint_by_slug_tracking_number_response.rb → next_couriers_get_tracking_by_id_response.rb} +33 -51
- data/lib/aftership-tracking-sdk/models/next_couriers_mark_tracking_completed_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/next_couriers_retrack_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/next_couriers_tracking.rb +22 -0
- data/lib/aftership-tracking-sdk/models/next_couriers_update_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/order_processing_time_estimated_pickup_estimated_delivery_date_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/order_processing_time_estimated_pickup_estimated_delivery_date_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/origin_address_estimated_delivery_date_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/origin_address_estimated_delivery_date_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/pagination.rb +14 -6
- data/lib/aftership-tracking-sdk/models/pagination_data_tracking_response_get_multiple_v1.rb +173 -0
- data/lib/aftership-tracking-sdk/models/{notification_request_v1.rb → pagination_get_trackings_response.rb} +28 -16
- data/lib/aftership-tracking-sdk/models/predict_batch_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/predict_batch_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/reason_events_checkpoint.rb +2 -0
- data/lib/aftership-tracking-sdk/models/retrack_tracking_by_id_response.rb +953 -0
- data/lib/aftership-tracking-sdk/models/{tracking_delete_response_v1.rb → shipment_weight_create_tracking_response.rb} +18 -16
- data/lib/aftership-tracking-sdk/models/{data_notification_response_v1.rb → shipment_weight_delete_tracking_by_id_response.rb} +21 -9
- data/lib/aftership-tracking-sdk/models/{notification.rb → shipment_weight_get_tracking_by_id_response.rb} +18 -16
- data/lib/aftership-tracking-sdk/models/shipment_weight_mark_tracking_completed_by_id_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/shipment_weight_retrack_tracking_by_id_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/{notification_response_v1.rb → shipment_weight_tracking.rb} +18 -16
- data/lib/aftership-tracking-sdk/models/shipment_weight_update_tracking_by_id_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/slug_group_v1.rb +1 -1
- data/lib/aftership-tracking-sdk/models/tag_v1.rb +1 -1
- data/lib/aftership-tracking-sdk/models/tracking.rb +56 -24
- data/lib/aftership-tracking-sdk/models/tracking_response_get_multiple_v1.rb +2 -0
- data/lib/aftership-tracking-sdk/models/tracking_response_v1.rb +5 -3
- data/lib/aftership-tracking-sdk/models/{tracking_update_tracking_by_id_request.rb → update_tracking_by_id_request.rb} +5 -3
- data/lib/aftership-tracking-sdk/models/update_tracking_by_id_response.rb +953 -0
- data/lib/aftership-tracking-sdk/models/weight_estimated_delivery_date_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/weight_estimated_delivery_date_response.rb +2 -0
- data/lib/aftership-tracking-sdk/version.rb +1 -1
- metadata +64 -22
- data/lib/aftership-tracking-sdk/api/last_checkpoint.rb +0 -143
- data/lib/aftership-tracking-sdk/api/notification.rb +0 -403
- data/lib/aftership-tracking-sdk/models/custom_fields_tracking_update_tracking_by_slug_tracking_number_request.rb +0 -139
- data/lib/aftership-tracking-sdk/models/data_tracking_delete_response_v1.rb +0 -151
- data/lib/aftership-tracking-sdk/models/data_tracking_response_v1.rb +0 -151
- data/lib/aftership-tracking-sdk/models/partial_delete_tracking.rb +0 -241
- data/lib/aftership-tracking-sdk/models/partial_update_tracking.rb +0 -251
- data/lib/aftership-tracking-sdk/models/tracking_update_tracking_by_slug_tracking_number_request.rb +0 -391
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class WeightEstimatedDeliveryDateRequest
|
5
|
+
|
5
6
|
# The weight unit of the package.
|
6
7
|
# unit: String;
|
7
8
|
attr_accessor :unit
|
@@ -159,3 +160,4 @@ module AftershipAPI::Model
|
|
159
160
|
end
|
160
161
|
end
|
161
162
|
end
|
163
|
+
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class WeightEstimatedDeliveryDateResponse
|
5
|
+
|
5
6
|
# The weight unit of the package.
|
6
7
|
# unit: String;
|
7
8
|
attr_accessor :unit
|
@@ -159,3 +160,4 @@ module AftershipAPI::Model
|
|
159
160
|
end
|
160
161
|
end
|
161
162
|
end
|
163
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aftership-tracking-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 9.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AfterShip Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -64,69 +64,111 @@ files:
|
|
64
64
|
- lib/aftership-tracking-sdk.rb
|
65
65
|
- lib/aftership-tracking-sdk/api/courier.rb
|
66
66
|
- lib/aftership-tracking-sdk/api/estimated_delivery_date.rb
|
67
|
-
- lib/aftership-tracking-sdk/api/last_checkpoint.rb
|
68
|
-
- lib/aftership-tracking-sdk/api/notification.rb
|
69
67
|
- lib/aftership-tracking-sdk/api/tracking.rb
|
70
68
|
- lib/aftership-tracking-sdk/api_client.rb
|
71
69
|
- lib/aftership-tracking-sdk/configuration.rb
|
72
70
|
- lib/aftership-tracking-sdk/error.rb
|
73
71
|
- lib/aftership-tracking-sdk/models/additional_fields_v1.rb
|
72
|
+
- lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_create_tracking_response.rb
|
73
|
+
- lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_delete_tracking_by_id_response.rb
|
74
|
+
- lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_get_tracking_by_id_response.rb
|
75
|
+
- lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_mark_tracking_completed_by_id_response.rb
|
76
|
+
- lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_retrack_tracking_by_id_response.rb
|
74
77
|
- lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_tracking.rb
|
78
|
+
- lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_update_tracking_by_id_response.rb
|
79
|
+
- lib/aftership-tracking-sdk/models/carbon_emissions_create_tracking_response.rb
|
80
|
+
- lib/aftership-tracking-sdk/models/carbon_emissions_delete_tracking_by_id_response.rb
|
81
|
+
- lib/aftership-tracking-sdk/models/carbon_emissions_get_tracking_by_id_response.rb
|
82
|
+
- lib/aftership-tracking-sdk/models/carbon_emissions_mark_tracking_completed_by_id_response.rb
|
83
|
+
- lib/aftership-tracking-sdk/models/carbon_emissions_retrack_tracking_by_id_response.rb
|
75
84
|
- lib/aftership-tracking-sdk/models/carbon_emissions_tracking.rb
|
85
|
+
- lib/aftership-tracking-sdk/models/carbon_emissions_update_tracking_by_id_response.rb
|
76
86
|
- lib/aftership-tracking-sdk/models/checkpoint.rb
|
77
87
|
- lib/aftership-tracking-sdk/models/coordinate_checkpoint.rb
|
78
88
|
- lib/aftership-tracking-sdk/models/courier.rb
|
89
|
+
- lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_create_tracking_response.rb
|
90
|
+
- lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_delete_tracking_by_id_response.rb
|
91
|
+
- lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_get_tracking_by_id_response.rb
|
92
|
+
- lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_mark_tracking_completed_by_id_response.rb
|
93
|
+
- lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_retrack_tracking_by_id_response.rb
|
94
|
+
- lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_tracking.rb
|
95
|
+
- lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_update_tracking_by_id_response.rb
|
79
96
|
- lib/aftership-tracking-sdk/models/courier_response_v1.rb
|
97
|
+
- lib/aftership-tracking-sdk/models/create_tracking_request.rb
|
98
|
+
- lib/aftership-tracking-sdk/models/create_tracking_response.rb
|
99
|
+
- lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_create_tracking_response.rb
|
100
|
+
- lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_delete_tracking_by_id_response.rb
|
101
|
+
- lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_get_tracking_by_id_response.rb
|
102
|
+
- lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_mark_tracking_completed_by_id_response.rb
|
103
|
+
- lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_retrack_tracking_by_id_response.rb
|
80
104
|
- lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_tracking.rb
|
81
|
-
- lib/aftership-tracking-sdk/models/
|
105
|
+
- lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_update_tracking_by_id_response.rb
|
82
106
|
- lib/aftership-tracking-sdk/models/data_courier_response_v1.rb
|
83
|
-
- lib/aftership-tracking-sdk/models/data_notification_response_v1.rb
|
84
|
-
- lib/aftership-tracking-sdk/models/data_tracking_delete_response_v1.rb
|
85
107
|
- lib/aftership-tracking-sdk/models/data_tracking_response_get_multiple_v1.rb
|
86
|
-
- lib/aftership-tracking-sdk/models/
|
108
|
+
- lib/aftership-tracking-sdk/models/delete_tracking_by_id_response.rb
|
87
109
|
- lib/aftership-tracking-sdk/models/destination_address_estimated_delivery_date_request.rb
|
88
110
|
- lib/aftership-tracking-sdk/models/destination_address_estimated_delivery_date_response.rb
|
111
|
+
- lib/aftership-tracking-sdk/models/detect_courier_request.rb
|
89
112
|
- lib/aftership-tracking-sdk/models/detect_courier_response.rb
|
90
113
|
- lib/aftership-tracking-sdk/models/estimated_delivery_date_request.rb
|
91
114
|
- lib/aftership-tracking-sdk/models/estimated_delivery_date_response.rb
|
92
115
|
- lib/aftership-tracking-sdk/models/estimated_pickup_estimated_delivery_date_request.rb
|
93
116
|
- lib/aftership-tracking-sdk/models/estimated_pickup_estimated_delivery_date_response.rb
|
94
117
|
- lib/aftership-tracking-sdk/models/events_checkpoint.rb
|
118
|
+
- lib/aftership-tracking-sdk/models/first_estimated_delivery_create_tracking_response.rb
|
119
|
+
- lib/aftership-tracking-sdk/models/first_estimated_delivery_delete_tracking_by_id_response.rb
|
120
|
+
- lib/aftership-tracking-sdk/models/first_estimated_delivery_get_tracking_by_id_response.rb
|
121
|
+
- lib/aftership-tracking-sdk/models/first_estimated_delivery_mark_tracking_completed_by_id_response.rb
|
122
|
+
- lib/aftership-tracking-sdk/models/first_estimated_delivery_retrack_tracking_by_id_response.rb
|
95
123
|
- lib/aftership-tracking-sdk/models/first_estimated_delivery_tracking.rb
|
124
|
+
- lib/aftership-tracking-sdk/models/first_estimated_delivery_update_tracking_by_id_response.rb
|
96
125
|
- lib/aftership-tracking-sdk/models/get_all_couriers_response.rb
|
97
|
-
- lib/aftership-tracking-sdk/models/
|
98
|
-
- lib/aftership-tracking-sdk/models/get_checkpoint_by_tracking_id_response.rb
|
126
|
+
- lib/aftership-tracking-sdk/models/get_tracking_by_id_response.rb
|
99
127
|
- lib/aftership-tracking-sdk/models/get_trackings_response.rb
|
100
128
|
- lib/aftership-tracking-sdk/models/get_user_couriers_response.rb
|
129
|
+
- lib/aftership-tracking-sdk/models/latest_estimated_delivery_create_tracking_response.rb
|
130
|
+
- lib/aftership-tracking-sdk/models/latest_estimated_delivery_delete_tracking_by_id_response.rb
|
131
|
+
- lib/aftership-tracking-sdk/models/latest_estimated_delivery_get_tracking_by_id_response.rb
|
132
|
+
- lib/aftership-tracking-sdk/models/latest_estimated_delivery_mark_tracking_completed_by_id_response.rb
|
133
|
+
- lib/aftership-tracking-sdk/models/latest_estimated_delivery_retrack_tracking_by_id_response.rb
|
101
134
|
- lib/aftership-tracking-sdk/models/latest_estimated_delivery_tracking.rb
|
135
|
+
- lib/aftership-tracking-sdk/models/latest_estimated_delivery_update_tracking_by_id_response.rb
|
102
136
|
- lib/aftership-tracking-sdk/models/mark_tracking_completed_by_id_request.rb
|
103
|
-
- lib/aftership-tracking-sdk/models/
|
137
|
+
- lib/aftership-tracking-sdk/models/mark_tracking_completed_by_id_response.rb
|
104
138
|
- lib/aftership-tracking-sdk/models/meta_v1.rb
|
139
|
+
- lib/aftership-tracking-sdk/models/next_couriers_create_tracking_request.rb
|
140
|
+
- lib/aftership-tracking-sdk/models/next_couriers_create_tracking_response.rb
|
141
|
+
- lib/aftership-tracking-sdk/models/next_couriers_delete_tracking_by_id_response.rb
|
142
|
+
- lib/aftership-tracking-sdk/models/next_couriers_get_tracking_by_id_response.rb
|
143
|
+
- lib/aftership-tracking-sdk/models/next_couriers_mark_tracking_completed_by_id_response.rb
|
144
|
+
- lib/aftership-tracking-sdk/models/next_couriers_retrack_tracking_by_id_response.rb
|
105
145
|
- lib/aftership-tracking-sdk/models/next_couriers_tracking.rb
|
106
|
-
- lib/aftership-tracking-sdk/models/
|
107
|
-
- lib/aftership-tracking-sdk/models/notification.rb
|
108
|
-
- lib/aftership-tracking-sdk/models/notification_request_v1.rb
|
109
|
-
- lib/aftership-tracking-sdk/models/notification_response_v1.rb
|
146
|
+
- lib/aftership-tracking-sdk/models/next_couriers_update_tracking_by_id_response.rb
|
110
147
|
- lib/aftership-tracking-sdk/models/order_processing_time_estimated_pickup_estimated_delivery_date_request.rb
|
111
148
|
- lib/aftership-tracking-sdk/models/order_processing_time_estimated_pickup_estimated_delivery_date_response.rb
|
112
149
|
- lib/aftership-tracking-sdk/models/origin_address_estimated_delivery_date_request.rb
|
113
150
|
- lib/aftership-tracking-sdk/models/origin_address_estimated_delivery_date_response.rb
|
114
151
|
- lib/aftership-tracking-sdk/models/pagination.rb
|
115
|
-
- lib/aftership-tracking-sdk/models/
|
116
|
-
- lib/aftership-tracking-sdk/models/
|
152
|
+
- lib/aftership-tracking-sdk/models/pagination_data_tracking_response_get_multiple_v1.rb
|
153
|
+
- lib/aftership-tracking-sdk/models/pagination_get_trackings_response.rb
|
117
154
|
- lib/aftership-tracking-sdk/models/predict_batch_request.rb
|
118
155
|
- lib/aftership-tracking-sdk/models/predict_batch_response.rb
|
119
156
|
- lib/aftership-tracking-sdk/models/reason_events_checkpoint.rb
|
157
|
+
- lib/aftership-tracking-sdk/models/retrack_tracking_by_id_response.rb
|
158
|
+
- lib/aftership-tracking-sdk/models/shipment_weight_create_tracking_response.rb
|
159
|
+
- lib/aftership-tracking-sdk/models/shipment_weight_delete_tracking_by_id_response.rb
|
160
|
+
- lib/aftership-tracking-sdk/models/shipment_weight_get_tracking_by_id_response.rb
|
161
|
+
- lib/aftership-tracking-sdk/models/shipment_weight_mark_tracking_completed_by_id_response.rb
|
162
|
+
- lib/aftership-tracking-sdk/models/shipment_weight_retrack_tracking_by_id_response.rb
|
163
|
+
- lib/aftership-tracking-sdk/models/shipment_weight_tracking.rb
|
164
|
+
- lib/aftership-tracking-sdk/models/shipment_weight_update_tracking_by_id_response.rb
|
120
165
|
- lib/aftership-tracking-sdk/models/slug_group_v1.rb
|
121
166
|
- lib/aftership-tracking-sdk/models/tag_v1.rb
|
122
167
|
- lib/aftership-tracking-sdk/models/tracking.rb
|
123
|
-
- lib/aftership-tracking-sdk/models/tracking_create_tracking_request.rb
|
124
|
-
- lib/aftership-tracking-sdk/models/tracking_delete_response_v1.rb
|
125
|
-
- lib/aftership-tracking-sdk/models/tracking_detect_courier_request.rb
|
126
168
|
- lib/aftership-tracking-sdk/models/tracking_response_get_multiple_v1.rb
|
127
169
|
- lib/aftership-tracking-sdk/models/tracking_response_v1.rb
|
128
|
-
- lib/aftership-tracking-sdk/models/
|
129
|
-
- lib/aftership-tracking-sdk/models/
|
170
|
+
- lib/aftership-tracking-sdk/models/update_tracking_by_id_request.rb
|
171
|
+
- lib/aftership-tracking-sdk/models/update_tracking_by_id_response.rb
|
130
172
|
- lib/aftership-tracking-sdk/models/weight_estimated_delivery_date_request.rb
|
131
173
|
- lib/aftership-tracking-sdk/models/weight_estimated_delivery_date_response.rb
|
132
174
|
- lib/aftership-tracking-sdk/sign_string.rb
|
@@ -1,143 +0,0 @@
|
|
1
|
-
# This code was auto generated by AfterShip SDK Generator.
|
2
|
-
# Do not edit the class manually.
|
3
|
-
require 'cgi'
|
4
|
-
|
5
|
-
module AftershipAPI
|
6
|
-
class LastCheckpointApi
|
7
|
-
attr_accessor :api_client
|
8
|
-
|
9
|
-
def initialize(api_client = ApiClient.default)
|
10
|
-
@api_client = api_client
|
11
|
-
end
|
12
|
-
|
13
|
-
# get_checkpoint_by_slug_tracking_number
|
14
|
-
# Return the tracking information of the last checkpoint of a single tracking.
|
15
|
-
# @param slug [String] Tracking slug
|
16
|
-
# @param tracking_number [String] Tracking number
|
17
|
-
# @param [Hash] opts the optional parameters
|
18
|
-
# @option opts [String] :fields List of fields to include in the response. Use comma for multiple values. Fields to include: `slug`, `created_at`, `checkpoint_time`, `city`, `coordinates`, `country_iso3`, `country_name`, `message`, `state`, `tag`, `zip`
|
19
|
-
# @option opts [String] :lang Support Chinese to English translation for `china-ems` and `china-post` only
|
20
|
-
# @option opts [String] :tracking_account_number Additional field required by some carriers to retrieve the tracking info. The shipper’s carrier account number. Refer to our article on for more details.
|
21
|
-
# @option opts [String] :tracking_origin_country Additional field required by some carriers to retrieve the tracking info. The origin country/region of the shipment. Refer to our article on for more details.
|
22
|
-
# @option opts [String] :tracking_destination_country Additional field required by some carriers to retrieve the tracking info. The destination country/region of the shipment. Refer to our article on for more details.
|
23
|
-
# @option opts [String] :tracking_key Additional field required by some carriers to retrieve the tracking info. A type of tracking credential required by some carriers. Refer to our article on for more details.
|
24
|
-
# @option opts [String] :tracking_postal_code Additional field required by some carriers to retrieve the tracking info. The postal code of the recipient’s address. Refer to our article on for more details.
|
25
|
-
# @option opts [String] :tracking_ship_date Additional field required by some carriers to retrieve the tracking info. The date the shipment was sent, using the format YYYYMMDD. Refer to our article on for more details.
|
26
|
-
# @option opts [String] :tracking_state Additional field required by some carriers to retrieve the tracking info. The state/province of the recipient’s address. Refer to our article on for more details.
|
27
|
-
# @return [Model::GetCheckpointBySlugTrackingNumberResponse]
|
28
|
-
def get_checkpoint_by_slug_tracking_number(slug:, tracking_number:, opts: {})
|
29
|
-
data, _status_code, _headers = get_checkpoint_by_slug_tracking_number_with_http_info(slug: slug, tracking_number: tracking_number, opts: opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
def get_checkpoint_by_slug_tracking_number_with_http_info(slug:, tracking_number:, opts: {})
|
34
|
-
if @api_client.config.debugging
|
35
|
-
@api_client.config.logger.debug 'Calling API: LastCheckpointApi.get_checkpoint_by_slug_tracking_number ...'
|
36
|
-
end
|
37
|
-
|
38
|
-
if slug.nil? || (slug.to_s == '')
|
39
|
-
raise InvalidParamError.new "slug cannot be nil or empty"
|
40
|
-
end
|
41
|
-
if tracking_number.nil? || (tracking_number.to_s == '')
|
42
|
-
raise InvalidParamError.new "tracking_number cannot be nil or empty"
|
43
|
-
end
|
44
|
-
|
45
|
-
|
46
|
-
# resource path
|
47
|
-
local_var_path = "/tracking/2024-04/last_checkpoint/#{slug}/#{tracking_number}"
|
48
|
-
method = :'GET'
|
49
|
-
|
50
|
-
# query parameters
|
51
|
-
query_params = opts[:query_params] || {}
|
52
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
53
|
-
query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
|
54
|
-
query_params[:'tracking_account_number'] = opts[:'tracking_account_number'] if !opts[:'tracking_account_number'].nil?
|
55
|
-
query_params[:'tracking_origin_country'] = opts[:'tracking_origin_country'] if !opts[:'tracking_origin_country'].nil?
|
56
|
-
query_params[:'tracking_destination_country'] = opts[:'tracking_destination_country'] if !opts[:'tracking_destination_country'].nil?
|
57
|
-
query_params[:'tracking_key'] = opts[:'tracking_key'] if !opts[:'tracking_key'].nil?
|
58
|
-
query_params[:'tracking_postal_code'] = opts[:'tracking_postal_code'] if !opts[:'tracking_postal_code'].nil?
|
59
|
-
query_params[:'tracking_ship_date'] = opts[:'tracking_ship_date'] if !opts[:'tracking_ship_date'].nil?
|
60
|
-
query_params[:'tracking_state'] = opts[:'tracking_state'] if !opts[:'tracking_state'].nil?
|
61
|
-
# header parameters
|
62
|
-
header_params = opts[:header_params] || {}
|
63
|
-
|
64
|
-
# http body (model)
|
65
|
-
post_body = opts[:body]
|
66
|
-
|
67
|
-
# return_type
|
68
|
-
return_type = 'GetCheckpointBySlugTrackingNumberResponse'
|
69
|
-
|
70
|
-
new_options = opts.merge(
|
71
|
-
:operation => :"LastCheckpointApi.get_checkpoint_by_slug_tracking_number",
|
72
|
-
:header_params => header_params,
|
73
|
-
:query_params => query_params,
|
74
|
-
:body => post_body,
|
75
|
-
:return_type => return_type,
|
76
|
-
:response_legacy_tag => "",
|
77
|
-
:is_paging => false
|
78
|
-
)
|
79
|
-
|
80
|
-
data, status_code, headers = @api_client.call_api(method, local_var_path, new_options)
|
81
|
-
if @api_client.config.debugging
|
82
|
-
@api_client.config.logger.debug "API called: LastCheckpointApi#get_checkpoint_by_slug_tracking_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
83
|
-
end
|
84
|
-
return data, status_code, headers
|
85
|
-
end
|
86
|
-
|
87
|
-
# get_checkpoint_by_tracking_id
|
88
|
-
# Return the tracking information of the last checkpoint of a single tracking.
|
89
|
-
# @param tracking_id [String] tracking id
|
90
|
-
# @param [Hash] opts the optional parameters
|
91
|
-
# @option opts [String] :fields List of fields to include in the response. Use comma for multiple values. Fields to include: `slug`, `created_at`, `checkpoint_time`, `city`, `coordinates`, `country_iso3`, `country_name`, `message`, `state`, `tag`, `zip`
|
92
|
-
# @option opts [String] :lang Support Chinese to English translation for `china-ems` and `china-post` only
|
93
|
-
# @return [Model::GetCheckpointByTrackingIdResponse]
|
94
|
-
def get_checkpoint_by_tracking_id(tracking_id:, opts: {})
|
95
|
-
data, _status_code, _headers = get_checkpoint_by_tracking_id_with_http_info(tracking_id: tracking_id, opts: opts)
|
96
|
-
data
|
97
|
-
end
|
98
|
-
|
99
|
-
def get_checkpoint_by_tracking_id_with_http_info(tracking_id:, opts: {})
|
100
|
-
if @api_client.config.debugging
|
101
|
-
@api_client.config.logger.debug 'Calling API: LastCheckpointApi.get_checkpoint_by_tracking_id ...'
|
102
|
-
end
|
103
|
-
|
104
|
-
if tracking_id.nil? || (tracking_id.to_s == '')
|
105
|
-
raise InvalidParamError.new "tracking_id cannot be nil or empty"
|
106
|
-
end
|
107
|
-
|
108
|
-
|
109
|
-
# resource path
|
110
|
-
local_var_path = "/tracking/2024-04/last_checkpoint/#{tracking_id}"
|
111
|
-
method = :'GET'
|
112
|
-
|
113
|
-
# query parameters
|
114
|
-
query_params = opts[:query_params] || {}
|
115
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
116
|
-
query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
|
117
|
-
# header parameters
|
118
|
-
header_params = opts[:header_params] || {}
|
119
|
-
|
120
|
-
# http body (model)
|
121
|
-
post_body = opts[:body]
|
122
|
-
|
123
|
-
# return_type
|
124
|
-
return_type = 'GetCheckpointByTrackingIdResponse'
|
125
|
-
|
126
|
-
new_options = opts.merge(
|
127
|
-
:operation => :"LastCheckpointApi.get_checkpoint_by_tracking_id",
|
128
|
-
:header_params => header_params,
|
129
|
-
:query_params => query_params,
|
130
|
-
:body => post_body,
|
131
|
-
:return_type => return_type,
|
132
|
-
:response_legacy_tag => "",
|
133
|
-
:is_paging => false
|
134
|
-
)
|
135
|
-
|
136
|
-
data, status_code, headers = @api_client.call_api(method, local_var_path, new_options)
|
137
|
-
if @api_client.config.debugging
|
138
|
-
@api_client.config.logger.debug "API called: LastCheckpointApi#get_checkpoint_by_tracking_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
139
|
-
end
|
140
|
-
return data, status_code, headers
|
141
|
-
end
|
142
|
-
end
|
143
|
-
end
|