This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +19
-17
lines changed
aftership-sdk/src/main/java/com/aftership/sdk/model/tracking Expand file tree Collapse file tree 6 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ 4.0.0] - 2024-01-03
8+ ### Fixed
9+ - Change fields from ` Date ` to ` String ` to contain zone info.
10+
711## [ 3.0.0] - 2023-11-24
812### Added
913- Support new api versions 2023-10 (https://github.com/AfterShip/aftership-sdk-java/pull/60 )
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ Requirements:
1818<dependency>
1919 <groupId>com.aftership</groupId>
2020 <artifactId>aftership-sdk</artifactId>
21- <version>3 .0.0</version>
21+ <version>4 .0.0</version>
2222</dependency>
2323```
2424
2525### Gradle
2626
2727``` text
28- implementation "com.aftership:aftership-sdk:3 .0.0"
28+ implementation "com.aftership:aftership-sdk:4 .0.0"
2929```
3030
3131
Original file line number Diff line number Diff line change 11package com .aftership .sdk .model .tracking ;
22
3- import java .util .Date ;
43import java .util .Map ;
54
65import lombok .Data ;
@@ -172,9 +171,9 @@ public class NewTracking {
172171 /**
173172 * Date and time of the order created
174173 *
175- * <p>Date
174+ * <p>String
176175 */
177- private Date orderDate ;
176+ private String orderDate ;
178177
179178 /**
180179 * Text field for order number
Original file line number Diff line number Diff line change @@ -177,9 +177,9 @@ public class Tracking {
177177 /**
178178 * Date and time of the order created
179179 *
180- * <p>Date
180+ * <p>String
181181 */
182- private Date orderDate ;
182+ private String orderDate ;
183183
184184 /**
185185 * Origin country of the tracking. ISO Alpha-3 (three letters).
@@ -198,16 +198,16 @@ public class Tracking {
198198 /**
199199 * Date and time the tracking was picked up
200200 *
201- * <p>DateTime
201+ * <p>String
202202 */
203- private Date shipmentPickupDate ;
203+ private String shipmentPickupDate ;
204204
205205 /**
206206 * Date and time the tracking was delivered
207207 *
208- * <p>DateTime
208+ * <p>String
209209 */
210- private Date shipmentDeliveryDate ;
210+ private String shipmentDeliveryDate ;
211211
212212 /**
213213 * Shipment type provided by carrier (if any).
@@ -393,7 +393,7 @@ public class Tracking {
393393 *
394394 * <p><font color="red">String or Null</font>
395395 */
396- private Date firstAttemptedAt ;
396+ private String firstAttemptedAt ;
397397
398398 /**
399399 * Delivery instructions (delivery date or address) can be modified by visiting the link if
Original file line number Diff line number Diff line change 22
33import lombok .Data ;
44
5- import java .util .Date ;
65import java .util .Map ;
76
87/**
@@ -146,9 +145,9 @@ public class UpdateTracking {
146145 /**
147146 * Date and time of the order created
148147 *
149- * <p>Date
148+ * <p>String
150149 */
151- private Date orderDate ;
150+ private String orderDate ;
152151
153152 /**
154153 * The carrier’s shipment type. When you input this field, AfterShip will not get updates from the carrier.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ buildscript {
1717
1818allprojects {
1919 group ' com.aftership'
20- version ' 3 .0.0'
20+ version ' 4 .0.0'
2121
2222 repositories {
2323 mavenCentral()
@@ -110,7 +110,7 @@ project(':aftership-sample') {
110110 dependencies {
111111// compile project(':aftership-sdk')
112112 implementation " com.squareup.okhttp3:okhttp:${ okhttpVersion} "
113- implementation " com.aftership:aftership-sdk:3 .0.0"
113+ implementation " com.aftership:aftership-sdk:4 .0.0"
114114 }
115115
116116 jar {
You can’t perform that action at this time.
0 commit comments