Package dev.getelements.elements.sdk.dao
Interface AppleIapReceiptDao
- All Known Implementing Classes:
MongoAppleIapReceiptDao
public interface AppleIapReceiptDao
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteAppleIapReceipt
(String originalTransactionId) Deletes an existing receipt.getAppleIapReceipt
(String originalTransactionId) Gets the receipt with the id, or throws aNotFoundException
if the receipt can't be found.getAppleIapReceipts
(User user, int offset, int count) Gets receipts for a given user specifying the offset and the count.getOrCreateAppleIapReceipt
(AppleIapReceipt appleIapReceipt) Creates a new receipt.
-
Method Details
-
getAppleIapReceipts
Gets receipts for a given user specifying the offset and the count.- Parameters:
user
- the useroffset
- the offsetcount
- the count- Returns:
- a
Pagination
ofAppleIapReceipt
objects.
-
getAppleIapReceipt
Gets the receipt with the id, or throws aNotFoundException
if the receipt can't be found.- Parameters:
originalTransactionId
- the original apple transaction id- Returns:
- the
AppleIapReceipt
that was requested, never null
-
getOrCreateAppleIapReceipt
Creates a new receipt.- Returns:
- the
AppleIapReceipt
as it was written into the database - Throws:
InvalidDataException
- if the state of the passed in AppleIapReceipt is invalidDuplicateException
- if the passed in AppleIapReceipt has a name that already exists
-
deleteAppleIapReceipt
Deletes an existing receipt.- Parameters:
originalTransactionId
- the original apple transaction id
-