Interface GooglePlayIapReceiptDao

All Known Implementing Classes:
MongoGooglePlayIapReceiptDao

public interface GooglePlayIapReceiptDao
  • Method Details

    • getGooglePlayIapReceipts

      Pagination<GooglePlayIapReceipt> getGooglePlayIapReceipts(User user, int offset, int count)
      Gets receipts for a given user specifying the offset and the count.
      Parameters:
      user - the user
      offset - the offset
      count - the count
      Returns:
      a Pagination of GooglePlayIapReceipt objects.
    • getGooglePlayIapReceipt

      GooglePlayIapReceipt getGooglePlayIapReceipt(String orderId)
      Gets the receipt with the id, or throws a NotFoundException if the receipt can't be found.
      Parameters:
      orderId - the order id issued by Google Play services
      Returns:
      the GooglePlayIapReceipt that was requested, never null
    • getOrCreateGooglePlayIapReceipt

      GooglePlayIapReceipt getOrCreateGooglePlayIapReceipt(GooglePlayIapReceipt googlePlayIapReceipt)
      Creates a new receipt.
      Returns:
      the GooglePlayIapReceipt as it was written into the database
      Throws:
      InvalidDataException - if the state of the passed in GooglePlayIapReceipt is invalid
      DuplicateException - if the passed in GooglePlayIapReceipt has a name that already exists
    • deleteGooglePlayIapReceipt

      void deleteGooglePlayIapReceipt(String orderId)
      Deletes an existing receipt.
      Parameters:
      orderId - the order id