aftership-tracking-sdk 9.0.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +16 -19
- data/lib/aftership-tracking-sdk/api/courier.rb +16 -60
- data/lib/aftership-tracking-sdk/api/courier_connection.rb +283 -0
- data/lib/aftership-tracking-sdk/api/estimated_delivery_date.rb +55 -1
- data/lib/aftership-tracking-sdk/api/tracking.rb +17 -17
- data/lib/aftership-tracking-sdk/models/{additional_fields_v1.rb → additional_fields.rb} +9 -9
- data/lib/aftership-tracking-sdk/models/checkpoint.rb +24 -14
- data/lib/aftership-tracking-sdk/models/courier.rb +17 -7
- data/lib/aftership-tracking-sdk/models/courier_connection.rb +193 -0
- data/lib/aftership-tracking-sdk/models/courier_connection_response_for_get_courier_connections.rb +163 -0
- data/lib/aftership-tracking-sdk/models/{courier_response_v1.rb → courier_response.rb} +6 -6
- data/lib/aftership-tracking-sdk/models/create_tracking_request.rb +55 -105
- data/lib/aftership-tracking-sdk/models/create_tracking_response.rb +53 -113
- data/lib/aftership-tracking-sdk/models/credential_field.rb +173 -0
- data/lib/aftership-tracking-sdk/models/{get_user_couriers_response.rb → credentials_courier.rb} +9 -19
- data/lib/aftership-tracking-sdk/models/customers_create_tracking_request.rb +193 -0
- data/lib/aftership-tracking-sdk/models/customers_create_tracking_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/customers_delete_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/customers_get_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/customers_mark_tracking_completed_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/customers_retrack_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/customers_tracking.rb +193 -0
- data/lib/aftership-tracking-sdk/models/customers_update_tracking_by_id_request.rb +193 -0
- data/lib/aftership-tracking-sdk/models/customers_update_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/data_courier_connection_response_for_get_courier_connections.rb +163 -0
- data/lib/aftership-tracking-sdk/models/{data_courier_response_v1.rb → data_courier_response.rb} +2 -2
- data/lib/aftership-tracking-sdk/models/{data_tracking_response_get_multiple_v1.rb → data_tracking_response_for_get_trackings.rb} +4 -4
- data/lib/aftership-tracking-sdk/models/delete_courier_connections_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/delete_tracking_by_id_response.rb +53 -113
- data/lib/aftership-tracking-sdk/models/destination_address_estimated_delivery_date_request.rb +6 -6
- data/lib/aftership-tracking-sdk/models/destination_address_estimated_delivery_date_response.rb +6 -6
- data/lib/aftership-tracking-sdk/models/destination_address_predict_request.rb +193 -0
- data/lib/aftership-tracking-sdk/models/destination_address_predict_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/detect_courier_request.rb +26 -46
- data/lib/aftership-tracking-sdk/models/estimated_pickup_predict_request.rb +183 -0
- data/lib/aftership-tracking-sdk/models/estimated_pickup_predict_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/{next_couriers_delete_tracking_by_id_response.rb → first_mile_create_tracking_response.rb} +29 -29
- data/lib/aftership-tracking-sdk/models/first_mile_delete_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/first_mile_get_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/first_mile_mark_tracking_completed_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/first_mile_retrack_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/{next_couriers_get_tracking_by_id_response.rb → first_mile_tracking.rb} +29 -29
- data/lib/aftership-tracking-sdk/models/first_mile_update_tracking_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/get_courier_connections_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/get_courier_connections_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/{get_all_couriers_response.rb → get_couriers_response.rb} +2 -2
- data/lib/aftership-tracking-sdk/models/get_tracking_by_id_response.rb +53 -113
- data/lib/aftership-tracking-sdk/models/{next_couriers_create_tracking_request.rb → last_mile_create_tracking_request.rb} +13 -13
- data/lib/aftership-tracking-sdk/models/last_mile_create_tracking_response.rb +203 -0
- data/lib/aftership-tracking-sdk/models/{next_couriers_create_tracking_response.rb → last_mile_delete_tracking_by_id_response.rb} +33 -23
- data/lib/aftership-tracking-sdk/models/last_mile_get_tracking_by_id_response.rb +203 -0
- data/lib/aftership-tracking-sdk/models/last_mile_mark_tracking_completed_by_id_response.rb +203 -0
- data/lib/aftership-tracking-sdk/models/last_mile_retrack_tracking_by_id_response.rb +203 -0
- data/lib/aftership-tracking-sdk/models/{next_couriers_mark_tracking_completed_by_id_response.rb → last_mile_tracking.rb} +33 -23
- data/lib/aftership-tracking-sdk/models/last_mile_update_tracking_by_id_response.rb +203 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_create_tracking_response.rb +10 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_delete_tracking_by_id_response.rb +10 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_get_tracking_by_id_response.rb +10 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_mark_tracking_completed_by_id_response.rb +10 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_retrack_tracking_by_id_response.rb +10 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_tracking.rb +10 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_update_tracking_by_id_response.rb +10 -0
- data/lib/aftership-tracking-sdk/models/mark_tracking_completed_by_id_request.rb +10 -0
- data/lib/aftership-tracking-sdk/models/mark_tracking_completed_by_id_response.rb +53 -113
- data/lib/aftership-tracking-sdk/models/{meta_v1.rb → meta.rb} +2 -2
- data/lib/aftership-tracking-sdk/models/order_processing_time_estimated_pickup_predict_request.rb +163 -0
- data/lib/aftership-tracking-sdk/models/order_processing_time_estimated_pickup_predict_response.rb +163 -0
- data/lib/aftership-tracking-sdk/models/origin_address_estimated_delivery_date_request.rb +6 -6
- data/lib/aftership-tracking-sdk/models/origin_address_estimated_delivery_date_response.rb +6 -6
- data/lib/aftership-tracking-sdk/models/origin_address_predict_request.rb +193 -0
- data/lib/aftership-tracking-sdk/models/origin_address_predict_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/pagination_data_courier_connection_response_for_get_courier_connections.rb +173 -0
- data/lib/aftership-tracking-sdk/models/{pagination_data_tracking_response_get_multiple_v1.rb → pagination_data_tracking_response_for_get_trackings.rb} +2 -2
- data/lib/aftership-tracking-sdk/models/pagination_get_courier_connections_response.rb +173 -0
- data/lib/aftership-tracking-sdk/models/post_courier_connections_request.rb +163 -0
- data/lib/aftership-tracking-sdk/models/post_courier_connections_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/predict_request.rb +223 -0
- data/lib/aftership-tracking-sdk/models/predict_response.rb +273 -0
- data/lib/aftership-tracking-sdk/models/put_courier_connections_by_id_request.rb +153 -0
- data/lib/aftership-tracking-sdk/models/put_courier_connections_by_id_response.rb +193 -0
- data/lib/aftership-tracking-sdk/models/retrack_tracking_by_id_response.rb +53 -113
- data/lib/aftership-tracking-sdk/models/{slug_group_v1.rb → slug_group.rb} +3 -3
- data/lib/aftership-tracking-sdk/models/{tag_v1.rb → tag.rb} +3 -3
- data/lib/aftership-tracking-sdk/models/tracking.rb +53 -113
- data/lib/aftership-tracking-sdk/models/{tracking_response_v1.rb → tracking_response.rb} +4 -4
- data/lib/aftership-tracking-sdk/models/{tracking_response_get_multiple_v1.rb → tracking_response_for_get_trackings.rb} +6 -6
- data/lib/aftership-tracking-sdk/models/update_tracking_by_id_request.rb +23 -83
- data/lib/aftership-tracking-sdk/models/update_tracking_by_id_response.rb +53 -113
- data/lib/aftership-tracking-sdk/models/weight_predict_request.rb +163 -0
- data/lib/aftership-tracking-sdk/models/weight_predict_response.rb +163 -0
- data/lib/aftership-tracking-sdk/version.rb +1 -1
- metadata +67 -25
- data/lib/aftership-tracking-sdk/models/next_couriers_retrack_tracking_by_id_response.rb +0 -193
- data/lib/aftership-tracking-sdk/models/next_couriers_tracking.rb +0 -193
- data/lib/aftership-tracking-sdk/models/next_couriers_update_tracking_by_id_response.rb +0 -193
@@ -1,21 +1,21 @@
|
|
1
1
|
# This code was auto generated by AfterShip SDK Generator.
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
|
-
class
|
4
|
+
class CourierResponse
|
5
5
|
|
6
6
|
# Meta data
|
7
|
-
# meta:
|
7
|
+
# meta: Meta;
|
8
8
|
attr_accessor :meta
|
9
9
|
|
10
10
|
#
|
11
|
-
# data:
|
11
|
+
# data: DataCourierResponse;
|
12
12
|
attr_accessor :data
|
13
13
|
|
14
14
|
# Initializes the object
|
15
15
|
# @param [Hash] attributes Model attributes in the form of hash
|
16
16
|
def initialize(attributes = {})
|
17
17
|
if (!attributes.is_a?(Hash))
|
18
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `AftershipAPI::
|
18
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AftershipAPI::CourierResponse` initialize method"
|
19
19
|
end
|
20
20
|
|
21
21
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
@@ -34,8 +34,8 @@ module AftershipAPI::Model
|
|
34
34
|
# Attribute type mapping.
|
35
35
|
def self.openapi_types
|
36
36
|
{
|
37
|
-
:'meta' => :'
|
38
|
-
:'data' => :'
|
37
|
+
:'meta' => :'Meta',
|
38
|
+
:'data' => :'DataCourierResponse',
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -3,6 +3,10 @@
|
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class CreateTrackingRequest
|
5
5
|
|
6
|
+
# Tracking ID that is system-generated by default and can be customized by the user when creating a tracking.
|
7
|
+
# id?: String;
|
8
|
+
attr_accessor :id
|
9
|
+
|
6
10
|
# Tracking number of a shipment.Duplicated tracking numbers, tracking numbers with invalid tracking number format will not be accepted.We only accept tracking numbers with length from 4 to 100We currently support the following characters in a tracking number:- A - Z- 0 - 9- `-` (Hyphen)- . (Period)- _ (Underscore)- / (Slash)
|
7
11
|
# tracking_number: String;
|
8
12
|
attr_accessor :tracking_number
|
@@ -19,14 +23,14 @@ module AftershipAPI::Model
|
|
19
23
|
# order_id?: String;
|
20
24
|
attr_accessor :order_id
|
21
25
|
|
22
|
-
# The URL for the order in your system or store.
|
23
|
-
# order_id_path?: String;
|
24
|
-
attr_accessor :order_id_path
|
25
|
-
|
26
26
|
# Custom fields that accept an object with string field. In order to protect the privacy of your customers, do not include any
|
27
27
|
# custom_fields?: Object;
|
28
28
|
attr_accessor :custom_fields
|
29
29
|
|
30
|
+
# The URL for the order in your system or store.
|
31
|
+
# order_id_path?: String;
|
32
|
+
attr_accessor :order_id_path
|
33
|
+
|
30
34
|
# The recipient’s language. If you set up AfterShip notifications in different languages, we use this to send the recipient tracking updates in their preferred language. Use an to specify the language.
|
31
35
|
# language?: String;
|
32
36
|
attr_accessor :language
|
@@ -55,25 +59,13 @@ module AftershipAPI::Model
|
|
55
59
|
# tracking_key?: String;
|
56
60
|
attr_accessor :tracking_key
|
57
61
|
|
58
|
-
#
|
62
|
+
# The date and time when the shipment is shipped by the merchant and ready for pickup by the carrier. The field supports the following formats:- YYYY-MM-DD- YYYY-MM-DDTHH:mm:ss- YYYY-MM-DDTHH:mm:ssZThe field serves two key purposes:- Calculate processing time metrics in the Order-to-delivery Analytics dashboard. To ensure accurate analytics, it's recommended to include timezone information when configuring this value- Required by certain carriers to retrieve tracking information as an additional tracking field.
|
59
63
|
# tracking_ship_date?: String;
|
60
64
|
attr_accessor :tracking_ship_date
|
61
65
|
|
62
|
-
# Email address(es) to receive email notifications. Accept either array. Supports up to 3 email addresses.
|
63
|
-
# emails?: String[];
|
64
|
-
attr_accessor :emails
|
65
|
-
|
66
|
-
# The phone number(s) to receive sms notifications. Enter `+` andarea `code before` phone number. Accept either array. Supports up to 3 phone numbers.
|
67
|
-
# smses?: String[];
|
68
|
-
attr_accessor :smses
|
69
|
-
|
70
|
-
# Customer name of the tracking.
|
71
|
-
# customer_name?: String;
|
72
|
-
attr_accessor :customer_name
|
73
|
-
|
74
66
|
# The for more details.
|
75
|
-
#
|
76
|
-
attr_accessor :
|
67
|
+
# origin_country_region?: String;
|
68
|
+
attr_accessor :origin_country_region
|
77
69
|
|
78
70
|
# The state of the sender’s address. This can help AfterShip with various functions like tracking, carrier auto-detection and auto-correction, calculating an EDD, etc.
|
79
71
|
# origin_state?: String;
|
@@ -92,8 +84,8 @@ module AftershipAPI::Model
|
|
92
84
|
attr_accessor :origin_raw_location
|
93
85
|
|
94
86
|
# The for more details.
|
95
|
-
#
|
96
|
-
attr_accessor :
|
87
|
+
# destination_country_region?: String;
|
88
|
+
attr_accessor :destination_country_region
|
97
89
|
|
98
90
|
# The state of the recipient’s address. This can help AfterShip with various functions like tracking, carrier auto-detection and auto-correction, calculating an EDD, etc. Also the 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.
|
99
91
|
# destination_state?: String;
|
@@ -116,7 +108,7 @@ module AftershipAPI::Model
|
|
116
108
|
attr_accessor :note
|
117
109
|
|
118
110
|
# Slug group is a group of slugs which belong to same courier. For example, when you inpit "fedex-group" as slug_group, AfterShip will detect the tracking with "fedex-uk", "fedex-fims", and other slugs which belong to "fedex". It cannot be used with slug at the same time. (
|
119
|
-
# slug_group?:
|
111
|
+
# slug_group?: SlugGroup;
|
120
112
|
attr_accessor :slug_group
|
121
113
|
|
122
114
|
# Order date in YYYY-MM-DDTHH:mm:ssZ format. e.g. 2021-07-26T11:23:51-05:00
|
@@ -139,26 +131,6 @@ module AftershipAPI::Model
|
|
139
131
|
# courier_connection_id?: String;
|
140
132
|
attr_accessor :courier_connection_id
|
141
133
|
|
142
|
-
# If a shipment has multiple carriers, you can use the next_couriers field to tell AfterShip who the second carrier is. This is useful if the first carrier does not send us this information.
|
143
|
-
# next_couriers?: NextCouriersCreateTrackingRequest[];
|
144
|
-
attr_accessor :next_couriers
|
145
|
-
|
146
|
-
# (Legacy) Replaced by `origin_country_iso3`. 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.
|
147
|
-
# tracking_origin_country?: String;
|
148
|
-
attr_accessor :tracking_origin_country
|
149
|
-
|
150
|
-
# (Legacy) Replaced by `destination_country_iso3`. 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.
|
151
|
-
# tracking_destination_country?: String;
|
152
|
-
attr_accessor :tracking_destination_country
|
153
|
-
|
154
|
-
# (Legacy) Replaced by `destination_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.
|
155
|
-
# tracking_postal_code?: String;
|
156
|
-
attr_accessor :tracking_postal_code
|
157
|
-
|
158
|
-
# (Legacy) Replaced by `destination_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.
|
159
|
-
# tracking_state?: String;
|
160
|
-
attr_accessor :tracking_state
|
161
|
-
|
162
134
|
# The location_id refers to the place where you fulfilled the items. - If you provide a location_id, the system will automatically use it as the tracking's origin address. However, passing both location_id and any origin address information simultaneously is not allowed.- Please make sure you add your locations .
|
163
135
|
# location_id?: String;
|
164
136
|
attr_accessor :location_id
|
@@ -167,6 +139,14 @@ module AftershipAPI::Model
|
|
167
139
|
# shipping_method?: String;
|
168
140
|
attr_accessor :shipping_method
|
169
141
|
|
142
|
+
# This field contains information about the last leg of the shipment, starting from the carrier who hands it over to the last-mile carrier, all the way to delivery. Once AfterShip detects that the shipment involves multiple legs and identifies the last-mile carrier, we will populate the last-mile carrier information in this object. Alternatively, the user can provide this information in this field to specify the last-mile carrier, which is helpful if AfterShip is unable to detect it automatically.
|
143
|
+
# last_mile?: LastMileCreateTrackingRequest;
|
144
|
+
attr_accessor :last_mile
|
145
|
+
|
146
|
+
# The field contains the customer information associated with the tracking. A maximum of three customer objects are allowed.
|
147
|
+
# customers?: CustomersCreateTrackingRequest[];
|
148
|
+
attr_accessor :customers
|
149
|
+
|
170
150
|
# Initializes the object
|
171
151
|
# @param [Hash] attributes Model attributes in the form of hash
|
172
152
|
def initialize(attributes = {})
|
@@ -178,6 +158,10 @@ module AftershipAPI::Model
|
|
178
158
|
h[k.to_sym] = v
|
179
159
|
}
|
180
160
|
|
161
|
+
if attributes.key?(:'id')
|
162
|
+
self.id = attributes[:'id']
|
163
|
+
end
|
164
|
+
|
181
165
|
if attributes.key?(:'tracking_number')
|
182
166
|
self.tracking_number = attributes[:'tracking_number']
|
183
167
|
end
|
@@ -194,14 +178,14 @@ module AftershipAPI::Model
|
|
194
178
|
self.order_id = attributes[:'order_id']
|
195
179
|
end
|
196
180
|
|
197
|
-
if attributes.key?(:'order_id_path')
|
198
|
-
self.order_id_path = attributes[:'order_id_path']
|
199
|
-
end
|
200
|
-
|
201
181
|
if attributes.key?(:'custom_fields')
|
202
182
|
self.custom_fields = attributes[:'custom_fields']
|
203
183
|
end
|
204
184
|
|
185
|
+
if attributes.key?(:'order_id_path')
|
186
|
+
self.order_id_path = attributes[:'order_id_path']
|
187
|
+
end
|
188
|
+
|
205
189
|
if attributes.key?(:'language')
|
206
190
|
self.language = attributes[:'language']
|
207
191
|
end
|
@@ -234,20 +218,8 @@ module AftershipAPI::Model
|
|
234
218
|
self.tracking_ship_date = attributes[:'tracking_ship_date']
|
235
219
|
end
|
236
220
|
|
237
|
-
if attributes.key?(:'
|
238
|
-
self.
|
239
|
-
end
|
240
|
-
|
241
|
-
if attributes.key?(:'smses')
|
242
|
-
self.smses = attributes[:'smses']
|
243
|
-
end
|
244
|
-
|
245
|
-
if attributes.key?(:'customer_name')
|
246
|
-
self.customer_name = attributes[:'customer_name']
|
247
|
-
end
|
248
|
-
|
249
|
-
if attributes.key?(:'origin_country_iso3')
|
250
|
-
self.origin_country_iso3 = attributes[:'origin_country_iso3']
|
221
|
+
if attributes.key?(:'origin_country_region')
|
222
|
+
self.origin_country_region = attributes[:'origin_country_region']
|
251
223
|
end
|
252
224
|
|
253
225
|
if attributes.key?(:'origin_state')
|
@@ -266,8 +238,8 @@ module AftershipAPI::Model
|
|
266
238
|
self.origin_raw_location = attributes[:'origin_raw_location']
|
267
239
|
end
|
268
240
|
|
269
|
-
if attributes.key?(:'
|
270
|
-
self.
|
241
|
+
if attributes.key?(:'destination_country_region')
|
242
|
+
self.destination_country_region = attributes[:'destination_country_region']
|
271
243
|
end
|
272
244
|
|
273
245
|
if attributes.key?(:'destination_state')
|
@@ -314,26 +286,6 @@ module AftershipAPI::Model
|
|
314
286
|
self.courier_connection_id = attributes[:'courier_connection_id']
|
315
287
|
end
|
316
288
|
|
317
|
-
if attributes.key?(:'next_couriers')
|
318
|
-
self.next_couriers = attributes[:'next_couriers']
|
319
|
-
end
|
320
|
-
|
321
|
-
if attributes.key?(:'tracking_origin_country')
|
322
|
-
self.tracking_origin_country = attributes[:'tracking_origin_country']
|
323
|
-
end
|
324
|
-
|
325
|
-
if attributes.key?(:'tracking_destination_country')
|
326
|
-
self.tracking_destination_country = attributes[:'tracking_destination_country']
|
327
|
-
end
|
328
|
-
|
329
|
-
if attributes.key?(:'tracking_postal_code')
|
330
|
-
self.tracking_postal_code = attributes[:'tracking_postal_code']
|
331
|
-
end
|
332
|
-
|
333
|
-
if attributes.key?(:'tracking_state')
|
334
|
-
self.tracking_state = attributes[:'tracking_state']
|
335
|
-
end
|
336
|
-
|
337
289
|
if attributes.key?(:'location_id')
|
338
290
|
self.location_id = attributes[:'location_id']
|
339
291
|
end
|
@@ -341,17 +293,26 @@ module AftershipAPI::Model
|
|
341
293
|
if attributes.key?(:'shipping_method')
|
342
294
|
self.shipping_method = attributes[:'shipping_method']
|
343
295
|
end
|
296
|
+
|
297
|
+
if attributes.key?(:'last_mile')
|
298
|
+
self.last_mile = attributes[:'last_mile']
|
299
|
+
end
|
300
|
+
|
301
|
+
if attributes.key?(:'customers')
|
302
|
+
self.customers = attributes[:'customers']
|
303
|
+
end
|
344
304
|
end
|
345
305
|
|
346
306
|
# Attribute type mapping.
|
347
307
|
def self.openapi_types
|
348
308
|
{
|
309
|
+
:'id' => :'String',
|
349
310
|
:'tracking_number' => :'String',
|
350
311
|
:'slug' => :'String',
|
351
312
|
:'title' => :'String',
|
352
313
|
:'order_id' => :'String',
|
353
|
-
:'order_id_path' => :'String',
|
354
314
|
:'custom_fields' => :'Object',
|
315
|
+
:'order_id_path' => :'String',
|
355
316
|
:'language' => :'String',
|
356
317
|
:'order_promised_delivery_date' => :'String',
|
357
318
|
:'delivery_type' => :'String',
|
@@ -360,45 +321,40 @@ module AftershipAPI::Model
|
|
360
321
|
:'tracking_account_number' => :'String',
|
361
322
|
:'tracking_key' => :'String',
|
362
323
|
:'tracking_ship_date' => :'String',
|
363
|
-
:'
|
364
|
-
:'smses' => :'Array<String>',
|
365
|
-
:'customer_name' => :'String',
|
366
|
-
:'origin_country_iso3' => :'String',
|
324
|
+
:'origin_country_region' => :'String',
|
367
325
|
:'origin_state' => :'String',
|
368
326
|
:'origin_city' => :'String',
|
369
327
|
:'origin_postal_code' => :'String',
|
370
328
|
:'origin_raw_location' => :'String',
|
371
|
-
:'
|
329
|
+
:'destination_country_region' => :'String',
|
372
330
|
:'destination_state' => :'String',
|
373
331
|
:'destination_city' => :'String',
|
374
332
|
:'destination_postal_code' => :'String',
|
375
333
|
:'destination_raw_location' => :'String',
|
376
334
|
:'note' => :'String',
|
377
|
-
:'slug_group' => :'
|
335
|
+
:'slug_group' => :'SlugGroup',
|
378
336
|
:'order_date' => :'String',
|
379
337
|
:'order_number' => :'String',
|
380
338
|
:'shipment_type' => :'String',
|
381
339
|
:'shipment_tags' => :'Array<String>',
|
382
340
|
:'courier_connection_id' => :'String',
|
383
|
-
:'next_couriers' => :'Array<NextCouriersCreateTrackingRequest>',
|
384
|
-
:'tracking_origin_country' => :'String',
|
385
|
-
:'tracking_destination_country' => :'String',
|
386
|
-
:'tracking_postal_code' => :'String',
|
387
|
-
:'tracking_state' => :'String',
|
388
341
|
:'location_id' => :'String',
|
389
342
|
:'shipping_method' => :'String',
|
343
|
+
:'last_mile' => :'LastMileCreateTrackingRequest',
|
344
|
+
:'customers' => :'Array<CustomersCreateTrackingRequest>',
|
390
345
|
}
|
391
346
|
end
|
392
347
|
|
393
348
|
# Attribute mapping from ruby-style variable name to JSON key.
|
394
349
|
def self.attribute_map
|
395
350
|
{
|
351
|
+
:'id' => :'id',
|
396
352
|
:'tracking_number' => :'tracking_number',
|
397
353
|
:'slug' => :'slug',
|
398
354
|
:'title' => :'title',
|
399
355
|
:'order_id' => :'order_id',
|
400
|
-
:'order_id_path' => :'order_id_path',
|
401
356
|
:'custom_fields' => :'custom_fields',
|
357
|
+
:'order_id_path' => :'order_id_path',
|
402
358
|
:'language' => :'language',
|
403
359
|
:'order_promised_delivery_date' => :'order_promised_delivery_date',
|
404
360
|
:'delivery_type' => :'delivery_type',
|
@@ -407,15 +363,12 @@ module AftershipAPI::Model
|
|
407
363
|
:'tracking_account_number' => :'tracking_account_number',
|
408
364
|
:'tracking_key' => :'tracking_key',
|
409
365
|
:'tracking_ship_date' => :'tracking_ship_date',
|
410
|
-
:'
|
411
|
-
:'smses' => :'smses',
|
412
|
-
:'customer_name' => :'customer_name',
|
413
|
-
:'origin_country_iso3' => :'origin_country_iso3',
|
366
|
+
:'origin_country_region' => :'origin_country_region',
|
414
367
|
:'origin_state' => :'origin_state',
|
415
368
|
:'origin_city' => :'origin_city',
|
416
369
|
:'origin_postal_code' => :'origin_postal_code',
|
417
370
|
:'origin_raw_location' => :'origin_raw_location',
|
418
|
-
:'
|
371
|
+
:'destination_country_region' => :'destination_country_region',
|
419
372
|
:'destination_state' => :'destination_state',
|
420
373
|
:'destination_city' => :'destination_city',
|
421
374
|
:'destination_postal_code' => :'destination_postal_code',
|
@@ -427,13 +380,10 @@ module AftershipAPI::Model
|
|
427
380
|
:'shipment_type' => :'shipment_type',
|
428
381
|
:'shipment_tags' => :'shipment_tags',
|
429
382
|
:'courier_connection_id' => :'courier_connection_id',
|
430
|
-
:'next_couriers' => :'next_couriers',
|
431
|
-
:'tracking_origin_country' => :'tracking_origin_country',
|
432
|
-
:'tracking_destination_country' => :'tracking_destination_country',
|
433
|
-
:'tracking_postal_code' => :'tracking_postal_code',
|
434
|
-
:'tracking_state' => :'tracking_state',
|
435
383
|
:'location_id' => :'location_id',
|
436
384
|
:'shipping_method' => :'shipping_method',
|
385
|
+
:'last_mile' => :'last_mile',
|
386
|
+
:'customers' => :'customers',
|
437
387
|
}
|
438
388
|
end
|
439
389
|
|