|
- <?php
- /**
- * TOP API: taobao.xhotel.order.update request
- *
- * @author auto create
- * @since 1.0, 2017.09.04
- */
-
- namespace backend\modules\hotel\models\Ali;
-
- use common\models\commonModel;
-
- class XhotelOrderUpdateRequest extends commonModel
- {
- /**
- * 操作的类型:1.确认无房(取消预订,710发送短信提醒买家申请退款),2.确认预订
- **/
- public $opt_type;
-
- /**
- * 订单号
- **/
- public $tid;
-
- public $apiParas = array();
-
-
- public function getApiMethodName()
- {
- return "taobao.xhotel.order.update";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
- public function setAttributes($values, $safeOnly = true)
- {
- if (is_array($values)) {
- $attributes = array_flip($safeOnly ? $this->safeAttributes() : $this->attributes());
- foreach ($values as $name => $value) {
- if (isset($attributes[$name])) {
- $this->apiParas[$name] = $value;
- } elseif ($safeOnly) {
- $this->onUnsafeAttribute($name, $value);
- }
- }
- }
- parent::setAttributes($values, $safeOnly);
- }
-
- public function rules()
- {
- return [
- [['tid'], 'required'],
- [['opt_type'], 'number']
- ];
- }
- public function putOtherTextParam($key, $value)
- {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|