module App42

AppTab API includes Bill, License and Usage explained below:

Bill - This service is used along with the Usage service. It generates Bill for a particular based on Usage Scheme. For e.g. if user sid's bill has to be seen for May and 2012. This service will list all the charging transactions and calculate the bill for May and tell the total usage and price. The calculation is done based on the Price which is given during scheme creation, the unit of charging and corresponding usage. AppTab currently just maintains the data and does calculation. How the Bill is rendered and the interface with Payment Gateway is left with the app developers.

Usage - Usage is part of AppTab which a rating, metering, charging and billing engine. This service allows app developers to specify the rate for a particular usage parameter e.g. Level - Storage - space, Bandwidth, Time, Feature, Level of game, OneTime - Which can be used for one time charging e.g. for charging for downloads and License for traditional license based charging. It provides methods for first creating the scheme for charging which specifies the unit of charging and the associated price. Subsequently a chargeXXX call has to be made for charging. e.g. If a app developers wants to charge on Storage. He can use the method createStorageCharge and specify that for 10 KB/MB/GB TB the price is 10 USD Once the scheme is created. The app developers can call the chargeStorage call whenever storage is utilized. e.g. 5MB. Using the Bill service the app developers can find out what is the monthly bill for a particular user based on his utilization

License - This service provides traditional License engine. This can be useful to app developers who want to sell their applications on license keys and want to use a license manager on the cloud. It allows to create a license for a particular app. Once the license scheme is created. The app developers can issue license, revoke license and check for validity of the license When a license is issued a license key is generated and returned. Which is used for revoking and checking the validity of the license. The Bill service is used to find licenses issued to a particular user.

This Email object is the value object which contains the properties of Email.

This Email object is the value object which contains the properties of Email.

An enum that contains 2 types of the EmailMIME either text/plain or text/html.

This Album object is the value object which contains the properties of Album.

This Game object is the value object which contains the properties of Game.

This Reward object is the value object which contains the properties of Reward along with the setter & getter for those properties.

This Geo object is the value object which contains the properties of Geo.

This Geo Point object is the value object which contains the properties of Geo Point.

This Image object is the value object which contains the properties of Image.

This Log object is the value object which contains the properties of Log.

This Queue object is the value object which contains the properties of Queue along with the setter & getter for those properties.

An enum that defines the type of the device to be uploaded on cloud.

This Push Notification object is the value object which contains the properties of Push Notification.

This PreferenceData object is the value object which contains the properties of PreferenceData along with the setter & getter for those properties.

This Recommender object is the value object which contains the properties of Recommender.

An enum that contains 2 types of the Recommender Similarity either EuclideanDistanceSimilarity or PearsonCorrelationSimilarity.

This Review object is the value object which contains the properties of Review.

This Session object is the value object which contains the properties of Session.

This Cart object is the value object which contains the properties of Cart along with the setter & getter for those properties.

This Catalogue object is the value object which contains the properties of Catalogue.

require 'Shopping/Catalogue.rb' require 'Shopping/itemData.rb'

This ItemData object is the value object which contains the properties of ItemData.

An enum that contains 3 types of the Payment Status either DECLINED or AUTHORIZED or PENDING.

This class Manage the response which comes from App42 server.

This Storage object is the value object which contains the properties of Storage.

This Upload object is the value object which contains the properties of Upload along with the setter & getter for those properties.

An enum that defines the type of the file to be uploaded on cloud.

This User object is the value object which contains the properties of User along with the setter & getter for those properties.