1: <?php
2: namespace Izberg\Resource;
3: use Izberg\Resource;
4:
5: class ReturnRequest extends Resource
6: {
7: public function getName()
8: {
9: return "return";
10: }
11:
12: 13: 14:
15: public function accept()
16: {
17: $response = self::$Izberg->Call($this->getName()."/". $this->id ."/accept/", "POST");
18: $this->hydrate($response);
19: return $this;
20: }
21:
22: 23: 24:
25: public function received()
26: {
27: $response = self::$Izberg->Call($this->getName()."/". $this->id ."/received/", "POST");
28: $this->hydrate($response);
29: return $this;
30: }
31:
32: 33: 34:
35: public function close()
36: {
37: $response = self::$Izberg->Call($this->getName()."/". $this->id ."/seller_close/", "POST");
38: $this->hydrate($response);
39: return $this;
40: }
41: }
42: