bursar.BillingEvent
class bursar.BillingEvent(*, provider, event_id, event_type, occurred_at, account_id=None, customer=None, subscription=None, invoice=None, payment=None, refund=None, dispute=None, metadata=None, raw=None, billing_event_id=None)
Bases: BaseModel
- Parameters:
- provider (Annotated *[*str , MinLen *(*min_length=1 ) ])
- event_id (Annotated *[*str , MinLen *(*min_length=1 ) ])
- event_type (BillingEventType)
- occurred_at (str)
- account_id (Annotated *[*str , FieldInfo *(*annotation=NoneType , required=True , metadata= *[*MinLen *(*min_length=1 ) ] ) ] | None)
- customer (BillingCustomerInfo | None)
- subscription (BillingSubscriptionInfo | None)
- invoice (BillingInvoiceInfo | None)
- payment (BillingPaymentInfo | None)
- refund (BillingRefundInfo | None)
- dispute (BillingDisputeInfo | None)
- metadata (dict *[*str , Any ] | None)
- raw (Any)
- billing_event_id (Annotated *[*str , FieldInfo *(*annotation=NoneType , required=True , metadata= *[*MinLen *(*min_length=1 ) ] ) ] | None)
model_config = {'extra': 'forbid', 'str_strip_whitespace': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].