Repository navigation
feat: expose typed Problem details and original error responses - #141
Merged
Merged
Conversation
Expose typed Problem details and preserve error response context. Add focused regression coverage and concise integration examples.
Fall back to the original body for incomplete or invalid Problem data. Avoid array-to-string warnings during hydration and include Problem details or titles in error messages.
Keep existing stringable values working while rejecting malformed error fields. Place the user-facing error handling example beside basic usage.
matoous
marked this pull request as ready for review
October 26, 2026 18:35
Merged
matoous
pushed a commit
that referenced
this pull request
Oct 26, 2026
Automated sumup-php SDK release --- ## [0.1.8](v0.1.7...v0.1.8) (2026-10-26) ### Features * expose typed Problem details and original error responses ([#141](#141)) ([0c03321](0c03321)) ### Bug Fixes * use patched PHP runtimes in workflows ([#139](#139)) ([65b307e](65b307e)) ### Chores * synced file(s) with sumup/apis ([#135](#135)) ([b6878e7](b6878e7)) * synced file(s) with sumup/apis ([#138](#138)) ([0ff3d57](0ff3d57)) * update create-github-app-token ([a2879b9](a2879b9)) ### Build System & Dependencies * **deps:** bump actions/create-github-app-token from 3.2.0 to 3.3.0 ([#131](#131)) ([05f51c6](05f51c6)) * **deps:** bump github.com/pb33f/libopenapi from 0.41.3 to 0.41.6 in /codegen ([#134](#134)) ([984a7aa](984a7aa)) * **deps:** bump reviewdog/action-actionlint from 1.79.1 to 1.80.2 ([#132](#132)) ([9899268](9899268)) * **deps:** bump reviewdog/action-actionlint from 1.80.2 to 1.80.4 ([#140](#140)) ([c3c9b10](c3c9b10)) * **deps:** bump shivammathur/setup-php from 2.37.2 to 2.40.0 ([#133](#133)) ([972c0ba](972c0ba)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: sumup-release-bot[bot] <241716704+sumup-release-bot[bot]@users.noreply.github.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API exceptions now provide
getProblem(): ?Problem, so integrations can read Problem fields without inspecting a mixed response body.getResponse()retains the original response for documented and unexpected errors, including its headers and text. Existing body access remains available. Problem details or titles appear in exception messages. Incomplete or malformed Problem bodies remain available as raw data in API errors, and Guzzle connection failures retain their original cause.The README shows the common error handling path beside SDK usage, with access to the original response for other error details.
Related to sumup/sumup-py#434 and the Python SDK changes in sumup/sumup-py#436.