Skip to content

Commit

Permalink
🔀 merge with develop
Browse files Browse the repository at this point in the history
  • Loading branch information
wallaceSF committed Feb 18, 2020
2 parents 552e6f5 + 0d52fa4 commit 511327c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mundipagg/ecommerce-module-core",
"description": "Core component for Mundipagg e-commerce platform modules.",
"license": "MIT",
"version": "2.0.0",
"version": "2.0.1",
"authors": [
{
"name": "MundiPagg Embeddables Team",
Expand Down
2 changes: 1 addition & 1 deletion src/Maintenance/Assets/integrityData

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Webhook/Exceptions/UnprocessableWebhookException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class UnprocessableWebhookException extends AbstractMundipaggCoreException
/**
* UnprocessableWebhookException constructor.
*/
public function __construct($message)
public function __construct($message, $code = 422)
{
parent::__construct($message, 422);
parent::__construct($message, $code);
}
}
3 changes: 2 additions & 1 deletion src/Webhook/Services/OrderHandlerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ private function canBePaid($order)
if ($canBePaid === false) {
$chargesStatuses = json_encode($chargesStatuses);
throw new UnprocessableWebhookException(
"One or more charges of the order are in a state that is not compatible with an paid order. Charge Statuses: $chargesStatuses"
"One or more charges of the order are in a state that is not compatible with an paid order. Charge Statuses: $chargesStatuses",
500
);
}
}
Expand Down

0 comments on commit 511327c

Please sign in to comment.