Skip to content

CONV-248: Create billing webhook events table#217

Merged
menvil merged 1 commit into
developfrom
feature/CONV-248-create-billing-webhook-events-table
Jun 2, 2026
Merged

CONV-248: Create billing webhook events table#217
menvil merged 1 commit into
developfrom
feature/CONV-248-create-billing-webhook-events-table

Conversation

@menvil

@menvil menvil commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Created billing_webhook_events table with provider, provider_event_id (unique), type, payload (JSON), processed_at fields
  • Created BillingWebhookEvent model with payload cast to array and processed_at as datetime
  • Created BillingWebhookEventFactory for testing
  • Tests verify event creation and unique constraint on provider_event_id

Test plan

  • composer test passes (448 tests)
  • composer lint passes

🤖 Generated with Claude Code


Summary by cubic

Implements CONV-248 by adding persistent storage for billing webhook events. Adds a billing_webhook_events table and BillingWebhookEvent model to dedupe by provider_event_id and track processing.

  • New Features

    • New table: provider, provider_event_id (unique), type, payload (JSON), processed_at, timestamps.
    • New BillingWebhookEvent model with casts (payload array, processed_at datetime).
    • Factory and tests to verify create and unique constraint behavior.
  • Migration

    • Run php artisan migrate.

Written for commit fc35def. Summary will update on new commits.

Review in cubic

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@menvil menvil merged commit 3547975 into develop Jun 2, 2026
@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • release

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 026a271e-eb7d-41df-a7d5-0561e57ae8ea

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/CONV-248-create-billing-webhook-events-table

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@menvil menvil deleted the feature/CONV-248-create-billing-webhook-events-table branch June 2, 2026 14:45
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