93 lines
2.3 KiB
PHP
93 lines
2.3 KiB
PHP
<?php
|
|
|
|
namespace datasets;
|
|
|
|
/**
|
|
* PHP version 5.6
|
|
*
|
|
* Class DataBaseRetailCrm - Data set for WC_Retailcrm_Base.
|
|
*
|
|
* @category Integration
|
|
* @author RetailCRM <integration@retailcrm.ru>
|
|
* @license http://retailcrm.ru Proprietary
|
|
* @link http://retailcrm.ru
|
|
* @see http://help.retailcrm.ru
|
|
*/
|
|
class DataBaseRetailCrm
|
|
{
|
|
public static function getResponseStatuses()
|
|
{
|
|
return array(
|
|
'success' => true,
|
|
'statuses' => array(
|
|
array(
|
|
'name' => 'status1',
|
|
'code' => 'status1',
|
|
'active' => true
|
|
),
|
|
array(
|
|
'name' => 'status2',
|
|
'code' => 'status2',
|
|
'active' => false
|
|
)
|
|
)
|
|
);
|
|
}
|
|
|
|
public static function getResponsePaymentTypes()
|
|
{
|
|
return array(
|
|
'success' => true,
|
|
'paymentTypes' => array(
|
|
array(
|
|
'name' => 'payment1',
|
|
'code' => 'payment1',
|
|
'active' => true
|
|
),
|
|
array(
|
|
'name' => 'payment2',
|
|
'code' => 'payment2',
|
|
'active' => false
|
|
)
|
|
)
|
|
);
|
|
}
|
|
|
|
public static function getResponseDeliveryTypes()
|
|
{
|
|
return array(
|
|
'success' => true,
|
|
'deliveryTypes' => array(
|
|
array(
|
|
'name' => 'delivery1',
|
|
'code' => 'delivery1',
|
|
'active' => true
|
|
),
|
|
array(
|
|
'name' => 'delivery2',
|
|
'code' => 'delivery2',
|
|
'active' => false
|
|
)
|
|
)
|
|
);
|
|
}
|
|
|
|
public static function getResponseOrderMethods()
|
|
{
|
|
return array(
|
|
'success' => true,
|
|
'orderMethods' => array(
|
|
array(
|
|
'name' => 'orderMethod1',
|
|
'code' => 'orderMethod1',
|
|
'active' => true
|
|
),
|
|
array(
|
|
'name' => 'orderMethod2',
|
|
'code' => 'orderMethod2',
|
|
'active' => false
|
|
)
|
|
)
|
|
);
|
|
}
|
|
} |