Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Feb 4, 2025
2 parents bec41d9 + 8546697 commit 4487299
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Vendors/MeghnaBankApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function requestQuote($order): AssignVendorVerdict
{
$response = $this->get('/remitEnquiry', [
'queryType' => 1,
'confRate' => 'y'
'confRate' => 'y',
]);

return AssignVendorVerdict::make([
Expand Down Expand Up @@ -217,10 +217,10 @@ public function executeOrder(BaseModel $order): AssignVendorVerdict

if (in_array($response['Code'], ['0001', '0002'])) {
$verdict->status('true')
->orderTimeline("(Meghna Bank) responded code: {$response['Code']}, message: " . strtolower($response['Message']) . '.');
->orderTimeline("(Meghna Bank) responded code: {$response['Code']}, message: ".strtolower($response['Message']).'.');
} else {
$verdict->status('false')
->orderTimeline('(Meghna Bank) reported error: ' . strtolower($response['Message']) . '.', 'warn');
->orderTimeline('(Meghna Bank) reported error: '.strtolower($response['Message']).'.', 'warn');
}

return $verdict;
Expand Down Expand Up @@ -265,7 +265,7 @@ public function trackOrder(BaseModel $order): AssignVendorVerdict
'ordpinNo' => $ref_number,
]);

$response = array_shift($response);
$response = array_shift($response);

$verdict = AssignVendorVerdict::make([
'original' => $response,
Expand All @@ -274,7 +274,7 @@ public function trackOrder(BaseModel $order): AssignVendorVerdict
'charge' => $order->charge_amount,
'discount' => $order->discount_amount,
'commission' => $order->commission_amount,
'status' => 'false'
'status' => 'false',
]);

if (isset($response['Code'])) {
Expand All @@ -285,7 +285,7 @@ public function trackOrder(BaseModel $order): AssignVendorVerdict
}

$verdict->status('true')
->orderTimeline("(Meghna Bank) responded with the request was successful.");
->orderTimeline('(Meghna Bank) responded with the request was successful.');

return $verdict;

Expand Down

0 comments on commit 4487299

Please sign in to comment.