flamingo.me/flamingo-commerce/v3@v3.11.0/customer/Readme.md (about)

     1  # Customer Module
     2  
     3  Provides the basic customer domain, which is required in other e-commerce related packages.
     4  
     5  A customer represents the legal entity of a single person and is normally used in a "my account" area.
     6  
     7  ## Secondary Ports
     8  
     9  An implementation needs to provide an adapter for the `CustomerService` as well as an implementation of the `Customer` interface.
    10  
    11  A typical implementation would fetch the Token from the auth object and with that information call a microservice that will return the customer data (authorized by the token).
    12  
    13  Your specific implementation of a customer can also include much more properties - as long as the two interfaces (ports) are implemented.
    14  
    15  ### No customer data needed?
    16  
    17  You can enable the provided adapter for the customerService with:
    18  
    19  ```yaml
    20  commerce.customer.useNilCustomerAdapter: true
    21  ```
    22  
    23  ## GraphQL
    24  
    25  Queries:
    26    * `Commerce_Customer_Status` returns the customer's login status
    27    * `Commerce_Customer` returns the logged-in customer