Documentation
¶
Index ¶
- type Config
- type Service
- func (s *Service) CreateCustomer(ctx context.Context, input customer.CreateCustomerInput) (*customer.Customer, error)
- func (s *Service) CustomerExists(ctx context.Context, customer customer.CustomerID) error
- func (s *Service) DeleteCustomer(ctx context.Context, input customer.DeleteCustomerInput) error
- func (s *Service) GetCustomer(ctx context.Context, input customer.GetCustomerInput) (*customer.Customer, error)
- func (s *Service) GetCustomerAccess(ctx context.Context, input customer.GetCustomerInput) (entitlement.Access, error)
- func (s *Service) GetEntitlementValue(ctx context.Context, input customer.GetEntitlementValueInput) (entitlement.EntitlementValue, error)
- func (s *Service) ListCustomers(ctx context.Context, input customer.ListCustomersInput) (pagination.PagedResponse[customer.Customer], error)
- func (s *Service) RegisterRequestValidator(v customer.RequestValidator)
- func (s *Service) UpdateCustomer(ctx context.Context, input customer.UpdateCustomerInput) (*customer.Customer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateCustomer ¶
func (s *Service) CreateCustomer(ctx context.Context, input customer.CreateCustomerInput) (*customer.Customer, error)
CreateCustomer creates a customer
func (*Service) CustomerExists ¶
CustomerExists checks if a customer exists
func (*Service) DeleteCustomer ¶
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) GetCustomerAccess ¶
func (s *Service) GetCustomerAccess(ctx context.Context, input customer.GetCustomerInput) (entitlement.Access, error)
func (*Service) GetEntitlementValue ¶
func (s *Service) GetEntitlementValue(ctx context.Context, input customer.GetEntitlementValueInput) (entitlement.EntitlementValue, error)
GetEntitlementValue gets an entitlement value
func (*Service) ListCustomers ¶
func (s *Service) ListCustomers(ctx context.Context, input customer.ListCustomersInput) (pagination.PagedResponse[customer.Customer], error)
ListCustomers lists customers
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
Click to show internal directories.
Click to hide internal directories.