Class MongoGooglePlayIapReceiptDao
java.lang.Object
dev.getelements.elements.dao.mongo.MongoGooglePlayIapReceiptDao
- All Implemented Interfaces:
GooglePlayIapReceiptDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteGooglePlayIapReceipt(String orderId) Deletes an existing receipt.dev.morphia.DatastoregetGooglePlayIapReceipt(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.voidsetDatastore(dev.morphia.Datastore datastore) voidsetDozerMapper(MapperRegistry dozerMapperRegistry) voidsetMongoDBUtils(MongoDBUtils mongoDBUtils) voidsetMongoUserDao(MongoUserDao mongoUserDao) voidsetValidationHelper(ValidationHelper validationHelper)
-
Constructor Details
-
MongoGooglePlayIapReceiptDao
public MongoGooglePlayIapReceiptDao()
-
-
Method Details
-
getGooglePlayIapReceipts
Description copied from interface:GooglePlayIapReceiptDaoGets receipts for a given user specifying the offset and the count.- Specified by:
getGooglePlayIapReceiptsin interfaceGooglePlayIapReceiptDao- Parameters:
user- the useroffset- the offsetcount- the count- Returns:
- a
PaginationofGooglePlayIapReceiptobjects.
-
getGooglePlayIapReceipt
Description copied from interface:GooglePlayIapReceiptDaoGets the receipt with the id, or throws aNotFoundExceptionif the receipt can't be found.- Specified by:
getGooglePlayIapReceiptin interfaceGooglePlayIapReceiptDao- Parameters:
orderId- the order id issued by Google Play services- Returns:
- the
GooglePlayIapReceiptthat was requested, never null
-
getOrCreateGooglePlayIapReceipt
public GooglePlayIapReceipt getOrCreateGooglePlayIapReceipt(GooglePlayIapReceipt googlePlayIapReceipt) Description copied from interface:GooglePlayIapReceiptDaoCreates a new receipt.- Specified by:
getOrCreateGooglePlayIapReceiptin interfaceGooglePlayIapReceiptDao- Returns:
- the
GooglePlayIapReceiptas it was written into the database
-
deleteGooglePlayIapReceipt
Description copied from interface:GooglePlayIapReceiptDaoDeletes an existing receipt.- Specified by:
deleteGooglePlayIapReceiptin interfaceGooglePlayIapReceiptDao- Parameters:
orderId- the order id
-
getDatastore
public dev.morphia.Datastore getDatastore() -
setDatastore
@Inject public void setDatastore(dev.morphia.Datastore datastore) -
getDozerMapper
-
setDozerMapper
-
getValidationHelper
-
setValidationHelper
-
getMongoDBUtils
-
setMongoDBUtils
-
getMongoUserDao
-
setMongoUserDao
-