httpdriver

package
v1.0.0-beta.193 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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
}

type DeleteCustomerRequest

type DeleteCustomerRequest = customer.DeleteCustomerInput

type DeleteCustomerResponse

type DeleteCustomerResponse = interface{}

type GetCustomerEntitlementValueParams

type GetCustomerEntitlementValueParams = struct {
	CustomerID 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