Skip to content

Commit b163a6f

Browse files
authored
Merge pull request #209 from EasyPost/v6.0.0-rc1
chore: prepare v6.0.0-rc1 for release
2 parents 68e75c5 + 3aa26ac commit b163a6f

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

CHANGELOG.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,45 @@
11
# CHANGELOG
22

3-
## V6 (Next release)
3+
## v6.0.0-rc1 (2022-11-30)
4+
5+
### Breaking Changes
46

57
- Library is now thread-safe
6-
- Initialize a `EasyPostClient` object with an API key, connection and readtime milliseconds are optional, otherwise it will be set to default.
7-
- All methods (i.e. `create`, `retrieve`, retrieve `all` of a resource) exist in services, accessed via property of the client
8+
- Initialize an `EasyPostClient` object with an API key. Optionally set connection and readtime params
9+
- All methods (i.e. `create`, `retrieve`, `all`) exist in services, accessed via property of the client (eg: `client.shipment.create()`)
810
- E.g. Static method -> `Shipment shipment = client.address.create(params)`
9-
- E.g. Instance method -> `Shipment boughtShipment = client.shipment.buy(shipmentID, lowestRate)`
11+
- E.g. Instance methods are now static -> `Shipment boughtShipment = client.shipment.buy(shipmentID, lowestRate)`
1012
- All functions are now taking object ID instead of an object, which means the functions are returning the response value directly instead of updating the current object
1113
- E.g. `Shipment boughtShipment = client.shipment.buy(shipmentID, lowestRate)`
1214
- Improves error exception handling
1315
- Specific error types for each category of error
1416
- API error message may be an array rather than a string. Arrays will be concatenated (by comma) and returned as a string.
1517
- Removes `createAndVerifyWithCarrier` function
1618
- Removes `verifyWithCarrier` function
17-
- Changes the type of Insurance `Amount` from Float to String
1819
- Removes `getUpdate` and `setUpdate` from Tracker class
1920
- Removes all beta features and corrsponding unit tests
2021
- Removes `serviceCode` from `Rate` class since this value is internal use only
21-
- Converts return type from boolean to void in empty response body functions
22-
- `fundWallet()` and `deletePaymentMethod()` in Billing class
23-
- `createList()` in Tracker class
24-
- `updateEmail()` in ReferralCustomer class
25-
- Adds two missing attributes in the Event class: `pendingUrls` and `completedUrls`
26-
- Changes the type `result` of Event from `EasyPostResource` to `Map<String, Object>`
27-
- AppEngine default timeout is now the same as connection timeout
2822
- Removes invalid function `User.create()` since creating a child-user requires a name
2923
- Removes deprecated class `CreditCard` and its associated classes `PrimaryPaymentMethod`, `SecondaryPaymentMethod`, and `BaseCreditCard`, please use alternative `Billing` class
3024
- Removes all the setters of each object
31-
- Setters are now available via lombok and aren't explicitly in the code anymore
25+
- Removes the `refresh()` function in all classes, please use `retrieve()` function instead
26+
- Removes invalid functions that allow users to make an API request without providing required parameters
27+
- Changes the type of Insurance `Amount` from Float to String
3228
- Changes the type `hasMore` in ReferralCustomerCollection from `boolean` to `Boolean`
3329
- Renames some getters
3430
- Pickup class: `getPickoutRates()` -> `getPickupRates()`
3531
- PaymentMethod class: `getPrimaryPaymentMethodObject()` -> `getPrimaryPaymentMethod()`
3632
- PaymentMethod class: `getSecondaryPaymentMethodObject()` -> `getSecondaryPaymentMethod()`
37-
- Removes the `refresh()` function in all classes, please use `retrieve()` function instead
38-
- Removes invalid functions that allow users to make an API request without providing required parameters
33+
- Converts return type from a boolean to void when we receive an empty response body from the API
34+
- `fundWallet()` and `deletePaymentMethod()` in Billing class
35+
- `createList()` in Tracker class
36+
- `updateEmail()` in ReferralCustomer class
37+
- Changes the type `result` of Event from `EasyPostResource` to `Map<String, Object>`
38+
39+
### Bug Fixes
40+
41+
- Adds two missing attributes in the Event class: `pendingUrls` and `completedUrls`
42+
- AppEngine default timeout is now the same as connection timeout
3943

4044
## v5.10.0 (2022-09-21)
4145

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>5.10.0</version>
19+
<version>6.0.0-rc1</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:5.10.0"
28+
implementation "com.easypost:easypost-api-client:6.0.0-rc1"
2929
```
3030

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

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.10.0
1+
6.0.0-rc1

pom.xml

Lines changed: 2 additions & 2 deletions
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>5.10.0</version>
9+
<version>6.0.0-rc1</version>
1010
<packaging>jar</packaging>
1111

1212
<name>com.easypost:easypost-api-client</name>
@@ -41,7 +41,7 @@
4141
<artifactId>mockito-inline</artifactId>
4242
<version>4.6.1</version>
4343
<scope>test</scope>
44-
</dependency>
44+
</dependency>
4545
<dependency>
4646
<groupId>com.google.code.gson</groupId>
4747
<artifactId>gson</artifactId>

0 commit comments

Comments
 (0)