Namespaces
Methods
-
Appearition.Packaging.AvailablePackages (request, requestOptions)Array.<Appearition.Packaging.MyAvailablePackagesViewModel> static
Retrieves a list of published packages available to the user
-
Name Type Description requestAppearition.Packaging.MyAvailablePackagesRequestViewModel filter packages
requestOptionsany configure callbacks
Returns:
Type Description Array.<Appearition.Packaging.MyAvailablePackagesViewModel> This is returned as part of the success callback function in the requestOptions param -
Appearition.Packaging.CheckStatus (packageId, requestOptions)Appearition.Packaging.PackageProcessingViewModel static
Instructs the system to subscribe the user into the given package.
-
Name Type Description packageIdnumber identifies a package the user has subscribed to, to get the status of
requestOptionsany configure callbacks
Returns:
Type Description Appearition.Packaging.PackageProcessingViewModel This is returned as part of the success callback function in the requestOptions param -
Appearition.Packaging.SelectPackage (request, requestOptions)Appearition.Packaging.SelectedPackageViewModel static
Instructs the system to subscribe the user into the given package.
-
Name Type Description requestAppearition.Packaging.SelectedPackageViewModel the package to subscribe the user to
requestOptionsany configure callbacks
Returns:
Type Description Appearition.Packaging.SelectedPackageViewModel This is returned as part of the success callback function in the requestOptions param
Type Definitions
-
This is the data structure used to pass to the MyAvailablePackages method
-
Properties:
Name Type Description PackageKeystring The key to the package to filter or pre-select
Groupstring The name of the group of packages to filter or pre-select
-
This is the data structure returned for the MyAvailablePackages method
-
Properties:
Name Type Description PackagesArray.<Appearition.Packaging.PackageSummaryViewModel> The list of packages available to show
AutoSelectedPackagenumber If a package was auto selected on the server, this object will contain the ID of the package and the current processing status
-
This is the data structure of a specific package
-
Properties:
Name Type Description Idnumber Identifies the package
Namestring The name of the package
PackageKeystring Another unique identifier of the package. Can be used in the URL to highlight or auto select
GroupNamestring The name of the group that this package belongs to.
Descriptionstring HTML supported text
Ordinalnumber Allows sorting of packages when presented to the user
AlreadyChosenboolean Indicates if the user has already subscribed to this package
NeedsBillingboolean Indicates if the package requires payment
PackageStatusstring The current subscription status of the package in relation to the user
CanAutoSelectboolean Indicates if the package can be automatically subscribe the user into
HideSelectionboolean Indicates if the package cannot be selected by the user. Instead this package is informational whereby the description may contain a link to another location
-
This is the data structure of a specific package
-
Properties:
Name Type Description TenantPackageIdnumber Identifies the package
ProcessingStatusstring The current subscription status of the package in relation to the user