|
| getTransactionTypesCount () |
|
| getTransactionTypes ($page_index=1, $page_size=10) |
|
| getTransactionType ($id) |
|
| createTransactionType ($trt) |
|
| deleteTransactionType ($id) |
|
| createTransactions ($transactions, $release=true, $ignoreInvalidEvents=false) |
|
| deleteTransactions ($type_id, $before_timestamp=9223372036854775807) |
|
| findTransactionTypeByName ($type_name) |
|
| getRecentTransactions ($type_id, $count=1000, $minExcludedTxId=0) |
|
| __construct (array $config) |
|
| setDebug ($isDebug) |
|
| isDebug () |
|
| get ($resourcePath, $queryParameters=array(), $mimeType= 'application/vnd.maileon.api+xml', $deserializationType=null) |
|
| put ($resourcePath, $payload="", $queryParameters=array(), $mimeType= 'application/vnd.maileon.api+xml', $deserializationType=null) |
|
| post ($resourcePath, $payload="", $queryParameters=array(), $mimeType= 'application/vnd.maileon.api+xml', $deserializationType=null, $contentType=null, $contentLength=null) |
|
| delete ($resourcePath, $queryParameters=array(), $mimeType= 'application/vnd.maileon.api+xml', $deserializationType=null) |
|
Facade that wraps the REST service for transactions.
- Author
- Viktor Balogh | Wanadis Kft. | balogh.viktor@maileon.hu
-
Marcus Ständer | Trusted Technologies GmbH | marcus.staender@trusted-technologies.de
Definition at line 10 of file TransactionsService.php.
com_maileon_api_transactions_TransactionsService::getTransactionTypesCount |
( |
| ) |
|
com_maileon_api_transactions_TransactionsService::getTransactionTypes |
( |
|
$page_index = 1 , |
|
|
|
$page_size = 10 |
|
) |
| |
com_maileon_api_transactions_TransactionsService::getTransactionType |
( |
|
$id | ) |
|
com_maileon_api_transactions_TransactionsService::createTransactionType |
( |
|
$trt | ) |
|
com_maileon_api_transactions_TransactionsService::deleteTransactionType |
( |
|
$id | ) |
|
com_maileon_api_transactions_TransactionsService::createTransactions |
( |
|
$transactions, |
|
|
|
$release = true , |
|
|
|
$ignoreInvalidEvents = false |
|
) |
| |
com_maileon_api_transactions_TransactionsService::deleteTransactions |
( |
|
$type_id, |
|
|
|
$before_timestamp = 9223372036854775807 |
|
) |
| |
Delete all transactions of a given type before a given date in the account. Any previously-released transactions will be ignored.
- Parameters
-
integer | $type_id | the transaction type id of the transactions to delete |
long | $before_timestamp | the timestamp to compare against, in milliseconds since the start of the UNIX Epoch (1970-01-01 00:00:00) |
- Returns
- com_maileon_api_MaileonAPIResult the result object of the API call
- Exceptions
-
Definition at line 129 of file TransactionsService.php.
com_maileon_api_transactions_TransactionsService::findTransactionTypeByName |
( |
|
$type_name | ) |
|
Finds a transaction type by name
- Parameters
-
string | $type_name | the transaction name to find |
- Returns
- int the id if the found transaction
- Exceptions
-
Definition at line 148 of file TransactionsService.php.
com_maileon_api_transactions_TransactionsService::getRecentTransactions |
( |
|
$type_id, |
|
|
|
$count = 1000 , |
|
|
|
$minExcludedTxId = 0 |
|
) |
| |
Gets the last $count transaction events of a given transaction type.
- Parameters
-
int | $type_id | the ID of the transaction type to get transaction events for |
int | $count | The number of last transactions to get. Valid range: [1..2000] |
Definition at line 171 of file TransactionsService.php.
The documentation for this class was generated from the following file: