Skip to content

Commit

Permalink
Merge pull request #73 from mundipagg/develop
Browse files Browse the repository at this point in the history
Merge Develop into Master
  • Loading branch information
GabrielDeveloper authored Jun 25, 2019
2 parents 851e514 + bfb5fa7 commit 7d5d2d9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mundipagg/ecommerce-module-core",
"license": "MIT",
"version": "1.10.1",
"version": "1.10.2",
"authors":[
{
"name":"MundiPagg Embeddables Team",
Expand Down
10 changes: 5 additions & 5 deletions src/Hub/Factories/HubCommandFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public function createFromStdClass($object)
$command = new $commandClass();

$command->setAccessToken(
new HubAccessTokenKey($object->accessToken)
new HubAccessTokenKey($object->access_token)
);
$command->setAccountId(
new AccountId($object->accountId)
new AccountId($object->account_id)
);

$type = $object->type;
Expand All @@ -53,15 +53,15 @@ public function createFromStdClass($object)
}

$command->setAccountPublicKey(
new $publicKeyClass($object->accountPublicKey)
new $publicKeyClass($object->account_public_key)
);

$command->setInstallId(
new GUID($object->installId)
new GUID($object->install_id)
);

$command->setMerchantId(
new MerchantId($object->merchantId)
new MerchantId($object->merchant_id)
);

return $command;
Expand Down
4 changes: 2 additions & 2 deletions src/Hub/Services/HubIntegrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ public function endHubIntegration(
];

if ($hubCallbackUrl) {
$body['hubCallbackUrl'] = $hubCallbackUrl;
$body['hub_callback_url'] = $hubCallbackUrl;
}

if ($webhookUrl) {
$body['webhookUrl'] = $webhookUrl;
$body['webhook_url'] = $webhookUrl;
}

$url = 'https://hubapi.mundipagg.com/auth/apps/access-tokens';
Expand Down
Loading

0 comments on commit 7d5d2d9

Please sign in to comment.