flamingo.me/flamingo-commerce/v3@v3.11.0/order/domain/servicePorts.go (about)

     1  package domain
     2  
     3  import (
     4  	"context"
     5  
     6  	"flamingo.me/flamingo/v3/core/auth"
     7  )
     8  
     9  type (
    10  	// CustomerIdentityOrderService loads orders for an authenticated user
    11  	CustomerIdentityOrderService interface {
    12  		// Get all orders for a customer
    13  		Get(ctx context.Context, identity auth.Identity) ([]*Order, error)
    14  		// GetByID returns a single order for a customer
    15  		GetByID(ctx context.Context, identity auth.Identity, orderID string) (*Order, error)
    16  	}
    17  )