1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\BssOpenApi\V20171214; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Rpc; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Api ApplyInvoice |
9
|
|
|
* |
10
|
|
|
* @method string getInvoicingType() |
11
|
|
|
* @method string getApplyUserNick() |
12
|
|
|
* @method string getInvoiceByAmount() |
13
|
|
|
* @method string getCustomerId() |
14
|
|
|
* @method array getSelectedIds() |
15
|
|
|
* @method string getProcessWay() |
16
|
|
|
* @method string getCallerBid() |
17
|
|
|
* @method string getOwnerId() |
18
|
|
|
* @method string getInvoiceAmount() |
19
|
|
|
* @method string getAddressId() |
20
|
|
|
* @method string getCallerUid() |
21
|
|
|
*/ |
22
|
|
|
class ApplyInvoice extends Rpc |
23
|
|
|
{ |
24
|
|
|
public $product = 'BssOpenApi'; |
25
|
|
|
|
26
|
|
|
public $version = '2017-12-14'; |
27
|
|
|
|
28
|
|
|
public $method = 'POST'; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @param string $invoicingType |
32
|
|
|
* |
33
|
|
|
* @return $this |
34
|
|
|
*/ |
35
|
|
|
public function withInvoicingType($invoicingType) |
36
|
|
|
{ |
37
|
|
|
$this->data['InvoicingType'] = $invoicingType; |
38
|
|
|
$this->options['query']['InvoicingType'] = $invoicingType; |
39
|
|
|
|
40
|
|
|
return $this; |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @param string $applyUserNick |
45
|
|
|
* |
46
|
|
|
* @return $this |
47
|
|
|
*/ |
48
|
|
|
public function withApplyUserNick($applyUserNick) |
49
|
|
|
{ |
50
|
|
|
$this->data['ApplyUserNick'] = $applyUserNick; |
51
|
|
|
$this->options['query']['ApplyUserNick'] = $applyUserNick; |
52
|
|
|
|
53
|
|
|
return $this; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @param string $invoiceByAmount |
58
|
|
|
* |
59
|
|
|
* @return $this |
60
|
|
|
*/ |
61
|
|
|
public function withInvoiceByAmount($invoiceByAmount) |
62
|
|
|
{ |
63
|
|
|
$this->data['InvoiceByAmount'] = $invoiceByAmount; |
64
|
|
|
$this->options['query']['InvoiceByAmount'] = $invoiceByAmount; |
65
|
|
|
|
66
|
|
|
return $this; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @param string $customerId |
71
|
|
|
* |
72
|
|
|
* @return $this |
73
|
|
|
*/ |
74
|
|
|
public function withCustomerId($customerId) |
75
|
|
|
{ |
76
|
|
|
$this->data['CustomerId'] = $customerId; |
77
|
|
|
$this->options['query']['CustomerId'] = $customerId; |
78
|
|
|
|
79
|
|
|
return $this; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @param array $selectedIds |
84
|
|
|
* |
85
|
|
|
* @return $this |
86
|
|
|
*/ |
87
|
|
|
public function withSelectedIds(array $selectedIds) |
88
|
|
|
{ |
89
|
|
|
$this->data['SelectedIds'] = $selectedIds; |
90
|
|
|
foreach ($selectedIds as $i => $iValue) { |
91
|
|
|
$this->options['query']['SelectedIds.' . ($i + 1)] = $iValue; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
return $this; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @param string $processWay |
99
|
|
|
* |
100
|
|
|
* @return $this |
101
|
|
|
*/ |
102
|
|
|
public function withProcessWay($processWay) |
103
|
|
|
{ |
104
|
|
|
$this->data['ProcessWay'] = $processWay; |
105
|
|
|
$this->options['query']['ProcessWay'] = $processWay; |
106
|
|
|
|
107
|
|
|
return $this; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @param string $callerBid |
112
|
|
|
* |
113
|
|
|
* @return $this |
114
|
|
|
*/ |
115
|
|
|
public function withCallerBid($callerBid) |
116
|
|
|
{ |
117
|
|
|
$this->data['CallerBid'] = $callerBid; |
118
|
|
|
$this->options['query']['callerBid'] = $callerBid; |
119
|
|
|
|
120
|
|
|
return $this; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @param string $ownerId |
125
|
|
|
* |
126
|
|
|
* @return $this |
127
|
|
|
*/ |
128
|
|
|
public function withOwnerId($ownerId) |
129
|
|
|
{ |
130
|
|
|
$this->data['OwnerId'] = $ownerId; |
131
|
|
|
$this->options['query']['OwnerId'] = $ownerId; |
132
|
|
|
|
133
|
|
|
return $this; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @param string $invoiceAmount |
138
|
|
|
* |
139
|
|
|
* @return $this |
140
|
|
|
*/ |
141
|
|
|
public function withInvoiceAmount($invoiceAmount) |
142
|
|
|
{ |
143
|
|
|
$this->data['InvoiceAmount'] = $invoiceAmount; |
144
|
|
|
$this->options['query']['InvoiceAmount'] = $invoiceAmount; |
145
|
|
|
|
146
|
|
|
return $this; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @param string $addressId |
151
|
|
|
* |
152
|
|
|
* @return $this |
153
|
|
|
*/ |
154
|
|
|
public function withAddressId($addressId) |
155
|
|
|
{ |
156
|
|
|
$this->data['AddressId'] = $addressId; |
157
|
|
|
$this->options['query']['AddressId'] = $addressId; |
158
|
|
|
|
159
|
|
|
return $this; |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
/** |
163
|
|
|
* @param string $callerUid |
164
|
|
|
* |
165
|
|
|
* @return $this |
166
|
|
|
*/ |
167
|
|
|
public function withCallerUid($callerUid) |
168
|
|
|
{ |
169
|
|
|
$this->data['CallerUid'] = $callerUid; |
170
|
|
|
$this->options['query']['callerUid'] = $callerUid; |
171
|
|
|
|
172
|
|
|
return $this; |
173
|
|
|
} |
174
|
|
|
} |
175
|
|
|
|