flamingo.me/flamingo-commerce/v3@v3.11.0/cart/domain/validation/payment_selection.go (about)

     1  package validation
     2  
     3  import (
     4  	"context"
     5  
     6  	"flamingo.me/flamingo-commerce/v3/cart/domain/cart"
     7  	"flamingo.me/flamingo-commerce/v3/cart/domain/decorator"
     8  )
     9  
    10  type (
    11  	// PaymentSelectionValidator decides if the PaymentSelection is valid
    12  	PaymentSelectionValidator interface {
    13  		Validate(ctx context.Context, cart *decorator.DecoratedCart, selection cart.PaymentSelection) error
    14  	}
    15  )