diff --git a/CHANGELOG.md b/CHANGELOG.md index d39070a8b..882708daa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Next Release +- Adds `surcharges` property and model to `Rate` object - Removes the deprecated, unusable `addCreditCardToUser` function - Stripe has disabled the ability to pass plain credit card details over the wire and now requires using [Stripe.js/Elements/Checkout](https://support.stripe.com/questions/card-tokenization-restrictions-using-publishable-keys). Follow the [Decentralized (EasyPost-Manage Billing) Guide](https://docs.easypost.com/guides/get-started-with-forge/easypost-managed-billing-guide#referralcustomer-billing-management) for more details on the new flow to use. - Makes `referralCustomer.retrieveEasypostStripeApiKey` public to help facilitate adding credit cards using Stripe.js diff --git a/src/main/java/com/easypost/model/Rate.java b/src/main/java/com/easypost/model/Rate.java index ca069612a..62603f6f9 100644 --- a/src/main/java/com/easypost/model/Rate.java +++ b/src/main/java/com/easypost/model/Rate.java @@ -1,5 +1,6 @@ package com.easypost.model; +import java.util.List; import java.util.Map; import lombok.Getter; @@ -22,4 +23,5 @@ public class Rate extends EasyPostResource { private String carrierAccountId; private String billingType; private Map details; + 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 000000000..47f2a55a8 --- /dev/null +++ b/src/main/java/com/easypost/model/Surcharge.java @@ -0,0 +1,14 @@ +package com.easypost.model; + +import lombok.Getter; + +@Getter +public final class Surcharge { + private String object; + private String type; + private String category; + private String amount; + private String listAmount; + private String retailAmount; + private String currency; +}