Service class to execute CRUD operations on the Receipt object.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| ReceiptService | getInstance() |
| ReceiptService | getInstance(String version) |
| void | getApiResponse() |
| List<Receipt> | get(SearchRequest sr) |
| void | mutate(List |
Method Detail
This class supports the following methods:
global static ReceiptService getInstance()
Get Instance of ReceiptService.
global static ReceiptService getInstance(String version)
Get Instance of ReceiptVersionedService.
Parameters
| Name | Type | Description |
|---|---|---|
| version | String | undefined |
global ReceiptService ()
ReceiptService Constructor that should not be called directly.
global static void getApiResponse()
global virtual List<Receipt> get(SearchRequest sr)
Get list of Receipt objects using the SearchRequest object as criteria
Parameters
| Name | Type | Description |
|---|---|---|
| sr | SearchRequest | SearchRequest |
global virtual List<Receipt> mutate(List<Receipt> receipts)
Parameters
| Name | Type | Description |
|---|---|---|
| receipts | List<Receipt> | undefined |