2021-12-20 11:41:41 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace datasets;
|
|
|
|
|
2022-01-10 12:53:00 +03:00
|
|
|
/**
|
2022-09-30 17:50:15 +03:00
|
|
|
* PHP version 7.0
|
2022-01-10 12:53:00 +03:00
|
|
|
*
|
|
|
|
* Class DataInventoriesRetailCrm - Data set for WC_Retailcrm_Inventories.
|
|
|
|
*
|
|
|
|
* @category Integration
|
|
|
|
* @author RetailCRM <integration@retailcrm.ru>
|
|
|
|
* @license http://retailcrm.ru Proprietary
|
|
|
|
* @link http://retailcrm.ru
|
|
|
|
* @see http://help.retailcrm.ru
|
|
|
|
*/
|
2021-12-20 11:41:41 +03:00
|
|
|
class DataInventoriesRetailCrm {
|
|
|
|
public static function getResponseData()
|
|
|
|
{
|
2023-07-06 13:43:54 +03:00
|
|
|
return [
|
2021-12-20 11:41:41 +03:00
|
|
|
'success' => true,
|
2023-07-06 13:43:54 +03:00
|
|
|
'pagination' => [
|
2021-12-20 11:41:41 +03:00
|
|
|
'limit' => 250,
|
|
|
|
'totalCount' => 1,
|
|
|
|
'currentPage' => 1,
|
|
|
|
'totalPageCount' => 1
|
2023-07-06 13:43:54 +03:00
|
|
|
],
|
|
|
|
'offers' => [
|
|
|
|
[
|
2021-12-20 11:41:41 +03:00
|
|
|
'id' => 1,
|
|
|
|
'xmlId' => 'xmlId',
|
2023-07-06 13:43:54 +03:00
|
|
|
'quantity' => 100,
|
|
|
|
'stores' => [
|
|
|
|
[
|
|
|
|
'quantity' => 25,
|
|
|
|
'purchasePrice' => 0,
|
|
|
|
'store' => 'main'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'quantity' => 25,
|
|
|
|
'purchasePrice' => 0,
|
|
|
|
'store' => 'woocommerce'
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'quantity' => 50,
|
|
|
|
'purchasePrice' => 0,
|
|
|
|
'store' => 'prestashop'
|
|
|
|
],
|
|
|
|
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
];
|
2021-12-20 11:41:41 +03:00
|
|
|
}
|
2023-07-06 13:43:54 +03:00
|
|
|
}
|