Skip to content

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

Merged
Justin Hammond (Justintime50) merged 4 commits into
masterfrom
surcharges
Oct 1, 2026
Merged

Justin Hammond (Justintime50) merged 4 commits into
masterfrom
surcharges

Conversation

@Justintime50

@Justintime50 Justin Hammond (Justintime50) commented Aug 7, 2024 •

Copy link
Copy Markdown
Member

Description

Adds surcharges to Rate with a Surcharge model, including category, amount, and currency fields. The changelog entry is in the current Next Release section.

Testing

  • mvn -DskipTests compile (passed)
  • mvn -Dtest=RateTest test (passed)
  • mvn test (not fully green: unrelated tests fail due expired or missing EasyVCR cassette interactions and fixtures.)

Pull Request Type

  • Bug fix
  • New feature
  • Breaking change
  • Improvement

@Justintime50
Justin Hammond (Justintime50) requested a review from a team August 7, 2024 15:46
Comment thread src/main/java/com/easypost/model/Surcharge.java Outdated
@Justintime50

Copy link
Copy Markdown
Member Author

Going to close until needed

@AlexanderIskander

Copy link
Copy Markdown

Hey, is there any plans to add this feature? Thanks

@Justintime50

Copy link
Copy Markdown
Member Author

Hey, is there any plans to add this feature? Thanks

I'll check with our internal teams on where this ended up

@Justintime50

Copy link
Copy Markdown
Member Author

Looks like this was indeed implemented (available by talking to our support team if you don't have it enabled already)

I will get this implemented across our suite of libs shortly.

@Justintime50

Copy link
Copy Markdown
Member Author

Alexander Iskander (@AlexanderIskander) this will go live probably next week (we have some additional pending changes we may pair with this next release), keep an eye out! Thanks for bringing it up.

@Justintime50
Justin Hammond (Justintime50) merged commit 0947f39 into master Oct 1, 2026
24 checks passed
Justin Hammond (Justintime50) added a commit to EasyPost/easypost-node that referenced this pull request Oct 1, 2026
## Summary
- ports EasyPost/easypost-java#328 to easypost-node
- adds a new Surcharge model
- adds `surcharges` to Rate
- adds changelog note under Next Release
- Renames `RESOURCES` to `SERVICES` because AI is dumb and assumed a
standalone model belonged there (it does not, rename makes it much
clearer what the list is)

## Validation
- npm run typescript:source
- npm run lint -- src/models/rate.ts src/models/surcharge.ts
src/services/base_service.ts
@AlexanderIskander

Copy link
Copy Markdown

Thanks! Appreciate the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants