address; } public function setAddress($address) { $this->address = $address; $this->apiParams["address"] = $address; } public function getAmount() { return $this->amount; } public function setAmount($amount) { $this->amount = $amount; $this->apiParams["amount"] = $amount; } public function getCityId() { return $this->cityId; } public function setCityId($cityId) { $this->cityId = $cityId; $this->apiParams["cityId"] = $cityId; } public function getCompanyCustNo() { return $this->companyCustNo; } public function setCompanyCustNo($companyCustNo) { $this->companyCustNo = $companyCustNo; $this->apiParams["companyCustNo"] = $companyCustNo; } public function getCountyId() { return $this->countyId; } public function setCountyId($countyId) { $this->countyId = $countyId; $this->apiParams["countyId"] = $countyId; } public function getEmail() { return $this->email; } public function setEmail($email) { $this->email = $email; $this->apiParams["email"] = $email; } public function getHopeArrivalTime() { return $this->hopeArrivalTime; } public function setHopeArrivalTime($hopeArrivalTime) { $this->hopeArrivalTime = $hopeArrivalTime; $this->apiParams["hopeArrivalTime"] = $hopeArrivalTime; } public function getInvoiceContent() { return $this->invoiceContent; } public function setInvoiceContent($invoiceContent) { $this->invoiceContent = $invoiceContent; $this->apiParams["invoiceContent"] = $invoiceContent; } public function getInvoiceState() { return $this->invoiceState; } public function setInvoiceState($invoiceState) { $this->invoiceState = $invoiceState; $this->apiParams["invoiceState"] = $invoiceState; } public function getInvoiceTitle() { return $this->invoiceTitle; } public function setInvoiceTitle($invoiceTitle) { $this->invoiceTitle = $invoiceTitle; $this->apiParams["invoiceTitle"] = $invoiceTitle; } public function getInvoiceType() { return $this->invoiceType; } public function setInvoiceType($invoiceType) { $this->invoiceType = $invoiceType; $this->apiParams["invoiceType"] = $invoiceType; } public function getMobile() { return $this->mobile; } public function setMobile($mobile) { $this->mobile = $mobile; $this->apiParams["mobile"] = $mobile; } public function getOrderType() { return $this->orderType; } public function setOrderType($orderType) { $this->orderType = $orderType; $this->apiParams["orderType"] = $orderType; } public function getPayment() { return $this->payment; } public function setPayment($payment) { $this->payment = $payment; $this->apiParams["payment"] = $payment; } public function getProvinceId() { return $this->provinceId; } public function setProvinceId($provinceId) { $this->provinceId = $provinceId; $this->apiParams["provinceId"] = $provinceId; } public function getReceiverName() { return $this->receiverName; } public function setReceiverName($receiverName) { $this->receiverName = $receiverName; $this->apiParams["receiverName"] = $receiverName; } public function getRemark() { return $this->remark; } public function setRemark($remark) { $this->remark = $remark; $this->apiParams["remark"] = $remark; } public function getServFee() { return $this->servFee; } public function setServFee($servFee) { $this->servFee = $servFee; $this->apiParams["servFee"] = $servFee; } public function getSku() { return $this->sku; } public function setSku($sku) { $this->sku = $sku; $arr = array(); foreach ($sku as $temp){ array_push($arr,$temp->getApiParams()); } $this->apiParams["sku"] = $arr; } public function getSpecialVatTicket() { return $this->specialVatTicket; } public function setSpecialVatTicket($specialVatTicket) { $this->specialVatTicket = $specialVatTicket; $this->apiParams["specialVatTicket"] = $specialVatTicket->getApiParams(); } public function getSpecRemark() { return $this->specRemark; } public function setSpecRemark($specRemark) { $this->specRemark = $specRemark; $this->apiParams["specRemark"] = $specRemark; } public function getSubPaymentModes() { return $this->subPaymentModes; } public function setSubPaymentModes($subPaymentModes) { $this->subPaymentModes = $subPaymentModes; $arr = array(); foreach ($subPaymentModes as $temp){ array_push($arr,$temp->getApiParams()); } $this->apiParams["subPaymentModes"] = $arr; } public function getTelephone() { return $this->telephone; } public function setTelephone($telephone) { $this->telephone = $telephone; $this->apiParams["telephone"] = $telephone; } public function getTownId() { return $this->townId; } public function setTownId($townId) { $this->townId = $townId; $this->apiParams["townId"] = $townId; } public function getTradeNo() { return $this->tradeNo; } public function setTradeNo($tradeNo) { $this->tradeNo = $tradeNo; $this->apiParams["tradeNo"] = $tradeNo; } public function getZip() { return $this->zip; } public function setZip($zip) { $this->zip = $zip; $this->apiParams["zip"] = $zip; } public function getApiMethodName(){ return 'suning.govbus.mixpayorder.add'; } public function getApiParams(){ return $this->apiParams; } public function check(){ //非空校验 RequestCheckUtil::checkNotNull($this->address, 'address'); RequestCheckUtil::checkNotNull($this->amount, 'amount'); RequestCheckUtil::checkNotNull($this->cityId, 'cityId'); RequestCheckUtil::checkNotNull($this->countyId, 'countyId'); RequestCheckUtil::checkNotNull($this->invoiceState, 'invoiceState'); RequestCheckUtil::checkNotNull($this->mobile, 'mobile'); RequestCheckUtil::checkNotNull($this->orderType, 'orderType'); RequestCheckUtil::checkNotNull($this->payment, 'payment'); RequestCheckUtil::checkNotNull($this->provinceId, 'provinceId'); RequestCheckUtil::checkNotNull($this->receiverName, 'receiverName'); RequestCheckUtil::checkNotNull($this->servFee, 'servFee'); RequestCheckUtil::checkNotNull($this->tradeNo, 'tradeNo'); } public function getBizName(){ return "addMixpayorder"; } } class SubPaymentModes { private $apiParams = array(); private $payAmount; private $payCode; public function getPayAmount() { return $this->payAmount; } public function setPayAmount($payAmount) { $this->payAmount = $payAmount; $this->apiParams["payAmount"] = $payAmount; } public function getPayCode() { return $this->payCode; } public function setPayCode($payCode) { $this->payCode = $payCode; $this->apiParams["payCode"] = $payCode; } public function getApiParams(){ return $this->apiParams; } } class SpecialVatTicket { private $apiParams = array(); private $companyName; private $consigneeAddress; private $consigneeMobileNum; private $consigneeName; private $regAccount; private $regAdd; private $regBank; private $regTel; private $taxNo; public function getCompanyName() { return $this->companyName; } public function setCompanyName($companyName) { $this->companyName = $companyName; $this->apiParams["companyName"] = $companyName; } public function getConsigneeAddress() { return $this->consigneeAddress; } public function setConsigneeAddress($consigneeAddress) { $this->consigneeAddress = $consigneeAddress; $this->apiParams["consigneeAddress"] = $consigneeAddress; } public function getConsigneeMobileNum() { return $this->consigneeMobileNum; } public function setConsigneeMobileNum($consigneeMobileNum) { $this->consigneeMobileNum = $consigneeMobileNum; $this->apiParams["consigneeMobileNum"] = $consigneeMobileNum; } public function getConsigneeName() { return $this->consigneeName; } public function setConsigneeName($consigneeName) { $this->consigneeName = $consigneeName; $this->apiParams["consigneeName"] = $consigneeName; } public function getRegAccount() { return $this->regAccount; } public function setRegAccount($regAccount) { $this->regAccount = $regAccount; $this->apiParams["regAccount"] = $regAccount; } public function getRegAdd() { return $this->regAdd; } public function setRegAdd($regAdd) { $this->regAdd = $regAdd; $this->apiParams["regAdd"] = $regAdd; } public function getRegBank() { return $this->regBank; } public function setRegBank($regBank) { $this->regBank = $regBank; $this->apiParams["regBank"] = $regBank; } public function getRegTel() { return $this->regTel; } public function setRegTel($regTel) { $this->regTel = $regTel; $this->apiParams["regTel"] = $regTel; } public function getTaxNo() { return $this->taxNo; } public function setTaxNo($taxNo) { $this->taxNo = $taxNo; $this->apiParams["taxNo"] = $taxNo; } public function getApiParams(){ return $this->apiParams; } } class Sku { private $apiParams = array(); private $num; private $skuId; private $unitPrice; public function getNum() { return $this->num; } public function setNum($num) { $this->num = $num; $this->apiParams["num"] = $num; } public function getSkuId() { return $this->skuId; } public function setSkuId($skuId) { $this->skuId = $skuId; $this->apiParams["skuId"] = $skuId; } public function getUnitPrice() { return $this->unitPrice; } public function setUnitPrice($unitPrice) { $this->unitPrice = $unitPrice; $this->apiParams["unitPrice"] = $unitPrice; } public function getApiParams(){ return $this->apiParams; } } ?>