Documentation
¶
Index ¶
- func CustomerToAPI(c customer.Customer, subscriptions []subscription.Subscription, ...) (api.Customer, error)
- func MapAccessToAPI(access entitlement.Access) (api.CustomerAccess, error)
- func MapAddress(apiAddress *api.Address) *models.Address
- func MapCustomerCreate(body api.CustomerCreate) customer.CustomerMutate
- type CreateCustomerHandler
- type CreateCustomerRequest
- type CreateCustomerResponse
- type CustomerHandler
- type DeleteCustomerHandler
- type DeleteCustomerRequest
- type DeleteCustomerResponse
- type GetCustomerAccessHandler
- type GetCustomerAccessParams
- type GetCustomerAccessRequest
- type GetCustomerAccessResponse
- type GetCustomerEntitlementValueHandler
- type GetCustomerEntitlementValueParams
- type GetCustomerEntitlementValueRequest
- type GetCustomerEntitlementValueResponse
- type GetCustomerHandler
- type GetCustomerParams
- type GetCustomerRequest
- type GetCustomerResponse
- type Handler
- type ListCustomersHandler
- type ListCustomersParams
- type ListCustomersRequest
- type ListCustomersResponse
- type UpdateCustomerHandler
- type UpdateCustomerRequest
- type UpdateCustomerResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomerToAPI ¶
func CustomerToAPI(c customer.Customer, subscriptions []subscription.Subscription, expand []api.CustomerExpand) (api.Customer, error)
CustomerToAPI converts a Customer to an API Customer
func MapAccessToAPI ¶
func MapAccessToAPI(access entitlement.Access) (api.CustomerAccess, error)
func MapCustomerCreate ¶
func MapCustomerCreate(body api.CustomerCreate) customer.CustomerMutate
Types ¶
type CreateCustomerHandler ¶
type CreateCustomerHandler httptransport.Handler[CreateCustomerRequest, CreateCustomerResponse]
type CreateCustomerRequest ¶
type CreateCustomerRequest = customer.CreateCustomerInput
type CreateCustomerResponse ¶
type CustomerHandler ¶
type CustomerHandler interface {
ListCustomers() ListCustomersHandler
CreateCustomer() CreateCustomerHandler
DeleteCustomer() DeleteCustomerHandler
GetCustomer() GetCustomerHandler
UpdateCustomer() UpdateCustomerHandler
GetCustomerEntitlementValue() GetCustomerEntitlementValueHandler
GetCustomerAccess() GetCustomerAccessHandler
}
type DeleteCustomerHandler ¶
type DeleteCustomerHandler httptransport.HandlerWithArgs[DeleteCustomerRequest, DeleteCustomerResponse, string]
type DeleteCustomerRequest ¶
type DeleteCustomerRequest = customer.DeleteCustomerInput
type DeleteCustomerResponse ¶
type DeleteCustomerResponse = interface{}
type GetCustomerAccessHandler ¶
type GetCustomerAccessHandler httptransport.HandlerWithArgs[GetCustomerAccessRequest, GetCustomerAccessResponse, GetCustomerAccessParams]
type GetCustomerAccessParams ¶
type GetCustomerAccessParams = struct {
CustomerIDOrKey string
}
type GetCustomerAccessRequest ¶
type GetCustomerAccessRequest = customer.GetCustomerInput
type GetCustomerAccessResponse ¶
type GetCustomerAccessResponse = api.CustomerAccess
type GetCustomerEntitlementValueHandler ¶
type GetCustomerEntitlementValueHandler httptransport.HandlerWithArgs[GetCustomerEntitlementValueRequest, GetCustomerEntitlementValueResponse, GetCustomerEntitlementValueParams]
type GetCustomerEntitlementValueRequest ¶
type GetCustomerEntitlementValueRequest = customer.GetEntitlementValueInput
type GetCustomerEntitlementValueResponse ¶
type GetCustomerEntitlementValueResponse = api.EntitlementValue
type GetCustomerHandler ¶
type GetCustomerHandler httptransport.HandlerWithArgs[GetCustomerRequest, GetCustomerResponse, GetCustomerParams]
type GetCustomerParams ¶
type GetCustomerParams struct {
CustomerIDOrKey string
api.GetCustomerParams
}
type GetCustomerRequest ¶
type GetCustomerRequest = customer.GetCustomerInput
type GetCustomerResponse ¶
type Handler ¶
type Handler interface {
CustomerHandler
}
func New ¶
func New( namespaceDecoder namespacedriver.NamespaceDecoder, service customer.Service, subscriptionService subscription.Service, options ...httptransport.HandlerOption, ) Handler
type ListCustomersHandler ¶
type ListCustomersHandler httptransport.HandlerWithArgs[ListCustomersRequest, ListCustomersResponse, ListCustomersParams]
type ListCustomersParams ¶
type ListCustomersParams = api.ListCustomersParams
type ListCustomersRequest ¶
type ListCustomersRequest struct {
customer.ListCustomersInput
Expand []api.CustomerExpand
}
type ListCustomersResponse ¶
type ListCustomersResponse = pagination.PagedResponse[api.Customer]
type UpdateCustomerHandler ¶
type UpdateCustomerHandler httptransport.HandlerWithArgs[UpdateCustomerRequest, UpdateCustomerResponse, string]
type UpdateCustomerRequest ¶
type UpdateCustomerRequest = customer.UpdateCustomerInput
type UpdateCustomerResponse ¶
Click to show internal directories.
Click to hide internal directories.