diff --git a/CHANGELOG.md b/CHANGELOG.md index c241116d..dbe729a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Next Release +- Adds `surcharges` property and model to `Rate` object - Fix pagination parameters for `getNextPage` in `User` service ## v7.4.1 (2024-07-24) diff --git a/src/main/java/com/easypost/model/Rate.java b/src/main/java/com/easypost/model/Rate.java index f691fa2d..be613a2b 100644 --- a/src/main/java/com/easypost/model/Rate.java +++ b/src/main/java/com/easypost/model/Rate.java @@ -1,5 +1,7 @@ package com.easypost.model; +import java.util.List; + import lombok.Getter; @Getter @@ -19,4 +21,5 @@ public class Rate extends EasyPostResource { private String shipmentId; private String carrierAccountId; private String billingType; + private List surcharges; } diff --git a/src/main/java/com/easypost/model/Surcharge.java b/src/main/java/com/easypost/model/Surcharge.java new file mode 100644 index 00000000..3fe9eeef --- /dev/null +++ b/src/main/java/com/easypost/model/Surcharge.java @@ -0,0 +1,13 @@ +package com.easypost.model; + +import lombok.Getter; + +@Getter +public final class Surcharge { + private String object; + private String type; + private String amount; + private String listAmount; + private String retailAmount; + private String currency; +}