123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <?php
- namespace BsPaySdk\request;
- use BsPaySdk\enums\FunctionCodeEnum;
- /**
- * 发票开具
- *
- * @author sdk-generator
- * @Description
- */
- class V2InvoiceOpenRequest extends BaseRequest
- {
- /**
- * 请求流水号
- */
- private $reqSeqId;
- /**
- * 请求时间
- */
- private $reqDate;
- /**
- * 渠道号汇付商户号为空时,必传;<font color="green">示例值:6666000109812124</font>
- */
- private $channelId;
- /**
- * 发票类型
- */
- private $ivcType;
- /**
- * 开票类型
- */
- private $openType;
- /**
- * 购方单位名称
- */
- private $buyerName;
- /**
- * 含税合计金额(元)
- */
- private $orderAmt;
- /**
- * 冲红原因open_type=1时必填01:开票有误02:销货退回03:服务终止04:销售转让
- */
- private $redApplyReason;
- /**
- * 冲红申请来源open_type=1时必填01:销方02:购方
- */
- private $redApplySource;
- /**
- * 原发票代码openType=1时必填;参见[发票右上角](https://paas.huifu.com/open/doc/api/#/fp/api_fp_yanglitu.md);<font color="green">示例值:144032209110</font>
- */
- private $oriIvcCode;
- /**
- * 原发票号码openType=1时必填;参见[发票右上角](https://paas.huifu.com/open/doc/api/#/fp/api_fp_yanglitu.md);<font color="green">示例值:20685767</font>
- */
- private $oriIvcNumber;
- /**
- * 开票商品信息
- */
- private $goodsInfos;
- /**
- * 开票人信息
- */
- private $payerInfo;
- public function getFunctionCode() {
- return FunctionCodeEnum::$V2_INVOICE_OPEN;
- }
- public function getReqSeqId() {
- return $this->reqSeqId;
- }
- public function setReqSeqId($reqSeqId) {
- $this->reqSeqId = $reqSeqId;
- }
- public function getReqDate() {
- return $this->reqDate;
- }
- public function setReqDate($reqDate) {
- $this->reqDate = $reqDate;
- }
- public function getChannelId() {
- return $this->channelId;
- }
- public function setChannelId($channelId) {
- $this->channelId = $channelId;
- }
- public function getIvcType() {
- return $this->ivcType;
- }
- public function setIvcType($ivcType) {
- $this->ivcType = $ivcType;
- }
- public function getOpenType() {
- return $this->openType;
- }
- public function setOpenType($openType) {
- $this->openType = $openType;
- }
- public function getBuyerName() {
- return $this->buyerName;
- }
- public function setBuyerName($buyerName) {
- $this->buyerName = $buyerName;
- }
- public function getOrderAmt() {
- return $this->orderAmt;
- }
- public function setOrderAmt($orderAmt) {
- $this->orderAmt = $orderAmt;
- }
- public function getRedApplyReason() {
- return $this->redApplyReason;
- }
- public function setRedApplyReason($redApplyReason) {
- $this->redApplyReason = $redApplyReason;
- }
- public function getRedApplySource() {
- return $this->redApplySource;
- }
- public function setRedApplySource($redApplySource) {
- $this->redApplySource = $redApplySource;
- }
- public function getOriIvcCode() {
- return $this->oriIvcCode;
- }
- public function setOriIvcCode($oriIvcCode) {
- $this->oriIvcCode = $oriIvcCode;
- }
- public function getOriIvcNumber() {
- return $this->oriIvcNumber;
- }
- public function setOriIvcNumber($oriIvcNumber) {
- $this->oriIvcNumber = $oriIvcNumber;
- }
- public function getGoodsInfos() {
- return $this->goodsInfos;
- }
- public function setGoodsInfos($goodsInfos) {
- $this->goodsInfos = $goodsInfos;
- }
- public function getPayerInfo() {
- return $this->payerInfo;
- }
- public function setPayerInfo($payerInfo) {
- $this->payerInfo = $payerInfo;
- }
- }
|