httpdriver

package
v1.0.0-beta.210 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomerToAPI

func CustomerToAPI(c customer.Customer) (api.Customer, error)

CustomerToAPI converts a Customer to an API Customer

func MapAccessToAPI

func MapAccessToAPI(access entitlement.Access) (api.CustomerAccess, error)

func MapAddress

func MapAddress(apiAddress *api.Address) *models.Address

func MapCustomerCreate

func MapCustomerCreate(body api.CustomerCreate) customer.CustomerMutate

Types

type CreateCustomerRequest

type CreateCustomerRequest = customer.CreateCustomerInput

type CreateCustomerResponse

type CreateCustomerResponse = api.Customer

type CustomerHandler

type CustomerHandler interface {
	ListCustomers() ListCustomersHandler
	CreateCustomer() CreateCustomerHandler
	DeleteCustomer() DeleteCustomerHandler
	GetCustomer() GetCustomerHandler
	UpdateCustomer() UpdateCustomerHandler
	GetCustomerEntitlementValue() GetCustomerEntitlementValueHandler
	GetCustomerAccess() GetCustomerAccessHandler
}

type DeleteCustomerRequest

type DeleteCustomerRequest = customer.DeleteCustomerInput

type DeleteCustomerResponse

type DeleteCustomerResponse = interface{}

type GetCustomerAccessParams

type GetCustomerAccessParams = struct {
	CustomerIDOrKey string
}

type GetCustomerAccessRequest

type GetCustomerAccessRequest = customer.GetCustomerInput

type GetCustomerAccessResponse

type GetCustomerAccessResponse = api.CustomerAccess

type GetCustomerEntitlementValueParams

type GetCustomerEntitlementValueParams = struct {
	CustomerIDOrKey string
	FeatureKey      string
}

type GetCustomerEntitlementValueRequest

type GetCustomerEntitlementValueRequest = customer.GetEntitlementValueInput

type GetCustomerEntitlementValueResponse

type GetCustomerEntitlementValueResponse = api.EntitlementValue

type GetCustomerRequest

type GetCustomerRequest = customer.GetCustomerInput

type GetCustomerResponse

type GetCustomerResponse = api.Customer

type Handler

type Handler interface {
	CustomerHandler
}

func New

func New(
	namespaceDecoder namespacedriver.NamespaceDecoder,
	service customer.Service,
	options ...httptransport.HandlerOption,
) Handler

type ListCustomersParams

type ListCustomersParams = api.ListCustomersParams

type ListCustomersRequest

type ListCustomersRequest = customer.ListCustomersInput

type ListCustomersResponse

type ListCustomersResponse = api.CustomerPaginatedResponse

type UpdateCustomerRequest

type UpdateCustomerRequest = customer.UpdateCustomerInput

type UpdateCustomerResponse

type UpdateCustomerResponse = api.Customer

Jump to

Keyboard shortcuts

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