Repository navigation
6.2.1
Release 6.2.1 (#377)
This release updates the OAuthScope class to align with the latest API specification, removing deprecated scopes, adding new ones, and ensuring accuracy and maintainability. It also updates related integration tests to use the correct scopes and introduces a comprehensive unit test suite for OAuthScope.
OAuthScope class updates:
- Removed deprecated scopes
issuing:card-mgmtandissuing:client, as well asmarketplace, and replaced them with the appropriatecard-managementscopes. Added new scopes:compliance-requests,flow:reflow,issuing-disputes, andvault:tokens-metadata. Properties are now consistently ordered alphabetically, and documentation was improved. [1] [2] [3] [4]
Test updates:
- Updated all integration tests (
AbstractIssuingIntegrationTest.php,TransactionsIntegrationTest.php, andSandboxTestFixture.php) to use the newcard-managementscope properties instead of the retired ones, with clarifying comments. [1] [2] [3]
New unit tests for OAuthScope:
- Added
OAuthScopeTest.phpto verify that all documented scopes are present, that no wire value is blank or duplicated, and that properties are declared in alphabetical order. Also includes tests to distinguish similar-looking scopes and to check for spec sync correctness.