Skip to content

fix(sdk): reject negative payment amounts in constraint evaluators - #391

Open
aksharprabhudesai wants to merge 1 commit into
google-agentic-commerce:mainfrom
aksharprabhudesai:fix/negative-payment-amounts
Open

aksharprabhudesai wants to merge 1 commit into
google-agentic-commerce:mainfrom
aksharprabhudesai:fix/negative-payment-amounts

Conversation

@aksharprabhudesai

Copy link
Copy Markdown

Description

  • Ensure AmountRangeEvaluator rejects negative payment amounts even when min is absent.

  • Ensure BudgetEvaluator rejects negative payment amounts to prevent spend deduction.

  • Add unit tests for negative payment amounts in AmountRangeEvaluator and BudgetEvaluator.

  • Follow the CONTRIBUTING Guide.

  • Make your Pull Request title in the https://www.conventionalcommits.org/ specification.

  • Ensure the tests and linter pass

  • Appropriate docs were updated (if necessary)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant