DysmsapiApiResolver.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <?php
  2. namespace AlibabaCloud\Dysmsapi\V20170525;
  3. use AlibabaCloud\Client\Resolver\ApiResolver;
  4. /**
  5. * @method AddSmsSign addSmsSign(array $options = [])
  6. * @method AddSmsTemplate addSmsTemplate(array $options = [])
  7. * @method DeleteSmsSign deleteSmsSign(array $options = [])
  8. * @method DeleteSmsTemplate deleteSmsTemplate(array $options = [])
  9. * @method ModifySmsSign modifySmsSign(array $options = [])
  10. * @method ModifySmsTemplate modifySmsTemplate(array $options = [])
  11. * @method QuerySendDetails querySendDetails(array $options = [])
  12. * @method QuerySmsSign querySmsSign(array $options = [])
  13. * @method QuerySmsTemplate querySmsTemplate(array $options = [])
  14. * @method SendBatchSms sendBatchSms(array $options = [])
  15. * @method SendSms sendSms(array $options = [])
  16. */
  17. class DysmsapiApiResolver extends ApiResolver
  18. {
  19. }
  20. class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
  21. {
  22. /** @var string */
  23. public $product = 'Dysmsapi';
  24. /** @var string */
  25. public $version = '2017-05-25';
  26. /** @var string */
  27. public $method = 'POST';
  28. /** @var string */
  29. public $serviceCode = 'dysms';
  30. }
  31. /**
  32. * @method string getResourceOwnerId()
  33. * @method $this withResourceOwnerId($value)
  34. * @method string getRemark()
  35. * @method $this withRemark($value)
  36. * @method string getSignName()
  37. * @method $this withSignName($value)
  38. * @method array getSignFileList()
  39. * @method string getResourceOwnerAccount()
  40. * @method $this withResourceOwnerAccount($value)
  41. * @method string getOwnerId()
  42. * @method $this withOwnerId($value)
  43. * @method string getSignSource()
  44. * @method $this withSignSource($value)
  45. */
  46. class AddSmsSign extends Rpc
  47. {
  48. /**
  49. * @param array $signFileList
  50. *
  51. * @return $this
  52. */
  53. public function withSignFileList(array $signFileList)
  54. {
  55. $this->data['SignFileList'] = $signFileList;
  56. foreach ($signFileList as $depth1 => $depth1Value) {
  57. $this->options['query']['SignFileList.' . ($depth1 + 1) . '.FileContents'] = $depth1Value['FileContents'];
  58. $this->options['query']['SignFileList.' . ($depth1 + 1) . '.FileSuffix'] = $depth1Value['FileSuffix'];
  59. }
  60. return $this;
  61. }
  62. }
  63. /**
  64. * @method string getResourceOwnerId()
  65. * @method $this withResourceOwnerId($value)
  66. * @method string getRemark()
  67. * @method $this withRemark($value)
  68. * @method string getTemplateType()
  69. * @method $this withTemplateType($value)
  70. * @method string getTemplateName()
  71. * @method $this withTemplateName($value)
  72. * @method string getResourceOwnerAccount()
  73. * @method $this withResourceOwnerAccount($value)
  74. * @method string getOwnerId()
  75. * @method $this withOwnerId($value)
  76. * @method string getTemplateContent()
  77. * @method $this withTemplateContent($value)
  78. */
  79. class AddSmsTemplate extends Rpc
  80. {
  81. }
  82. /**
  83. * @method string getResourceOwnerId()
  84. * @method $this withResourceOwnerId($value)
  85. * @method string getResourceOwnerAccount()
  86. * @method $this withResourceOwnerAccount($value)
  87. * @method string getOwnerId()
  88. * @method $this withOwnerId($value)
  89. * @method string getSignName()
  90. * @method $this withSignName($value)
  91. */
  92. class DeleteSmsSign extends Rpc
  93. {
  94. }
  95. /**
  96. * @method string getResourceOwnerId()
  97. * @method $this withResourceOwnerId($value)
  98. * @method string getResourceOwnerAccount()
  99. * @method $this withResourceOwnerAccount($value)
  100. * @method string getOwnerId()
  101. * @method $this withOwnerId($value)
  102. * @method string getTemplateCode()
  103. * @method $this withTemplateCode($value)
  104. */
  105. class DeleteSmsTemplate extends Rpc
  106. {
  107. }
  108. /**
  109. * @method string getResourceOwnerId()
  110. * @method $this withResourceOwnerId($value)
  111. * @method string getRemark()
  112. * @method $this withRemark($value)
  113. * @method string getSignName()
  114. * @method $this withSignName($value)
  115. * @method array getSignFileList()
  116. * @method string getResourceOwnerAccount()
  117. * @method $this withResourceOwnerAccount($value)
  118. * @method string getOwnerId()
  119. * @method $this withOwnerId($value)
  120. * @method string getSignSource()
  121. * @method $this withSignSource($value)
  122. */
  123. class ModifySmsSign extends Rpc
  124. {
  125. /**
  126. * @param array $signFileList
  127. *
  128. * @return $this
  129. */
  130. public function withSignFileList(array $signFileList)
  131. {
  132. $this->data['SignFileList'] = $signFileList;
  133. foreach ($signFileList as $depth1 => $depth1Value) {
  134. $this->options['query']['SignFileList.' . ($depth1 + 1) . '.FileContents'] = $depth1Value['FileContents'];
  135. $this->options['query']['SignFileList.' . ($depth1 + 1) . '.FileSuffix'] = $depth1Value['FileSuffix'];
  136. }
  137. return $this;
  138. }
  139. }
  140. /**
  141. * @method string getResourceOwnerId()
  142. * @method $this withResourceOwnerId($value)
  143. * @method string getRemark()
  144. * @method $this withRemark($value)
  145. * @method string getTemplateType()
  146. * @method $this withTemplateType($value)
  147. * @method string getTemplateName()
  148. * @method $this withTemplateName($value)
  149. * @method string getResourceOwnerAccount()
  150. * @method $this withResourceOwnerAccount($value)
  151. * @method string getOwnerId()
  152. * @method $this withOwnerId($value)
  153. * @method string getTemplateContent()
  154. * @method $this withTemplateContent($value)
  155. * @method string getTemplateCode()
  156. * @method $this withTemplateCode($value)
  157. */
  158. class ModifySmsTemplate extends Rpc
  159. {
  160. }
  161. /**
  162. * @method string getResourceOwnerId()
  163. * @method $this withResourceOwnerId($value)
  164. * @method string getPhoneNumber()
  165. * @method $this withPhoneNumber($value)
  166. * @method string getSendDate()
  167. * @method $this withSendDate($value)
  168. * @method string getPageSize()
  169. * @method $this withPageSize($value)
  170. * @method string getResourceOwnerAccount()
  171. * @method $this withResourceOwnerAccount($value)
  172. * @method string getCurrentPage()
  173. * @method $this withCurrentPage($value)
  174. * @method string getOwnerId()
  175. * @method $this withOwnerId($value)
  176. * @method string getBizId()
  177. * @method $this withBizId($value)
  178. */
  179. class QuerySendDetails extends Rpc
  180. {
  181. }
  182. /**
  183. * @method string getResourceOwnerId()
  184. * @method $this withResourceOwnerId($value)
  185. * @method string getResourceOwnerAccount()
  186. * @method $this withResourceOwnerAccount($value)
  187. * @method string getOwnerId()
  188. * @method $this withOwnerId($value)
  189. * @method string getSignName()
  190. * @method $this withSignName($value)
  191. */
  192. class QuerySmsSign extends Rpc
  193. {
  194. }
  195. /**
  196. * @method string getResourceOwnerId()
  197. * @method $this withResourceOwnerId($value)
  198. * @method string getResourceOwnerAccount()
  199. * @method $this withResourceOwnerAccount($value)
  200. * @method string getOwnerId()
  201. * @method $this withOwnerId($value)
  202. * @method string getTemplateCode()
  203. * @method $this withTemplateCode($value)
  204. */
  205. class QuerySmsTemplate extends Rpc
  206. {
  207. }
  208. /**
  209. * @method string getResourceOwnerId()
  210. * @method $this withResourceOwnerId($value)
  211. * @method string getTemplateParamJson()
  212. * @method $this withTemplateParamJson($value)
  213. * @method string getResourceOwnerAccount()
  214. * @method $this withResourceOwnerAccount($value)
  215. * @method string getOwnerId()
  216. * @method $this withOwnerId($value)
  217. * @method string getSmsUpExtendCodeJson()
  218. * @method $this withSmsUpExtendCodeJson($value)
  219. * @method string getSignNameJson()
  220. * @method $this withSignNameJson($value)
  221. * @method string getTemplateCode()
  222. * @method $this withTemplateCode($value)
  223. * @method string getPhoneNumberJson()
  224. * @method $this withPhoneNumberJson($value)
  225. */
  226. class SendBatchSms extends Rpc
  227. {
  228. }
  229. /**
  230. * @method string getResourceOwnerId()
  231. * @method $this withResourceOwnerId($value)
  232. * @method string getSmsUpExtendCode()
  233. * @method $this withSmsUpExtendCode($value)
  234. * @method string getSignName()
  235. * @method $this withSignName($value)
  236. * @method string getResourceOwnerAccount()
  237. * @method $this withResourceOwnerAccount($value)
  238. * @method string getPhoneNumbers()
  239. * @method $this withPhoneNumbers($value)
  240. * @method string getOwnerId()
  241. * @method $this withOwnerId($value)
  242. * @method string getOutId()
  243. * @method $this withOutId($value)
  244. * @method string getTemplateCode()
  245. * @method $this withTemplateCode($value)
  246. * @method string getTemplateParam()
  247. * @method $this withTemplateParam($value)
  248. */
  249. class SendSms extends Rpc
  250. {
  251. }