Skip to content

Commit b7409ed

Browse files
author
Watson Zuo
committed
support 2026-01 version
1 parent 764958f commit b7409ed

15 files changed

Lines changed: 561 additions & 58 deletions

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Before you begin to integrate:
3838

3939
### API and SDK Version
4040

41-
- SDK Version:
42-
- API Version: 2025-07
41+
- SDK Version: 14.0.0
42+
- API Version: 2026-01
4343
## Quick Start
4444

4545
### Installation
@@ -50,7 +50,7 @@ gem install aftership-tracking-sdk
5050
Or add a line to your Gemfile
5151

5252
```bash
53-
gem 'aftership-tracking-sdk', '~> 13.0.0'
53+
gem 'aftership-tracking-sdk', '~> 14.0.0'
5454
```
5555

5656
## Constructor

lib/aftership-tracking-sdk/api/courier.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_couriers(opts: {})
2323

2424

2525
# resource path
26-
local_var_path = "/tracking/2025-07/couriers"
26+
local_var_path = "/tracking/2026-01/couriers"
2727
method = :'GET'
2828

2929
# query parameters
@@ -72,7 +72,7 @@ def detect_courier(body:, opts: {})
7272

7373

7474
# resource path
75-
local_var_path = "/tracking/2025-07/couriers/detect"
75+
local_var_path = "/tracking/2026-01/couriers/detect"
7676
method = :'POST'
7777

7878
# query parameters

lib/aftership-tracking-sdk/api/courier_connection.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_courier_connections(opts: {})
2424

2525

2626
# resource path
27-
local_var_path = "/tracking/2025-07/courier-connections"
27+
local_var_path = "/tracking/2026-01/courier-connections"
2828
method = :'GET'
2929

3030
# query parameters
@@ -74,7 +74,7 @@ def post_courier_connections(body:, opts: {})
7474

7575

7676
# resource path
77-
local_var_path = "/tracking/2025-07/courier-connections"
77+
local_var_path = "/tracking/2026-01/courier-connections"
7878
method = :'POST'
7979

8080
# query parameters
@@ -122,7 +122,7 @@ def get_courier_connections_by_id(id:, opts: {})
122122

123123

124124
# resource path
125-
local_var_path = "/tracking/2025-07/courier-connections/#{id}"
125+
local_var_path = "/tracking/2026-01/courier-connections/#{id}"
126126
method = :'GET'
127127

128128
# query parameters
@@ -173,7 +173,7 @@ def put_courier_connections_by_id(id:, body:, opts: {})
173173

174174

175175
# resource path
176-
local_var_path = "/tracking/2025-07/courier-connections/#{id}"
176+
local_var_path = "/tracking/2026-01/courier-connections/#{id}"
177177
method = :'PATCH'
178178

179179
# query parameters
@@ -221,7 +221,7 @@ def delete_courier_connections_by_id(id:, opts: {})
221221

222222

223223
# resource path
224-
local_var_path = "/tracking/2025-07/courier-connections/#{id}"
224+
local_var_path = "/tracking/2026-01/courier-connections/#{id}"
225225
method = :'DELETE'
226226

227227
# query parameters

lib/aftership-tracking-sdk/api/estimated_delivery_date.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def predict(body:, opts: {})
2424

2525

2626
# resource path
27-
local_var_path = "/tracking/2025-07/estimated-delivery-date/predict"
27+
local_var_path = "/tracking/2026-01/estimated-delivery-date/predict"
2828
method = :'POST'
2929

3030
# query parameters
@@ -71,7 +71,7 @@ def predict_batch(body:, opts: {})
7171

7272

7373
# resource path
74-
local_var_path = "/tracking/2025-07/estimated-delivery-date/predict-batch"
74+
local_var_path = "/tracking/2026-01/estimated-delivery-date/predict-batch"
7575
method = :'POST'
7676

7777
# query parameters

lib/aftership-tracking-sdk/api/tracking.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_trackings(opts: {})
3939

4040

4141
# resource path
42-
local_var_path = "/tracking/2025-07/trackings"
42+
local_var_path = "/tracking/2026-01/trackings"
4343
method = :'GET'
4444

4545
# query parameters
@@ -104,7 +104,7 @@ def create_tracking(body:, opts: {})
104104

105105

106106
# resource path
107-
local_var_path = "/tracking/2025-07/trackings"
107+
local_var_path = "/tracking/2026-01/trackings"
108108
method = :'POST'
109109

110110
# query parameters
@@ -154,7 +154,7 @@ def get_tracking_by_id(id:, opts: {})
154154

155155

156156
# resource path
157-
local_var_path = "/tracking/2025-07/trackings/#{id}"
157+
local_var_path = "/tracking/2026-01/trackings/#{id}"
158158
method = :'GET'
159159

160160
# query parameters
@@ -207,7 +207,7 @@ def update_tracking_by_id(id:, body:, opts: {})
207207

208208

209209
# resource path
210-
local_var_path = "/tracking/2025-07/trackings/#{id}"
210+
local_var_path = "/tracking/2026-01/trackings/#{id}"
211211
method = :'PUT'
212212

213213
# query parameters
@@ -255,7 +255,7 @@ def delete_tracking_by_id(id:, opts: {})
255255

256256

257257
# resource path
258-
local_var_path = "/tracking/2025-07/trackings/#{id}"
258+
local_var_path = "/tracking/2026-01/trackings/#{id}"
259259
method = :'DELETE'
260260

261261
# query parameters
@@ -303,7 +303,7 @@ def retrack_tracking_by_id(id:, opts: {})
303303

304304

305305
# resource path
306-
local_var_path = "/tracking/2025-07/trackings/#{id}/retrack"
306+
local_var_path = "/tracking/2026-01/trackings/#{id}/retrack"
307307
method = :'POST'
308308

309309
# query parameters
@@ -354,7 +354,7 @@ def mark_tracking_completed_by_id(id:, body:, opts: {})
354354

355355

356356
# resource path
357-
local_var_path = "/tracking/2025-07/trackings/#{id}/mark-as-completed"
357+
local_var_path = "/tracking/2026-01/trackings/#{id}/mark-as-completed"
358358
method = :'POST'
359359

360360
# query parameters

lib/aftership-tracking-sdk/models/checkpoint.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class Checkpoint
2727
attr_accessor :state
2828

2929
# Postal code info provided by carrier
30-
# zip?: String;
31-
attr_accessor :zip
30+
# postal_code?: String;
31+
attr_accessor :postal_code
3232

3333
# The latitude and longitude coordinates indicate the precise location of the shipments that are currently in transit.
3434
# coordinate?: CheckpointCoordinate;
@@ -105,8 +105,8 @@ def initialize(attributes = {})
105105
self.state = attributes[:'state']
106106
end
107107

108-
if attributes.key?(:'zip')
109-
self.zip = attributes[:'zip']
108+
if attributes.key?(:'postal_code')
109+
self.postal_code = attributes[:'postal_code']
110110
end
111111

112112
if attributes.key?(:'coordinate')
@@ -159,7 +159,7 @@ def self.openapi_types
159159
:'location' => :'String',
160160
:'city' => :'String',
161161
:'state' => :'String',
162-
:'zip' => :'String',
162+
:'postal_code' => :'String',
163163
:'coordinate' => :'CheckpointCoordinate',
164164
:'country_region' => :'String',
165165
:'country_region_name' => :'String',
@@ -182,7 +182,7 @@ def self.attribute_map
182182
:'location' => :'location',
183183
:'city' => :'city',
184184
:'state' => :'state',
185-
:'zip' => :'zip',
185+
:'postal_code' => :'postal_code',
186186
:'coordinate' => :'coordinate',
187187
:'country_region' => :'country_region',
188188
:'country_region_name' => :'country_region_name',

lib/aftership-tracking-sdk/models/create_tracking_request.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ class CreateTrackingRequest
3434
# language?: String;
3535
attr_accessor :language
3636

37-
# The promised delivery date of the order. It uses the formats:- YYYY-MM-DD- YYYY-MM-DDTHH:mm:ss- YYYY-MM-DDTHH:mm:ssZ
38-
# order_promised_delivery_date?: String;
37+
# The promised delivery date of the order in shipment recipient’s timezone.
38+
# order_promised_delivery_date?: CreateTrackingRequestOrderPromisedDeliveryDate;
3939
attr_accessor :order_promised_delivery_date
4040

41-
# Shipment delivery type- pickup_at_store- pickup_at_courier- door_to_door
42-
# delivery_type?: CreateTrackingRequestDeliveryType;
43-
attr_accessor :delivery_type
44-
4541
# Shipment pickup location for receiver
4642
# pickup_location?: String;
4743
attr_accessor :pickup_location
4844

45+
# Shipment delivery type- pickup_at_store- pickup_at_courier- door_to_door
46+
# delivery_type?: CreateTrackingRequestDeliveryType;
47+
attr_accessor :delivery_type
48+
4949
# Shipment pickup note for receiver
5050
# pickup_note?: String;
5151
attr_accessor :pickup_note
@@ -193,14 +193,14 @@ def initialize(attributes = {})
193193
self.order_promised_delivery_date = attributes[:'order_promised_delivery_date']
194194
end
195195

196-
if attributes.key?(:'delivery_type')
197-
self.delivery_type = attributes[:'delivery_type']
198-
end
199-
200196
if attributes.key?(:'pickup_location')
201197
self.pickup_location = attributes[:'pickup_location']
202198
end
203199

200+
if attributes.key?(:'delivery_type')
201+
self.delivery_type = attributes[:'delivery_type']
202+
end
203+
204204
if attributes.key?(:'pickup_note')
205205
self.pickup_note = attributes[:'pickup_note']
206206
end
@@ -313,9 +313,9 @@ def self.openapi_types
313313
:'custom_fields' => :'Object',
314314
:'order_id_path' => :'String',
315315
:'language' => :'String',
316-
:'order_promised_delivery_date' => :'String',
317-
:'delivery_type' => :'CreateTrackingRequestDeliveryType',
316+
:'order_promised_delivery_date' => :'CreateTrackingRequestOrderPromisedDeliveryDate',
318317
:'pickup_location' => :'String',
318+
:'delivery_type' => :'CreateTrackingRequestDeliveryType',
319319
:'pickup_note' => :'String',
320320
:'tracking_account_number' => :'String',
321321
:'tracking_key' => :'String',
@@ -356,8 +356,8 @@ def self.attribute_map
356356
:'order_id_path' => :'order_id_path',
357357
:'language' => :'language',
358358
:'order_promised_delivery_date' => :'order_promised_delivery_date',
359-
:'delivery_type' => :'delivery_type',
360359
:'pickup_location' => :'pickup_location',
360+
:'delivery_type' => :'delivery_type',
361361
:'pickup_note' => :'pickup_note',
362362
:'tracking_account_number' => :'tracking_account_number',
363363
:'tracking_key' => :'tracking_key',

lib/aftership-tracking-sdk/models/create_tracking_request_last_mile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class CreateTrackingRequestLastMile
77
attr_accessor :tracking_number
88

99
# The unique code of the carrier responsible for the last-mile of the shipment. Find all the courier slugs .
10-
# slug?: String;
10+
# slug: String;
1111
attr_accessor :slug
1212

1313
# Initializes the object

0 commit comments

Comments
 (0)