Skip to content

Add account().getAccount() for GET /v1/account - #150

Merged
JoaoFSCruz merged 1 commit into
mainfrom
feature/msd-15363-get-account
Nov 19, 2026
Merged

JoaoFSCruz merged 1 commit into
mainfrom
feature/msd-15363-get-account

Conversation

@JoaoFSCruz

Copy link
Copy Markdown
Contributor

Changelist

  • ms.account().getAccount() for GET /v1/account
  • Response models in com.mailersend.sdk.account: AccountDetails and its nested classes
  • AccountTest: request, full response, whatsapp and webhooks.limit as null
  • README section and table-of-contents entries for "Account / Get account"

Risks

None.

@JoaoFSCruz JoaoFSCruz self-assigned this Nov 5, 2026
@mailerlite-kritika

Copy link
Copy Markdown

Re-runViewConfidence Score: 4/5

[Low risk] The review lists no sources or checks beyond the diff, so the calls to MailerSendApi.getRequest, MailerSendResponse and the test helpers (CapturingHttpClient, VcrRecorder, TestHelper) are unverified; the diff does not show that they exist with these signatures. The change is a read-only GET that adds a new public accessor and response models, so a revert undoes it and the risk rests on the new API surface.

Summary

Adds ms.account().getAccount() for GET /v1/account with response models

The change adds an Account accessor to MailerSend and a getAccount() method that calls /account through MailerSendApi.getRequest. Gson models cover the nested usage, rate-limit, resource and add-on objects, and nullable fields (whatsapp, webhooks.limit) are typed as object references. The README gains a section and table-of-contents entries.

What's good

  • Nullable limit is modelled as Integer and a nullable whatsapp as an object reference, with tests for both null cases.
  • Tests assert method, URL, auth header and the full response, plus a 401 failure path.
Review context · 0/5 commands
  • Commands run: none

Reviews (1) · Last reviewed commit: "feat(account): add account().getAccount(..." · claude-sonnet-5-5

@JoaoFSCruz
JoaoFSCruz merged commit 32559e4 into main Nov 19, 2026
4 checks passed
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.

1 participant