Return Service
The return service provides the bounded context Return.
It is responsible for managing and validating returns.
Domain Model
info
Imported entities from other bounded contexts are marked with a dashed border.
Technology Stack
- Language: Kotlin
- Framework: Spring Boot
- GraphQL Library: GraphQL Kotlin
- Database: PostgreSQL
- Schema Management: Flyway
Events
This section lists events that are defined or used by the return service.
Published Events
return/return/created
This event is published when a new user return is created.
{
id: string,
orderId: string,
orderItemsIds: string[],
reason: string,
refundedAmount: number,
createdAt: string
}
Subscribed Events
- shipment/shipment/created: Used to import
Shipmentfrom theShipmentbounded context. - shipment/shipment/status-updated: Used to update the delivery status of imported
Shipmententities. - order/order/created: Used to import
Orderand associatedOrderItems from theOrderbounded context. - catalog/product-variant-version/created: Used to import
ProductVariantVersionfrom theProductbounded context.