Skip to content

feat: add branch details endpoint#30

Merged
akalipetis merged 6 commits into
mainfrom
feature/ex-base-02-branch-details
May 25, 2026
Merged

feat: add branch details endpoint#30
akalipetis merged 6 commits into
mainfrom
feature/ex-base-02-branch-details

Conversation

@akalipetis
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for fetching employer branch details (service EX_BASE_02) by introducing a new BusinessBranch model and exposing a corresponding ErganiClient method, with unit tests covering parsing and client behavior.

Changes:

  • Introduce BusinessBranch dataclass with parsing helpers for the EX_BASE_02 response shape.
  • Add ErganiClient.get_branch_details() to execute EX_BASE_02 and parse the JSON response.
  • Add unit tests validating parsing and the new client method behavior (including 204/No Content).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
ergani/models.py Adds BusinessBranch model and parsing logic for EX_BASE_02.
ergani/client.py Adds get_branch_details() client method that executes EX_BASE_02.
tests/test_branch_details.py Adds tests for parsing and client integration around branch details.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ergani/models.py
Comment thread ergani/models.py Outdated
Comment thread ergani/client.py
Comment thread tests/test_branch_details.py
Copy link
Copy Markdown
Contributor

@parisk parisk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a non blocking comment, but requesting changes to ensure we review copilot's comments.

Comment thread ergani/client.py Outdated
Base automatically changed from akalipetis-execute-services to main May 19, 2026 16:56
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 25, 2026

Deploying ergani with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0342699
Status: ✅  Deploy successful!
Preview URL: https://0a29047c.ergani.pages.dev
Branch Preview URL: https://feature-ex-base-02-branch-de.ergani.pages.dev

View logs

@akalipetis akalipetis merged commit a166f1a into main May 25, 2026
2 checks passed
@akalipetis akalipetis deleted the feature/ex-base-02-branch-details branch May 25, 2026 06:47
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.

3 participants