aftership-tracking-sdk 8.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 +4 -3
- data/lib/aftership-tracking-sdk/api/courier.rb +6 -6
- data/lib/aftership-tracking-sdk/api/estimated_delivery_date.rb +4 -4
- data/lib/aftership-tracking-sdk/api/tracking.rb +23 -389
- 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 +2 -0
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_delete_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_get_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_mark_tracking_completed_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_retrack_tracking_by_id_response.rb +2 -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 +2 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_create_tracking_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_delete_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_get_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_mark_tracking_completed_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/carbon_emissions_retrack_tracking_by_id_response.rb +2 -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 +2 -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/{aftership_estimated_delivery_date_get_tracking_by_slug_tracking_number_response.rb → courier_estimated_delivery_date_create_tracking_response.rb} +7 -15
- data/lib/aftership-tracking-sdk/models/{aftership_estimated_delivery_date_retrack_tracking_by_slug_tracking_number_response.rb → courier_estimated_delivery_date_delete_tracking_by_id_response.rb} +7 -15
- data/lib/aftership-tracking-sdk/models/{aftership_estimated_delivery_date_mark_tracking_completed_by_slug_tracking_number_response.rb → courier_estimated_delivery_date_get_tracking_by_id_response.rb} +7 -15
- 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/{aftership_estimated_delivery_date_delete_tracking_by_slug_tracking_number_response.rb → courier_estimated_delivery_date_tracking.rb} +7 -15
- 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/create_tracking_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/create_tracking_response.rb +29 -7
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_create_tracking_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_delete_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_get_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_mark_tracking_completed_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_retrack_tracking_by_id_response.rb +2 -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 +2 -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 +29 -7
- 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/detect_courier_request.rb +2 -0
- 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 +2 -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 +2 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_delete_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_get_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_mark_tracking_completed_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_retrack_tracking_by_id_response.rb +2 -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 +2 -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 +29 -7
- 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 +2 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_delete_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_get_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_mark_tracking_completed_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_retrack_tracking_by_id_response.rb +2 -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 +2 -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 +29 -7
- data/lib/aftership-tracking-sdk/models/meta_v1.rb +2 -0
- data/lib/aftership-tracking-sdk/models/next_couriers_create_tracking_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/next_couriers_create_tracking_response.rb +22 -0
- data/lib/aftership-tracking-sdk/models/next_couriers_delete_tracking_by_id_response.rb +22 -0
- data/lib/aftership-tracking-sdk/models/next_couriers_get_tracking_by_id_response.rb +22 -0
- data/lib/aftership-tracking-sdk/models/next_couriers_mark_tracking_completed_by_id_response.rb +22 -0
- data/lib/aftership-tracking-sdk/models/next_couriers_retrack_tracking_by_id_response.rb +22 -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 +22 -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/{next_couriers_get_tracking_by_slug_tracking_number_response.rb → pagination_data_tracking_response_get_multiple_v1.rb} +25 -23
- data/lib/aftership-tracking-sdk/models/{next_couriers_delete_tracking_by_slug_tracking_number_response.rb → pagination_get_trackings_response.rb} +25 -23
- 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 +29 -7
- data/lib/aftership-tracking-sdk/models/shipment_weight_create_tracking_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/shipment_weight_delete_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/shipment_weight_get_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/shipment_weight_mark_tracking_completed_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/shipment_weight_retrack_tracking_by_id_response.rb +2 -0
- data/lib/aftership-tracking-sdk/models/shipment_weight_tracking.rb +2 -0
- data/lib/aftership-tracking-sdk/models/shipment_weight_update_tracking_by_id_response.rb +2 -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 +29 -7
- data/lib/aftership-tracking-sdk/models/tracking_response_get_multiple_v1.rb +2 -0
- data/lib/aftership-tracking-sdk/models/tracking_response_v1.rb +2 -0
- data/lib/aftership-tracking-sdk/models/update_tracking_by_id_request.rb +2 -0
- data/lib/aftership-tracking-sdk/models/update_tracking_by_id_response.rb +29 -7
- 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 +11 -45
- data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_update_tracking_by_slug_tracking_number_response.rb +0 -181
- data/lib/aftership-tracking-sdk/models/carbon_emissions_delete_tracking_by_slug_tracking_number_response.rb +0 -161
- data/lib/aftership-tracking-sdk/models/carbon_emissions_get_tracking_by_slug_tracking_number_response.rb +0 -161
- data/lib/aftership-tracking-sdk/models/carbon_emissions_mark_tracking_completed_by_slug_tracking_number_response.rb +0 -161
- data/lib/aftership-tracking-sdk/models/carbon_emissions_retrack_tracking_by_slug_tracking_number_response.rb +0 -161
- data/lib/aftership-tracking-sdk/models/carbon_emissions_update_tracking_by_slug_tracking_number_response.rb +0 -161
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_delete_tracking_by_slug_tracking_number_response.rb +0 -181
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_get_tracking_by_slug_tracking_number_response.rb +0 -181
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_mark_tracking_completed_by_slug_tracking_number_response.rb +0 -181
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_retrack_tracking_by_slug_tracking_number_response.rb +0 -181
- data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_update_tracking_by_slug_tracking_number_response.rb +0 -181
- data/lib/aftership-tracking-sdk/models/custom_fields_update_tracking_by_slug_tracking_number_request.rb +0 -139
- data/lib/aftership-tracking-sdk/models/delete_tracking_by_slug_tracking_number_response.rb +0 -931
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_delete_tracking_by_slug_tracking_number_response.rb +0 -191
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_get_tracking_by_slug_tracking_number_response.rb +0 -191
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_mark_tracking_completed_by_slug_tracking_number_response.rb +0 -191
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_retrack_tracking_by_slug_tracking_number_response.rb +0 -191
- data/lib/aftership-tracking-sdk/models/first_estimated_delivery_update_tracking_by_slug_tracking_number_response.rb +0 -191
- data/lib/aftership-tracking-sdk/models/get_tracking_by_slug_tracking_number_response.rb +0 -931
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_delete_tracking_by_slug_tracking_number_response.rb +0 -191
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_get_tracking_by_slug_tracking_number_response.rb +0 -191
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_mark_tracking_completed_by_slug_tracking_number_response.rb +0 -191
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_retrack_tracking_by_slug_tracking_number_response.rb +0 -191
- data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_update_tracking_by_slug_tracking_number_response.rb +0 -191
- data/lib/aftership-tracking-sdk/models/mark_tracking_completed_by_slug_tracking_number_request.rb +0 -151
- data/lib/aftership-tracking-sdk/models/mark_tracking_completed_by_slug_tracking_number_response.rb +0 -931
- data/lib/aftership-tracking-sdk/models/next_couriers_mark_tracking_completed_by_slug_tracking_number_response.rb +0 -171
- data/lib/aftership-tracking-sdk/models/next_couriers_retrack_tracking_by_slug_tracking_number_response.rb +0 -171
- data/lib/aftership-tracking-sdk/models/next_couriers_update_tracking_by_slug_tracking_number_response.rb +0 -171
- data/lib/aftership-tracking-sdk/models/retrack_tracking_by_slug_tracking_number_response.rb +0 -931
- data/lib/aftership-tracking-sdk/models/shipment_weight_delete_tracking_by_slug_tracking_number_response.rb +0 -161
- data/lib/aftership-tracking-sdk/models/shipment_weight_get_tracking_by_slug_tracking_number_response.rb +0 -161
- data/lib/aftership-tracking-sdk/models/shipment_weight_mark_tracking_completed_by_slug_tracking_number_response.rb +0 -161
- data/lib/aftership-tracking-sdk/models/shipment_weight_retrack_tracking_by_slug_tracking_number_response.rb +0 -161
- data/lib/aftership-tracking-sdk/models/shipment_weight_update_tracking_by_slug_tracking_number_response.rb +0 -161
- data/lib/aftership-tracking-sdk/models/update_tracking_by_slug_tracking_number_request.rb +0 -391
- data/lib/aftership-tracking-sdk/models/update_tracking_by_slug_tracking_number_response.rb +0 -931
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class NextCouriersRetrackTrackingByIdResponse
|
5
|
+
|
5
6
|
# Unique code of courier. Get courier
|
6
7
|
# slug: String;
|
7
8
|
attr_accessor :slug
|
@@ -14,6 +15,14 @@ module AftershipAPI::Model
|
|
14
15
|
# source?: String;
|
15
16
|
attr_accessor :source
|
16
17
|
|
18
|
+
# The field contains the official tracking URL of the next courier, if available. The language parameter of this link is determined by the destination country/region and the language associated with the shipment. If the data related to the destination country/region and the shipment's language is unavailable, AfterShip will default the language parameter of the link to "US".
|
19
|
+
# courier_tracking_link?: String;
|
20
|
+
attr_accessor :courier_tracking_link
|
21
|
+
|
22
|
+
# The field provides the link for modifying delivery instructions (such as delivery date and shipping address) if supported by the next carrier. The language parameter of this link is determined by the destination country/region and the language associated with the shipment. If the data related to the destination country/region and the shipment's language is unavailable, AfterShip will default the language parameter of the link to "US".
|
23
|
+
# courier_redirect_link?: String;
|
24
|
+
attr_accessor :courier_redirect_link
|
25
|
+
|
17
26
|
# Initializes the object
|
18
27
|
# @param [Hash] attributes Model attributes in the form of hash
|
19
28
|
def initialize(attributes = {})
|
@@ -36,6 +45,14 @@ module AftershipAPI::Model
|
|
36
45
|
if attributes.key?(:'source')
|
37
46
|
self.source = attributes[:'source']
|
38
47
|
end
|
48
|
+
|
49
|
+
if attributes.key?(:'courier_tracking_link')
|
50
|
+
self.courier_tracking_link = attributes[:'courier_tracking_link']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.key?(:'courier_redirect_link')
|
54
|
+
self.courier_redirect_link = attributes[:'courier_redirect_link']
|
55
|
+
end
|
39
56
|
end
|
40
57
|
|
41
58
|
# Attribute type mapping.
|
@@ -44,6 +61,8 @@ module AftershipAPI::Model
|
|
44
61
|
:'slug' => :'String',
|
45
62
|
:'tracking_number' => :'String',
|
46
63
|
:'source' => :'String',
|
64
|
+
:'courier_tracking_link' => :'String',
|
65
|
+
:'courier_redirect_link' => :'String',
|
47
66
|
}
|
48
67
|
end
|
49
68
|
|
@@ -53,6 +72,8 @@ module AftershipAPI::Model
|
|
53
72
|
:'slug' => :'slug',
|
54
73
|
:'tracking_number' => :'tracking_number',
|
55
74
|
:'source' => :'source',
|
75
|
+
:'courier_tracking_link' => :'courier_tracking_link',
|
76
|
+
:'courier_redirect_link' => :'courier_redirect_link',
|
56
77
|
}
|
57
78
|
end
|
58
79
|
|
@@ -169,3 +190,4 @@ module AftershipAPI::Model
|
|
169
190
|
end
|
170
191
|
end
|
171
192
|
end
|
193
|
+
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class NextCouriersTracking
|
5
|
+
|
5
6
|
# Unique code of courier. Get courier
|
6
7
|
# slug: String;
|
7
8
|
attr_accessor :slug
|
@@ -14,6 +15,14 @@ module AftershipAPI::Model
|
|
14
15
|
# source?: String;
|
15
16
|
attr_accessor :source
|
16
17
|
|
18
|
+
# The field contains the official tracking URL of the next courier, if available. The language parameter of this link is determined by the destination country/region and the language associated with the shipment. If the data related to the destination country/region and the shipment's language is unavailable, AfterShip will default the language parameter of the link to "US".
|
19
|
+
# courier_tracking_link?: String;
|
20
|
+
attr_accessor :courier_tracking_link
|
21
|
+
|
22
|
+
# The field provides the link for modifying delivery instructions (such as delivery date and shipping address) if supported by the next carrier. The language parameter of this link is determined by the destination country/region and the language associated with the shipment. If the data related to the destination country/region and the shipment's language is unavailable, AfterShip will default the language parameter of the link to "US".
|
23
|
+
# courier_redirect_link?: String;
|
24
|
+
attr_accessor :courier_redirect_link
|
25
|
+
|
17
26
|
# Initializes the object
|
18
27
|
# @param [Hash] attributes Model attributes in the form of hash
|
19
28
|
def initialize(attributes = {})
|
@@ -36,6 +45,14 @@ module AftershipAPI::Model
|
|
36
45
|
if attributes.key?(:'source')
|
37
46
|
self.source = attributes[:'source']
|
38
47
|
end
|
48
|
+
|
49
|
+
if attributes.key?(:'courier_tracking_link')
|
50
|
+
self.courier_tracking_link = attributes[:'courier_tracking_link']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.key?(:'courier_redirect_link')
|
54
|
+
self.courier_redirect_link = attributes[:'courier_redirect_link']
|
55
|
+
end
|
39
56
|
end
|
40
57
|
|
41
58
|
# Attribute type mapping.
|
@@ -44,6 +61,8 @@ module AftershipAPI::Model
|
|
44
61
|
:'slug' => :'String',
|
45
62
|
:'tracking_number' => :'String',
|
46
63
|
:'source' => :'String',
|
64
|
+
:'courier_tracking_link' => :'String',
|
65
|
+
:'courier_redirect_link' => :'String',
|
47
66
|
}
|
48
67
|
end
|
49
68
|
|
@@ -53,6 +72,8 @@ module AftershipAPI::Model
|
|
53
72
|
:'slug' => :'slug',
|
54
73
|
:'tracking_number' => :'tracking_number',
|
55
74
|
:'source' => :'source',
|
75
|
+
:'courier_tracking_link' => :'courier_tracking_link',
|
76
|
+
:'courier_redirect_link' => :'courier_redirect_link',
|
56
77
|
}
|
57
78
|
end
|
58
79
|
|
@@ -169,3 +190,4 @@ module AftershipAPI::Model
|
|
169
190
|
end
|
170
191
|
end
|
171
192
|
end
|
193
|
+
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class NextCouriersUpdateTrackingByIdResponse
|
5
|
+
|
5
6
|
# Unique code of courier. Get courier
|
6
7
|
# slug: String;
|
7
8
|
attr_accessor :slug
|
@@ -14,6 +15,14 @@ module AftershipAPI::Model
|
|
14
15
|
# source?: String;
|
15
16
|
attr_accessor :source
|
16
17
|
|
18
|
+
# The field contains the official tracking URL of the next courier, if available. The language parameter of this link is determined by the destination country/region and the language associated with the shipment. If the data related to the destination country/region and the shipment's language is unavailable, AfterShip will default the language parameter of the link to "US".
|
19
|
+
# courier_tracking_link?: String;
|
20
|
+
attr_accessor :courier_tracking_link
|
21
|
+
|
22
|
+
# The field provides the link for modifying delivery instructions (such as delivery date and shipping address) if supported by the next carrier. The language parameter of this link is determined by the destination country/region and the language associated with the shipment. If the data related to the destination country/region and the shipment's language is unavailable, AfterShip will default the language parameter of the link to "US".
|
23
|
+
# courier_redirect_link?: String;
|
24
|
+
attr_accessor :courier_redirect_link
|
25
|
+
|
17
26
|
# Initializes the object
|
18
27
|
# @param [Hash] attributes Model attributes in the form of hash
|
19
28
|
def initialize(attributes = {})
|
@@ -36,6 +45,14 @@ module AftershipAPI::Model
|
|
36
45
|
if attributes.key?(:'source')
|
37
46
|
self.source = attributes[:'source']
|
38
47
|
end
|
48
|
+
|
49
|
+
if attributes.key?(:'courier_tracking_link')
|
50
|
+
self.courier_tracking_link = attributes[:'courier_tracking_link']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.key?(:'courier_redirect_link')
|
54
|
+
self.courier_redirect_link = attributes[:'courier_redirect_link']
|
55
|
+
end
|
39
56
|
end
|
40
57
|
|
41
58
|
# Attribute type mapping.
|
@@ -44,6 +61,8 @@ module AftershipAPI::Model
|
|
44
61
|
:'slug' => :'String',
|
45
62
|
:'tracking_number' => :'String',
|
46
63
|
:'source' => :'String',
|
64
|
+
:'courier_tracking_link' => :'String',
|
65
|
+
:'courier_redirect_link' => :'String',
|
47
66
|
}
|
48
67
|
end
|
49
68
|
|
@@ -53,6 +72,8 @@ module AftershipAPI::Model
|
|
53
72
|
:'slug' => :'slug',
|
54
73
|
:'tracking_number' => :'tracking_number',
|
55
74
|
:'source' => :'source',
|
75
|
+
:'courier_tracking_link' => :'courier_tracking_link',
|
76
|
+
:'courier_redirect_link' => :'courier_redirect_link',
|
56
77
|
}
|
57
78
|
end
|
58
79
|
|
@@ -169,3 +190,4 @@ module AftershipAPI::Model
|
|
169
190
|
end
|
170
191
|
end
|
171
192
|
end
|
193
|
+
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class OrderProcessingTimeEstimatedPickupEstimatedDeliveryDateRequest
|
5
|
+
|
5
6
|
# Processing time of an order, from being placed to being picked up. Only support day as value now.AfterShip will set day as the default value.
|
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 OrderProcessingTimeEstimatedPickupEstimatedDeliveryDateResponse
|
5
|
+
|
5
6
|
# Processing time of an order, from being placed to being picked up. Only support day as value now.AfterShip will set day as the default value.
|
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 OriginAddressEstimatedDeliveryDateRequest
|
5
|
+
|
5
6
|
# The country/region of the origin location from where the package is picked up by the carrier to be delivered to the final destination. Use 3 letters of ISO 3166-1 country/region code.
|
6
7
|
# country: String;
|
7
8
|
attr_accessor :country
|
@@ -189,3 +190,4 @@ module AftershipAPI::Model
|
|
189
190
|
end
|
190
191
|
end
|
191
192
|
end
|
193
|
+
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class OriginAddressEstimatedDeliveryDateResponse
|
5
|
+
|
5
6
|
# The country/region of the origin location from where the package is picked up by the carrier to be delivered to the final destination. Use 3 letters of ISO 3166-1 country/region code.
|
6
7
|
# country: String;
|
7
8
|
attr_accessor :country
|
@@ -189,3 +190,4 @@ module AftershipAPI::Model
|
|
189
190
|
end
|
190
191
|
end
|
191
192
|
end
|
193
|
+
|
@@ -2,7 +2,8 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class Pagination
|
5
|
-
|
5
|
+
|
6
|
+
attr_accessor :total, :page, :limit, :has_next_page, :next_cursor
|
6
7
|
# Initializes the object
|
7
8
|
# @param attributes [Hash] Model attributes in the form of hash
|
8
9
|
def initialize(attributes = {})
|
@@ -22,22 +23,28 @@ module AftershipAPI::Model
|
|
22
23
|
self.page = attributes[:'page']
|
23
24
|
end
|
24
25
|
|
25
|
-
|
26
|
+
if attributes.key?(:'limit')
|
26
27
|
self.limit = attributes[:'limit']
|
27
28
|
end
|
28
29
|
|
29
|
-
|
30
|
+
if attributes.key?(:'has_next_page')
|
30
31
|
self.has_next_page = attributes[:'has_next_page']
|
31
32
|
end
|
33
|
+
|
34
|
+
if attributes.key?(:'next_cursor')
|
35
|
+
self.next_cursor = attributes[:'next_cursor']
|
36
|
+
end
|
37
|
+
|
32
38
|
end
|
33
39
|
|
34
40
|
# Attribute type mapping.
|
35
41
|
def self.openapi_types
|
36
42
|
{
|
37
43
|
:'total' => :'Integer',
|
38
|
-
|
39
|
-
|
40
|
-
|
44
|
+
:'page' => :'Integer',
|
45
|
+
:'limit' => :'Integer',
|
46
|
+
:'has_next_page' => :'Boolean',
|
47
|
+
:'next_cursor' => :'String'
|
41
48
|
}
|
42
49
|
end
|
43
50
|
|
@@ -154,3 +161,4 @@ module AftershipAPI::Model
|
|
154
161
|
end
|
155
162
|
end
|
156
163
|
end
|
164
|
+
|
@@ -1,58 +1,59 @@
|
|
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
|
5
|
-
# Unique code of courier. Get courier
|
6
|
-
# slug: String;
|
7
|
-
attr_accessor :slug
|
4
|
+
class PaginationDataTrackingResponseGetMultipleV1
|
8
5
|
|
9
|
-
#
|
10
|
-
#
|
11
|
-
attr_accessor :
|
6
|
+
# The total number of trackings.
|
7
|
+
# total?: Integer;
|
8
|
+
attr_accessor :total
|
12
9
|
|
13
|
-
#
|
14
|
-
#
|
15
|
-
attr_accessor :
|
10
|
+
# A string representing the cursor value for the next page of results.
|
11
|
+
# next_cursor?: String;
|
12
|
+
attr_accessor :next_cursor
|
13
|
+
|
14
|
+
# To indicate if next page is available.
|
15
|
+
# has_next_page?: Boolean;
|
16
|
+
attr_accessor :has_next_page
|
16
17
|
|
17
18
|
# Initializes the object
|
18
19
|
# @param [Hash] attributes Model attributes in the form of hash
|
19
20
|
def initialize(attributes = {})
|
20
21
|
if (!attributes.is_a?(Hash))
|
21
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `AftershipAPI::
|
22
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AftershipAPI::PaginationDataTrackingResponseGetMultipleV1` initialize method"
|
22
23
|
end
|
23
24
|
|
24
25
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
25
26
|
h[k.to_sym] = v
|
26
27
|
}
|
27
28
|
|
28
|
-
if attributes.key?(:'
|
29
|
-
self.
|
29
|
+
if attributes.key?(:'total')
|
30
|
+
self.total = attributes[:'total']
|
30
31
|
end
|
31
32
|
|
32
|
-
if attributes.key?(:'
|
33
|
-
self.
|
33
|
+
if attributes.key?(:'next_cursor')
|
34
|
+
self.next_cursor = attributes[:'next_cursor']
|
34
35
|
end
|
35
36
|
|
36
|
-
if attributes.key?(:'
|
37
|
-
self.
|
37
|
+
if attributes.key?(:'has_next_page')
|
38
|
+
self.has_next_page = attributes[:'has_next_page']
|
38
39
|
end
|
39
40
|
end
|
40
41
|
|
41
42
|
# Attribute type mapping.
|
42
43
|
def self.openapi_types
|
43
44
|
{
|
44
|
-
:'
|
45
|
-
:'
|
46
|
-
:'
|
45
|
+
:'total' => :'Integer',
|
46
|
+
:'next_cursor' => :'String',
|
47
|
+
:'has_next_page' => :'Boolean',
|
47
48
|
}
|
48
49
|
end
|
49
50
|
|
50
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
52
|
def self.attribute_map
|
52
53
|
{
|
53
|
-
:'
|
54
|
-
:'
|
55
|
-
:'
|
54
|
+
:'total' => :'total',
|
55
|
+
:'next_cursor' => :'next_cursor',
|
56
|
+
:'has_next_page' => :'has_next_page',
|
56
57
|
}
|
57
58
|
end
|
58
59
|
|
@@ -169,3 +170,4 @@ module AftershipAPI::Model
|
|
169
170
|
end
|
170
171
|
end
|
171
172
|
end
|
173
|
+
|
@@ -1,58 +1,59 @@
|
|
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
|
5
|
-
# Unique code of courier. Get courier
|
6
|
-
# slug: String;
|
7
|
-
attr_accessor :slug
|
4
|
+
class PaginationGetTrackingsResponse
|
8
5
|
|
9
|
-
#
|
10
|
-
#
|
11
|
-
attr_accessor :
|
6
|
+
# The total number of trackings.
|
7
|
+
# total?: Integer;
|
8
|
+
attr_accessor :total
|
12
9
|
|
13
|
-
#
|
14
|
-
#
|
15
|
-
attr_accessor :
|
10
|
+
# A string representing the cursor value for the next page of results.
|
11
|
+
# next_cursor?: String;
|
12
|
+
attr_accessor :next_cursor
|
13
|
+
|
14
|
+
# To indicate if next page is available.
|
15
|
+
# has_next_page?: Boolean;
|
16
|
+
attr_accessor :has_next_page
|
16
17
|
|
17
18
|
# Initializes the object
|
18
19
|
# @param [Hash] attributes Model attributes in the form of hash
|
19
20
|
def initialize(attributes = {})
|
20
21
|
if (!attributes.is_a?(Hash))
|
21
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `AftershipAPI::
|
22
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AftershipAPI::PaginationGetTrackingsResponse` initialize method"
|
22
23
|
end
|
23
24
|
|
24
25
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
25
26
|
h[k.to_sym] = v
|
26
27
|
}
|
27
28
|
|
28
|
-
if attributes.key?(:'
|
29
|
-
self.
|
29
|
+
if attributes.key?(:'total')
|
30
|
+
self.total = attributes[:'total']
|
30
31
|
end
|
31
32
|
|
32
|
-
if attributes.key?(:'
|
33
|
-
self.
|
33
|
+
if attributes.key?(:'next_cursor')
|
34
|
+
self.next_cursor = attributes[:'next_cursor']
|
34
35
|
end
|
35
36
|
|
36
|
-
if attributes.key?(:'
|
37
|
-
self.
|
37
|
+
if attributes.key?(:'has_next_page')
|
38
|
+
self.has_next_page = attributes[:'has_next_page']
|
38
39
|
end
|
39
40
|
end
|
40
41
|
|
41
42
|
# Attribute type mapping.
|
42
43
|
def self.openapi_types
|
43
44
|
{
|
44
|
-
:'
|
45
|
-
:'
|
46
|
-
:'
|
45
|
+
:'total' => :'Integer',
|
46
|
+
:'next_cursor' => :'String',
|
47
|
+
:'has_next_page' => :'Boolean',
|
47
48
|
}
|
48
49
|
end
|
49
50
|
|
50
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
52
|
def self.attribute_map
|
52
53
|
{
|
53
|
-
:'
|
54
|
-
:'
|
55
|
-
:'
|
54
|
+
:'total' => :'total',
|
55
|
+
:'next_cursor' => :'next_cursor',
|
56
|
+
:'has_next_page' => :'has_next_page',
|
56
57
|
}
|
57
58
|
end
|
58
59
|
|
@@ -169,3 +170,4 @@ module AftershipAPI::Model
|
|
169
170
|
end
|
170
171
|
end
|
171
172
|
end
|
173
|
+
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class PredictBatchRequest
|
5
|
+
|
5
6
|
#
|
6
7
|
# estimated_delivery_dates: EstimatedDeliveryDateRequest[];
|
7
8
|
attr_accessor :estimated_delivery_dates
|
@@ -149,3 +150,4 @@ module AftershipAPI::Model
|
|
149
150
|
end
|
150
151
|
end
|
151
152
|
end
|
153
|
+
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class PredictBatchResponse
|
5
|
+
|
5
6
|
#
|
6
7
|
# estimated_delivery_dates: EstimatedDeliveryDateResponse[];
|
7
8
|
attr_accessor :estimated_delivery_dates
|
@@ -149,3 +150,4 @@ module AftershipAPI::Model
|
|
149
150
|
end
|
150
151
|
end
|
151
152
|
end
|
153
|
+
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class RetrackTrackingByIdResponse
|
5
|
+
|
5
6
|
# Tracking ID.
|
6
7
|
# id?: String;
|
7
8
|
attr_accessor :id
|
@@ -94,9 +95,9 @@ module AftershipAPI::Model
|
|
94
95
|
# emails?: String[];
|
95
96
|
attr_accessor :emails
|
96
97
|
|
97
|
-
# The estimated delivery date provided by the carrier.
|
98
|
-
#
|
99
|
-
attr_accessor :
|
98
|
+
# The field contains the estimated delivery date provided by the carrier.
|
99
|
+
# courier_estimated_delivery_date?: CourierEstimatedDeliveryDateRetrackTrackingByIdResponse;
|
100
|
+
attr_accessor :courier_estimated_delivery_date
|
100
101
|
|
101
102
|
# Text field for the note.
|
102
103
|
# note?: String;
|
@@ -318,6 +319,14 @@ module AftershipAPI::Model
|
|
318
319
|
# delivery_location_type?: String;
|
319
320
|
attr_accessor :delivery_location_type
|
320
321
|
|
322
|
+
# The tracking URL directs your customers to the shipment tracking page which can display either the default or a customized page based on segmentation rules.- The universal URL is used by default, but you can opt for a custom domain if you have one. Learn how to set up a custom domain .The field is not automatically enabled in API & Webhook. Please contact support if you’d like to enable it.
|
323
|
+
# aftership_tracking_url?: String;
|
324
|
+
attr_accessor :aftership_tracking_url
|
325
|
+
|
326
|
+
# The order URL directs your customers to the order tracking page, which includes all shipments. It can display either the default or a customized page based on segmentation rules.- The universal URL is used by default, but you can opt for a custom domain if you have one. Learn how to set up a custom domain .The field is not automatically enabled in API & Webhook. Please contact support if you’d like to enable it.
|
327
|
+
# aftership_tracking_order_url?: String;
|
328
|
+
attr_accessor :aftership_tracking_order_url
|
329
|
+
|
321
330
|
# Initializes the object
|
322
331
|
# @param [Hash] attributes Model attributes in the form of hash
|
323
332
|
def initialize(attributes = {})
|
@@ -421,8 +430,8 @@ module AftershipAPI::Model
|
|
421
430
|
self.emails = attributes[:'emails']
|
422
431
|
end
|
423
432
|
|
424
|
-
if attributes.key?(:'
|
425
|
-
self.
|
433
|
+
if attributes.key?(:'courier_estimated_delivery_date')
|
434
|
+
self.courier_estimated_delivery_date = attributes[:'courier_estimated_delivery_date']
|
426
435
|
end
|
427
436
|
|
428
437
|
if attributes.key?(:'note')
|
@@ -644,6 +653,14 @@ module AftershipAPI::Model
|
|
644
653
|
if attributes.key?(:'delivery_location_type')
|
645
654
|
self.delivery_location_type = attributes[:'delivery_location_type']
|
646
655
|
end
|
656
|
+
|
657
|
+
if attributes.key?(:'aftership_tracking_url')
|
658
|
+
self.aftership_tracking_url = attributes[:'aftership_tracking_url']
|
659
|
+
end
|
660
|
+
|
661
|
+
if attributes.key?(:'aftership_tracking_order_url')
|
662
|
+
self.aftership_tracking_order_url = attributes[:'aftership_tracking_order_url']
|
663
|
+
end
|
647
664
|
end
|
648
665
|
|
649
666
|
# Attribute type mapping.
|
@@ -672,7 +689,7 @@ module AftershipAPI::Model
|
|
672
689
|
:'destination_raw_location' => :'String',
|
673
690
|
:'courier_destination_country_iso3' => :'String',
|
674
691
|
:'emails' => :'Array<String>',
|
675
|
-
:'
|
692
|
+
:'courier_estimated_delivery_date' => :'CourierEstimatedDeliveryDateRetrackTrackingByIdResponse',
|
676
693
|
:'note' => :'String',
|
677
694
|
:'order_id' => :'String',
|
678
695
|
:'order_id_path' => :'String',
|
@@ -728,6 +745,8 @@ module AftershipAPI::Model
|
|
728
745
|
:'failed_delivery_attempts' => :'Integer',
|
729
746
|
:'signature_requirement' => :'String',
|
730
747
|
:'delivery_location_type' => :'String',
|
748
|
+
:'aftership_tracking_url' => :'String',
|
749
|
+
:'aftership_tracking_order_url' => :'String',
|
731
750
|
}
|
732
751
|
end
|
733
752
|
|
@@ -757,7 +776,7 @@ module AftershipAPI::Model
|
|
757
776
|
:'destination_raw_location' => :'destination_raw_location',
|
758
777
|
:'courier_destination_country_iso3' => :'courier_destination_country_iso3',
|
759
778
|
:'emails' => :'emails',
|
760
|
-
:'
|
779
|
+
:'courier_estimated_delivery_date' => :'courier_estimated_delivery_date',
|
761
780
|
:'note' => :'note',
|
762
781
|
:'order_id' => :'order_id',
|
763
782
|
:'order_id_path' => :'order_id_path',
|
@@ -813,6 +832,8 @@ module AftershipAPI::Model
|
|
813
832
|
:'failed_delivery_attempts' => :'failed_delivery_attempts',
|
814
833
|
:'signature_requirement' => :'signature_requirement',
|
815
834
|
:'delivery_location_type' => :'delivery_location_type',
|
835
|
+
:'aftership_tracking_url' => :'aftership_tracking_url',
|
836
|
+
:'aftership_tracking_order_url' => :'aftership_tracking_order_url',
|
816
837
|
}
|
817
838
|
end
|
818
839
|
|
@@ -929,3 +950,4 @@ module AftershipAPI::Model
|
|
929
950
|
end
|
930
951
|
end
|
931
952
|
end
|
953
|
+
|
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class ShipmentWeightCreateTrackingResponse
|
5
|
+
|
5
6
|
# The unit in which the value field is expressed.
|
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 ShipmentWeightDeleteTrackingByIdResponse
|
5
|
+
|
5
6
|
# The unit in which the value field is expressed.
|
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 ShipmentWeightGetTrackingByIdResponse
|
5
|
+
|
5
6
|
# The unit in which the value field is expressed.
|
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
|
+
|
data/lib/aftership-tracking-sdk/models/shipment_weight_mark_tracking_completed_by_id_response.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# Do not edit the class manually.
|
3
3
|
module AftershipAPI::Model
|
4
4
|
class ShipmentWeightMarkTrackingCompletedByIdResponse
|
5
|
+
|
5
6
|
# The unit in which the value field is expressed.
|
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 ShipmentWeightRetrackTrackingByIdResponse
|
5
|
+
|
5
6
|
# The unit in which the value field is expressed.
|
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
|
+
|