Passed
Push — v6 ( fe03e1...0ec70f )
by 光春
04:11
created

setVoucherId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
namespace Com\Pdd\Pop\Sdk\Api\Request;
3
4
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
5
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
6
7
class PddVoucherVoucherInfoSendRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(String, "order_sn")
15
	*/
16
	private $orderSn;
17
18
	/**
19
	* @JsonProperty(String, "out_biz_no")
20
	*/
21
	private $outBizNo;
22
23
	/**
24
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddVoucherVoucherInfoSendRequest_VoucherListItem>, "voucher_list")
25
	*/
26
	private $voucherList;
27
28
	protected function setUserParams(&$params)
29
	{
30
		$this->setUserParam($params, "order_sn", $this->orderSn);
31
		$this->setUserParam($params, "out_biz_no", $this->outBizNo);
32
		$this->setUserParam($params, "voucher_list", $this->voucherList);
33
34
	}
35
36
	public function getVersion()
37
	{
38
		return "V1";
39
	}
40
41
	public function getDataType()
42
	{
43
		return "JSON";
44
	}
45
46
	public function getType()
47
	{
48
		return "pdd.voucher.voucher.info.send";
49
	}
50
51
	public function setOrderSn($orderSn)
52
	{
53
		$this->orderSn = $orderSn;
54
	}
55
56
	public function setOutBizNo($outBizNo)
57
	{
58
		$this->outBizNo = $outBizNo;
59
	}
60
61
	public function setVoucherList($voucherList)
62
	{
63
		$this->voucherList = $voucherList;
64
	}
65
66
}
67
68
class PddVoucherVoucherInfoSendRequest_VoucherListItem extends PopBaseJsonEntity
69
{
70
71
	public function __construct()
72
	{
73
74
	}
75
76
	/**
77
	* @JsonProperty(String, "voucher_id")
78
	*/
79
	private $voucherId;
80
81
	/**
82
	* @JsonProperty(String, "voucher_no")
83
	*/
84
	private $voucherNo;
85
86
	public function setVoucherId($voucherId)
87
	{
88
		$this->voucherId = $voucherId;
89
	}
90
91
	public function setVoucherNo($voucherNo)
92
	{
93
		$this->voucherNo = $voucherNo;
94
	}
95
96
}
97