Prepare version 3.1.0, add Trust API#68
Merged
Merged
Conversation
Co-authored-by: barnett <barnett@trolley.com>
Co-authored-by: barnett <barnett@trolley.com>
Co-authored-by: barnett <barnett@trolley.com>
Co-authored-by: barnett <barnett@trolley.com>
Co-authored-by: barnett <barnett@trolley.com>
Co-authored-by: barnett <barnett@trolley.com>
Co-authored-by: barnett <barnett@trolley.com>
Co-authored-by: barnett <barnett@trolley.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 67fc30c. Configure here.
Strip batchId from query params in paymentsInternal before the API request, matching other pagination helpers. Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Fixes #66
Prepare the PHP SDK for a non-breaking endpoint coverage release.
Summary
3.1.0.trustalias.RecipientAccountGateway::update()to returnRecipientAccountinstead ofRecipient.ResourceCollectionwithout dropping existing PHP version compatibility.production.Open PR/issue review
Compatibility notes
>=5.4to avoid breaking existing users.Note
Medium Risk
Pagination and default
productionenvironment change runtime behavior for some callers; changes are mostly additive but affect how collections fetch next pages and which API host is used when env was unset.Overview
Releases 3.1.0 as an additive API-coverage update: new Trust/verification gateway (
verification()andtrust()), balance helpers (all,paymentrails,paypal), top-levelPaymentGateway::find, and recipient offline payment listing with paging.Pagination and collections are tightened so
foreachover results keeps the right path context (batchId, balance segment, recipient id) and only auto-pages when a pager is configured; PHP 8.1 iterator compatibility is added via#[\ReturnTypeWillChange]without raising the minimum PHP version.Models gain documented API fields (e.g. batch
quoteExpiredAt/tags, expanded Payment withholding/return fields, invoice payment and recipient account fields).RecipientAccountGateway::updatenow returns aRecipientAccount. DefaultConfigurationenvironment isproduction. Unit tests cover pagination and model defaults.Reviewed by Cursor Bugbot for commit 584b365. Bugbot is set up for automated code reviews on this repo. Configure here.