@@ -126,16 +126,16 @@ type (
|
|||||||
}
|
}
|
||||||
|
|
||||||
BannerConfig struct {
|
BannerConfig struct {
|
||||||
BannerID gid.GID `json:"banner_id"`
|
BannerID gid.GID `json:"banner_id"`
|
||||||
Version int `json:"version"`
|
Version int `json:"version"`
|
||||||
Language string `json:"language"`
|
Language string `json:"language"`
|
||||||
DefaultLanguage string `json:"default_language"`
|
DefaultLanguage string `json:"default_language"`
|
||||||
PrivacyPolicyURL string `json:"privacy_policy_url"`
|
PrivacyPolicyURL string `json:"privacy_policy_url"`
|
||||||
ConsentExpiryDays int `json:"consent_expiry_days"`
|
ConsentExpiryDays int `json:"consent_expiry_days"`
|
||||||
ConsentMode string `json:"consent_mode"`
|
ConsentMode string `json:"consent_mode"`
|
||||||
ShowBranding bool `json:"show_branding"`
|
ShowBranding bool `json:"show_branding"`
|
||||||
Categories []coredata.CookieBannerVersionSnapshotCategory `json:"categories"`
|
Categories []coredata.CookieBannerVersionSnapshotCategory `json:"categories"`
|
||||||
Texts map[string]string `json:"texts"`
|
Texts map[string]string `json:"texts"`
|
||||||
}
|
}
|
||||||
|
|
||||||
UpsertCookieBannerTranslationRequest struct {
|
UpsertCookieBannerTranslationRequest struct {
|
||||||
@@ -1735,16 +1735,16 @@ func buildBannerConfig(
|
|||||||
}
|
}
|
||||||
|
|
||||||
return &BannerConfig{
|
return &BannerConfig{
|
||||||
BannerID: banner.ID,
|
BannerID: banner.ID,
|
||||||
Version: version.Version,
|
Version: version.Version,
|
||||||
Language: resolvedLang,
|
Language: resolvedLang,
|
||||||
DefaultLanguage: defaultLang,
|
DefaultLanguage: defaultLang,
|
||||||
PrivacyPolicyURL: snapshot.PrivacyPolicyURL,
|
PrivacyPolicyURL: snapshot.PrivacyPolicyURL,
|
||||||
ConsentExpiryDays: snapshot.ConsentExpiryDays,
|
ConsentExpiryDays: snapshot.ConsentExpiryDays,
|
||||||
ConsentMode: snapshot.ConsentMode,
|
ConsentMode: snapshot.ConsentMode,
|
||||||
ShowBranding: banner.ShowBranding,
|
ShowBranding: banner.ShowBranding,
|
||||||
Categories: categories,
|
Categories: categories,
|
||||||
Texts: texts,
|
Texts: texts,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user