PddEinvoiceIssueInvoiceResultCallbackRuihongRequest.php 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. <?php
  2. namespace Com\Pdd\Pop\Sdk\Api\Request;
  3. use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
  4. use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
  5. class PddEinvoiceIssueInvoiceResultCallbackRuihongRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_Data, "data")
  12. */
  13. private $data;
  14. protected function setUserParams(&$params)
  15. {
  16. $this->setUserParam($params, "data", $this->data);
  17. }
  18. public function getVersion()
  19. {
  20. return "V1";
  21. }
  22. public function getDataType()
  23. {
  24. return "JSON";
  25. }
  26. public function getType()
  27. {
  28. return "pdd.einvoice.issue.invoice.result.callback.ruihong";
  29. }
  30. public function setData($data)
  31. {
  32. $this->data = $data;
  33. }
  34. }
  35. class PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_Data extends PopBaseJsonEntity
  36. {
  37. public function __construct()
  38. {
  39. }
  40. /**
  41. * @JsonProperty(String, "code")
  42. */
  43. private $code;
  44. /**
  45. * @JsonProperty(String, "einvoiceApiVersion")
  46. */
  47. private $einvoiceApiVersion;
  48. /**
  49. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoice, "invoice")
  50. */
  51. private $invoice;
  52. /**
  53. * @JsonProperty(String, "mallId")
  54. */
  55. private $mallId;
  56. /**
  57. * @JsonProperty(String, "message")
  58. */
  59. private $message;
  60. /**
  61. * @JsonProperty(String, "orderNo")
  62. */
  63. private $orderNo;
  64. /**
  65. * @JsonProperty(String, "serialNo")
  66. */
  67. private $serialNo;
  68. public function setCode($code)
  69. {
  70. $this->code = $code;
  71. }
  72. public function setEinvoiceApiVersion($einvoiceApiVersion)
  73. {
  74. $this->einvoiceApiVersion = $einvoiceApiVersion;
  75. }
  76. public function setInvoice($invoice)
  77. {
  78. $this->invoice = $invoice;
  79. }
  80. public function setMallId($mallId)
  81. {
  82. $this->mallId = $mallId;
  83. }
  84. public function setMessage($message)
  85. {
  86. $this->message = $message;
  87. }
  88. public function setOrderNo($orderNo)
  89. {
  90. $this->orderNo = $orderNo;
  91. }
  92. public function setSerialNo($serialNo)
  93. {
  94. $this->serialNo = $serialNo;
  95. }
  96. }
  97. class PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoice extends PopBaseJsonEntity
  98. {
  99. public function __construct()
  100. {
  101. }
  102. /**
  103. * @JsonProperty(String, "checkCode")
  104. */
  105. private $checkCode;
  106. /**
  107. * @JsonProperty(String, "code")
  108. */
  109. private $code;
  110. /**
  111. * @JsonProperty(String, "customerAddress")
  112. */
  113. private $customerAddress;
  114. /**
  115. * @JsonProperty(String, "customerBankAccount")
  116. */
  117. private $customerBankAccount;
  118. /**
  119. * @JsonProperty(String, "customerBankName")
  120. */
  121. private $customerBankName;
  122. /**
  123. * @JsonProperty(String, "customerCode")
  124. */
  125. private $customerCode;
  126. /**
  127. * @JsonProperty(String, "customerName")
  128. */
  129. private $customerName;
  130. /**
  131. * @JsonProperty(String, "customerTel")
  132. */
  133. private $customerTel;
  134. /**
  135. * @JsonProperty(String, "drawer")
  136. */
  137. private $drawer;
  138. /**
  139. * @JsonProperty(String, "fiscalCode")
  140. */
  141. private $fiscalCode;
  142. /**
  143. * @JsonProperty(String, "generateTime")
  144. */
  145. private $generateTime;
  146. /**
  147. * @JsonProperty(String, "invPdf")
  148. */
  149. private $invPdf;
  150. /**
  151. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoiceItemsItem>, "items")
  152. */
  153. private $items;
  154. /**
  155. * @JsonProperty(String, "noTaxAmount")
  156. */
  157. private $noTaxAmount;
  158. /**
  159. * @JsonProperty(String, "orderNo")
  160. */
  161. private $orderNo;
  162. /**
  163. * @JsonProperty(String, "payee")
  164. */
  165. private $payee;
  166. /**
  167. * @JsonProperty(String, "pdfUnsignedUrl")
  168. */
  169. private $pdfUnsignedUrl;
  170. /**
  171. * @JsonProperty(String, "relatedCode")
  172. */
  173. private $relatedCode;
  174. /**
  175. * @JsonProperty(String, "remark")
  176. */
  177. private $remark;
  178. /**
  179. * @JsonProperty(String, "reviewer")
  180. */
  181. private $reviewer;
  182. /**
  183. * @JsonProperty(String, "status")
  184. */
  185. private $status;
  186. /**
  187. * @JsonProperty(String, "taxAmount")
  188. */
  189. private $taxAmount;
  190. /**
  191. * @JsonProperty(String, "taxDeviceNo")
  192. */
  193. private $taxDeviceNo;
  194. /**
  195. * @JsonProperty(String, "taxpayerAddress")
  196. */
  197. private $taxpayerAddress;
  198. /**
  199. * @JsonProperty(String, "taxpayerBankAccount")
  200. */
  201. private $taxpayerBankAccount;
  202. /**
  203. * @JsonProperty(String, "taxpayerBankName")
  204. */
  205. private $taxpayerBankName;
  206. /**
  207. * @JsonProperty(String, "taxpayerCode")
  208. */
  209. private $taxpayerCode;
  210. /**
  211. * @JsonProperty(String, "taxpayerName")
  212. */
  213. private $taxpayerName;
  214. /**
  215. * @JsonProperty(String, "taxpayerTel")
  216. */
  217. private $taxpayerTel;
  218. /**
  219. * @JsonProperty(String, "totalAmount")
  220. */
  221. private $totalAmount;
  222. /**
  223. * @JsonProperty(String, "validReason")
  224. */
  225. private $validReason;
  226. /**
  227. * @JsonProperty(String, "validTime")
  228. */
  229. private $validTime;
  230. /**
  231. * @JsonProperty(String, "viewUrl")
  232. */
  233. private $viewUrl;
  234. /**
  235. * @JsonProperty(String, "cipherText")
  236. */
  237. private $cipherText;
  238. /**
  239. * @JsonProperty(String, "qrCode")
  240. */
  241. private $qrCode;
  242. public function setCheckCode($checkCode)
  243. {
  244. $this->checkCode = $checkCode;
  245. }
  246. public function setCode($code)
  247. {
  248. $this->code = $code;
  249. }
  250. public function setCustomerAddress($customerAddress)
  251. {
  252. $this->customerAddress = $customerAddress;
  253. }
  254. public function setCustomerBankAccount($customerBankAccount)
  255. {
  256. $this->customerBankAccount = $customerBankAccount;
  257. }
  258. public function setCustomerBankName($customerBankName)
  259. {
  260. $this->customerBankName = $customerBankName;
  261. }
  262. public function setCustomerCode($customerCode)
  263. {
  264. $this->customerCode = $customerCode;
  265. }
  266. public function setCustomerName($customerName)
  267. {
  268. $this->customerName = $customerName;
  269. }
  270. public function setCustomerTel($customerTel)
  271. {
  272. $this->customerTel = $customerTel;
  273. }
  274. public function setDrawer($drawer)
  275. {
  276. $this->drawer = $drawer;
  277. }
  278. public function setFiscalCode($fiscalCode)
  279. {
  280. $this->fiscalCode = $fiscalCode;
  281. }
  282. public function setGenerateTime($generateTime)
  283. {
  284. $this->generateTime = $generateTime;
  285. }
  286. public function setInvPdf($invPdf)
  287. {
  288. $this->invPdf = $invPdf;
  289. }
  290. public function setItems($items)
  291. {
  292. $this->items = $items;
  293. }
  294. public function setNoTaxAmount($noTaxAmount)
  295. {
  296. $this->noTaxAmount = $noTaxAmount;
  297. }
  298. public function setOrderNo($orderNo)
  299. {
  300. $this->orderNo = $orderNo;
  301. }
  302. public function setPayee($payee)
  303. {
  304. $this->payee = $payee;
  305. }
  306. public function setPdfUnsignedUrl($pdfUnsignedUrl)
  307. {
  308. $this->pdfUnsignedUrl = $pdfUnsignedUrl;
  309. }
  310. public function setRelatedCode($relatedCode)
  311. {
  312. $this->relatedCode = $relatedCode;
  313. }
  314. public function setRemark($remark)
  315. {
  316. $this->remark = $remark;
  317. }
  318. public function setReviewer($reviewer)
  319. {
  320. $this->reviewer = $reviewer;
  321. }
  322. public function setStatus($status)
  323. {
  324. $this->status = $status;
  325. }
  326. public function setTaxAmount($taxAmount)
  327. {
  328. $this->taxAmount = $taxAmount;
  329. }
  330. public function setTaxDeviceNo($taxDeviceNo)
  331. {
  332. $this->taxDeviceNo = $taxDeviceNo;
  333. }
  334. public function setTaxpayerAddress($taxpayerAddress)
  335. {
  336. $this->taxpayerAddress = $taxpayerAddress;
  337. }
  338. public function setTaxpayerBankAccount($taxpayerBankAccount)
  339. {
  340. $this->taxpayerBankAccount = $taxpayerBankAccount;
  341. }
  342. public function setTaxpayerBankName($taxpayerBankName)
  343. {
  344. $this->taxpayerBankName = $taxpayerBankName;
  345. }
  346. public function setTaxpayerCode($taxpayerCode)
  347. {
  348. $this->taxpayerCode = $taxpayerCode;
  349. }
  350. public function setTaxpayerName($taxpayerName)
  351. {
  352. $this->taxpayerName = $taxpayerName;
  353. }
  354. public function setTaxpayerTel($taxpayerTel)
  355. {
  356. $this->taxpayerTel = $taxpayerTel;
  357. }
  358. public function setTotalAmount($totalAmount)
  359. {
  360. $this->totalAmount = $totalAmount;
  361. }
  362. public function setValidReason($validReason)
  363. {
  364. $this->validReason = $validReason;
  365. }
  366. public function setValidTime($validTime)
  367. {
  368. $this->validTime = $validTime;
  369. }
  370. public function setViewUrl($viewUrl)
  371. {
  372. $this->viewUrl = $viewUrl;
  373. }
  374. public function setCipherText($cipherText)
  375. {
  376. $this->cipherText = $cipherText;
  377. }
  378. public function setQrCode($qrCode)
  379. {
  380. $this->qrCode = $qrCode;
  381. }
  382. }
  383. class PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoiceItemsItem extends PopBaseJsonEntity
  384. {
  385. public function __construct()
  386. {
  387. }
  388. /**
  389. * @JsonProperty(String, "addedValueTaxFlg")
  390. */
  391. private $addedValueTaxFlg;
  392. /**
  393. * @JsonProperty(String, "amount")
  394. */
  395. private $amount;
  396. /**
  397. * @JsonProperty(String, "catalogCode")
  398. */
  399. private $catalogCode;
  400. /**
  401. * @JsonProperty(String, "code")
  402. */
  403. private $code;
  404. /**
  405. * @JsonProperty(String, "name")
  406. */
  407. private $name;
  408. /**
  409. * @JsonProperty(String, "noTaxAmount")
  410. */
  411. private $noTaxAmount;
  412. /**
  413. * @JsonProperty(String, "preferentialPolicyFlg")
  414. */
  415. private $preferentialPolicyFlg;
  416. /**
  417. * @JsonProperty(String, "price")
  418. */
  419. private $price;
  420. /**
  421. * @JsonProperty(String, "quantity")
  422. */
  423. private $quantity;
  424. /**
  425. * @JsonProperty(String, "spec")
  426. */
  427. private $spec;
  428. /**
  429. * @JsonProperty(String, "taxAmount")
  430. */
  431. private $taxAmount;
  432. /**
  433. * @JsonProperty(String, "taxRate")
  434. */
  435. private $taxRate;
  436. /**
  437. * @JsonProperty(String, "type")
  438. */
  439. private $type;
  440. /**
  441. * @JsonProperty(String, "uom")
  442. */
  443. private $uom;
  444. /**
  445. * @JsonProperty(String, "zeroTaxRateFlg")
  446. */
  447. private $zeroTaxRateFlg;
  448. public function setAddedValueTaxFlg($addedValueTaxFlg)
  449. {
  450. $this->addedValueTaxFlg = $addedValueTaxFlg;
  451. }
  452. public function setAmount($amount)
  453. {
  454. $this->amount = $amount;
  455. }
  456. public function setCatalogCode($catalogCode)
  457. {
  458. $this->catalogCode = $catalogCode;
  459. }
  460. public function setCode($code)
  461. {
  462. $this->code = $code;
  463. }
  464. public function setName($name)
  465. {
  466. $this->name = $name;
  467. }
  468. public function setNoTaxAmount($noTaxAmount)
  469. {
  470. $this->noTaxAmount = $noTaxAmount;
  471. }
  472. public function setPreferentialPolicyFlg($preferentialPolicyFlg)
  473. {
  474. $this->preferentialPolicyFlg = $preferentialPolicyFlg;
  475. }
  476. public function setPrice($price)
  477. {
  478. $this->price = $price;
  479. }
  480. public function setQuantity($quantity)
  481. {
  482. $this->quantity = $quantity;
  483. }
  484. public function setSpec($spec)
  485. {
  486. $this->spec = $spec;
  487. }
  488. public function setTaxAmount($taxAmount)
  489. {
  490. $this->taxAmount = $taxAmount;
  491. }
  492. public function setTaxRate($taxRate)
  493. {
  494. $this->taxRate = $taxRate;
  495. }
  496. public function setType($type)
  497. {
  498. $this->type = $type;
  499. }
  500. public function setUom($uom)
  501. {
  502. $this->uom = $uom;
  503. }
  504. public function setZeroTaxRateFlg($zeroTaxRateFlg)
  505. {
  506. $this->zeroTaxRateFlg = $zeroTaxRateFlg;
  507. }
  508. }