CB-5895. Added new parameter link to buy license for getProductInfo API (#3080)

* CB-5895. Added new parameter link to buy license for getProductInfo API

* CB-5951 add purchase field

---------

Co-authored-by: naumov <iamemptyhuh@gmail.com>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
Co-authored-by: Ainur <59531286+yagudin10@users.noreply.github.com>
This commit is contained in:
DenisSinelnikov
2024-11-22 13:16:41 +01:00
committed by GitHub
co-authored by naumov Daria Marutkina Ainur
parent 350136f797
commit 990fbe28f5
3 changed files with 8 additions and 0 deletions
@@ -118,6 +118,7 @@ type ProductInfo {
licenseInfo: String
latestVersionInfo: String
productPurchaseURL: String
}
type ServerConfig {
@@ -77,4 +77,10 @@ public class WebProductInfo {
return CommonUtils.notEmpty(product.getProperty("versionUpdateURL"));
}
@Property
public String getProductPurchaseURL() {
IProduct product = Platform.getProduct();
return CommonUtils.notEmpty(product.getProperty("productPurchaseURL"));
}
}
@@ -8,5 +8,6 @@ fragment ProductInfo on ServerConfig {
buildTime
releaseTime
licenseInfo
productPurchaseURL
}
}