Skip to content

Commit 2a89b76

Browse files
GRAL-2340 return all deal fields
1 parent e9b7907 commit 2a89b76

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Controllers/DealsController.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ public function getAllDeals(
174174
//handle errors defined at the API level
175175
$this->validateResponse($_httpResponse, $_httpContext);
176176

177-
$mapper = $this->getJsonMapper();
178-
179-
return CamelCaseHelper::keysToCamelCase($mapper->mapClass($response->body, 'Pipedrive\\Models\\GetDeals'));
177+
return CamelCaseHelper::keysToCamelCase($response->body);
180178
}
181179

182180
/**
@@ -508,9 +506,7 @@ public function getDetailsOfADeal(
508506
//handle errors defined at the API level
509507
$this->validateResponse($_httpResponse, $_httpContext);
510508

511-
$mapper = $this->getJsonMapper();
512-
513-
return CamelCaseHelper::keysToCamelCase($mapper->mapClass($response->body, 'Pipedrive\\Models\\GetDeal'));
509+
return CamelCaseHelper::keysToCamelCase($response->body);
514510
}
515511

516512
/**

0 commit comments

Comments
 (0)