Package dev.getelements.elements.sdk.dao
Interface GooglePlayIapReceiptDao
- All Known Implementing Classes:
MongoGooglePlayIapReceiptDao
public interface GooglePlayIapReceiptDao
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteGooglePlayIapReceipt(String orderId) Deletes an existing receipt.getGooglePlayIapReceipt(String orderId) Gets the receipt with the id, or throws aNotFoundExceptionif 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
PaginationofGooglePlayIapReceiptobjects.
-
getGooglePlayIapReceipt
Gets the receipt with the id, or throws aNotFoundExceptionif the receipt can't be found.- Parameters:
orderId- the order id issued by Google Play services- Returns:
- the
GooglePlayIapReceiptthat was requested, never null
-
getOrCreateGooglePlayIapReceipt
Creates a new receipt.- Returns:
- the
GooglePlayIapReceiptas 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
-