Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 0ecf4c8

Browse files
authored
Merge pull request #64 from panxl6/bugfix/ABU23974
fix: change some field type to string to contain zone info
2 parents 5b9c5f7 + d96eaf0 commit 0ecf4c8

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and 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)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

aftership-sdk/src/main/java/com/aftership/sdk/model/tracking/NewTracking.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.aftership.sdk.model.tracking;
22

3-
import java.util.Date;
43
import java.util.Map;
54

65
import 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

aftership-sdk/src/main/java/com/aftership/sdk/model/tracking/Tracking.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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

aftership-sdk/src/main/java/com/aftership/sdk/model/tracking/UpdateTracking.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import lombok.Data;
44

5-
import java.util.Date;
65
import 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.

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ buildscript {
1717

1818
allprojects {
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 {

0 commit comments

Comments
 (0)