Documentation
¶
Index ¶
- func MapAppToAPI(item app.App) (api.App, error)
- func MapEventAppToAPI(event app.EventApp) (api.App, error)
- func ToAPIStripeCustomerAppData(customerAppData appstripeentity.CustomerData, stripeApp appstripeentityapp.App) api.StripeCustomerAppData
- type AppHandler
- type DeleteCustomerDataHandler
- type DeleteCustomerDataParams
- type DeleteCustomerDataRequest
- type DeleteCustomerDataResponse
- type GetAppHandler
- type GetAppRequest
- type GetAppResponse
- type GetMarketplaceListingHandler
- type GetMarketplaceListingRequest
- type GetMarketplaceListingResponse
- type Handler
- type ListAppsHandler
- type ListAppsParams
- type ListAppsRequest
- type ListAppsResponse
- type ListCustomerDataHandler
- type ListCustomerDataParams
- type ListCustomerDataRequest
- type ListCustomerDataResponse
- type ListMarketplaceListingsHandler
- type ListMarketplaceListingsParams
- type ListMarketplaceListingsRequest
- type ListMarketplaceListingsResponse
- type MarketplaceAppAPIKeyInstallHandler
- type MarketplaceAppAPIKeyInstallRequest
- type MarketplaceAppAPIKeyInstallResponse
- type MarketplaceAppInstallHandler
- type MarketplaceAppInstallRequest
- type MarketplaceAppInstallResponse
- type UninstallAppHandler
- type UninstallAppRequest
- type UninstallAppResponse
- type UpdateAppHandler
- type UpdateAppRequest
- type UpdateAppResponse
- type UpsertCustomerDataHandler
- type UpsertCustomerDataParams
- type UpsertCustomerDataRequest
- type UpsertCustomerDataResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapAppToAPI ¶
MapAppToAPI maps an app to an API app
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 DeleteCustomerDataHandler ¶
type DeleteCustomerDataHandler httptransport.HandlerWithArgs[DeleteCustomerDataRequest, DeleteCustomerDataResponse, DeleteCustomerDataParams]
type DeleteCustomerDataRequest ¶
type DeleteCustomerDataRequest struct {
AppID app.AppID
CustomerID customer.CustomerID
}
type DeleteCustomerDataResponse ¶
type DeleteCustomerDataResponse = interface{}
type GetAppHandler ¶
type GetAppHandler httptransport.HandlerWithArgs[GetAppRequest, GetAppResponse, string]
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 GetMarketplaceListingHandler ¶
type GetMarketplaceListingHandler httptransport.HandlerWithArgs[GetMarketplaceListingRequest, GetMarketplaceListingResponse, api.AppType]
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 ¶
type ListAppsHandler httptransport.HandlerWithArgs[ListAppsRequest, ListAppsResponse, ListAppsParams]
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 ListCustomerDataHandler ¶
type ListCustomerDataHandler httptransport.HandlerWithArgs[ListCustomerDataRequest, ListCustomerDataResponse, ListCustomerDataParams]
type ListCustomerDataParams ¶
type ListCustomerDataParams struct {
api.ListCustomerAppDataParams
CustomerIdOrKey string
}
type ListCustomerDataRequest ¶
type ListCustomerDataRequest = app.ListCustomerInput
type ListCustomerDataResponse ¶
type ListCustomerDataResponse = api.CustomerAppDataPaginatedResponse
type ListMarketplaceListingsHandler ¶
type ListMarketplaceListingsHandler httptransport.HandlerWithArgs[ListMarketplaceListingsRequest, ListMarketplaceListingsResponse, ListMarketplaceListingsParams]
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 MarketplaceAppAPIKeyInstallHandler ¶
type MarketplaceAppAPIKeyInstallHandler httptransport.HandlerWithArgs[MarketplaceAppAPIKeyInstallRequest, MarketplaceAppAPIKeyInstallResponse, api.AppType]
type MarketplaceAppAPIKeyInstallRequest ¶
type MarketplaceAppAPIKeyInstallRequest struct {
app.InstallAppWithAPIKeyInput
CreateBillingProfile bool
}
type MarketplaceAppAPIKeyInstallResponse ¶
type MarketplaceAppAPIKeyInstallResponse = api.MarketplaceInstallResponse
type MarketplaceAppInstallHandler ¶
type MarketplaceAppInstallHandler httptransport.HandlerWithArgs[MarketplaceAppInstallRequest, MarketplaceAppInstallResponse, api.AppType]
type MarketplaceAppInstallRequest ¶
type MarketplaceAppInstallRequest struct {
app.InstallAppInput
CreateBillingProfile bool
}
type MarketplaceAppInstallResponse ¶
type MarketplaceAppInstallResponse = api.MarketplaceInstallResponse
type UninstallAppHandler ¶
type UninstallAppHandler httptransport.HandlerWithArgs[UninstallAppRequest, UninstallAppResponse, string]
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 ¶
type UpdateAppHandler httptransport.HandlerWithArgs[UpdateAppRequest, UpdateAppResponse, string]
UpdateAppHandler is a handler to update an app
type UpdateAppRequest ¶
type UpdateAppRequest = app.UpdateAppInput
UpdateAppHandler is a handler to update an app
type UpdateAppResponse ¶
UpdateAppHandler is a handler to update an app
type UpsertCustomerDataHandler ¶
type UpsertCustomerDataHandler httptransport.HandlerWithArgs[UpsertCustomerDataRequest, UpsertCustomerDataResponse, UpsertCustomerDataParams]
type UpsertCustomerDataParams ¶
type UpsertCustomerDataParams struct {
CustomerIdOrKey string
}
type UpsertCustomerDataRequest ¶
type UpsertCustomerDataRequest struct {
CustomerId customer.CustomerID
Data []api.CustomerAppData
}
type UpsertCustomerDataResponse ¶
type UpsertCustomerDataResponse = interface{}