You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
1.5 KiB

  1. <?php
  2. /**
  3. * TOP API: taobao.xhotel.order.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017.09.04
  7. */
  8. namespace backend\modules\hotel\models\Ali;
  9. use common\models\commonModel;
  10. class XhotelOrderUpdateRequest extends commonModel
  11. {
  12. /**
  13. * 操作的类型:1.确认无房(取消预订,710发送短信提醒买家申请退款),2.确认预订
  14. **/
  15. public $opt_type;
  16. /**
  17. * 订单号
  18. **/
  19. public $tid;
  20. public $apiParas = array();
  21. public function getApiMethodName()
  22. {
  23. return "taobao.xhotel.order.update";
  24. }
  25. public function getApiParas()
  26. {
  27. return $this->apiParas;
  28. }
  29. public function setAttributes($values, $safeOnly = true)
  30. {
  31. if (is_array($values)) {
  32. $attributes = array_flip($safeOnly ? $this->safeAttributes() : $this->attributes());
  33. foreach ($values as $name => $value) {
  34. if (isset($attributes[$name])) {
  35. $this->apiParas[$name] = $value;
  36. } elseif ($safeOnly) {
  37. $this->onUnsafeAttribute($name, $value);
  38. }
  39. }
  40. }
  41. parent::setAttributes($values, $safeOnly);
  42. }
  43. public function rules()
  44. {
  45. return [
  46. [['tid'], 'required'],
  47. [['opt_type'], 'number']
  48. ];
  49. }
  50. public function putOtherTextParam($key, $value)
  51. {
  52. $this->apiParas[$key] = $value;
  53. $this->$key = $value;
  54. }
  55. }