Skip to content

Commit 1a14a7a

Browse files
authored
Prep major release for v7.0.0 (#295)
1 parent 76d1207 commit 1a14a7a

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CHANGELOG
22

3-
## Next Major Release
3+
## v7.0.0 (2023-12-06)
44

55
- Removes `withCarbonOffset` parameter from `create`, `buy`, and `regenerateRates` functions of the Shipment service as EasyPost now offers Carbon Neutral shipments by default for free
66
- Removes the undocumented `createAndBuy` function from the Batch service. The proper usage is to create a batch first and buy it separately

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Add this to your project's POM:
1616
<dependency>
1717
<groupId>com.easypost</groupId>
1818
<artifactId>easypost-api-client</artifactId>
19-
<version>6.9.1</version>
19+
<version>7.0.0</version>
2020
</dependency>
2121
```
2222

@@ -25,7 +25,7 @@ Add this to your project's POM:
2525
Add this to your project's build file:
2626

2727
```groovy
28-
implementation "com.easypost:easypost-api-client:6.9.1"
28+
implementation "com.easypost:easypost-api-client:7.0.0"
2929
```
3030

3131
**NOTE:** [Google Gson](http://code.google.com/p/google-gson/) is required.

UPGRADE_GUIDE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,37 @@
22

33
Use the following guide to assist in the upgrade process of the `easypost-java` library between major versions.
44

5+
- [Upgrading from 6.x to 7.x](#upgrading-from-6x-to-70)
56
- [Upgrading from 5.x to 6.0](#upgrading-from-5x-to-60)
67
- [Upgrading from 4.x to 5.0](#upgrading-from-4x-to-50)
78

9+
## Upgrading from 6.x to 7.0
10+
11+
### 7.0 High Impact Changes
12+
13+
- [Carbon Offset Removed](#70-carbon-offset-removed)
14+
15+
### 7.0 Low Impact Changes
16+
17+
- [createAndBuy() Batch Function Removed](#70-createandbuy-batch-function-removed)
18+
- [Change return type of all() function in webhook service](#70-change-return-type-of-all-function-in-webhook-service)
19+
20+
### 7.0 Carbon Offset Removed
21+
22+
EasyPost now offers Carbon Neutral shipments by default for free! Because of this, there is no longer a need to specify if you want to offset the carbon footprint of a shipment. The `withCarbonOffset` parameter of the `create`, `buy`, and `regenerateRates` shipment functions have been removed as a result, as well as the overload functions that have `withCarbonOffset` parameter. This is a high-impact change for those using `EndShippers` as the function interfaces have changed. You will need to inspect the callsites to create and buy shipments to ensure that the EndShipper parameter is being passed in the correct place now that the `withCarbonOffset` parameter has been removed.
23+
24+
### 7.0 createAndBuy Batch Function Removed
25+
26+
The `createAndBuy` Batch endpoint has been deprecated and removed from the library. The correct procedure is to first create a batch and then purchase it with two separate API calls.
27+
28+
### 7.0 Change return type of all function in webhook service
29+
30+
The return type of `all` function in webhook service has been changed from `WebhookCollection` to `a list of webhooks`, the reason of this change is this endpoint returns a unpaginated list of webhooks. Therefore, there is no need to have `WebhookCollection` class which wraps the list of webhooks.
31+
832
## Upgrading from 5.x to 6.0
933

34+
**NOTICE:** v6 is deprecated.
35+
1036
### 6.0 High Impact Changes
1137

1238
- [Client Instance](#60-client-instance)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.9.1
1+
7.0.0

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.easypost</groupId>
77
<artifactId>easypost-api-client</artifactId>
88

9-
<version>6.9.1</version>
9+
<version>7.0.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>com.easypost:easypost-api-client</name>

0 commit comments

Comments
 (0)