Skip to content

Commit 2198f65

Browse files
committed
transactions example update
1 parent 5533dda commit 2198f65

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.openapi-generator/templates/composer.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"name": "{{.}}",
44
{{/composerPackageName}}
55
{{#artifactVersion}}
6-
"version": "{{.}}",
76
{{/artifactVersion}}
87
"description": "{{{appDescription}}}",
98
"keywords": [

examples/gettransactions.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@
2222
$apiInstance = new PremiumAPI\GetTransactionListApi();
2323
$account_number = \Ease\Shared::cfg('ACCOUNT_NUMBER'); // string | Account number for which to get list of transactions in national format without 0 padding.
2424
$currency_code = 'CZK'; // string | Currency code of the account in ISO-4217 standard (e.g. czk, eur, usd)
25-
$from = new \DateTime(); // \DateTime | Defines date (and optionally time) from which transactions will be requested. If no time is specified then 00:00:00.0 will be used. Example values - 2021-08-01 or 2021-08-01T10:00:00.0Z
25+
$from = (new \DateTime())->modify('-15 day'); // \DateTime | Defines date (and optionally time) from which transactions will be requested. If no time is specified then 00:00:00.0 will be used. Example values - 2021-08-01 or 2021-08-01T10:00:00.0Z
2626
$to = (new \DateTime())->modify('-1 day'); // \DateTime | Defines date (and optionally time) until which transactions will be requested. If no time is specified then 23:59:59.999 will be used. Example values - 2021-08-02 or 2021-08-02T14:00:00.0Z
27-
$page = 56; // int | Page number to be requested. The first page is 1.
2827

2928
$x_request_id = time(); // string | Unique request id provided by consumer application for reference and auditing.
3029

3130
try {
32-
$result = $apiInstance->getTransactionList($x_request_id, $account_number, $currency_code, $from, $to, $page);
31+
$result = $apiInstance->getTransactionList($x_request_id, $account_number, $currency_code, $from, $to);
3332
print_r($result);
3433
} catch (\Ease\Exception $e) {
3534
echo 'Exception when calling GetTransactionListApi->getTransactionList: ', $e->getMessage(), \PHP_EOL;

0 commit comments

Comments
 (0)