Prepare version 3.1.0, add Trust API#68
Open
barnett wants to merge 7 commits into
Open
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>
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 79f4020. Configure here.
Co-authored-by: barnett <barnett@trolley.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
Changes affect payment, recipient, and compliance-related gateways and default environment behavior; pagination fixes alter runtime HTTP patterns but are covered by new unit tests.
Overview
Prepares a 3.1.0 release that broadens API coverage and tightens pagination behavior without removing existing entry points.
Adds Trust / verification support via a new
VerificationGateway(search,expire,trigger, watchlist helpers) and aGateway::trust()alias. Balances gainall,paymentrails, andpaypalhelpers; balance search can hit the root or a path segment, withsearchPageso paging keeps the segment. Top-level payment lookup is added onPaymentGateway::find. Recipient offline payments are listable with paging that preservesrecipientId.Several models map more documented API fields (batch quote/tags, payment tax/return/withholding fields, recipient tags, recipient account contact/card/mailing fields, invoice payment metadata, offline payment activity/tax flags).
RecipientAccountGateway::updatenow returns aRecipientAccountinstead of aRecipient.ResourceCollectionis updated for PHP 8.1 iterator compatibility, safer empty access, and paging only when a pager is configured—so one-off verification mutation responses do not auto-fetch further “search” pages. Default config environment is nowproduction. Unit tests cover pagination context preservation and verification paging rules.Reviewed by Cursor Bugbot for commit 1fa03a5. Bugbot is set up for automated code reviews on this repo. Configure here.