You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
181 lines
3.4 KiB
181 lines
3.4 KiB
<?php
|
|
/**
|
|
* 苏宁开放平台接口 -
|
|
*
|
|
* @author suning
|
|
* @date 2022-5-20
|
|
*/
|
|
class ExpenseaccountConfirmRequest extends SuningRequest{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $confirmType;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $detail;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $diffReason;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $feeOrderNo;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $payDate;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $pdfFile;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $settleType;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $supplierCode;
|
|
|
|
public function getConfirmType() {
|
|
return $this->confirmType;
|
|
}
|
|
|
|
public function setConfirmType($confirmType) {
|
|
$this->confirmType = $confirmType;
|
|
$this->apiParams["confirmType"] = $confirmType;
|
|
}
|
|
|
|
public function getDetail() {
|
|
return $this->detail;
|
|
}
|
|
|
|
public function setDetail($detail) {
|
|
$this->detail = $detail;
|
|
$arr = array();
|
|
foreach ($detail as $temp){
|
|
array_push($arr,$temp->getApiParams());
|
|
}
|
|
$this->apiParams["detail"] = $arr;
|
|
}
|
|
|
|
public function getDiffReason() {
|
|
return $this->diffReason;
|
|
}
|
|
|
|
public function setDiffReason($diffReason) {
|
|
$this->diffReason = $diffReason;
|
|
$this->apiParams["diffReason"] = $diffReason;
|
|
}
|
|
|
|
public function getFeeOrderNo() {
|
|
return $this->feeOrderNo;
|
|
}
|
|
|
|
public function setFeeOrderNo($feeOrderNo) {
|
|
$this->feeOrderNo = $feeOrderNo;
|
|
$this->apiParams["feeOrderNo"] = $feeOrderNo;
|
|
}
|
|
|
|
public function getPayDate() {
|
|
return $this->payDate;
|
|
}
|
|
|
|
public function setPayDate($payDate) {
|
|
$this->payDate = $payDate;
|
|
$this->apiParams["payDate"] = $payDate;
|
|
}
|
|
|
|
public function getPdfFile() {
|
|
return $this->pdfFile;
|
|
}
|
|
|
|
public function setPdfFile($pdfFile) {
|
|
$this->pdfFile = $pdfFile;
|
|
$this->apiParams["pdfFile"] = $pdfFile;
|
|
}
|
|
|
|
public function getSettleType() {
|
|
return $this->settleType;
|
|
}
|
|
|
|
public function setSettleType($settleType) {
|
|
$this->settleType = $settleType;
|
|
$this->apiParams["settleType"] = $settleType;
|
|
}
|
|
|
|
public function getSupplierCode() {
|
|
return $this->supplierCode;
|
|
}
|
|
|
|
public function setSupplierCode($supplierCode) {
|
|
$this->supplierCode = $supplierCode;
|
|
$this->apiParams["supplierCode"] = $supplierCode;
|
|
}
|
|
|
|
public function getApiMethodName(){
|
|
return 'suning.selfmarket.expenseaccount.confirm';
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
public function check(){
|
|
//非空校验
|
|
RequestCheckUtil::checkNotNull($this->confirmType, 'confirmType');
|
|
RequestCheckUtil::checkNotNull($this->feeOrderNo, 'feeOrderNo');
|
|
RequestCheckUtil::checkNotNull($this->payDate, 'payDate');
|
|
RequestCheckUtil::checkNotNull($this->settleType, 'settleType');
|
|
RequestCheckUtil::checkNotNull($this->supplierCode, 'supplierCode');
|
|
}
|
|
|
|
public function getBizName(){
|
|
return "confirmExpenseaccount";
|
|
}
|
|
|
|
}
|
|
|
|
class Detail {
|
|
|
|
private $apiParams = array();
|
|
|
|
private $confirmAmount;
|
|
|
|
private $resultOrderNo;
|
|
|
|
public function getConfirmAmount() {
|
|
return $this->confirmAmount;
|
|
}
|
|
|
|
public function setConfirmAmount($confirmAmount) {
|
|
$this->confirmAmount = $confirmAmount;
|
|
$this->apiParams["confirmAmount"] = $confirmAmount;
|
|
}
|
|
|
|
public function getResultOrderNo() {
|
|
return $this->resultOrderNo;
|
|
}
|
|
|
|
public function setResultOrderNo($resultOrderNo) {
|
|
$this->resultOrderNo = $resultOrderNo;
|
|
$this->apiParams["resultOrderNo"] = $resultOrderNo;
|
|
}
|
|
|
|
public function getApiParams(){
|
|
return $this->apiParams;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|