Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/easypost/model/Rate.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.easypost.model;

import java.util.List;
import java.util.Map;

import lombok.Getter;
Expand All @@ -22,4 +23,5 @@ public class Rate extends EasyPostResource {
private String carrierAccountId;
private String billingType;
private Map<String, String> details;
private List<Surcharge> surcharges;
}
14 changes: 14 additions & 0 deletions src/main/java/com/easypost/model/Surcharge.java
Original file line number Diff line number Diff line change
@@ -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;
}
Loading