mirror of
https://github.com/databasus/databasus.git
synced 2026-04-06 00:32:03 +02:00
23 lines
505 B
Go
23 lines
505 B
Go
package billing_models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type WebhookEvent struct {
|
|
RequestID uuid.UUID
|
|
ProviderEventID string
|
|
DatabaseID *uuid.UUID
|
|
Type WebhookEventType
|
|
ProviderSubscriptionID string
|
|
ProviderCustomerID string
|
|
ProviderInvoiceID string
|
|
QuantityGB int
|
|
Status SubscriptionStatus
|
|
PeriodStart *time.Time
|
|
PeriodEnd *time.Time
|
|
AmountCents int64
|
|
}
|