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 DataCustomersRetailCrm - Data set for WC_Retailcrm_Customers.
|
|
|
|
*
|
|
|
|
* @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 DataCustomersRetailCrm
|
|
|
|
{
|
2022-01-14 12:52:13 +03:00
|
|
|
public static function getCustomerAddress() {
|
|
|
|
return [
|
|
|
|
'success' => true,
|
2022-04-18 09:56:49 +03:00
|
|
|
'addresses' => [[
|
|
|
|
'index' => 123456,
|
|
|
|
'region' => 'test_state',
|
|
|
|
'city' => 'test_city',
|
|
|
|
'text' => 'test_address_line',
|
|
|
|
'isMain' => false
|
|
|
|
]]
|
2022-01-14 12:52:13 +03:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static function getEmptyCustomersList() {
|
|
|
|
return [
|
|
|
|
'success' => true,
|
|
|
|
'pagination' => [
|
|
|
|
'limit' => 20,
|
|
|
|
'totalCount' => 0,
|
|
|
|
'currentPage' => 1,
|
|
|
|
'totalPageCount' => 0
|
|
|
|
],
|
|
|
|
'customers' => [],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function getCustomersList() {
|
|
|
|
return [
|
|
|
|
'success' => true,
|
|
|
|
'pagination' => [
|
|
|
|
'limit' => 20,
|
|
|
|
'totalCount' => 0,
|
|
|
|
'currentPage' => 1,
|
|
|
|
'totalPageCount' => 0
|
|
|
|
],
|
|
|
|
'customers' => [
|
|
|
|
[
|
|
|
|
'type' => 'customer',
|
|
|
|
'id' => 4228,
|
|
|
|
'externalId' => 2,
|
|
|
|
'isContact' => false,
|
|
|
|
'email' => 'madrid@mail.es',
|
|
|
|
'phones' => [['number' => '+3456234235']],
|
|
|
|
'addresses' => [
|
|
|
|
'id' => 3503,
|
|
|
|
'index' => 144566,
|
|
|
|
'countryIso' => 'ES',
|
|
|
|
'region' => 'Region',
|
|
|
|
'city' => 'City',
|
|
|
|
'text' => 'street Test 777',
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
]
|
|
|
|
];
|
2021-12-20 11:41:41 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|