Skip to content

release: v1.0.0#134

Draft
seanmcgary wants to merge 23 commits into
masterfrom
release/v1.0.0
Draft

release: v1.0.0#134
seanmcgary wants to merge 23 commits into
masterfrom
release/v1.0.0

Conversation

@seanmcgary
Copy link
Copy Markdown
Member

No description provided.

seanmcgary and others added 22 commits May 20, 2026 12:33
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rewrote the top-up command to support both USDC and credit card payment methods.
Users can now choose between on-chain USDC payment or credit card checkout.

Changes:
- Added method flag to select payment method (usdc or card)
- Extracted USDC flow into handleUsdc() method
- Added handleCard() method for credit card checkout flow
- Added pollForCredits() helper to share polling logic
- Updated description and examples
- Integrated with new SDK methods: getPaymentMethods and purchaseCredits

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
### New CLI Commands
**User-facing:**
- `ecloud billing redeem-coupon [--code CODE]` — redeem a coupon code
for credits (prompts interactively if no `--code` flag)
**Admin (requires admin privileges):**
- `ecloud admin coupons create --amount <dollars>` — create a new coupon
- `ecloud admin coupons list [--active] [--redeemed] [--limit N]
[--offset N]` — list coupons with optional filters
- `ecloud admin coupons get <id>` — get coupon details
- `ecloud admin coupons deactivate <id>` — deactivate a coupon
- `ecloud admin coupons redeem <id> --address <wallet>` — redeem a
coupon on behalf of a user
- `ecloud admin admins add <address>` — grant admin privileges
- `ecloud admin admins remove <address>` — revoke admin privileges
- `ecloud admin admins list` — list all admins
### SDK Changes
- `BillingApiClient` — added methods for all admin and coupon REST
endpoints
- `AdminModule` — new module wrapping admin API surface
(`createAdminModule`)
- `BillingModule` — added `redeemCoupon(code)` method
- New types: `AdminCoupon`, `AdminUser`, `CreateCouponResponse`,
`ListCouponsResponse`, `GetCouponResponse`, `AddAdminResponse`,
`ListAdminsResponse`, `RedeemCouponResponse`
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