net.rimlib.blackberry.api.paymentsdk
Interface PriceSet

All Superinterfaces:
Result, ResultCodes

public interface PriceSet
extends Result

Class that encapsulates a set of string values representing prices for subscription goods with the set of tags to retrieve them. For non-subscription purchases the price is retrieved with the PRICE key. For subscription purchase the price is retrieved with the keys prepended with SUBSCRIPTION.


Field Summary
static java.lang.String PRICE
          The constant PRICE.
static java.lang.String SUBSCRIPTION_INITIAL_PERIOD
          The constant SUBSCRIPTION_INITIAL_PERIOD.
static java.lang.String SUBSCRIPTION_INITIAL_PRICE
          The constant SUBSCRIPTION_INITIAL_PRICE.
static java.lang.String SUBSCRIPTION_PERIOD_NAME
          The constant SUBSCRIPTION_PERIOD_NAME.
static java.lang.String SUBSCRIPTION_RENEWAL_PRICE
          The constant SUBSCRIPTION_RENEWAL_PRICE.
 
Fields inherited from interface net.rimlib.blackberry.api.paymentsdk.Result
RETURN_CODE, STATUS_MESSAGE
 
Fields inherited from interface net.rimlib.blackberry.api.paymentsdk.ResultCodes
REASON_APP_WORLD_NOT_CORRECT_VERSION, REASON_ARGUMENTS_ERROR, REASON_CANCELED, REASON_GOOD_NOT_FOUND, REASON_ILLEGAL_APPLICATION, REASON_NONE, REASON_SERVER_ERROR, REASON_UNKNOWN
 
Method Summary
 java.lang.String getPriceSetValue(java.lang.String key)
          Returns the string representing the value defined by the keys described above.
 java.lang.String toString()
           
 
Methods inherited from interface net.rimlib.blackberry.api.paymentsdk.Result
getFailureReason, getStatusMessage, isSuccessful
 

Field Detail

PRICE

static final java.lang.String PRICE
The constant PRICE. For non subscription goods.

See Also:
Constant Field Values

SUBSCRIPTION_INITIAL_PRICE

static final java.lang.String SUBSCRIPTION_INITIAL_PRICE
The constant SUBSCRIPTION_INITIAL_PRICE. For subscription goods. To be used as a key to get the string value of the initial price of the subscription

See Also:
Constant Field Values

SUBSCRIPTION_RENEWAL_PRICE

static final java.lang.String SUBSCRIPTION_RENEWAL_PRICE
The constant SUBSCRIPTION_RENEWAL_PRICE. For subscription goods. To be used as a key to get the string value of the renewal price of the subscription

See Also:
Constant Field Values

SUBSCRIPTION_PERIOD_NAME

static final java.lang.String SUBSCRIPTION_PERIOD_NAME
The constant SUBSCRIPTION_PERIOD_NAME. For subscription goods. To be used as a key to get the string value describing the period of the subscription in human-readable form. For example, 30 days or 7 days

See Also:
Constant Field Values

SUBSCRIPTION_INITIAL_PERIOD

static final java.lang.String SUBSCRIPTION_INITIAL_PERIOD
The constant SUBSCRIPTION_INITIAL_PERIOD. For subscription goods. To be used as a key to get the string value of the renewal price of the subscription

See Also:
Constant Field Values
Method Detail

getPriceSetValue

java.lang.String getPriceSetValue(java.lang.String key)
Returns the string representing the value defined by the keys described above. Note that the method will return null if called with the key PRICE on a subscription good.

Parameters:
key - the key to retrieve the data corresponding one of the four predefined values.
Returns:
the string value corresponding to the above keys.

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object