From 219790e1f7fde4352d23787101d6725a4cdc0571 Mon Sep 17 00:00:00 2001 From: Oke Ugwu Date: Wed, 20 Nov 2024 16:33:32 +0000 Subject: [PATCH] keep config field name consistent --- connectorconfig/tokenexapiaccountupdater.go | 4 ++-- utils/generate.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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, })