aftership-tracking-sdk 8.0.0 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/LICENSE +1 -1
  4. data/README.md +16 -14
  5. data/lib/aftership-tracking-sdk/api/courier.rb +6 -6
  6. data/lib/aftership-tracking-sdk/api/estimated_delivery_date.rb +58 -4
  7. data/lib/aftership-tracking-sdk/api/tracking.rb +30 -396
  8. data/lib/aftership-tracking-sdk/api_client.rb +2 -2
  9. data/lib/aftership-tracking-sdk/configuration.rb +108 -108
  10. data/lib/aftership-tracking-sdk/models/additional_fields_v1.rb +3 -3
  11. data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_create_tracking_response.rb +2 -0
  12. data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_delete_tracking_by_id_response.rb +2 -0
  13. data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_get_tracking_by_id_response.rb +2 -0
  14. data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_mark_tracking_completed_by_id_response.rb +2 -0
  15. data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_retrack_tracking_by_id_response.rb +2 -0
  16. data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_tracking.rb +2 -0
  17. data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_update_tracking_by_id_response.rb +2 -0
  18. data/lib/aftership-tracking-sdk/models/carbon_emissions_create_tracking_response.rb +2 -0
  19. data/lib/aftership-tracking-sdk/models/carbon_emissions_delete_tracking_by_id_response.rb +2 -0
  20. data/lib/aftership-tracking-sdk/models/carbon_emissions_get_tracking_by_id_response.rb +2 -0
  21. data/lib/aftership-tracking-sdk/models/carbon_emissions_mark_tracking_completed_by_id_response.rb +2 -0
  22. data/lib/aftership-tracking-sdk/models/carbon_emissions_retrack_tracking_by_id_response.rb +2 -0
  23. data/lib/aftership-tracking-sdk/models/carbon_emissions_tracking.rb +2 -0
  24. data/lib/aftership-tracking-sdk/models/carbon_emissions_update_tracking_by_id_response.rb +2 -0
  25. data/lib/aftership-tracking-sdk/models/checkpoint.rb +24 -12
  26. data/lib/aftership-tracking-sdk/models/coordinate_checkpoint.rb +2 -0
  27. data/lib/aftership-tracking-sdk/models/courier.rb +9 -7
  28. 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
  29. 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
  30. 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
  31. data/lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_mark_tracking_completed_by_id_response.rb +173 -0
  32. data/lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_retrack_tracking_by_id_response.rb +173 -0
  33. 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
  34. data/lib/aftership-tracking-sdk/models/courier_estimated_delivery_date_update_tracking_by_id_response.rb +173 -0
  35. data/lib/aftership-tracking-sdk/models/courier_response_v1.rb +2 -0
  36. data/lib/aftership-tracking-sdk/models/create_tracking_request.rb +49 -67
  37. data/lib/aftership-tracking-sdk/models/create_tracking_response.rb +92 -90
  38. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_create_tracking_response.rb +2 -0
  39. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_delete_tracking_by_id_response.rb +2 -0
  40. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_get_tracking_by_id_response.rb +2 -0
  41. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_mark_tracking_completed_by_id_response.rb +2 -0
  42. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_retrack_tracking_by_id_response.rb +2 -0
  43. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_tracking.rb +2 -0
  44. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_update_tracking_by_id_response.rb +2 -0
  45. data/lib/aftership-tracking-sdk/models/{first_estimated_delivery_delete_tracking_by_slug_tracking_number_response.rb → customers_create_tracking_request.rb} +39 -37
  46. data/lib/aftership-tracking-sdk/models/{first_estimated_delivery_mark_tracking_completed_by_slug_tracking_number_response.rb → customers_create_tracking_response.rb} +39 -37
  47. data/lib/aftership-tracking-sdk/models/customers_delete_tracking_by_id_response.rb +193 -0
  48. data/lib/aftership-tracking-sdk/models/{first_estimated_delivery_retrack_tracking_by_slug_tracking_number_response.rb → customers_get_tracking_by_id_response.rb} +39 -37
  49. data/lib/aftership-tracking-sdk/models/customers_mark_tracking_completed_by_id_response.rb +193 -0
  50. data/lib/aftership-tracking-sdk/models/customers_retrack_tracking_by_id_response.rb +193 -0
  51. data/lib/aftership-tracking-sdk/models/{first_estimated_delivery_get_tracking_by_slug_tracking_number_response.rb → customers_tracking.rb} +39 -37
  52. data/lib/aftership-tracking-sdk/models/customers_update_tracking_by_id_request.rb +193 -0
  53. data/lib/aftership-tracking-sdk/models/customers_update_tracking_by_id_response.rb +193 -0
  54. data/lib/aftership-tracking-sdk/models/data_courier_response_v1.rb +2 -0
  55. data/lib/aftership-tracking-sdk/models/data_tracking_response_get_multiple_v1.rb +8 -126
  56. data/lib/aftership-tracking-sdk/models/delete_tracking_by_id_response.rb +92 -90
  57. data/lib/aftership-tracking-sdk/models/destination_address_estimated_delivery_date_request.rb +8 -6
  58. data/lib/aftership-tracking-sdk/models/destination_address_estimated_delivery_date_response.rb +8 -6
  59. data/lib/aftership-tracking-sdk/models/destination_address_predict_request.rb +193 -0
  60. data/lib/aftership-tracking-sdk/models/destination_address_predict_response.rb +193 -0
  61. data/lib/aftership-tracking-sdk/models/detect_courier_request.rb +26 -24
  62. data/lib/aftership-tracking-sdk/models/detect_courier_response.rb +2 -0
  63. data/lib/aftership-tracking-sdk/models/estimated_delivery_date_request.rb +2 -0
  64. data/lib/aftership-tracking-sdk/models/estimated_delivery_date_response.rb +2 -0
  65. data/lib/aftership-tracking-sdk/models/estimated_pickup_estimated_delivery_date_request.rb +2 -0
  66. data/lib/aftership-tracking-sdk/models/estimated_pickup_estimated_delivery_date_response.rb +2 -0
  67. data/lib/aftership-tracking-sdk/models/estimated_pickup_predict_request.rb +183 -0
  68. data/lib/aftership-tracking-sdk/models/estimated_pickup_predict_response.rb +193 -0
  69. data/lib/aftership-tracking-sdk/models/events_checkpoint.rb +2 -0
  70. data/lib/aftership-tracking-sdk/models/first_estimated_delivery_create_tracking_response.rb +2 -0
  71. data/lib/aftership-tracking-sdk/models/first_estimated_delivery_delete_tracking_by_id_response.rb +2 -0
  72. data/lib/aftership-tracking-sdk/models/first_estimated_delivery_get_tracking_by_id_response.rb +2 -0
  73. data/lib/aftership-tracking-sdk/models/first_estimated_delivery_mark_tracking_completed_by_id_response.rb +2 -0
  74. data/lib/aftership-tracking-sdk/models/first_estimated_delivery_retrack_tracking_by_id_response.rb +2 -0
  75. data/lib/aftership-tracking-sdk/models/first_estimated_delivery_tracking.rb +2 -0
  76. data/lib/aftership-tracking-sdk/models/first_estimated_delivery_update_tracking_by_id_response.rb +2 -0
  77. data/lib/aftership-tracking-sdk/models/first_mile_create_tracking_response.rb +193 -0
  78. data/lib/aftership-tracking-sdk/models/first_mile_delete_tracking_by_id_response.rb +193 -0
  79. data/lib/aftership-tracking-sdk/models/first_mile_get_tracking_by_id_response.rb +193 -0
  80. data/lib/aftership-tracking-sdk/models/first_mile_mark_tracking_completed_by_id_response.rb +193 -0
  81. data/lib/aftership-tracking-sdk/models/first_mile_retrack_tracking_by_id_response.rb +193 -0
  82. data/lib/aftership-tracking-sdk/models/first_mile_tracking.rb +193 -0
  83. data/lib/aftership-tracking-sdk/models/first_mile_update_tracking_by_id_response.rb +193 -0
  84. data/lib/aftership-tracking-sdk/models/get_all_couriers_response.rb +2 -0
  85. data/lib/aftership-tracking-sdk/models/get_tracking_by_id_response.rb +92 -90
  86. data/lib/aftership-tracking-sdk/models/get_trackings_response.rb +5 -3
  87. data/lib/aftership-tracking-sdk/models/get_user_couriers_response.rb +2 -0
  88. data/lib/aftership-tracking-sdk/models/{next_couriers_tracking.rb → last_mile_create_tracking_request.rb} +11 -19
  89. data/lib/aftership-tracking-sdk/models/{next_couriers_delete_tracking_by_slug_tracking_number_response.rb → last_mile_create_tracking_response.rb} +44 -12
  90. data/lib/aftership-tracking-sdk/models/last_mile_delete_tracking_by_id_response.rb +203 -0
  91. data/lib/aftership-tracking-sdk/models/last_mile_get_tracking_by_id_response.rb +203 -0
  92. data/lib/aftership-tracking-sdk/models/last_mile_mark_tracking_completed_by_id_response.rb +203 -0
  93. data/lib/aftership-tracking-sdk/models/last_mile_retrack_tracking_by_id_response.rb +203 -0
  94. data/lib/aftership-tracking-sdk/models/{next_couriers_get_tracking_by_id_response.rb → last_mile_tracking.rb} +44 -12
  95. data/lib/aftership-tracking-sdk/models/last_mile_update_tracking_by_id_response.rb +203 -0
  96. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_create_tracking_response.rb +2 -0
  97. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_delete_tracking_by_id_response.rb +2 -0
  98. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_get_tracking_by_id_response.rb +2 -0
  99. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_mark_tracking_completed_by_id_response.rb +2 -0
  100. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_retrack_tracking_by_id_response.rb +2 -0
  101. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_tracking.rb +2 -0
  102. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_update_tracking_by_id_response.rb +2 -0
  103. data/lib/aftership-tracking-sdk/models/mark_tracking_completed_by_id_request.rb +2 -0
  104. data/lib/aftership-tracking-sdk/models/mark_tracking_completed_by_id_response.rb +92 -90
  105. data/lib/aftership-tracking-sdk/models/meta_v1.rb +2 -0
  106. data/lib/aftership-tracking-sdk/models/order_processing_time_estimated_pickup_estimated_delivery_date_request.rb +2 -0
  107. data/lib/aftership-tracking-sdk/models/order_processing_time_estimated_pickup_estimated_delivery_date_response.rb +2 -0
  108. data/lib/aftership-tracking-sdk/models/{shipment_weight_update_tracking_by_slug_tracking_number_response.rb → order_processing_time_estimated_pickup_predict_request.rb} +6 -4
  109. data/lib/aftership-tracking-sdk/models/{carbon_emissions_mark_tracking_completed_by_slug_tracking_number_response.rb → order_processing_time_estimated_pickup_predict_response.rb} +6 -4
  110. data/lib/aftership-tracking-sdk/models/origin_address_estimated_delivery_date_request.rb +8 -6
  111. data/lib/aftership-tracking-sdk/models/origin_address_estimated_delivery_date_response.rb +8 -6
  112. data/lib/aftership-tracking-sdk/models/origin_address_predict_request.rb +193 -0
  113. data/lib/aftership-tracking-sdk/models/origin_address_predict_response.rb +193 -0
  114. data/lib/aftership-tracking-sdk/models/pagination.rb +14 -6
  115. data/lib/aftership-tracking-sdk/models/{next_couriers_delete_tracking_by_id_response.rb → pagination_data_tracking_response_get_multiple_v1.rb} +25 -23
  116. data/lib/aftership-tracking-sdk/models/{next_couriers_create_tracking_response.rb → pagination_get_trackings_response.rb} +25 -23
  117. data/lib/aftership-tracking-sdk/models/predict_batch_request.rb +2 -0
  118. data/lib/aftership-tracking-sdk/models/predict_batch_response.rb +2 -0
  119. data/lib/aftership-tracking-sdk/models/predict_request.rb +223 -0
  120. data/lib/aftership-tracking-sdk/models/predict_response.rb +273 -0
  121. data/lib/aftership-tracking-sdk/models/reason_events_checkpoint.rb +2 -0
  122. data/lib/aftership-tracking-sdk/models/retrack_tracking_by_id_response.rb +92 -90
  123. data/lib/aftership-tracking-sdk/models/shipment_weight_create_tracking_response.rb +2 -0
  124. data/lib/aftership-tracking-sdk/models/shipment_weight_delete_tracking_by_id_response.rb +2 -0
  125. data/lib/aftership-tracking-sdk/models/shipment_weight_get_tracking_by_id_response.rb +2 -0
  126. data/lib/aftership-tracking-sdk/models/shipment_weight_mark_tracking_completed_by_id_response.rb +2 -0
  127. data/lib/aftership-tracking-sdk/models/shipment_weight_retrack_tracking_by_id_response.rb +2 -0
  128. data/lib/aftership-tracking-sdk/models/shipment_weight_tracking.rb +2 -0
  129. data/lib/aftership-tracking-sdk/models/shipment_weight_update_tracking_by_id_response.rb +2 -0
  130. data/lib/aftership-tracking-sdk/models/slug_group_v1.rb +1 -1
  131. data/lib/aftership-tracking-sdk/models/tag_v1.rb +1 -1
  132. data/lib/aftership-tracking-sdk/models/tracking.rb +92 -90
  133. data/lib/aftership-tracking-sdk/models/tracking_response_get_multiple_v1.rb +2 -0
  134. data/lib/aftership-tracking-sdk/models/tracking_response_v1.rb +2 -0
  135. data/lib/aftership-tracking-sdk/models/update_tracking_by_id_request.rb +38 -56
  136. data/lib/aftership-tracking-sdk/models/update_tracking_by_id_response.rb +92 -90
  137. data/lib/aftership-tracking-sdk/models/weight_estimated_delivery_date_request.rb +2 -0
  138. data/lib/aftership-tracking-sdk/models/weight_estimated_delivery_date_response.rb +2 -0
  139. data/lib/aftership-tracking-sdk/models/{shipment_weight_get_tracking_by_slug_tracking_number_response.rb → weight_predict_request.rb} +8 -6
  140. data/lib/aftership-tracking-sdk/models/{shipment_weight_delete_tracking_by_slug_tracking_number_response.rb → weight_predict_response.rb} +8 -6
  141. data/lib/aftership-tracking-sdk/version.rb +1 -1
  142. metadata +50 -56
  143. data/lib/aftership-tracking-sdk/models/aftership_estimated_delivery_date_update_tracking_by_slug_tracking_number_response.rb +0 -181
  144. data/lib/aftership-tracking-sdk/models/carbon_emissions_delete_tracking_by_slug_tracking_number_response.rb +0 -161
  145. data/lib/aftership-tracking-sdk/models/carbon_emissions_get_tracking_by_slug_tracking_number_response.rb +0 -161
  146. data/lib/aftership-tracking-sdk/models/carbon_emissions_retrack_tracking_by_slug_tracking_number_response.rb +0 -161
  147. data/lib/aftership-tracking-sdk/models/carbon_emissions_update_tracking_by_slug_tracking_number_response.rb +0 -161
  148. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_delete_tracking_by_slug_tracking_number_response.rb +0 -181
  149. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_get_tracking_by_slug_tracking_number_response.rb +0 -181
  150. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_mark_tracking_completed_by_slug_tracking_number_response.rb +0 -181
  151. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_retrack_tracking_by_slug_tracking_number_response.rb +0 -181
  152. data/lib/aftership-tracking-sdk/models/custom_estimated_delivery_date_update_tracking_by_slug_tracking_number_response.rb +0 -181
  153. data/lib/aftership-tracking-sdk/models/custom_fields_update_tracking_by_slug_tracking_number_request.rb +0 -139
  154. data/lib/aftership-tracking-sdk/models/delete_tracking_by_slug_tracking_number_response.rb +0 -931
  155. data/lib/aftership-tracking-sdk/models/first_estimated_delivery_update_tracking_by_slug_tracking_number_response.rb +0 -191
  156. data/lib/aftership-tracking-sdk/models/get_tracking_by_slug_tracking_number_response.rb +0 -931
  157. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_delete_tracking_by_slug_tracking_number_response.rb +0 -191
  158. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_get_tracking_by_slug_tracking_number_response.rb +0 -191
  159. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_mark_tracking_completed_by_slug_tracking_number_response.rb +0 -191
  160. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_retrack_tracking_by_slug_tracking_number_response.rb +0 -191
  161. data/lib/aftership-tracking-sdk/models/latest_estimated_delivery_update_tracking_by_slug_tracking_number_response.rb +0 -191
  162. data/lib/aftership-tracking-sdk/models/mark_tracking_completed_by_slug_tracking_number_request.rb +0 -151
  163. data/lib/aftership-tracking-sdk/models/mark_tracking_completed_by_slug_tracking_number_response.rb +0 -931
  164. data/lib/aftership-tracking-sdk/models/next_couriers_create_tracking_request.rb +0 -161
  165. data/lib/aftership-tracking-sdk/models/next_couriers_get_tracking_by_slug_tracking_number_response.rb +0 -171
  166. data/lib/aftership-tracking-sdk/models/next_couriers_mark_tracking_completed_by_id_response.rb +0 -171
  167. data/lib/aftership-tracking-sdk/models/next_couriers_mark_tracking_completed_by_slug_tracking_number_response.rb +0 -171
  168. data/lib/aftership-tracking-sdk/models/next_couriers_retrack_tracking_by_id_response.rb +0 -171
  169. data/lib/aftership-tracking-sdk/models/next_couriers_retrack_tracking_by_slug_tracking_number_response.rb +0 -171
  170. data/lib/aftership-tracking-sdk/models/next_couriers_update_tracking_by_id_response.rb +0 -171
  171. data/lib/aftership-tracking-sdk/models/next_couriers_update_tracking_by_slug_tracking_number_response.rb +0 -171
  172. data/lib/aftership-tracking-sdk/models/retrack_tracking_by_slug_tracking_number_response.rb +0 -931
  173. data/lib/aftership-tracking-sdk/models/shipment_weight_mark_tracking_completed_by_slug_tracking_number_response.rb +0 -161
  174. data/lib/aftership-tracking-sdk/models/shipment_weight_retrack_tracking_by_slug_tracking_number_response.rb +0 -161
  175. data/lib/aftership-tracking-sdk/models/update_tracking_by_slug_tracking_number_request.rb +0 -391
  176. 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 DataCourierResponseV1
5
+
5
6
  # Total count of courier objects
6
7
  # total?: Integer;
7
8
  attr_accessor :total
@@ -159,3 +160,4 @@ module AftershipAPI::Model
159
160
  end
160
161
  end
161
162
  end
163
+
@@ -2,57 +2,10 @@
2
2
  # Do not edit the class manually.
3
3
  module AftershipAPI::Model
4
4
  class DataTrackingResponseGetMultipleV1
5
- # Page to show. (Default: 1)
6
- # page?: Integer;
7
- attr_accessor :page
8
5
 
9
- # Number of trackings each page contain. (Default: 100, Max: 200)
10
- # limit?: Integer;
11
- attr_accessor :limit
12
-
13
- # Number of returned trackings
14
- # count?: Integer;
15
- attr_accessor :count
16
-
17
- # Search the content of the tracking record fields: `tracking_number`, `title`, `order_id`, `customer_name`, `custom_fields`, `order_id`, `emails`, `smses`
18
- # keyword?: String;
19
- attr_accessor :keyword
20
-
21
- # Unique
22
- # slug?: String;
23
- attr_accessor :slug
24
-
25
- # Origin country/region of trackings. Use
26
- # origin?: String[];
27
- attr_accessor :origin
28
-
29
- # Destination country/region of trackings. Use
30
- # destination?: String[];
31
- attr_accessor :destination
32
-
33
- # Current status of tracking. (
34
- # tag?: TagV1;
35
- attr_accessor :tag
36
-
37
- # Start date and time of trackings created. AfterShip only stores data of 120 days.
38
- # created_at_min?: String;
39
- attr_accessor :created_at_min
40
-
41
- # End date and time of trackings created.
42
- # created_at_max?: String;
43
- attr_accessor :created_at_max
44
-
45
- # Date and time the tracking was last updated
46
- # last_updated_at?: String;
47
- attr_accessor :last_updated_at
48
-
49
- # Whether or not the shipment is returned to sender. Value is `true` when any of its checkpoints has subtag `Exception_010` (returning to sender) or `Exception_011` (returned to sender). Otherwise value is `false`
50
- # return_to_sender?: Boolean[];
51
- attr_accessor :return_to_sender
52
-
53
- # Destination country/region of the tracking detected from the courier. ISO Alpha-3 (three letters). Value will be `null` if the courier doesn't provide the destination country.
54
- # courier_destination_country_iso3?: String[];
55
- attr_accessor :courier_destination_country_iso3
6
+ # The Pagination holds the information for the pagination when the response contains multiple objects.
7
+ # pagination?: PaginationDataTrackingResponseGetMultipleV1;
8
+ attr_accessor :pagination
56
9
 
57
10
  # Array of
58
11
  # trackings?: Tracking[];
@@ -69,56 +22,8 @@ module AftershipAPI::Model
69
22
  h[k.to_sym] = v
70
23
  }
71
24
 
72
- if attributes.key?(:'page')
73
- self.page = attributes[:'page']
74
- end
75
-
76
- if attributes.key?(:'limit')
77
- self.limit = attributes[:'limit']
78
- end
79
-
80
- if attributes.key?(:'count')
81
- self.count = attributes[:'count']
82
- end
83
-
84
- if attributes.key?(:'keyword')
85
- self.keyword = attributes[:'keyword']
86
- end
87
-
88
- if attributes.key?(:'slug')
89
- self.slug = attributes[:'slug']
90
- end
91
-
92
- if attributes.key?(:'origin')
93
- self.origin = attributes[:'origin']
94
- end
95
-
96
- if attributes.key?(:'destination')
97
- self.destination = attributes[:'destination']
98
- end
99
-
100
- if attributes.key?(:'tag')
101
- self.tag = attributes[:'tag']
102
- end
103
-
104
- if attributes.key?(:'created_at_min')
105
- self.created_at_min = attributes[:'created_at_min']
106
- end
107
-
108
- if attributes.key?(:'created_at_max')
109
- self.created_at_max = attributes[:'created_at_max']
110
- end
111
-
112
- if attributes.key?(:'last_updated_at')
113
- self.last_updated_at = attributes[:'last_updated_at']
114
- end
115
-
116
- if attributes.key?(:'return_to_sender')
117
- self.return_to_sender = attributes[:'return_to_sender']
118
- end
119
-
120
- if attributes.key?(:'courier_destination_country_iso3')
121
- self.courier_destination_country_iso3 = attributes[:'courier_destination_country_iso3']
25
+ if attributes.key?(:'pagination')
26
+ self.pagination = attributes[:'pagination']
122
27
  end
123
28
 
124
29
  if attributes.key?(:'trackings')
@@ -129,19 +34,7 @@ module AftershipAPI::Model
129
34
  # Attribute type mapping.
130
35
  def self.openapi_types
131
36
  {
132
- :'page' => :'Integer',
133
- :'limit' => :'Integer',
134
- :'count' => :'Integer',
135
- :'keyword' => :'String',
136
- :'slug' => :'String',
137
- :'origin' => :'Array<String>',
138
- :'destination' => :'Array<String>',
139
- :'tag' => :'TagV1',
140
- :'created_at_min' => :'String',
141
- :'created_at_max' => :'String',
142
- :'last_updated_at' => :'String',
143
- :'return_to_sender' => :'Array<Boolean>',
144
- :'courier_destination_country_iso3' => :'Array<String>',
37
+ :'pagination' => :'PaginationDataTrackingResponseGetMultipleV1',
145
38
  :'trackings' => :'Array<Tracking>',
146
39
  }
147
40
  end
@@ -149,19 +42,7 @@ module AftershipAPI::Model
149
42
  # Attribute mapping from ruby-style variable name to JSON key.
150
43
  def self.attribute_map
151
44
  {
152
- :'page' => :'page',
153
- :'limit' => :'limit',
154
- :'count' => :'count',
155
- :'keyword' => :'keyword',
156
- :'slug' => :'slug',
157
- :'origin' => :'origin',
158
- :'destination' => :'destination',
159
- :'tag' => :'tag',
160
- :'created_at_min' => :'created_at_min',
161
- :'created_at_max' => :'created_at_max',
162
- :'last_updated_at' => :'last_updated_at',
163
- :'return_to_sender' => :'return_to_sender',
164
- :'courier_destination_country_iso3' => :'courier_destination_country_iso3',
45
+ :'pagination' => :'pagination',
165
46
  :'trackings' => :'trackings',
166
47
  }
167
48
  end
@@ -279,3 +160,4 @@ module AftershipAPI::Model
279
160
  end
280
161
  end
281
162
  end
163
+
@@ -2,6 +2,7 @@
2
2
  # Do not edit the class manually.
3
3
  module AftershipAPI::Model
4
4
  class DeleteTrackingByIdResponse
5
+
5
6
  # Tracking ID.
6
7
  # id?: String;
7
8
  attr_accessor :id
@@ -18,10 +19,6 @@ module AftershipAPI::Model
18
19
  # updated_at?: String;
19
20
  attr_accessor :updated_at
20
21
 
21
- # (Legacy) The date and time the shipment was updated. It uses the format `YYYY-MM-DDTHH:mm:ssZ` for the timezone GMT +0.
22
- # last_updated_at?: String;
23
- attr_accessor :last_updated_at
24
-
25
22
  # Tracking number.
26
23
  # tracking_number?: String;
27
24
  attr_accessor :tracking_number
@@ -38,17 +35,13 @@ module AftershipAPI::Model
38
35
  # custom_fields?: Object;
39
36
  attr_accessor :custom_fields
40
37
 
41
- # Customer name of the tracking.
42
- # customer_name?: String;
43
- attr_accessor :customer_name
44
-
45
38
  # Total transit time in days.- For delivered shipments: Transit time (in days) = Delivered date - Pick-up date- For undelivered shipments: Transit time (in days) = Current date - Pick-up dateValue as `null` for the shipment without pick-up date.
46
39
  # transit_time?: Integer;
47
40
  attr_accessor :transit_time
48
41
 
49
42
  # The for the origin country/region. E.g. USA for the United States.
50
- # origin_country_iso3?: String;
51
- attr_accessor :origin_country_iso3
43
+ # origin_country_region?: String;
44
+ attr_accessor :origin_country_region
52
45
 
53
46
  # The state of the sender’s address.
54
47
  # origin_state?: String;
@@ -67,8 +60,8 @@ module AftershipAPI::Model
67
60
  attr_accessor :origin_raw_location
68
61
 
69
62
  # The for the destination country/region. E.g. USA for the United States.
70
- # destination_country_iso3?: String;
71
- attr_accessor :destination_country_iso3
63
+ # destination_country_region?: String;
64
+ attr_accessor :destination_country_region
72
65
 
73
66
  # The state of the recipient’s address.
74
67
  # destination_state?: String;
@@ -87,16 +80,12 @@ module AftershipAPI::Model
87
80
  attr_accessor :destination_raw_location
88
81
 
89
82
  # Destination country/region of the tracking detected from the courier. ISO Alpha-3 (three letters). Value will be `null` if the courier doesn't provide the destination country.
90
- # courier_destination_country_iso3?: String;
91
- attr_accessor :courier_destination_country_iso3
92
-
93
- # Email address(es) to receive email notifications.
94
- # emails?: String[];
95
- attr_accessor :emails
83
+ # courier_destination_country_region?: String;
84
+ attr_accessor :courier_destination_country_region
96
85
 
97
- # The estimated delivery date provided by the carrier. It uses the shipment recipient’s timezone and the format may differ depending on how the carrier provides it:- YYYY-MM-DD- YYYY-MM-DDTHH:mm:ss- YYYY-MM-DDTHH:mm:ssZ
98
- # expected_delivery?: String;
99
- attr_accessor :expected_delivery
86
+ # The field contains the estimated delivery date provided by the carrier.
87
+ # courier_estimated_delivery_date?: CourierEstimatedDeliveryDateDeleteTrackingByIdResponse;
88
+ attr_accessor :courier_estimated_delivery_date
100
89
 
101
90
  # Text field for the note.
102
91
  # note?: String;
@@ -138,10 +127,6 @@ module AftershipAPI::Model
138
127
  # signed_by?: String;
139
128
  attr_accessor :signed_by
140
129
 
141
- # The phone number(s) to receive sms notifications. Phone number should begin with `+` and `Area Code` before phone number.
142
- # smses?: String[];
143
- attr_accessor :smses
144
-
145
130
  # Source of how this tracking is added.
146
131
  # source?: String;
147
132
  attr_accessor :source
@@ -230,7 +215,7 @@ module AftershipAPI::Model
230
215
  # tracking_key?: String;
231
216
  attr_accessor :tracking_key
232
217
 
233
- # 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.
218
+ # 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.
234
219
  # tracking_ship_date?: String;
235
220
  attr_accessor :tracking_ship_date
236
221
 
@@ -274,17 +259,13 @@ module AftershipAPI::Model
274
259
  # courier_connection_id?: String;
275
260
  attr_accessor :courier_connection_id
276
261
 
277
- # The next couriers get the second carrier information from user or AfterShip.
278
- # next_couriers?: NextCouriersDeleteTrackingByIdResponse[];
279
- attr_accessor :next_couriers
280
-
281
- # (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.
282
- # tracking_origin_country?: String;
283
- attr_accessor :tracking_origin_country
262
+ # (Legacy) Replaced by `origin_country_region`. 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.
263
+ # tracking_origin_country_region?: String;
264
+ attr_accessor :tracking_origin_country_region
284
265
 
285
- # (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.
286
- # tracking_destination_country?: String;
287
- attr_accessor :tracking_destination_country
266
+ # (Legacy) Replaced by `destination_country_region`. 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.
267
+ # tracking_destination_country_region?: String;
268
+ attr_accessor :tracking_destination_country_region
288
269
 
289
270
  # (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.
290
271
  # tracking_postal_code?: String;
@@ -318,6 +299,26 @@ module AftershipAPI::Model
318
299
  # delivery_location_type?: String;
319
300
  attr_accessor :delivery_location_type
320
301
 
302
+ # 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.
303
+ # aftership_tracking_url?: String;
304
+ attr_accessor :aftership_tracking_url
305
+
306
+ # 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.
307
+ # aftership_tracking_order_url?: String;
308
+ attr_accessor :aftership_tracking_order_url
309
+
310
+ # The field contains information about the first leg of the shipping starting from the carrier picking up the shipment from the shipper to the point where they hand it over to the last-mile carrier. Once AfterShip detects the shipment is multi-leg, we will populate the first-mile information under this object.
311
+ # first_mile?: FirstMileDeleteTrackingByIdResponse;
312
+ attr_accessor :first_mile
313
+
314
+ # 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.
315
+ # last_mile?: LastMileDeleteTrackingByIdResponse;
316
+ attr_accessor :last_mile
317
+
318
+ # The field contains the customer information associated with the tracking. A maximum of three customer objects are allowed.
319
+ # customers?: CustomersDeleteTrackingByIdResponse[];
320
+ attr_accessor :customers
321
+
321
322
  # Initializes the object
322
323
  # @param [Hash] attributes Model attributes in the form of hash
323
324
  def initialize(attributes = {})
@@ -345,10 +346,6 @@ module AftershipAPI::Model
345
346
  self.updated_at = attributes[:'updated_at']
346
347
  end
347
348
 
348
- if attributes.key?(:'last_updated_at')
349
- self.last_updated_at = attributes[:'last_updated_at']
350
- end
351
-
352
349
  if attributes.key?(:'tracking_number')
353
350
  self.tracking_number = attributes[:'tracking_number']
354
351
  end
@@ -365,16 +362,12 @@ module AftershipAPI::Model
365
362
  self.custom_fields = attributes[:'custom_fields']
366
363
  end
367
364
 
368
- if attributes.key?(:'customer_name')
369
- self.customer_name = attributes[:'customer_name']
370
- end
371
-
372
365
  if attributes.key?(:'transit_time')
373
366
  self.transit_time = attributes[:'transit_time']
374
367
  end
375
368
 
376
- if attributes.key?(:'origin_country_iso3')
377
- self.origin_country_iso3 = attributes[:'origin_country_iso3']
369
+ if attributes.key?(:'origin_country_region')
370
+ self.origin_country_region = attributes[:'origin_country_region']
378
371
  end
379
372
 
380
373
  if attributes.key?(:'origin_state')
@@ -393,8 +386,8 @@ module AftershipAPI::Model
393
386
  self.origin_raw_location = attributes[:'origin_raw_location']
394
387
  end
395
388
 
396
- if attributes.key?(:'destination_country_iso3')
397
- self.destination_country_iso3 = attributes[:'destination_country_iso3']
389
+ if attributes.key?(:'destination_country_region')
390
+ self.destination_country_region = attributes[:'destination_country_region']
398
391
  end
399
392
 
400
393
  if attributes.key?(:'destination_state')
@@ -413,16 +406,12 @@ module AftershipAPI::Model
413
406
  self.destination_raw_location = attributes[:'destination_raw_location']
414
407
  end
415
408
 
416
- if attributes.key?(:'courier_destination_country_iso3')
417
- self.courier_destination_country_iso3 = attributes[:'courier_destination_country_iso3']
418
- end
419
-
420
- if attributes.key?(:'emails')
421
- self.emails = attributes[:'emails']
409
+ if attributes.key?(:'courier_destination_country_region')
410
+ self.courier_destination_country_region = attributes[:'courier_destination_country_region']
422
411
  end
423
412
 
424
- if attributes.key?(:'expected_delivery')
425
- self.expected_delivery = attributes[:'expected_delivery']
413
+ if attributes.key?(:'courier_estimated_delivery_date')
414
+ self.courier_estimated_delivery_date = attributes[:'courier_estimated_delivery_date']
426
415
  end
427
416
 
428
417
  if attributes.key?(:'note')
@@ -465,10 +454,6 @@ module AftershipAPI::Model
465
454
  self.signed_by = attributes[:'signed_by']
466
455
  end
467
456
 
468
- if attributes.key?(:'smses')
469
- self.smses = attributes[:'smses']
470
- end
471
-
472
457
  if attributes.key?(:'source')
473
458
  self.source = attributes[:'source']
474
459
  end
@@ -601,16 +586,12 @@ module AftershipAPI::Model
601
586
  self.courier_connection_id = attributes[:'courier_connection_id']
602
587
  end
603
588
 
604
- if attributes.key?(:'next_couriers')
605
- self.next_couriers = attributes[:'next_couriers']
606
- end
607
-
608
- if attributes.key?(:'tracking_origin_country')
609
- self.tracking_origin_country = attributes[:'tracking_origin_country']
589
+ if attributes.key?(:'tracking_origin_country_region')
590
+ self.tracking_origin_country_region = attributes[:'tracking_origin_country_region']
610
591
  end
611
592
 
612
- if attributes.key?(:'tracking_destination_country')
613
- self.tracking_destination_country = attributes[:'tracking_destination_country']
593
+ if attributes.key?(:'tracking_destination_country_region')
594
+ self.tracking_destination_country_region = attributes[:'tracking_destination_country_region']
614
595
  end
615
596
 
616
597
  if attributes.key?(:'tracking_postal_code')
@@ -644,6 +625,26 @@ module AftershipAPI::Model
644
625
  if attributes.key?(:'delivery_location_type')
645
626
  self.delivery_location_type = attributes[:'delivery_location_type']
646
627
  end
628
+
629
+ if attributes.key?(:'aftership_tracking_url')
630
+ self.aftership_tracking_url = attributes[:'aftership_tracking_url']
631
+ end
632
+
633
+ if attributes.key?(:'aftership_tracking_order_url')
634
+ self.aftership_tracking_order_url = attributes[:'aftership_tracking_order_url']
635
+ end
636
+
637
+ if attributes.key?(:'first_mile')
638
+ self.first_mile = attributes[:'first_mile']
639
+ end
640
+
641
+ if attributes.key?(:'last_mile')
642
+ self.last_mile = attributes[:'last_mile']
643
+ end
644
+
645
+ if attributes.key?(:'customers')
646
+ self.customers = attributes[:'customers']
647
+ end
647
648
  end
648
649
 
649
650
  # Attribute type mapping.
@@ -653,26 +654,23 @@ module AftershipAPI::Model
653
654
  :'legacy_id' => :'String',
654
655
  :'created_at' => :'String',
655
656
  :'updated_at' => :'String',
656
- :'last_updated_at' => :'String',
657
657
  :'tracking_number' => :'String',
658
658
  :'slug' => :'String',
659
659
  :'active' => :'Boolean',
660
660
  :'custom_fields' => :'Object',
661
- :'customer_name' => :'String',
662
661
  :'transit_time' => :'Integer',
663
- :'origin_country_iso3' => :'String',
662
+ :'origin_country_region' => :'String',
664
663
  :'origin_state' => :'String',
665
664
  :'origin_city' => :'String',
666
665
  :'origin_postal_code' => :'String',
667
666
  :'origin_raw_location' => :'String',
668
- :'destination_country_iso3' => :'String',
667
+ :'destination_country_region' => :'String',
669
668
  :'destination_state' => :'String',
670
669
  :'destination_city' => :'String',
671
670
  :'destination_postal_code' => :'String',
672
671
  :'destination_raw_location' => :'String',
673
- :'courier_destination_country_iso3' => :'String',
674
- :'emails' => :'Array<String>',
675
- :'expected_delivery' => :'String',
672
+ :'courier_destination_country_region' => :'String',
673
+ :'courier_estimated_delivery_date' => :'CourierEstimatedDeliveryDateDeleteTrackingByIdResponse',
676
674
  :'note' => :'String',
677
675
  :'order_id' => :'String',
678
676
  :'order_id_path' => :'String',
@@ -683,7 +681,6 @@ module AftershipAPI::Model
683
681
  :'shipment_type' => :'String',
684
682
  :'shipment_weight' => :'ShipmentWeightDeleteTrackingByIdResponse',
685
683
  :'signed_by' => :'String',
686
- :'smses' => :'Array<String>',
687
684
  :'source' => :'String',
688
685
  :'tag' => :'TagV1',
689
686
  :'subtag' => :'String',
@@ -717,9 +714,8 @@ module AftershipAPI::Model
717
714
  :'latest_estimated_delivery' => :'LatestEstimatedDeliveryDeleteTrackingByIdResponse',
718
715
  :'shipment_tags' => :'Array<String>',
719
716
  :'courier_connection_id' => :'String',
720
- :'next_couriers' => :'Array<NextCouriersDeleteTrackingByIdResponse>',
721
- :'tracking_origin_country' => :'String',
722
- :'tracking_destination_country' => :'String',
717
+ :'tracking_origin_country_region' => :'String',
718
+ :'tracking_destination_country_region' => :'String',
723
719
  :'tracking_postal_code' => :'String',
724
720
  :'tracking_state' => :'String',
725
721
  :'carbon_emissions' => :'CarbonEmissionsDeleteTrackingByIdResponse',
@@ -728,6 +724,11 @@ module AftershipAPI::Model
728
724
  :'failed_delivery_attempts' => :'Integer',
729
725
  :'signature_requirement' => :'String',
730
726
  :'delivery_location_type' => :'String',
727
+ :'aftership_tracking_url' => :'String',
728
+ :'aftership_tracking_order_url' => :'String',
729
+ :'first_mile' => :'FirstMileDeleteTrackingByIdResponse',
730
+ :'last_mile' => :'LastMileDeleteTrackingByIdResponse',
731
+ :'customers' => :'Array<CustomersDeleteTrackingByIdResponse>',
731
732
  }
732
733
  end
733
734
 
@@ -738,26 +739,23 @@ module AftershipAPI::Model
738
739
  :'legacy_id' => :'legacy_id',
739
740
  :'created_at' => :'created_at',
740
741
  :'updated_at' => :'updated_at',
741
- :'last_updated_at' => :'last_updated_at',
742
742
  :'tracking_number' => :'tracking_number',
743
743
  :'slug' => :'slug',
744
744
  :'active' => :'active',
745
745
  :'custom_fields' => :'custom_fields',
746
- :'customer_name' => :'customer_name',
747
746
  :'transit_time' => :'transit_time',
748
- :'origin_country_iso3' => :'origin_country_iso3',
747
+ :'origin_country_region' => :'origin_country_region',
749
748
  :'origin_state' => :'origin_state',
750
749
  :'origin_city' => :'origin_city',
751
750
  :'origin_postal_code' => :'origin_postal_code',
752
751
  :'origin_raw_location' => :'origin_raw_location',
753
- :'destination_country_iso3' => :'destination_country_iso3',
752
+ :'destination_country_region' => :'destination_country_region',
754
753
  :'destination_state' => :'destination_state',
755
754
  :'destination_city' => :'destination_city',
756
755
  :'destination_postal_code' => :'destination_postal_code',
757
756
  :'destination_raw_location' => :'destination_raw_location',
758
- :'courier_destination_country_iso3' => :'courier_destination_country_iso3',
759
- :'emails' => :'emails',
760
- :'expected_delivery' => :'expected_delivery',
757
+ :'courier_destination_country_region' => :'courier_destination_country_region',
758
+ :'courier_estimated_delivery_date' => :'courier_estimated_delivery_date',
761
759
  :'note' => :'note',
762
760
  :'order_id' => :'order_id',
763
761
  :'order_id_path' => :'order_id_path',
@@ -768,7 +766,6 @@ module AftershipAPI::Model
768
766
  :'shipment_type' => :'shipment_type',
769
767
  :'shipment_weight' => :'shipment_weight',
770
768
  :'signed_by' => :'signed_by',
771
- :'smses' => :'smses',
772
769
  :'source' => :'source',
773
770
  :'tag' => :'tag',
774
771
  :'subtag' => :'subtag',
@@ -802,9 +799,8 @@ module AftershipAPI::Model
802
799
  :'latest_estimated_delivery' => :'latest_estimated_delivery',
803
800
  :'shipment_tags' => :'shipment_tags',
804
801
  :'courier_connection_id' => :'courier_connection_id',
805
- :'next_couriers' => :'next_couriers',
806
- :'tracking_origin_country' => :'tracking_origin_country',
807
- :'tracking_destination_country' => :'tracking_destination_country',
802
+ :'tracking_origin_country_region' => :'tracking_origin_country_region',
803
+ :'tracking_destination_country_region' => :'tracking_destination_country_region',
808
804
  :'tracking_postal_code' => :'tracking_postal_code',
809
805
  :'tracking_state' => :'tracking_state',
810
806
  :'carbon_emissions' => :'carbon_emissions',
@@ -813,6 +809,11 @@ module AftershipAPI::Model
813
809
  :'failed_delivery_attempts' => :'failed_delivery_attempts',
814
810
  :'signature_requirement' => :'signature_requirement',
815
811
  :'delivery_location_type' => :'delivery_location_type',
812
+ :'aftership_tracking_url' => :'aftership_tracking_url',
813
+ :'aftership_tracking_order_url' => :'aftership_tracking_order_url',
814
+ :'first_mile' => :'first_mile',
815
+ :'last_mile' => :'last_mile',
816
+ :'customers' => :'customers',
816
817
  }
817
818
  end
818
819
 
@@ -929,3 +930,4 @@ module AftershipAPI::Model
929
930
  end
930
931
  end
931
932
  end
933
+
@@ -2,9 +2,10 @@
2
2
  # Do not edit the class manually.
3
3
  module AftershipAPI::Model
4
4
  class DestinationAddressEstimatedDeliveryDateRequest
5
+
5
6
  # The country/region of the destination location where the package will be delivered. Use 3 letters of ISO 3166-1 country code.
6
- # country: String;
7
- attr_accessor :country
7
+ # country_region: String;
8
+ attr_accessor :country_region
8
9
 
9
10
  # State, province, or the equivalent location of the destination address where the package will be delivered.Either `destination_address.state` or `destination_address.postal_code` is required.
10
11
  # state?: String;
@@ -33,8 +34,8 @@ module AftershipAPI::Model
33
34
  h[k.to_sym] = v
34
35
  }
35
36
 
36
- if attributes.key?(:'country')
37
- self.country = attributes[:'country']
37
+ if attributes.key?(:'country_region')
38
+ self.country_region = attributes[:'country_region']
38
39
  end
39
40
 
40
41
  if attributes.key?(:'state')
@@ -57,7 +58,7 @@ module AftershipAPI::Model
57
58
  # Attribute type mapping.
58
59
  def self.openapi_types
59
60
  {
60
- :'country' => :'String',
61
+ :'country_region' => :'String',
61
62
  :'state' => :'String',
62
63
  :'city' => :'String',
63
64
  :'postal_code' => :'String',
@@ -68,7 +69,7 @@ module AftershipAPI::Model
68
69
  # Attribute mapping from ruby-style variable name to JSON key.
69
70
  def self.attribute_map
70
71
  {
71
- :'country' => :'country',
72
+ :'country_region' => :'country_region',
72
73
  :'state' => :'state',
73
74
  :'city' => :'city',
74
75
  :'postal_code' => :'postal_code',
@@ -189,3 +190,4 @@ module AftershipAPI::Model
189
190
  end
190
191
  end
191
192
  end
193
+
@@ -2,9 +2,10 @@
2
2
  # Do not edit the class manually.
3
3
  module AftershipAPI::Model
4
4
  class DestinationAddressEstimatedDeliveryDateResponse
5
+
5
6
  # The country/region of the destination location where the package will be delivered. Use 3 letters of ISO 3166-1 country code.
6
- # country: String;
7
- attr_accessor :country
7
+ # country_region: String;
8
+ attr_accessor :country_region
8
9
 
9
10
  # State, province, or the equivalent location of the destination address where the package will be delivered.Either `destination_address.state` or `destination_address.postal_code` is required.
10
11
  # state?: String;
@@ -33,8 +34,8 @@ module AftershipAPI::Model
33
34
  h[k.to_sym] = v
34
35
  }
35
36
 
36
- if attributes.key?(:'country')
37
- self.country = attributes[:'country']
37
+ if attributes.key?(:'country_region')
38
+ self.country_region = attributes[:'country_region']
38
39
  end
39
40
 
40
41
  if attributes.key?(:'state')
@@ -57,7 +58,7 @@ module AftershipAPI::Model
57
58
  # Attribute type mapping.
58
59
  def self.openapi_types
59
60
  {
60
- :'country' => :'String',
61
+ :'country_region' => :'String',
61
62
  :'state' => :'String',
62
63
  :'city' => :'String',
63
64
  :'postal_code' => :'String',
@@ -68,7 +69,7 @@ module AftershipAPI::Model
68
69
  # Attribute mapping from ruby-style variable name to JSON key.
69
70
  def self.attribute_map
70
71
  {
71
- :'country' => :'country',
72
+ :'country_region' => :'country_region',
72
73
  :'state' => :'state',
73
74
  :'city' => :'city',
74
75
  :'postal_code' => :'postal_code',
@@ -189,3 +190,4 @@ module AftershipAPI::Model
189
190
  end
190
191
  end
191
192
  end
193
+