Skip to content

feat: add DelegationAPI for stripe delegation management#233

Draft
aaitor wants to merge 2 commits intomainfrom
feat/stripe-delegation
Draft

feat: add DelegationAPI for stripe delegation management#233
aaitor wants to merge 2 commits intomainfrom
feat/stripe-delegation

Conversation

@aaitor
Copy link
Copy Markdown
Member

@aaitor aaitor commented Feb 13, 2026

Summary

  • Adds DelegationAPI class to the payments SDK for managing fiat spending delegations
  • Supports SetupIntent creation, payment method listing, delegation CRUD, and transaction history
  • Type definitions matching server DTOs (DelegationSummary, DelegationDetails, DelegationTransaction, etc.)
  • Registered as payments.delegation in Payments.initializeApi()
  • Companion to nevermined-io/nvm-monorepo feat/stripe-delegation

Test plan

  • yarn build compiles successfully
  • yarn test:unit — all 105 unit tests pass
  • Integration test: createSetupIntent() returns valid client secret
  • Integration test: createDelegation()getDelegation() round-trip
  • Integration test: revokeDelegation() → verify status change
  • E2E: delegation token used as payment-signature header for x402 settle

🤖 Generated with Claude Code

aaitor and others added 2 commits February 13, 2026 17:56
Adds SDK support for the nvm:stripe-delegation x402 scheme, enabling
clients to create and manage fiat spending delegations for AI agents.

- DelegationAPI class with SetupIntent, CRUD, and transaction listing
- Type definitions matching server DTOs
- URL constants for delegation endpoints
- Registered in Payments.initializeApi()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Allows sub-day delegation periods (e.g. hours, minutes).
durationDays → durationSecs in CreateDelegationParams.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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