This howto will create email accounts extension package to your products
- CREATE file if don't exist "C:\Program Files (x86)\Atomia\AutomationServer\Common\ProvisioningDescriptions\Transformation Files\ProvisioningDescription.SomePackageExtensions.xml"
- ADD text
<?xml version="1.0" encoding="UTF-8"?> <provisioningDescription xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <packageDescription> <packageExtensionList> <packageExtension name="MailAddon" xdt:Transform="Insert"> <serviceLimitationList> <globalLimitation> <group maxCount="1" name="MailAccount"> <service name="MailAccount" /> </group> </globalLimitation> </serviceLimitationList> <extendsList> <extends name="BasePackage" /> <extends name="PremiumPackage" /> <!-- other packages for which we want to allow extension --> <extends name="PackSmallBusiness" /> </extendsList> </packageExtension> </packageExtensionList> </packageDescription> </provisioningDescription>
- CREATE file "C:\Program Files (x86)\Atomia\BillingAPIs\BillingApi\Transformation Files\Web.SomePackageExtensions.config"
<?xml version="1.0" encoding="UTF-8"?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <atomiaBilling xmlns="atomiaBilling" provisioningPluginName="AtomiaProvisioningHosting" parallelScheduledTasks="false" xdt:Transform="SetAttributes(parallelScheduledTasks)" xdt:Locator="Match(provisioningPluginName)"> <provisioningOrders> <provisioningOrder provisioningService="EmailAccountAddon" order="10" xdt:Transform="Insert" /> </provisioningOrders> </atomiaBilling> <atomiaProvisioningConfiguration xmlns="atomiaProvisioning" adPasswordPattern="cczddApb" provisioningServiceUsername="Administrator" provisioningServicePassword="Administrator" administratorEmail="[email protected]" domainRenewalDateMargin="7"> <provisioningDescriptionMappings> <provisioningDescription name="ProvisioningDescription"> <packages> <!-- Extension package --> <package name="EmailAccountAddon" type="PackageExtension" xdt:Transform="Insert" > <properties> <packageProperty key="EmailAccountAddon" /> </properties> </package> </packages> </provisioningDescription> </provisioningDescriptionMappings> </atomiaProvisioningConfiguration> </configuration>
ADD EXTENSION PRODUCTS TROUGH GUI
- GOTO https://admin.yourdomain.com/ (Login as Main reseller)
- ADD New product
Provisioning service -> MailAddon <!--name of the extension-->
Product category -> Extra service
Custom attributes
"maximalproductvalue=10" <!--maximal number of units available to add in one pass-->
"minimalproductvalue=1" <!--minimal number of units available to add in one pass-->
"productvaluestep=1"
"productvalueunit="
"packages=HST-GLDY|HST-SMA-BUS" <!--where value is the name of product which can be extended with this package (replace it with the ones you want to be able to extend)-->
"allowmultiple=true" <!-- extension package can be added just once if you don't add this attribute -->
- SAVE
- LOGOUT from admin panel
After defining product you need to add it to Subreseller shop.
- GOTO https://admin.yourdomain.com/ (Login as Subreseller)
- ADD extension product to Subreseller shop
- LOGOUT from admin panel
Recreate all config files and restart services on GUI, Automation and Billing API machine
Final Note: In order for "Extra Services" to be present in BCP the extended product (eg. Gold Package, Premium, etc.) needs to have following custom attribute :
Paramater / value : hasextraservices / true