Adobe DPS - Library and Store SDK 2.27

Class adobeDPS-Subscription

An representation of an available subscription product.

Constructor

adobeDPS-Subscription(productId:String, title:String, duration:String, price:String, isOwned:Boolean)
[inner] Create a Subscription.

Fields

Field Defined By
Signal to indicate that this Subscription has been updated.
Subscription
productId : String
The productId (aka SKU or Subscription SKU) of this subscription.
Subscription
title : String
The localized title of this subscription.
Subscription
duration : String
The localized duration of this subscription.
Subscription
price : String
The localized price of this subscription.
Subscription
isOwned : String
Whether this subscription is currently owned by the user.
Subscription
receipt : SubscriptionReceipt
The latest receipt associated with this subscription.
Subscription

Methods

Method Defined By
Start a subscription purchase transaction on this Subscription.
Subscription
Tells whether this subscription isOwned and the subscription window covers today.
Subscription
Class Detail
adobeDPS-Subscription(productId:String, title:String, duration:String, price:String, isOwned:Boolean)
[inner] Create a Subscription.
Parameters
productId String The productId that this receipt is associated with
title String The title of this subscription
duration String The localized representation of subscription duration
price String The localized representation of the price returned by the broker
isOwned Boolean Whether this subscription is currently owned by the user
Default: false
Field Details
updatedSignal : adobeDPS-Signal
Signal to indicate that this Subscription has been updated. It will pass an array of Strings containing the names of the properties that have been updated.
Callback Signature: updatedHandler([String, ...])
productId : String
The productId (aka SKU or Subscription SKU) of this subscription.
title : String
The localized title of this subscription.
duration : String
The localized duration of this subscription.
price : String
The localized price of this subscription.
isOwned : String
Whether this subscription is currently owned by the user.
receipt : SubscriptionReceipt
The latest receipt associated with this subscription.
Method Details
purchase() : adobeDPS-SubscribeTransaction
Start a subscription purchase transaction on this Subscription. Requires that this isActive() be false.
Throws:
Error If the Subscription is currently active
Returns:
adobeDPS-SubscribeTransaction The started subscription purchase transaction
isActive() : Boolean
Tells whether this subscription isOwned and the subscription window covers today.
Returns:
Boolean Whether this subscription is owned and contains today
©2012-2013 Adobe Systems, inc
Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jun 24 2013 16:54:21 GMT-0700 (PDT)