-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added MerchantProductImport functionality cleaned up from redundant l…
…ogic
- Loading branch information
1 parent
f02e34c
commit eebc286
Showing
61 changed files
with
2,254 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Pyz/Shared/MerchantProductImport/MerchantProductImportConstants.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Spryker Commerce OS. | ||
* For full license information, please view the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Pyz\Shared\MerchantProductImport; | ||
|
||
interface MerchantProductImportConstants | ||
{ | ||
public const IMPORT_UPLOAD_READ_LIMIT = 'MERCHANT_PRODUCT_IMPORT:IMPORT_UPLOAD_READ_LIMIT'; | ||
} |
54 changes: 54 additions & 0 deletions
54
src/Pyz/Shared/MerchantProductImport/Transfer/merchant_product_import.transfer.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0"?> | ||
<transfers xmlns="spryker:transfer-01" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="spryker:transfer-01 http://static.spryker.com/transfer-01.xsd"> | ||
|
||
<transfer name="ImportUpload" strict="true"> | ||
<property name="idImportUpload" type="int"/> | ||
<property name="fkMerchant" type="int"/> | ||
<property name="fkUser" type="int"/> | ||
<property name="status" type="string"/> | ||
<property name="numberOfProducts" type="int"/> | ||
<property name="totalNumberOfProducts" type="int"/> | ||
<property name="numberOfProductsFailed" type="int"/> | ||
<property name="numberOfProductsUploaded" type="int"/> | ||
<property name="errors" type="string"/> | ||
<property name="createdAt" type="string"/> | ||
<property name="statusUpdatedAt" type="string"/> | ||
<property name="startedAt" type="string"/> | ||
<property name="finishedAt" type="string"/> | ||
<property name="originalFileName" type="string"/> | ||
<property name="merchant" type="Merchant"/> | ||
<property name="user" type="User"/> | ||
<property name="fileUpload" type="FileUpload"/> | ||
</transfer> | ||
|
||
<transfer name="ImportUploadCollection"> | ||
<property name="importUploads" type="ImportUpload[]" singular="importUpload"/> | ||
<property name="pagination" type="Pagination"/> | ||
</transfer> | ||
|
||
<transfer name="ImportUploadCriteria"> | ||
<property name="importUploadConditions" type="ImportUploadConditions"/> | ||
<property name="pagination" type="Pagination"/> | ||
<property name="sortCollection" type="Sort[]" singular="sort"/> | ||
</transfer> | ||
|
||
<transfer name="ImportUploadConditions"> | ||
<property name="idImportUpload" type="int"/> | ||
<property name="idMerchant" type="int"/> | ||
<property name="idUser" type="int"/> | ||
<property name="status" type="string"/> | ||
</transfer> | ||
|
||
<transfer name="ImportProcessResponse"> | ||
|
||
</transfer> | ||
|
||
<transfer name="ImportUploadResponse"> | ||
<property name="importUpload" type="ImportUpload"/> | ||
<property name="isSuccessful" type="bool" strict="true"/> | ||
<property name="message" type="string" strict="true"/> | ||
</transfer> | ||
|
||
</transfers> |
16 changes: 16 additions & 0 deletions
16
...ImportMerchantPortalGui/Transfer/merchant_product_import_merchant_portal_gui.transfer.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<transfers xmlns="spryker:transfer-01" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="spryker:transfer-01 http://static.spryker.com/transfer-01.xsd"> | ||
|
||
<transfer name="ProductImportGuiTableCriteria"> | ||
<property name="fkMerchant" type="int"/> | ||
<property name="status" type="string"/> | ||
<property name="page" type="int"/> | ||
<property name="pageSize" type="int"/> | ||
<property name="orderBy" type="string"/> | ||
<property name="orderDirection" type="string"/> | ||
<property name="filterStatus" type="string"/> | ||
</transfer> | ||
|
||
</transfers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.