feat(cards): add UTC daily transaction count limit contract - #913
feat(cards): add UTC daily transaction count limit contract#913DhruvPareek wants to merge 1 commit into
Conversation
Adds `maxTransactionsPerDay` to card create, card update, card responses, and platform `cardConfigs`, mirroring `maxSpendPerDay`: a card-specific and a platform-level cap on the number of transactions a card may authorize during one UTC calendar day. Grid enforces the lower of the two values without replacing either. On update, omitting the field leaves the card's cap unchanged, null clears it, and a positive int32 sets it. Each approved authorization counts once for the UTC day it was authorized. Refunds, reversals, and authorization expiries do not restore capacity during the day. Also updates the path descriptions, request and webhook examples, and the two mintlify card snippets. Sparkcore persistence and enforcement follow in webdev. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YUkUFAQ1ccTXALipsg5x23
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
|
✱ Stainless preview builds for gridThis PR will update the cli kotlin php ruby Edit this comment to update them. They will appear in their respective SDK's changelogs. ⏳ grid-typescript studio⏳ grid-openapi studio⏳ grid-ruby studio⏳ grid-kotlin studio⏳ grid-go studio⏳ grid-python studio⏳ grid-php studio⏳ grid-cli studio⏳ These are partial results; builds are still running. This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |

Adds
maxTransactionsPerDayto card create, card update, card responses, and platformcardConfigs, mirroringmaxSpendPerDay: a card-specific and a platform-level cap on the number of transactions a card may authorize during one UTC calendar day. Grid enforces the lower of the two values without replacing either. On update, omitting the field leaves the card's cap unchanged, null clears it, and a positive int32 sets it.Each approved authorization counts once for the UTC day it was authorized. Refunds, reversals, and authorization expiries do not restore capacity during the day.
Also updates the path descriptions, request and webhook examples, and the two mintlify card snippets.
Sparkcore persistence and enforcement follow in webdev.
🤖 Generated with Claude Code
https://claude.ai/code/session_01YUkUFAQ1ccTXALipsg5x23