WeChatBillDetail.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. /*
  3. * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. namespace TencentCloud\Faceid\V20180301\Models;
  18. use TencentCloud\Common\AbstractModel;
  19. /**
  20. * 账单详情
  21. *
  22. * @method string getBizToken() 获取token
  23. * @method void setBizToken(string $BizToken) 设置token
  24. * @method integer getChargeCount() 获取本token收费次数
  25. * @method void setChargeCount(integer $ChargeCount) 设置本token收费次数
  26. * @method array getChargeDetails() 获取本token计费详情
  27. * @method void setChargeDetails(array $ChargeDetails) 设置本token计费详情
  28. * @method string getRuleId() 获取业务RuleId
  29. * @method void setRuleId(string $RuleId) 设置业务RuleId
  30. */
  31. class WeChatBillDetail extends AbstractModel
  32. {
  33. /**
  34. * @var string token
  35. */
  36. public $BizToken;
  37. /**
  38. * @var integer 本token收费次数
  39. */
  40. public $ChargeCount;
  41. /**
  42. * @var array 本token计费详情
  43. */
  44. public $ChargeDetails;
  45. /**
  46. * @var string 业务RuleId
  47. */
  48. public $RuleId;
  49. /**
  50. * @param string $BizToken token
  51. * @param integer $ChargeCount 本token收费次数
  52. * @param array $ChargeDetails 本token计费详情
  53. * @param string $RuleId 业务RuleId
  54. */
  55. function __construct()
  56. {
  57. }
  58. /**
  59. * For internal only. DO NOT USE IT.
  60. */
  61. public function deserialize($param)
  62. {
  63. if ($param === null) {
  64. return;
  65. }
  66. if (array_key_exists("BizToken",$param) and $param["BizToken"] !== null) {
  67. $this->BizToken = $param["BizToken"];
  68. }
  69. if (array_key_exists("ChargeCount",$param) and $param["ChargeCount"] !== null) {
  70. $this->ChargeCount = $param["ChargeCount"];
  71. }
  72. if (array_key_exists("ChargeDetails",$param) and $param["ChargeDetails"] !== null) {
  73. $this->ChargeDetails = [];
  74. foreach ($param["ChargeDetails"] as $key => $value){
  75. $obj = new ChargeDetail();
  76. $obj->deserialize($value);
  77. array_push($this->ChargeDetails, $obj);
  78. }
  79. }
  80. if (array_key_exists("RuleId",$param) and $param["RuleId"] !== null) {
  81. $this->RuleId = $param["RuleId"];
  82. }
  83. }
  84. }