Class BillingCustomerCreatedEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when a customer is created.
public sealed record BillingCustomerCreatedEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<BillingCustomerCreatedEvent>
- Inheritance
-
BillingCustomerCreatedEvent
- Implements
- Inherited Members
Constructors
BillingCustomerCreatedEvent(string, string, string?, string?)
Integration event raised when a customer is created.
public BillingCustomerCreatedEvent(string CustomerId, string Email, string? Name, string? ExternalId)
Parameters
CustomerIdstringThe unique identifier of the customer.
EmailstringThe customer's email address.
NamestringThe customer's name.
ExternalIdstringAn external identifier for the customer (e.g., from the identity system).
Properties
CustomerId
The unique identifier of the customer.
public string CustomerId { get; init; }
Property Value
The customer's email address.
public string Email { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
ExternalId
An external identifier for the customer (e.g., from the identity system).
public string? ExternalId { get; init; }
Property Value
Name
The customer's name.
public string? Name { get; init; }