Skip to main content
The Ecommerce Order Service SDK provides Java client libraries for interacting with the order service, including command classes, event classes, and representation models.

Maven Dependency

Add the following dependency to your pom.xml:
<dependency>
    <groupId>com.ecommerce</groupId>
    <artifactId>ecommerce-order-service-sdk</artifactId>
    <version>0.1-SNAPSHOT</version>
</dependency>

Repository Configuration

If you’re using the snapshot version, ensure your build configuration includes the snapshot repository:
<repositories>
    <repository>
        <id>mymavenrepo</id>
        <url>https://mymavenrepo.com/repo/2w5k9sU2AsKfaYehyqno/</url>
    </repository>
</repositories>

What’s Included

The SDK includes:
  • Command Classes: For creating and modifying orders
  • Event Classes: Domain events published by the order service
  • Representation Classes: Response models for API endpoints
  • Validation: Built-in Bean Validation constraints

Requirements

  • Java 8 or higher
  • Spring Boot (for validation annotations)
  • Lombok (annotation processor)

Next Steps

Commands

Learn about command classes for order operations

Events

Understand domain events published by the service

Models

Explore representation classes for API responses

Build docs developers (and LLMs) love