Skip to main content

Order Service

The order service provides the bounded context Order. It is responsible for managing orders of users.

Domain Model​

info

Imported entities from other bounded contexts are marked with a dashed border.

Technology Stack​

Events​

This section lists events that are defined or used by the order service.

Published Events​

order/order/created​

This event is published when an order is placed, which means its order status is set to PLACED.

{
id: string;
userId: string;
createdAt: string;
orderStatus: OrderStatus;
placedAt: string;
rejectionReason?: RejectionReason;
orderItems: OrderItem[];
shipmentAddressId: string;
invoiceAddressId: string;
compensatableOrderAmount: number;
paymentInformationId: string;
paymentAuthorization?: PaymentAuthorization;
vatNumber?: string;
}

order/order-compensation/created​

This event is published when an order should be compensated due to a failed shipment.

{
id: string,
orderId: string,
orderItemIds: string[],
triggeredAt: DateTime,
amountToCompensate: number
}

Subscribed Events​