Skip to content

Commit

Permalink
Merge pull request #25 from ingrammicro/fix-small-code-style-improvem…
Browse files Browse the repository at this point in the history
…ents

Fix on modelize
  • Loading branch information
marcserrat authored Mar 27, 2019
2 parents aa3cd7f + 6c8c980 commit 052eb77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FulfillmentAutomation.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function listTierConfigs(array $filters = null)
$body = $this->sendRequest('GET', '/tier/config-requests' . $query);

/** @var Request[] $models */
$models = Model::modelize('tierconfigrequests', json_decode($body));
$models = Model::modelize('tierConfigRequests', json_decode($body));
foreach ($models as $index => $model) {
$models[$index]->requestProcessor = $this;
}
Expand Down Expand Up @@ -357,7 +357,7 @@ public function getTierConfigByProduct($tierId, $productId)
'GET',
'/tier/config-requests?status=approved&configuration__product__id=' . $productId . '&configuration__account__id=' . $tierId
);
$model = Model::modelize('tierconfigrequests', json_decode($body));
$model = Model::modelize('tierConfigRequests', json_decode($body));
if (count($model) > 0) {
return $model[0]->configuration;
}
Expand Down

0 comments on commit 052eb77

Please sign in to comment.