Class ReceiptAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.receipt.core.api.ReceiptAPI
-
- All Implemented Interfaces:
com.cheetahdigital.corekit.rest.RestController
public class ReceiptAPI extends com.cheetahdigital.corekit.models.module.Controller
Cheetah Loyalty Receipts Module AReceipt
represents one User's Receipt.
-
-
Constructor Summary
Constructors Constructor Description ReceiptAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getReceipt(ReceiptParams receiptParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Receipt>,Receipt> listener)
Gets a specific receipt by IDvoid
getReceipts(ReceiptParams receiptParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Receipts>,Receipts> listener)
Get all the receipts submitted by the membervoid
submitReceipt(com.cheetahdigital.uikit.helper.video.MediaFile receipt, ReceiptParams receiptParams, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Receipt>,Receipt> listener)
Use to submit a receipt to the API
-
-
-
Method Detail
-
getReceipts
public void getReceipts(ReceiptParams receiptParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Receipts>,Receipts> listener)
Get all the receipts submitted by the member- Parameters:
receiptParams
- theReceiptParams
for Receipts APIclearCache
- true to clear cache, else falselistener
- handles the result from the API
-
getReceipt
public void getReceipt(ReceiptParams receiptParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Receipt>,Receipt> listener)
Gets a specific receipt by ID- Parameters:
receiptParams
- theReceiptParams
for Receipts APIclearCache
- set totrue
to clear previously stored cachelistener
- handles the result from the API
-
submitReceipt
public void submitReceipt(com.cheetahdigital.uikit.helper.video.MediaFile receipt, ReceiptParams receiptParams, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Receipt>,Receipt> listener)
Use to submit a receipt to the API- Parameters:
receipt
- the image file of the receiptreceiptParams
- query param for Receipt APIlistener
- handles the response from the API
-
-