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.
yanzong/extend/suning-sdk-php/request/selfmarket/OrderinvoiceinputAddRequest...

152 lines
2.9 KiB

<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2022-8-5
*/
class OrderinvoiceinputAddRequest extends SuningRequest{
/**
*
*/
private $supplierCode;
/**
*
*/
private $batchCode;
/**
*
*/
private $invoiceList;
public function getSupplierCode() {
return $this->supplierCode;
}
public function setSupplierCode($supplierCode) {
$this->supplierCode = $supplierCode;
$this->apiParams["supplierCode"] = $supplierCode;
}
public function getBatchCode() {
return $this->batchCode;
}
public function setBatchCode($batchCode) {
$this->batchCode = $batchCode;
$this->apiParams["batchCode"] = $batchCode;
}
public function getInvoiceList() {
return $this->invoiceList;
}
public function setInvoiceList($invoiceList) {
$this->invoiceList = $invoiceList;
$arr = array();
foreach ($invoiceList as $temp){
array_push($arr,$temp->getApiParams());
}
$this->apiParams["invoiceList"] = $arr;
}
public function getApiMethodName(){
return 'suning.selfmarket.orderinvoiceinput.add';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->supplierCode, 'supplierCode');
RequestCheckUtil::checkNotNull($this->batchCode, 'batchCode');
}
public function getBizName(){
return "addOrderinvoiceinput";
}
}
class InvoiceList {
private $apiParams = array();
private $invoiceNum;
private $invoiceCode;
private $invoiceDate;
private $taxRate;
private $totalAmount;
private $taxAmount;
public function getInvoiceNum() {
return $this->invoiceNum;
}
public function setInvoiceNum($invoiceNum) {
$this->invoiceNum = $invoiceNum;
$this->apiParams["invoiceNum"] = $invoiceNum;
}
public function getInvoiceCode() {
return $this->invoiceCode;
}
public function setInvoiceCode($invoiceCode) {
$this->invoiceCode = $invoiceCode;
$this->apiParams["invoiceCode"] = $invoiceCode;
}
public function getInvoiceDate() {
return $this->invoiceDate;
}
public function setInvoiceDate($invoiceDate) {
$this->invoiceDate = $invoiceDate;
$this->apiParams["invoiceDate"] = $invoiceDate;
}
public function getTaxRate() {
return $this->taxRate;
}
public function setTaxRate($taxRate) {
$this->taxRate = $taxRate;
$this->apiParams["taxRate"] = $taxRate;
}
public function getTotalAmount() {
return $this->totalAmount;
}
public function setTotalAmount($totalAmount) {
$this->totalAmount = $totalAmount;
$this->apiParams["totalAmount"] = $totalAmount;
}
public function getTaxAmount() {
return $this->taxAmount;
}
public function setTaxAmount($taxAmount) {
$this->taxAmount = $taxAmount;
$this->apiParams["taxAmount"] = $taxAmount;
}
public function getApiParams(){
return $this->apiParams;
}
}
?>