Files
zeekay 121689691f the corporate name is Lux Industries Inc
Lux Partners Limited is the Isle of Man company and does not appear on a
public surface. Lux Industries Inc, a Delaware C corporation, is the one
these copyright lines, citations and terms name.

Lines binding the name to another legal fact — a domicile, a signed
counterparty, a quoted third-party article — are left alone, because
renaming those would falsify a record rather than correct one.
2026-08-28 16:35:57 -07:00

40 lines
1.2 KiB
Go

// Copyright 2024-2026 Lux Industries Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package provider
// Auto-registration for the providers that ship their constructors
// in this package. Each entry maps the provider's canonical name to
// a factory that pulls config out of the generic string map (so
// callers can wire all providers with the same `cfg` shape).
//
// New providers either:
// 1. Add an init() block in their own file, or
// 2. Add a case here.
func init() {
RegisterFactory(ProviderJumio, func(c map[string]string) (Provider, error) {
return NewJumio(JumioConfig{
BaseURL: c["base_url"],
APIToken: c["api_token"],
APISecret: c["api_secret"],
}), nil
})
RegisterFactory(ProviderOnfido, func(c map[string]string) (Provider, error) {
return NewOnfido(OnfidoConfig{
BaseURL: c["base_url"],
APIToken: c["api_token"],
WebhookToken: c["webhook_secret"],
}), nil
})
RegisterFactory(ProviderPlaid, func(c map[string]string) (Provider, error) {
return NewPlaid(PlaidConfig{
BaseURL: c["base_url"],
ClientID: c["client_id"],
Secret: c["api_token"],
WebhookURL: c["webhook_url"],
}), nil
})
}