httpdriver

package
v1.0.0-beta.225 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapAppToAPI

func MapAppToAPI(item app.App) (api.App, error)

MapAppToAPI maps an app to an API app

func MapEventAppToAPI

func MapEventAppToAPI(event app.EventApp) (api.App, error)

func ToAPIStripeCustomerAppData

func ToAPIStripeCustomerAppData(
	customerAppData appstripeentity.CustomerData,
	stripeApp appstripeentityapp.App,
) api.StripeCustomerAppData

customerAppToAPI converts a CustomerApp to an API CustomerAppData

Types

type AppHandler

type AppHandler interface {
	// App handlers
	ListApps() ListAppsHandler
	GetApp() GetAppHandler
	UninstallApp() UninstallAppHandler
	UpdateApp() UpdateAppHandler

	// Customer Data handlers
	ListCustomerData() ListCustomerDataHandler
	UpsertCustomerData() UpsertCustomerDataHandler
	DeleteCustomerData() DeleteCustomerDataHandler

	// Marketplace handlers
	ListMarketplaceListings() ListMarketplaceListingsHandler
	GetMarketplaceListing() GetMarketplaceListingHandler
	MarketplaceAppAPIKeyInstall() MarketplaceAppAPIKeyInstallHandler
	MarketplaceAppInstall() MarketplaceAppInstallHandler
}

type DeleteCustomerDataParams

type DeleteCustomerDataParams struct {
	CustomerIdOrKey string
	AppId           string
}

type DeleteCustomerDataRequest

type DeleteCustomerDataRequest struct {
	AppID      app.AppID
	CustomerID customer.CustomerID
}

type DeleteCustomerDataResponse

type DeleteCustomerDataResponse = interface{}

type GetAppHandler

GetAppHandler is a handler to get an app by id

type GetAppRequest

type GetAppRequest = app.GetAppInput

GetAppHandler is a handler to get an app by id

type GetAppResponse

type GetAppResponse = api.App

GetAppHandler is a handler to get an app by id

type GetMarketplaceListingHandler

GetMarketplaceListingHandler is a handler to get a marketplace listing

type GetMarketplaceListingRequest

type GetMarketplaceListingRequest = app.MarketplaceGetInput

GetMarketplaceListingHandler is a handler to get a marketplace listing

type GetMarketplaceListingResponse

type GetMarketplaceListingResponse = api.MarketplaceListing

GetMarketplaceListingHandler is a handler to get a marketplace listing

type Handler

type Handler interface {
	AppHandler
}

func New

func New(
	logger *slog.Logger,
	namespaceDecoder namespacedriver.NamespaceDecoder,
	appService app.Service,
	appStripeService stripeapp.Service,
	billingService billing.Service,
	customerService customer.Service,

	options ...httptransport.HandlerOption,
) Handler

type ListAppsHandler

ListAppsHandler is a handler for listing apps

type ListAppsParams

type ListAppsParams = api.ListAppsParams

ListAppsHandler is a handler for listing apps

type ListAppsRequest

type ListAppsRequest = app.ListAppInput

ListAppsHandler is a handler for listing apps

type ListAppsResponse

type ListAppsResponse = api.AppPaginatedResponse

ListAppsHandler is a handler for listing apps

type ListCustomerDataParams

type ListCustomerDataParams struct {
	api.ListCustomerAppDataParams
	CustomerIdOrKey string
}

type ListCustomerDataRequest

type ListCustomerDataRequest = app.ListCustomerInput

type ListCustomerDataResponse

type ListCustomerDataResponse = api.CustomerAppDataPaginatedResponse

type ListMarketplaceListingsHandler

ListMarketplaceListingsHandler is a handler for listing marketplace listings

type ListMarketplaceListingsParams

type ListMarketplaceListingsParams = api.ListMarketplaceListingsParams

ListMarketplaceListingsHandler is a handler for listing marketplace listings

type ListMarketplaceListingsRequest

type ListMarketplaceListingsRequest = app.MarketplaceListInput

ListMarketplaceListingsHandler is a handler for listing marketplace listings

type ListMarketplaceListingsResponse

type ListMarketplaceListingsResponse = api.MarketplaceListingPaginatedResponse

ListMarketplaceListingsHandler is a handler for listing marketplace listings

type MarketplaceAppAPIKeyInstallRequest

type MarketplaceAppAPIKeyInstallRequest struct {
	app.InstallAppWithAPIKeyInput
	CreateBillingProfile bool
}

type MarketplaceAppAPIKeyInstallResponse

type MarketplaceAppAPIKeyInstallResponse = api.MarketplaceInstallResponse

type MarketplaceAppInstallRequest

type MarketplaceAppInstallRequest struct {
	app.InstallAppInput
	CreateBillingProfile bool
}

type MarketplaceAppInstallResponse

type MarketplaceAppInstallResponse = api.MarketplaceInstallResponse

type UninstallAppHandler

UninstallAppHandler is a handler to uninstalls an app by id

type UninstallAppRequest

type UninstallAppRequest = app.UninstallAppInput

UninstallAppHandler is a handler to uninstalls an app by id

type UninstallAppResponse

type UninstallAppResponse = interface{}

UninstallAppHandler is a handler to uninstalls an app by id

type UpdateAppHandler

UpdateAppHandler is a handler to update an app

type UpdateAppRequest

type UpdateAppRequest = app.UpdateAppInput

UpdateAppHandler is a handler to update an app

type UpdateAppResponse

type UpdateAppResponse = api.App

UpdateAppHandler is a handler to update an app

type UpsertCustomerDataParams

type UpsertCustomerDataParams struct {
	CustomerIdOrKey string
}

type UpsertCustomerDataRequest

type UpsertCustomerDataRequest struct {
	CustomerId customer.CustomerID
	Data       []api.CustomerAppData
}

type UpsertCustomerDataResponse

type UpsertCustomerDataResponse = interface{}

Jump to

Keyboard shortcuts

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