Skip to content

Commit

Permalink
Adding dispatcher class to test the DB entry and if it works
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboo-singhvi committed Oct 8, 2024
1 parent c5a740a commit 52e2cbc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/AdyenAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AdyenAnalytics extends AbstractModel implements AdyenAnalyticsInterface
{
protected function _construct()
{
$this->_init('Vendor\Module\Model\ResourceModel\AdyenAnalytics');
$this->_init('Adyen\Payment\Model\ResourceModel\AdyenAnalytics');
}

public function getCheckoutAttemptId()
Expand Down
2 changes: 1 addition & 1 deletion Model/ResourceModel/AdyenAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ class AdyenAnalytics extends AbstractDb
{
protected function _construct()
{
$this->_init('adyen_analytics', 'id'); // Table name and primary key
$this->_init('adyen_analytics', 'id');
}
}
7 changes: 7 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1671,6 +1671,13 @@
</argument>
</arguments>
</type>
<type name="Adyen\Payment\Api\Data\AdyenAnalyticsInterface">
<arguments>
<argument name="instance" xsi:type="string">Adyen\Payment\Model\AdyenAnalytics</argument>
</arguments>
</type>
<preference for="Adyen\Payment\Api\Data\AdyenAnalyticsInterface" type="Adyen\Payment\Model\AdyenAnalytics"/>
<preference for="Adyen\Payment\Api\AdyenAnalyticsRepositoryInterface" type="Adyen\Payment\Model\AdyenAnalyticsRepository"/>
<preference for="Adyen\Payment\Api\GuestAdyenPaymentMethodManagementInterface" type="Adyen\Payment\Model\Api\GuestAdyenPaymentMethodManagement" />
<preference for="Adyen\Payment\Api\AdyenPaymentMethodManagementInterface" type="Adyen\Payment\Model\Api\AdyenPaymentMethodManagement" />
<preference for="Adyen\Payment\Api\AdyenPaymentsDetailsInterface" type="Adyen\Payment\Model\Api\AdyenPaymentsDetails" />
Expand Down

0 comments on commit 52e2cbc

Please sign in to comment.