123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465 |
- <?php
- /**
- * ALIPAY API: alipay.ebpp.invoice.merchant.apply.upload request
- *
- * @author auto create
- * @since 1.0, 2023-04-03 08:41:42
- */
- class AlipayEbppInvoiceMerchantApplyUploadRequest
- {
- /**
- * 发票申请ID
- **/
- private $applyId;
-
- /**
- * 批次ID
- **/
- private $batchId;
-
- /**
- * 合计含税金额(开票金额),格式为2位小数。
- 当开红票时,该字段为负数。
- **/
- private $invoiceAmount;
-
- /**
- * 发票代码
- **/
- private $invoiceCode;
-
- /**
- * 开票日期,格式 yyyy-MM-dd.
- **/
- private $invoiceDate;
-
- /**
- * 发票板式文件数据,字节数据。
- 最大20m
- **/
- private $invoiceFileData;
-
- /**
- * 发票板式文件类型,可选址 pdf,ofd
- **/
- private $invoiceFileType;
-
- /**
- * 开票发票类型
- 可选值:
- 0: 电子普票;
- 1:纸质普票(暂不支持)
- 2:纸质专票(暂不支持)
- 3:电子专票;
- **/
- private $invoiceKind;
-
- /**
- * 发票号码
- **/
- private $invoiceNo;
-
- /**
- * 发票(开票)类型,可选值:
- blue: 蓝票;
- red: 红票;
- **/
- private $invoiceType;
-
- /**
- * 原发票代码,红票时必传
- **/
- private $normalInvoiceCode;
-
- /**
- * 原发票号码,红票时必传
- **/
- private $normalInvoiceNo;
-
- /**
- * 销方地址
- **/
- private $payeeAddress;
-
- /**
- * 销方银行账号
- **/
- private $payeeBankAccountId;
-
- /**
- * 销方开户行名称
- **/
- private $payeeBankName;
-
- /**
- * 销方名称
- **/
- private $payeeName;
-
- /**
- * 销方联系电话
- **/
- private $payeePhone;
-
- /**
- * 销方税务登记证号。由大写字母或数字组成,长度要求15~20位
- **/
- private $payeeRegisterNo;
-
- /**
- * 购方名称
- **/
- private $payerName;
-
- /**
- * 购方税号
- **/
- private $payerRegisterNo;
-
- /**
- * 合计金额(不含税),格式为2位小数。
- 当开红票时,该字段为负数。
- **/
- private $sumPrice;
-
- /**
- * 税额,格式为2位小数。
- 当开红票时,该字段为0或负数。
- **/
- private $sumTax;
- private $apiParas = array();
- private $terminalType;
- private $terminalInfo;
- private $prodCode;
- private $apiVersion="1.0";
- private $notifyUrl;
- private $returnUrl;
- private $needEncrypt=false;
-
- public function setApplyId($applyId)
- {
- $this->applyId = $applyId;
- $this->apiParas["apply_id"] = $applyId;
- }
- public function getApplyId()
- {
- return $this->applyId;
- }
- public function setBatchId($batchId)
- {
- $this->batchId = $batchId;
- $this->apiParas["batch_id"] = $batchId;
- }
- public function getBatchId()
- {
- return $this->batchId;
- }
- public function setInvoiceAmount($invoiceAmount)
- {
- $this->invoiceAmount = $invoiceAmount;
- $this->apiParas["invoice_amount"] = $invoiceAmount;
- }
- public function getInvoiceAmount()
- {
- return $this->invoiceAmount;
- }
- public function setInvoiceCode($invoiceCode)
- {
- $this->invoiceCode = $invoiceCode;
- $this->apiParas["invoice_type"] = $invoiceCode;
- }
- public function getInvoiceCode()
- {
- return $this->invoiceCode;
- }
- public function setInvoiceDate($invoiceDate)
- {
- $this->invoiceDate = $invoiceDate;
- $this->apiParas["invoice_date"] = $invoiceDate;
- }
- public function getInvoiceDate()
- {
- return $this->invoiceDate;
- }
- public function setInvoiceFileData($invoiceFileData)
- {
- $this->invoiceFileData = $invoiceFileData;
- $this->apiParas["invoice_file_data"] = $invoiceFileData;
- }
- public function getInvoiceFileData()
- {
- return $this->invoiceFileData;
- }
- public function setInvoiceFileType($invoiceFileType)
- {
- $this->invoiceFileType = $invoiceFileType;
- $this->apiParas["invoice_file_type"] = $invoiceFileType;
- }
- public function getInvoiceFileType()
- {
- return $this->invoiceFileType;
- }
- public function setInvoiceKind($invoiceKind)
- {
- $this->invoiceKind = $invoiceKind;
- $this->apiParas["invoice_kind"] = $invoiceKind;
- }
- public function getInvoiceKind()
- {
- return $this->invoiceKind;
- }
- public function setInvoiceNo($invoiceNo)
- {
- $this->invoiceNo = $invoiceNo;
- $this->apiParas["invoice_no"] = $invoiceNo;
- }
- public function getInvoiceNo()
- {
- return $this->invoiceNo;
- }
- public function setInvoiceType($invoiceType)
- {
- $this->invoiceType = $invoiceType;
- $this->apiParas["invoice_type"] = $invoiceType;
- }
- public function getInvoiceType()
- {
- return $this->invoiceType;
- }
- public function setNormalInvoiceCode($normalInvoiceCode)
- {
- $this->normalInvoiceCode = $normalInvoiceCode;
- $this->apiParas["normal_invoice_type"] = $normalInvoiceCode;
- }
- public function getNormalInvoiceCode()
- {
- return $this->normalInvoiceCode;
- }
- public function setNormalInvoiceNo($normalInvoiceNo)
- {
- $this->normalInvoiceNo = $normalInvoiceNo;
- $this->apiParas["normal_invoice_no"] = $normalInvoiceNo;
- }
- public function getNormalInvoiceNo()
- {
- return $this->normalInvoiceNo;
- }
- public function setPayeeAddress($payeeAddress)
- {
- $this->payeeAddress = $payeeAddress;
- $this->apiParas["payee_address"] = $payeeAddress;
- }
- public function getPayeeAddress()
- {
- return $this->payeeAddress;
- }
- public function setPayeeBankAccountId($payeeBankAccountId)
- {
- $this->payeeBankAccountId = $payeeBankAccountId;
- $this->apiParas["payee_bank_account_id"] = $payeeBankAccountId;
- }
- public function getPayeeBankAccountId()
- {
- return $this->payeeBankAccountId;
- }
- public function setPayeeBankName($payeeBankName)
- {
- $this->payeeBankName = $payeeBankName;
- $this->apiParas["payee_bank_name"] = $payeeBankName;
- }
- public function getPayeeBankName()
- {
- return $this->payeeBankName;
- }
- public function setPayeeName($payeeName)
- {
- $this->payeeName = $payeeName;
- $this->apiParas["payee_name"] = $payeeName;
- }
- public function getPayeeName()
- {
- return $this->payeeName;
- }
- public function setPayeePhone($payeePhone)
- {
- $this->payeePhone = $payeePhone;
- $this->apiParas["payee_phone"] = $payeePhone;
- }
- public function getPayeePhone()
- {
- return $this->payeePhone;
- }
- public function setPayeeRegisterNo($payeeRegisterNo)
- {
- $this->payeeRegisterNo = $payeeRegisterNo;
- $this->apiParas["payee_register_no"] = $payeeRegisterNo;
- }
- public function getPayeeRegisterNo()
- {
- return $this->payeeRegisterNo;
- }
- public function setPayerName($payerName)
- {
- $this->payerName = $payerName;
- $this->apiParas["payer_name"] = $payerName;
- }
- public function getPayerName()
- {
- return $this->payerName;
- }
- public function setPayerRegisterNo($payerRegisterNo)
- {
- $this->payerRegisterNo = $payerRegisterNo;
- $this->apiParas["payer_register_no"] = $payerRegisterNo;
- }
- public function getPayerRegisterNo()
- {
- return $this->payerRegisterNo;
- }
- public function setSumPrice($sumPrice)
- {
- $this->sumPrice = $sumPrice;
- $this->apiParas["sum_price"] = $sumPrice;
- }
- public function getSumPrice()
- {
- return $this->sumPrice;
- }
- public function setSumTax($sumTax)
- {
- $this->sumTax = $sumTax;
- $this->apiParas["sum_tax"] = $sumTax;
- }
- public function getSumTax()
- {
- return $this->sumTax;
- }
- public function getApiMethodName()
- {
- return "alipay.ebpp.invoice.merchant.apply.upload";
- }
- public function setNotifyUrl($notifyUrl)
- {
- $this->notifyUrl=$notifyUrl;
- }
- public function getNotifyUrl()
- {
- return $this->notifyUrl;
- }
- public function setReturnUrl($returnUrl)
- {
- $this->returnUrl=$returnUrl;
- }
- public function getReturnUrl()
- {
- return $this->returnUrl;
- }
- public function getApiParas()
- {
- return $this->apiParas;
- }
- public function getTerminalType()
- {
- return $this->terminalType;
- }
- public function setTerminalType($terminalType)
- {
- $this->terminalType = $terminalType;
- }
- public function getTerminalInfo()
- {
- return $this->terminalInfo;
- }
- public function setTerminalInfo($terminalInfo)
- {
- $this->terminalInfo = $terminalInfo;
- }
- public function getProdCode()
- {
- return $this->prodCode;
- }
- public function setProdCode($prodCode)
- {
- $this->prodCode = $prodCode;
- }
- public function setApiVersion($apiVersion)
- {
- $this->apiVersion=$apiVersion;
- }
- public function getApiVersion()
- {
- return $this->apiVersion;
- }
- public function setNeedEncrypt($needEncrypt)
- {
- $this->needEncrypt=$needEncrypt;
- }
- public function getNeedEncrypt()
- {
- return $this->needEncrypt;
- }
- }
|