MpInvoiceService.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. <?php
  2. /*
  3. * Copyright (c) 2008-2016 vip.com, All Rights Reserved.
  4. *
  5. * Powered by com.vip.osp.osp-idlc-2.5.11.
  6. *
  7. */
  8. namespace vipapis\fcs;
  9. interface MpInvoiceServiceIf{
  10. public function healthCheck();
  11. public function receiveMpInvoiceIssueResult(\com\vip\fcs\vei\service\MpInvoiceIssueResultRequestModel $pushMpInvoiceIssueResultRequestModel);
  12. }
  13. class _MpInvoiceServiceClient extends \Osp\Base\OspStub implements \vipapis\fcs\MpInvoiceServiceIf{
  14. public function __construct(){
  15. parent::__construct("vipapis.fcs.MpInvoiceService", "1.0.0");
  16. }
  17. public function healthCheck(){
  18. $this->send_healthCheck();
  19. return $this->recv_healthCheck();
  20. }
  21. public function send_healthCheck(){
  22. $this->initInvocation("healthCheck");
  23. $args = new \vipapis\fcs\MpInvoiceService_healthCheck_args();
  24. $this->send_base($args);
  25. }
  26. public function recv_healthCheck(){
  27. $result = new \vipapis\fcs\MpInvoiceService_healthCheck_result();
  28. $this->receive_base($result);
  29. if ($result->success !== null){
  30. return $result->success;
  31. }
  32. }
  33. public function receiveMpInvoiceIssueResult(\com\vip\fcs\vei\service\MpInvoiceIssueResultRequestModel $pushMpInvoiceIssueResultRequestModel){
  34. $this->send_receiveMpInvoiceIssueResult( $pushMpInvoiceIssueResultRequestModel);
  35. return $this->recv_receiveMpInvoiceIssueResult();
  36. }
  37. public function send_receiveMpInvoiceIssueResult(\com\vip\fcs\vei\service\MpInvoiceIssueResultRequestModel $pushMpInvoiceIssueResultRequestModel){
  38. $this->initInvocation("receiveMpInvoiceIssueResult");
  39. $args = new \vipapis\fcs\MpInvoiceService_receiveMpInvoiceIssueResult_args();
  40. $args->pushMpInvoiceIssueResultRequestModel = $pushMpInvoiceIssueResultRequestModel;
  41. $this->send_base($args);
  42. }
  43. public function recv_receiveMpInvoiceIssueResult(){
  44. $result = new \vipapis\fcs\MpInvoiceService_receiveMpInvoiceIssueResult_result();
  45. $this->receive_base($result);
  46. if ($result->success !== null){
  47. return $result->success;
  48. }
  49. }
  50. }
  51. class MpInvoiceService_healthCheck_args {
  52. static $_TSPEC;
  53. public function __construct($vals=null){
  54. if (!isset(self::$_TSPEC)){
  55. self::$_TSPEC = array(
  56. );
  57. }
  58. if (is_array($vals)){
  59. }
  60. }
  61. public function read($input){
  62. }
  63. public function write($output){
  64. $xfer = 0;
  65. $xfer += $output->writeStructBegin();
  66. $xfer += $output->writeFieldStop();
  67. $xfer += $output->writeStructEnd();
  68. return $xfer;
  69. }
  70. }
  71. class MpInvoiceService_receiveMpInvoiceIssueResult_args {
  72. static $_TSPEC;
  73. public $pushMpInvoiceIssueResultRequestModel = null;
  74. public function __construct($vals=null){
  75. if (!isset(self::$_TSPEC)){
  76. self::$_TSPEC = array(
  77. 1 => array(
  78. 'var' => 'pushMpInvoiceIssueResultRequestModel'
  79. ),
  80. );
  81. }
  82. if (is_array($vals)){
  83. if (isset($vals['pushMpInvoiceIssueResultRequestModel'])){
  84. $this->pushMpInvoiceIssueResultRequestModel = $vals['pushMpInvoiceIssueResultRequestModel'];
  85. }
  86. }
  87. }
  88. public function read($input){
  89. if(true) {
  90. $this->pushMpInvoiceIssueResultRequestModel = new \com\vip\fcs\vei\service\MpInvoiceIssueResultRequestModel();
  91. $this->pushMpInvoiceIssueResultRequestModel->read($input);
  92. }
  93. }
  94. public function write($output){
  95. $xfer = 0;
  96. $xfer += $output->writeStructBegin();
  97. if($this->pushMpInvoiceIssueResultRequestModel !== null) {
  98. $xfer += $output->writeFieldBegin('pushMpInvoiceIssueResultRequestModel');
  99. if (!is_object($this->pushMpInvoiceIssueResultRequestModel)) {
  100. throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
  101. }
  102. $xfer += $this->pushMpInvoiceIssueResultRequestModel->write($output);
  103. $xfer += $output->writeFieldEnd();
  104. }
  105. $xfer += $output->writeFieldStop();
  106. $xfer += $output->writeStructEnd();
  107. return $xfer;
  108. }
  109. }
  110. class MpInvoiceService_healthCheck_result {
  111. static $_TSPEC;
  112. public $success = null;
  113. public function __construct($vals=null){
  114. if (!isset(self::$_TSPEC)){
  115. self::$_TSPEC = array(
  116. 0 => array(
  117. 'var' => 'success'
  118. ),
  119. );
  120. }
  121. if (is_array($vals)){
  122. if (isset($vals['success'])){
  123. $this->success = $vals['success'];
  124. }
  125. }
  126. }
  127. public function read($input){
  128. if(true) {
  129. $this->success = new \com\vip\hermes\core\health\CheckResult();
  130. $this->success->read($input);
  131. }
  132. }
  133. public function write($output){
  134. $xfer = 0;
  135. $xfer += $output->writeStructBegin();
  136. if($this->success !== null) {
  137. $xfer += $output->writeFieldBegin('success');
  138. if (!is_object($this->success)) {
  139. throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
  140. }
  141. $xfer += $this->success->write($output);
  142. $xfer += $output->writeFieldEnd();
  143. }
  144. $xfer += $output->writeFieldStop();
  145. $xfer += $output->writeStructEnd();
  146. return $xfer;
  147. }
  148. }
  149. class MpInvoiceService_receiveMpInvoiceIssueResult_result {
  150. static $_TSPEC;
  151. public $success = null;
  152. public function __construct($vals=null){
  153. if (!isset(self::$_TSPEC)){
  154. self::$_TSPEC = array(
  155. 0 => array(
  156. 'var' => 'success'
  157. ),
  158. );
  159. }
  160. if (is_array($vals)){
  161. if (isset($vals['success'])){
  162. $this->success = $vals['success'];
  163. }
  164. }
  165. }
  166. public function read($input){
  167. if(true) {
  168. $this->success = new \com\vip\fcs\vei\service\MpInvoiceIssueResultResponseModel();
  169. $this->success->read($input);
  170. }
  171. }
  172. public function write($output){
  173. $xfer = 0;
  174. $xfer += $output->writeStructBegin();
  175. if($this->success !== null) {
  176. $xfer += $output->writeFieldBegin('success');
  177. if (!is_object($this->success)) {
  178. throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
  179. }
  180. $xfer += $this->success->write($output);
  181. $xfer += $output->writeFieldEnd();
  182. }
  183. $xfer += $output->writeFieldStop();
  184. $xfer += $output->writeStructEnd();
  185. return $xfer;
  186. }
  187. }
  188. ?>