Interface FacebookIapReceiptService

All Known Implementing Classes:
UserFacebookIapReceiptService

public interface FacebookIapReceiptService
  • Field Details

  • Method Details

    • getFacebookIapReceipts

      Pagination<FacebookIapReceipt> getFacebookIapReceipts(int offset, int count)
      Gets receipts for a given user specifying the offset and the count.
      Parameters:
      offset - the offset
      count - the count
      Returns:
      a Pagination of FacebookIapReceipt objects.
    • getFacebookIapReceipt

      FacebookIapReceipt getFacebookIapReceipt(String originalTransactionId)
      Gets the receipt with the id, or throws a NotFoundException if the receipt can't be found.
      Parameters:
      originalTransactionId - the original facebook transaction id
      Returns:
      the Receipt that was requested, never null
    • getOrCreateFacebookIapReceipt

      FacebookIapReceipt getOrCreateFacebookIapReceipt(FacebookIapReceipt facebookIapReceipt)
      Finds a receipt in the db, or creates a new one if necessary.
      Returns:
      the Receipt as it was written into the database
      Throws:
      InvalidDataException - if the state of the passed in OculusIapReceipt is invalid
      DuplicateException - if the passed in OculusIapReceipt has a name that already exists
    • deleteFacebookIapReceipt

      void deleteFacebookIapReceipt(String originalTransactionId)
      Deletes an existing receipt.
      Parameters:
      originalTransactionId - the original facebook transaction id
    • verifyAndCreateFacebookIapReceiptIfNeeded

      List<RewardIssuance> verifyAndCreateFacebookIapReceiptIfNeeded(FacebookIapReceipt receiptData)
      Verifies the given base64-encoded receiptData string against the Facebook servers in the given environment.
      Parameters:
      receiptData -
      Returns:
      the FacebookIapReceipt as it was written into the database, or the existing database record