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

Commit 3e4b840

Browse files
authored
Merge pull request #66 from panxl6/feature/ABU-28637
feat: add courier_connection_id.
2 parents f165334 + 7272048 commit 3e4b840

5 files changed

Lines changed: 14 additions & 4 deletions

File tree

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.1] - 2024-03-28
8+
### Added
9+
- Add courier_connection_id.
10+
711
## [4.0.0] - 2024-01-03
812
### Fixed
913
- Change fields from `Date` to `String` to contain zone info.

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>4.0.0</version>
21+
<version>4.0.1</version>
2222
</dependency>
2323
```
2424

2525
### Gradle
2626

2727
```text
28-
implementation "com.aftership:aftership-sdk:4.0.0"
28+
implementation "com.aftership:aftership-sdk:4.0.1"
2929
```
3030

3131

aftership-sample/src/main/java/com/aftership/sample/tracking/CreateTrackingSample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static void createTracking(AfterShip afterShip) {
2727
newTracking.setEmails(new String[] {"email@yourdomain.com", "another_email@yourdomain.com"});
2828
newTracking.setOrderId("ID 1234");
2929
newTracking.setOrderIdPath("http://www.aftership.com/order_id=1234");
30+
newTracking.setCourierConnectionId("YOUR_CONNECTION_ID");
3031
newTracking.setCustomFields(
3132
new HashMap<String, String>(2) {
3233
{

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,9 @@ public class NewTracking {
191191
* Used to add tags to your shipments to help categorize and filter them easily.
192192
*/
193193
private String[] shipmentTags;
194+
195+
/**
196+
* If you’ve connected multiple accounts for a single carrier on AfterShip, you can now use the courier_connection_id field to tell AfterShip which carrier account you’ve used to handle a shipment so we can track it.
197+
*/
198+
private String courierConnectionId;
194199
}

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 '4.0.0'
20+
version '4.0.1'
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:4.0.0"
113+
implementation "com.aftership:aftership-sdk:4.0.1"
114114
}
115115

116116
jar {

0 commit comments

Comments
 (0)