Package dev.getelements.elements.sdk.dao
Interface GooglePlayIapReceiptDao
- All Known Implementing Classes:
MongoGooglePlayIapReceiptDao
public interface GooglePlayIapReceiptDao
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteGooglePlayIapReceipt
(String orderId) Deletes an existing receipt.getGooglePlayIapReceipt
(String orderId) Gets the receipt with the id, or throws aNotFoundException
if the receipt can't be found.getGooglePlayIapReceipts
(User user, int offset, int count) Gets receipts for a given user specifying the offset and the count.getOrCreateGooglePlayIapReceipt
(GooglePlayIapReceipt googlePlayIapReceipt) Creates a new receipt.
-
Method Details
-
getGooglePlayIapReceipts
Gets receipts for a given user specifying the offset and the count.- Parameters:
user
- the useroffset
- the offsetcount
- the count- Returns:
- a
Pagination
ofGooglePlayIapReceipt
objects.
-
getGooglePlayIapReceipt
Gets the receipt with the id, or throws aNotFoundException
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
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 invalidDuplicateException
- if the passed in GooglePlayIapReceipt has a name that already exists
-
deleteGooglePlayIapReceipt
Deletes an existing receipt.- Parameters:
orderId
- the order id
-