ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd">
|
||||
<group id="default">
|
||||
<job name="customer_netsuite_sync" instance="Lts\Customer\Cron\CustomerNetsuiteSync" method="execute">
|
||||
<schedule>*/5 * * * *</schedule>
|
||||
</job>
|
||||
</group>
|
||||
</config>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="customer_entity">
|
||||
<column name="is_netsuite_sync" nullable="true" xsi:type="smallint" comment="is synced to Netsuite" />
|
||||
<column name="netsuite_status" nullable="true" xsi:type="varchar" length="255" comment="Netsuite Customer Status(Stage)" />
|
||||
<column name="netsuite_cseg_ncg_rep_office" nullable="true" xsi:type="varchar" length="255" />
|
||||
</table>
|
||||
</schema>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
|
||||
|
||||
<preference for="Lts\Customer\Api\CustomerRepositoryInterface" type="Lts\Customer\Model\CustomerRepository" />
|
||||
|
||||
<type name="Magento\Framework\Console\CommandList">
|
||||
<arguments>
|
||||
<argument name="commands" xsi:type="array">
|
||||
<item name="add_inventory_source_customer" xsi:type="object">Lts\Customer\Console\Command\AddInventorySourceCustomer</item>
|
||||
<item name="test" xsi:type="object">Lts\Customer\Console\Command\Test</item>
|
||||
<item name="customer_data_import_from_netsuite" xsi:type="object">Lts\Customer\Console\Command\CustomerDataImportFromNetsuite</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
|
||||
<type name="Lts\Customer\Logger\Handler">
|
||||
<arguments>
|
||||
<argument name="filesystem" xsi:type="object">Magento\Framework\Filesystem\Driver\File</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
<type name="Lts\Customer\Logger\Logger">
|
||||
<arguments>
|
||||
<argument name="name" xsi:type="string">netsuite</argument>
|
||||
<argument name="handlers" xsi:type="array">
|
||||
<item name="system" xsi:type="object">Lts\Customer\Logger\Handler</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</type>
|
||||
|
||||
</config>
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" ?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
|
||||
|
||||
<event name="customer_register_success">
|
||||
<observer name="customer_wait_for_sync_to_netsuite" instance="Lts\Customer\Observer\Frontend\Customer\WaitForSyncToNetSuite"/>
|
||||
</event>
|
||||
</config>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
|
||||
<extension_attributes for="Magento\Customer\Api\Data\CustomerInterface">
|
||||
<attribute code="is_netsuite_sync" type="string"/>
|
||||
<attribute code="netsuite_status" type="string"/>
|
||||
<attribute code="netsuite_cseg_ncg_rep_office" type="string"/>
|
||||
</extension_attributes>
|
||||
</config>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?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="Lts_Customer">
|
||||
<sequence>
|
||||
<module name="Magento_Customer"/>
|
||||
</sequence>
|
||||
</module>
|
||||
</config>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
|
||||
|
||||
<route url="/V1/customers" method="PUT">
|
||||
<service class="Lts\Customer\Api\CustomerRepositoryInterface" method="save"/>
|
||||
<resources>
|
||||
<resource ref="Magento_Customer::customer"/>
|
||||
</resources>
|
||||
</route>
|
||||
</routes>
|
||||
Reference in New Issue
Block a user