1 | <?php |
||
15 | class AnswerShippingQuery extends BaseType |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | static protected $requiredParams = ['shipping_query_id', 'ok']; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | static protected $map = [ |
||
26 | 'shipping_query_id' => true, |
||
27 | 'ok' => true, |
||
28 | 'shipping_options' => ArrayOfLabeledPrice::class, |
||
29 | 'error_message' => true, |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * Unique identifier for the query to be answered |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $shippingQueryId; |
||
38 | |||
39 | /** |
||
40 | * Specify True if delivery to the specified address is possible and False if there are any problems |
||
41 | * |
||
42 | * @var true |
||
43 | */ |
||
44 | protected $ok; |
||
45 | |||
46 | /** |
||
47 | * Required if ok is True. A JSON-serialized array of available shipping options. |
||
48 | * |
||
49 | * @var array |
||
50 | */ |
||
51 | protected $shippingOptions; |
||
52 | |||
53 | /** |
||
54 | * Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $errorMessage; |
||
59 | |||
60 | /** |
||
61 | * @author MY |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getShippingQueryId() |
||
68 | |||
69 | /** |
||
70 | * @author MY |
||
71 | * @param string $shippingQueryId |
||
72 | */ |
||
73 | public function setShippingQueryId($shippingQueryId) |
||
77 | |||
78 | /** |
||
79 | * @author MY |
||
80 | * @return bool |
||
81 | */ |
||
82 | public function getOk() |
||
86 | |||
87 | /** |
||
88 | * @author MY |
||
89 | * @param true $ok |
||
90 | */ |
||
91 | public function setOk($ok) |
||
95 | |||
96 | /** |
||
97 | * @author MY |
||
98 | * @return array |
||
99 | */ |
||
100 | public function getShippingOptions() |
||
104 | |||
105 | /** |
||
106 | * @author MY |
||
107 | * @param array $shippingOptions |
||
108 | */ |
||
109 | public function setShippingOptions($shippingOptions) |
||
113 | |||
114 | /** |
||
115 | * @author MY |
||
116 | * @return string |
||
117 | */ |
||
118 | public function getErrorMessage() |
||
122 | |||
123 | /** |
||
124 | * @author MY |
||
125 | * @param string $errorMessage |
||
126 | */ |
||
127 | public function setErrorMessage($errorMessage) |
||
131 | } |
||
132 |