Skip to content

Commit

Permalink
Add kount custom data defaults (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb authored Oct 22, 2024
1 parent 3580b98 commit a718218
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions connectorconfig/kount.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ const (
KountEnvironmentProduction KountEnvironment = "production"
)

type KountCustomData struct {
Key string `json:"key" yaml:"key" validate:"required"`
Value string `json:"value" yaml:"value"`
}

type KountCredentials struct {
SiteID string `json:"siteID" yaml:"siteID" validate:"required"`
MerchantID string `json:"merchantID" yaml:"merchantID" validate:"required"`
ConfigKey string `json:"configKey" yaml:"configKey" validate:"required"`
APIKey string `json:"apiKey" yaml:"apiKey" validate:"required"`
DataCollectorURL string `json:"dataCollectorURL" yaml:"dataCollectorURL" validate:"required"`
RiskInquiryServiceURL string `json:"riskInquiryServiceURL" yaml:"riskInquiryServiceURL" validate:"required"`
Environment KountEnvironment `json:"environment" yaml:"environment" validate:"oneof=test production"`
SiteID string `json:"siteID" yaml:"siteID" validate:"required"`
MerchantID string `json:"merchantID" yaml:"merchantID" validate:"required"`
ConfigKey string `json:"configKey" yaml:"configKey" validate:"required"`
APIKey string `json:"apiKey" yaml:"apiKey" validate:"required"`
DataCollectorURL string `json:"dataCollectorURL" yaml:"dataCollectorURL" validate:"required"`
RiskInquiryServiceURL string `json:"riskInquiryServiceURL" yaml:"riskInquiryServiceURL" validate:"required"`
Environment KountEnvironment `json:"environment" yaml:"environment" validate:"oneof=test production"`
DefaultCustomData []KountCustomData `json:"defaultCustomData" yaml:"defaultCustomData"`
}

func (c *KountCredentials) GetMID() string {
Expand Down

0 comments on commit a718218

Please sign in to comment.