1
0
mirror of synced 2025-02-07 02:29:23 +03:00
woocommerce-module/tests/datasets/data-inventories-retailcrm.php

55 lines
1.5 KiB
PHP
Raw Normal View History

2021-12-20 11:41:41 +03:00
<?php
namespace datasets;
2022-01-10 12:53:00 +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()
{
return [
2021-12-20 11:41:41 +03:00
'success' => true,
'pagination' => [
2021-12-20 11:41:41 +03:00
'limit' => 250,
'totalCount' => 1,
'currentPage' => 1,
'totalPageCount' => 1
],
'offers' => [
[
2021-12-20 11:41:41 +03:00
'id' => 1,
'xmlId' => 'xmlId',
'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
}
}