PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Properties specific to the description of saasPricing variables
  • Functions that use the saasPricing type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The saasPricing type is used to define the advanced characteristics of a SaaS pricing.
The pricing characteristics can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
MySite is saasSite dynamic
MySite = SaaSAdminFindSite("Managing cars")
 
P is saasPricing
P.Name = "Premium Offer"
P.Price = 150
SaaSAdminAddPricing(P, MySite)
 
S is saasService
S.Name = "Full Access"
 
// Adds the service into the site
SaaSAdminAddService(P, MySite)
 
// The pricing will propose this service
SaaSAdminPricingEnableService(P, S)
Remarks

Properties specific to the description of saasPricing variables

The following properties can be used to handle saasPricing variables:
NameTypeEffect
InvoicingInteger constantSpecifies whether the pricing is per user or as a package.
The following constants are available:
  • saasOutrightPricing: The pricing is invoiced as a package
  • saasPricingPerUser: The pricing is invoiced per user
NameCharacter stringName of pricing.
This name must be unique for each site.
PeriodicityInteger or Integer constantDuration of an invoicing period.
This duration is expressed in number of days.
The saasUnlimitedPeriodicity constant is used to specify a pricing for an unlimited period.
PriceCurrencyCost of the pricing.
If the pricing is invoiced by period, this price is per period.
SitesaasSite variableReference toward the site that offers this pricing.
This property is available in read-only.

Functions that use the saasPricing type

SaaSAdminPricingEnableServiceEnables a service in a SaaS pricing.
SaaSAdminAddSubscriptionAdds a subscription to a pricing of a SaaS site for a client account.
SaaSAdminAddPricingAdds a SaaS pricing.
SaaSAdminFindSubscriptionFinds a SaaS subscription.
SaaSAdminFindPricingFinds a SaaS pricing.
SaaSAdminPricingDisableServiceDisables a service in a SaaS pricing.
SaaSAdminListSubscriptionLists the SaaS subscriptions associated with a site or pricing.
SaaSAdminListServiceLists the SaaS services associated with a SaaS site, a pricing or a user.
SaaSAdminModifyPricingModifies a SaaS pricing.
SaaSAdminDeletePricingDeletes a SaaS pricing.
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment