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/OrderinvoicemailAddRequest.php

167 lines
3.3 KiB

8 months ago
<?php
/**
* 苏宁开放平台接口 -
*
* @author suning
* @date 2022-8-5
*/
class OrderinvoicemailAddRequest extends SuningRequest{
/**
*
*/
private $supplierCode;
/**
*
*/
private $mailCompanyCode;
/**
*
*/
private $mailCompanyName;
/**
*
*/
private $mailNumber;
/**
*
*/
private $mailerName;
/**
*
*/
private $mailerTel;
/**
*
*/
private $invoiceList;
public function getSupplierCode() {
return $this->supplierCode;
}
public function setSupplierCode($supplierCode) {
$this->supplierCode = $supplierCode;
$this->apiParams["supplierCode"] = $supplierCode;
}
public function getMailCompanyCode() {
return $this->mailCompanyCode;
}
public function setMailCompanyCode($mailCompanyCode) {
$this->mailCompanyCode = $mailCompanyCode;
$this->apiParams["mailCompanyCode"] = $mailCompanyCode;
}
public function getMailCompanyName() {
return $this->mailCompanyName;
}
public function setMailCompanyName($mailCompanyName) {
$this->mailCompanyName = $mailCompanyName;
$this->apiParams["mailCompanyName"] = $mailCompanyName;
}
public function getMailNumber() {
return $this->mailNumber;
}
public function setMailNumber($mailNumber) {
$this->mailNumber = $mailNumber;
$this->apiParams["mailNumber"] = $mailNumber;
}
public function getMailerName() {
return $this->mailerName;
}
public function setMailerName($mailerName) {
$this->mailerName = $mailerName;
$this->apiParams["mailerName"] = $mailerName;
}
public function getMailerTel() {
return $this->mailerTel;
}
public function setMailerTel($mailerTel) {
$this->mailerTel = $mailerTel;
$this->apiParams["mailerTel"] = $mailerTel;
}
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.orderinvoicemail.add';
}
public function getApiParams(){
return $this->apiParams;
}
public function check(){
//非空校验
RequestCheckUtil::checkNotNull($this->supplierCode, 'supplierCode');
RequestCheckUtil::checkNotNull($this->mailCompanyCode, 'mailCompanyCode');
RequestCheckUtil::checkNotNull($this->mailNumber, 'mailNumber');
RequestCheckUtil::checkNotNull($this->mailerName, 'mailerName');
RequestCheckUtil::checkNotNull($this->mailerTel, 'mailerTel');
}
public function getBizName(){
return "addOrderinvoicemail";
}
}
class InvoiceList {
private $apiParams = array();
private $invoiceNum;
private $invoiceCode;
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 getApiParams(){
return $this->apiParams;
}
}
?>