ConversionDataIntlRequest.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
  4. use AlibabaCloud\Tea\Model;
  5. class ConversionDataIntlRequest extends Model
  6. {
  7. /**
  8. * @example 0.53
  9. *
  10. * @var string
  11. */
  12. public $conversionRate;
  13. /**
  14. * @var int
  15. */
  16. public $ownerId;
  17. /**
  18. * @example 1349055900000
  19. *
  20. * @var int
  21. */
  22. public $reportTime;
  23. /**
  24. * @var string
  25. */
  26. public $resourceOwnerAccount;
  27. /**
  28. * @var int
  29. */
  30. public $resourceOwnerId;
  31. protected $_name = [
  32. 'conversionRate' => 'ConversionRate',
  33. 'ownerId' => 'OwnerId',
  34. 'reportTime' => 'ReportTime',
  35. 'resourceOwnerAccount' => 'ResourceOwnerAccount',
  36. 'resourceOwnerId' => 'ResourceOwnerId',
  37. ];
  38. public function validate()
  39. {
  40. }
  41. public function toMap()
  42. {
  43. $res = [];
  44. if (null !== $this->conversionRate) {
  45. $res['ConversionRate'] = $this->conversionRate;
  46. }
  47. if (null !== $this->ownerId) {
  48. $res['OwnerId'] = $this->ownerId;
  49. }
  50. if (null !== $this->reportTime) {
  51. $res['ReportTime'] = $this->reportTime;
  52. }
  53. if (null !== $this->resourceOwnerAccount) {
  54. $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
  55. }
  56. if (null !== $this->resourceOwnerId) {
  57. $res['ResourceOwnerId'] = $this->resourceOwnerId;
  58. }
  59. return $res;
  60. }
  61. /**
  62. * @param array $map
  63. *
  64. * @return ConversionDataIntlRequest
  65. */
  66. public static function fromMap($map = [])
  67. {
  68. $model = new self();
  69. if (isset($map['ConversionRate'])) {
  70. $model->conversionRate = $map['ConversionRate'];
  71. }
  72. if (isset($map['OwnerId'])) {
  73. $model->ownerId = $map['OwnerId'];
  74. }
  75. if (isset($map['ReportTime'])) {
  76. $model->reportTime = $map['ReportTime'];
  77. }
  78. if (isset($map['ResourceOwnerAccount'])) {
  79. $model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
  80. }
  81. if (isset($map['ResourceOwnerId'])) {
  82. $model->resourceOwnerId = $map['ResourceOwnerId'];
  83. }
  84. return $model;
  85. }
  86. }