feat: provisioning API endpoints and service documentation #32
No reviewers
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-commerce#32
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/docs-and-provisioning"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #14
Fixes #15
Summary
Issue #14 (Service Documentation): Added comprehensive class-level PHPDoc to
CreditNoteService,RefundService,SubscriptionService,CouponService, andInvoiceService— covering lifecycle state machines, design rationale, configuration references, and cross-references to related models/DTOs.Issue #15 (Provisioning API): Implemented the provisioning API endpoints that were stubbed out in
routes/api.php. CreatedProductApiController(ping, product listing, product lookup by SKU) andEntitlementApiController(create, show, suspend, unsuspend, cancel, renew entitlements). Registered thecommerce.apiandcommerce.matrixmiddleware aliases inBoot.phpand activated the route group.Test plan
GET /api/v1/provisioning/pingreturns 200 with Bearer tokenGET /api/v1/provisioning/productslists active productsGET /api/v1/provisioning/products/{sku}returns product detailsPOST /api/v1/provisioning/entitlementsprovisions a new entitlement🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.