net.rimlib.blackberry.api.payment
Interface Purchase


public interface Purchase

Represents a successful in-app purchase.


Method Summary
 Date getDate()
          Retrieves the date this purchase was made.
 String getDigitalGoodId()
          Retrieves the ID of the purchased digital good.
 String getDigitalGoodSku()
          Retrieves the SKU of the purchased digital good.
 String getLicenseKey()
          Retrieves the license key for this purchase, or null if the purchased digital good does not have a license key.
 String getMetadata()
          Retrieves the metadata for this purchase, or null if no metadata was included with the purchase.
 String getTransactionId()
          Retrieves the transaction ID for this purchase.
 

Method Detail

getDate

Date getDate()
Retrieves the date this purchase was made.

Returns:
The date this purchase was made.

getLicenseKey

String getLicenseKey()
Retrieves the license key for this purchase, or null if the purchased digital good does not have a license key.

Returns:
The license key or null.

getDigitalGoodId

String getDigitalGoodId()
Retrieves the ID of the purchased digital good.

Returns:
The ID of the purchased digital good.

getDigitalGoodSku

String getDigitalGoodSku()
Retrieves the SKU of the purchased digital good.

Returns:
The SKU of the purchased digital good.

getTransactionId

String getTransactionId()
Retrieves the transaction ID for this purchase.

Returns:
The transaction ID.

getMetadata

String getMetadata()
Retrieves the metadata for this purchase, or null if no metadata was included with the purchase.

Returns:
The metadata or null.


Copyright © 2010 Research In Motion Limited. All Rights Reserved.