This enumeration defines the possible states of a digital good.
#include <bps/paymentservice.h>
typedef enum {
ITEM_STATE_OWNED = 0
ITEM_STATE_NEW_SUBSCRIPTION
ITEM_STATE_SUBSCRIPTION_REFUNDED
ITEM_STATE_SUBSCRIPTION_CANCELLED
ITEM_STATE_SUBSCRIPTION_RENEWED
ITEM_STATE_UNKNOWN
} item_state_t;
BlackBerry 10.0.0
It's a new subscription.
The user is no longer subscribed.
It is possible that the subscription is still active. You can use the paymentservice_check_existing() function to determine if the subscription is still active or compare the end date with the current date.
For example, whether the digital good item is owned, subscribed, cancelled, renewed, or unknown.