Skip to content

Commit

Permalink
Merge pull request #10 from Returnless-com/add-php82-support
Browse files Browse the repository at this point in the history
Fixed CreditmemoSender, CreditmemoLoader, copyright. Set v1.2.7
  • Loading branch information
sedonik authored Jun 20, 2023
2 parents f7f6fbc + d152954 commit 46cefc7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Model/Api/OrderCreditMemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ class OrderCreditMemo implements OrderCreditMemoInterface
/**
* @var CreditmemoSender
*/
protected $creditmemoSender;
protected $creditMemoSender;

/**
* @var CreditmemoLoader
*/
protected $creditmemoLoader;
protected $creditMemoLoader;

/**
* OrderCoupon constructor.
*
* @param CreditmemoSender $creditmemoSender
* @param CreditmemoLoader $creditmemoLoader
* @param CreditmemoSender $creditMemoSender
* @param CreditmemoLoader $creditMemoLoader
* @param CreditmemoFactory $creditMemoFactory
* @param CreditmemoManagementInterface $creditMemoService
* @param Invoice $invoice
Expand Down
4 changes: 2 additions & 2 deletions Model/Api/OrderInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ public function getOrderInfoReturnless($incrementId)
$orderInfo['id'] = $order->getIncrementId();
$orderInfo['order_id'] = $order->getEntityId();
$orderInfo['create_at']['value'] = $order->getCreatedAt();

$payment = $order->getPayment();
$methodTitle = '';
if($payment) {
$method = $payment->getMethodInstance();
$methodTitle = $method->getTitle();
$orderInfo['payment_method']['name'] = $methodTitle;
}

$orderInfo['customer']['id'] = $order->getCustomerId();
$orderInfo['customer']['email'] = $order->getCustomerEmail();

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ If you experience problems with the extension installation, setup or whenever yo

## License ##
[BSD (Berkeley Software Distribution) License](http://www.opensource.org/licenses/bsd-license.php).
Copyright (c) 2018-2020, Returnless
Copyright (c) 2018-2023, Returnless
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"OSL-3.0",
"AFL-3.0"
],
"version": "1.2.6"
"version": "1.2.7"
}
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Returnless_Connector" setup_version="1.2.6">
<module name="Returnless_Connector" setup_version="1.2.7">
<sequence>
<module name="Magento_Sales"/>
</sequence>
Expand Down

0 comments on commit 46cefc7

Please sign in to comment.