Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds surcharges property and model to Rate object #328

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
- Fix pagination parameters for `getNextPage` in `User` service

## v7.4.1 (2024-07-24)
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/easypost/model/Rate.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.easypost.model;

import java.util.List;

import lombok.Getter;

@Getter
Expand All @@ -19,4 +21,5 @@ public class Rate extends EasyPostResource {
private String shipmentId;
private String carrierAccountId;
private String billingType;
private List<Surcharge> surcharges;
}
13 changes: 13 additions & 0 deletions src/main/java/com/easypost/model/Surcharge.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.easypost.model;

import lombok.Getter;

@Getter
public final class Surcharge extends EasyPostResource {
private String object;
private String type;
private String amount;
private String list_amount;
private String retail_amount;
Justintime50 marked this conversation as resolved.
Show resolved Hide resolved
private String currency;
}
Loading