ReceiveOrderData   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 11
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequestPath() 0 3 1
A getRequestMethod() 0 3 1
1
<?php
2
/**
3
 * This file is part of the mucts.com.
4
 *
5
 * This source file is subject to the MIT license that is bundled
6
 * with this source code in the file LICENSE.
7
 *
8
 * @version 1.0
9
 * @author herry<[email protected]>
10
 * @copyright © 2020  MuCTS.com All Rights Reserved.
11
 */
12
13
namespace MuCTS\Sobot\OnlineStatistics;
14
15
16
use MuCTS\Sobot\Contracts\Sobot;
17
18
/**
19
 * Class ReceiveOrderData
20
 * 订单统计推送接口
21
 *
22
 * 接口说明:
23
 * 接口作用:客服订单推送接口
24
 *
25
 * @property-read string|null $union_code 平台ID,不能大于32个字符
26
 * @property-read string|null $companyid 公司ID,不能大于32个字符
27
 * @property-read string $order_number 订单编号,不能大于32个字符
28
 * @property-read string $cus_partnerid 下订单客户对接ID,不能大于32个字符
29
 * @property-read string $order_time 订单时间,格式:2019-09-25 15:49:33
30
 * @property-read float $order_money 订单金额,最大支持小数点后两位
31
 *
32
 * @method  ReceiveOrderData unionCode(?string $value) 平台ID,不能大于32个字符
33
 * @method  ReceiveOrderData companyid(?string $value) 公司ID,不能大于32个字符
34
 * @method  ReceiveOrderData orderNumber(string $value) 订单编号,不能大于32个字符
35
 * @method  ReceiveOrderData cusPartnerid(string $value) 下订单客户对接ID,不能大于32个字符
36
 * @method  ReceiveOrderData orderTime(string $value) 订单时间,格式:2019-09-25 15:49:33
37
 * @method  ReceiveOrderData orderMoney(float $value) 订单金额,最大支持小数点后两位
38
 * @package MuCTS\Sobot\OnlineStatistics
39
 */
40
class ReceiveOrderData extends Sobot
41
{
42
43
    public function getRequestMethod(): string
44
    {
45
        return self::METHOD_POST;
46
    }
47
48
    public function getRequestPath(): string
49
    {
50
        return '/chat-third/api/5/order/receive_order_data';
51
    }
52
}