customerservice

package
v1.0.0-beta.228 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Adapter   customer.Adapter
	Publisher eventbus.Publisher
}

func (Config) Validate

func (c Config) Validate() error

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Service, error)

func (*Service) CreateCustomer

func (s *Service) CreateCustomer(ctx context.Context, input customer.CreateCustomerInput) (*customer.Customer, error)

CreateCustomer creates a customer

func (*Service) DeleteCustomer

func (s *Service) DeleteCustomer(ctx context.Context, input customer.DeleteCustomerInput) error

DeleteCustomer deletes a customer

func (*Service) GetCustomer

func (s *Service) GetCustomer(ctx context.Context, input customer.GetCustomerInput) (*customer.Customer, error)

GetCustomer gets a customer

func (*Service) GetCustomerByUsageAttribution

func (s *Service) GetCustomerByUsageAttribution(ctx context.Context, input customer.GetCustomerByUsageAttributionInput) (*customer.Customer, error)

GetCustomerByUsageAttribution gets a customer by usage attribution

func (*Service) ListCustomerUsageAttributions

ListCustomerUsageAttributions lists customer usage attributions

func (*Service) ListCustomers

ListCustomers lists customers

func (*Service) RegisterHooks

func (s *Service) RegisterHooks(hooks ...models.ServiceHook[customer.Customer])

func (*Service) RegisterRequestValidator

func (s *Service) RegisterRequestValidator(v customer.RequestValidator)

func (*Service) UpdateCustomer

func (s *Service) UpdateCustomer(ctx context.Context, input customer.UpdateCustomerInput) (*customer.Customer, error)

UpdateCustomer updates a customer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL