diff --git a/connectorconfig/tokenexapiaccountupdater.go b/connectorconfig/tokenexapiaccountupdater.go index 87a269c..3e228ec 100644 --- a/connectorconfig/tokenexapiaccountupdater.go +++ b/connectorconfig/tokenexapiaccountupdater.go @@ -9,14 +9,14 @@ import ( ) type TokenExApiAccountUpdaterCredentials struct { - TokenexID string `json:"tokenexID" yaml:"tokenexID" validate:"required,gt=0"` + TokenExID string `json:"tokenExID" yaml:"tokenExID" validate:"required,gt=0"` ApiKey *string `json:"apiKey" yaml:"apiKey" validate:"required,gt=0"` Environment TokenExEnvironment `json:"environment" yaml:"environment" validate:"oneof=sandbox production"` } func (c *TokenExApiAccountUpdaterCredentials) GetMID() string { - return c.TokenexID + return c.TokenExID } func (c *TokenExApiAccountUpdaterCredentials) GetLibrary() Library { diff --git a/utils/generate.go b/utils/generate.go index 295f3fc..5168958 100644 --- a/utils/generate.go +++ b/utils/generate.go @@ -332,7 +332,7 @@ func buildSpec(conf Template) (object.Specification, error) { return connector.Connector{Library: string(connectorconfig.LibraryTokenExAccountUpdater), Configuration: j}, nil case confConnTokenExApi: j, _ := json.Marshal(connectorconfig.TokenExApiAccountUpdaterCredentials{ - TokenexID: chg, + TokenExID: chg, ApiKey: &chg, Environment: connectorconfig.TokenExEnvironmentSandbox, })