Skip to content

Add merchant details API integration and opening hours logic#349

Merged
StuartFerguson merged 1 commit intomasterfrom
task/#348_use_openinghours_in_pos
Apr 21, 2026
Merged

Add merchant details API integration and opening hours logic#349
StuartFerguson merged 1 commit intomasterfrom
task/#348_use_openinghours_in_pos

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Integrated a new API call to fetch merchant details and opening hours.

  • Added GetMerchant to IApiClient and implemented in ApiClient.
  • Introduced MerchantResponse and OpeningHoursResponse models.
  • Updated MerchantConfig to store MerchantResponse.
  • MerchantRuntime now fetches and stores merchant details during initialization.
  • Main loop now uses per-day opening hours if available, falling back to defaults otherwise.
  • Improved logging for merchant contract responses.
  • Cleaned up and added necessary using statements.
    closes Respect Merchant Opening Hours and Schedule #348

Integrated a new API call to fetch merchant details and opening hours.
- Added GetMerchant to IApiClient and implemented in ApiClient.
- Introduced MerchantResponse and OpeningHoursResponse models.
- Updated MerchantConfig to store MerchantResponse.
- MerchantRuntime now fetches and stores merchant details during initialization.
- Main loop now uses per-day opening hours if available, falling back to defaults otherwise.
- Improved logging for merchant contract responses.
- Cleaned up and added necessary using statements.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 2 duplication

Metric Results
Complexity 0
Duplication 2

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes. Give us feedback

@StuartFerguson StuartFerguson merged commit 238ebe7 into master Apr 21, 2026
6 of 7 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.

Respect Merchant Opening Hours and Schedule

1 participant