Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix recurring transactions method #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/DataService/DataService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1255,10 +1255,12 @@ public function addRecurringTxn($entity)
* Query RecurringTransaction Entity under the specified realm. The realm must be set in the context.
*
* @param query ex : SELECT * FROM RecurringTransaction
* @param int $startPosition Starting page number
* @param int $maxResults Page size
* @return IntuitRecurringTransactionResponse Returns the RecurringTransaction created for the entity.
* @throws IdsException
*/
public function recurringTransaction($query)
public function recurringTransaction($query, $startPosition = null, $maxResults = null)
{
$this->serviceContext->IppConfiguration->Logger->RequestLog->Log(TraceLevel::Info, "Called Method Query.");

Expand Down Expand Up @@ -1290,7 +1292,7 @@ public function recurringTransaction($query)

for($i = 0; $i < sizeof($responseArray); $i++){
$currentResponse = $responseArray[$i];
$currentEntityName = $entityList[$i];
$currentEntityName = $currentResponse->getName();
$entities = $this->responseSerializer->Deserialize($currentResponse->asXML(), false);
$entityName = $currentEntityName;
//If we find the actual name, update it.
Expand Down