[PLA-1861] Updates and tweaks for dealing with single use codes. #75
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.
PR Type
Enhancement, Tests
Description
BeamService::getSingleUseCodeData
method.Changes walkthrough 📝
9 files
ClaimBeamMutation.php
Refactor single-use code handling in ClaimBeamMutation
src/GraphQL/Mutations/ClaimBeamMutation.php
BeamService::getSingleUseCodeData
forsingle-use codes.
GetPendingClaimsQuery.php
Enhance single-use code handling and validation in
GetPendingClaimsQuery
src/GraphQL/Queries/GetPendingClaimsQuery.php
BeamService::getSingleUseCodeData
to handle single-use codes.BeamExists
.BeamClaim.php
Refactor single-use code handling in BeamClaim model
src/Models/Laravel/BeamClaim.php
BeamService::getSingleUseCodeData
inscopeWithSingleUseCode
.HasCodeScope.php
Enhance single-use code handling in HasCodeScope trait
src/Models/Laravel/Traits/HasCodeScope.php
BeamService::getSingleUseCodeData
.HasSingleUseCodeScope.php
Refactor single-use code handling in HasSingleUseCodeScope trait
src/Models/Laravel/Traits/HasSingleUseCodeScope.php
BeamService::getSingleUseCodeData
forsingle-use codes.
BeamExists.php
Enhance BeamExists rule to handle single-use codes
src/Rules/BeamExists.php
BeamService::getSingleUseCodeData
.CanClaim.php
Refactor single-use code handling in CanClaim rule
src/Rules/CanClaim.php
BeamService::getSingleUseCodeData
forsingle-use codes.
VerifySignedMessage.php
Refactor single-use code handling in VerifySignedMessage rule
src/Rules/VerifySignedMessage.php
BeamService::getSingleUseCodeData
forsingle-use codes.
BeamService.php
Add and utilize getSingleUseCodeData method in BeamService
src/Services/BeamService.php
getSingleUseCodeData
method to handle single-use code parsing.isSingleUse
method to usegetSingleUseCodeData
.1 files
GetPendingClaimsTest.php
Add test for pending claims with single-use code
tests/Feature/GraphQL/Queries/GetPendingClaimsTest.php