Skip to content

Commit

Permalink
feat: adds surcharges property and model to Rate object
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Aug 7, 2024
1 parent d8a0e8e commit fa5741b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
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;
private String currency;
}

0 comments on commit fa5741b

Please sign in to comment.